|
|
@@ -129,39 +129,43 @@
|
|
|
<el-form-item label="创建选择" class="mab" >
|
|
|
<el-checkbox disabled v-model="yycpzlformData['yjzl']">获取印件资料</el-checkbox>
|
|
|
<el-checkbox disabled v-model="yycpzlformData['gyap']">获取工艺安排</el-checkbox>
|
|
|
+ <el-form-item label="" prop="processName" class="mab" label-width="100" >
|
|
|
+ <el-input v-model="yycpzlformData['fa']"/>
|
|
|
+ </el-form-item>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: right;margin-left: 25%">
|
|
|
<el-button @click="yycpzlhandleCancel">放弃</el-button>
|
|
|
<el-button type="primary" @click="yycpzlhandleConfirm">执行</el-button>
|
|
|
</div>
|
|
|
|
|
|
- <el-table ref="multipleTable"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- :row-style="{ height: '0px' }"
|
|
|
- :cell-style="{ padding: '0px' }"
|
|
|
- :header-row-style="{ height: '0px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
- @row-click="yyzltableRowClick"
|
|
|
- highlight-current-row="true"
|
|
|
- style="width: 100%;height: 30vh;" border tooltip-effect="dark"
|
|
|
- :data="yyzltableData" row-key="ID">
|
|
|
- <el-table-column align="left" label="工单编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.工单编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="客户编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.客户编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="客户名称" width="120">
|
|
|
- <template v-slot="{ row }"><span>{{ row.客户名称 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="产品编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.产品编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="产品名称">
|
|
|
- <template v-slot="{ row }"><span>{{ row.产品名称 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+<!-- <el-table ref="multipleTable"-->
|
|
|
+<!-- :show-overflow-tooltip="true"-->
|
|
|
+<!-- :row-style="{ height: '0px' }"-->
|
|
|
+<!-- :cell-style="{ padding: '0px' }"-->
|
|
|
+<!-- :header-row-style="{ height: '0px' }"-->
|
|
|
+<!-- :header-cell-style="{ padding: '0px' }"-->
|
|
|
+<!-- @row-click="yyzltableRowClick"-->
|
|
|
+<!-- highlight-current-row="true"-->
|
|
|
+<!-- style="width: 100%;height: 30vh;" border tooltip-effect="dark"-->
|
|
|
+<!-- :data="yyzltableData" row-key="ID">-->
|
|
|
+<!-- <el-table-column align="left" label="工单编号" width="100">-->
|
|
|
+<!-- <template v-slot="{ row }"><span>{{ row.工单编号 }}</span></template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- <el-table-column align="left" label="客户编号" width="100">-->
|
|
|
+<!-- <template v-slot="{ row }"><span>{{ row.客户编号 }}</span></template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- <el-table-column align="left" label="客户名称" width="120">-->
|
|
|
+<!-- <template v-slot="{ row }"><span>{{ row.客户名称 }}</span></template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- <el-table-column align="left" label="产品编号" width="100">-->
|
|
|
+<!-- <template v-slot="{ row }"><span>{{ row.产品编号 }}</span></template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- <el-table-column align="left" label="产品名称">-->
|
|
|
+<!-- <template v-slot="{ row }"><span>{{ row.产品名称 }}</span></template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- </el-table>-->
|
|
|
</el-dialog>
|
|
|
|
|
|
<!--工序产量核算-->
|
|
|
@@ -2711,6 +2715,7 @@ const yycpzlformData = reactive({
|
|
|
yjzl:true,
|
|
|
gyap: true,
|
|
|
gyfa: '',
|
|
|
+ fa: 'A',
|
|
|
});
|
|
|
const onyycpzllist = ref(false);
|
|
|
//引用产品资料【按钮】
|
|
|
@@ -2736,32 +2741,38 @@ const yyzltableData = ref([]);
|
|
|
//引用产品资料->获取产品资料 2403114
|
|
|
const _WorkOrderDetailCopedata = async ()=>{
|
|
|
let search = yycpzlformData['gdbh'];
|
|
|
- // const WorkOrderDetailCopes = await ProductInformation({workOrder:search});
|
|
|
- const WorkOrderDetailCopes = await WorkOrderDetailCope({search:search});
|
|
|
- // console.log(WorkOrderDetailCopes);
|
|
|
- yyzltableData.value = WorkOrderDetailCopes.data
|
|
|
- // if(WorkOrderDetailCopes.msg === '未找到工单信息'){
|
|
|
- // yycpzlformData['khdh'] = '';
|
|
|
- // yycpzlformData['khmc'] = '';
|
|
|
- // yycpzlformData['cpdh'] = '';
|
|
|
- // yycpzlformData['cpmc'] = '';
|
|
|
- // ElMessage({type: 'warning',message: '未找到工单信息'})
|
|
|
- // return false;
|
|
|
- // }else{
|
|
|
- // yycpzlformData['gdbh'] = WorkOrderDetailCopes.data['工单编号'];
|
|
|
- // yycpzlformData['khdh'] = WorkOrderDetailCopes.data['客户代号'];
|
|
|
- // yycpzlformData['khmc'] = WorkOrderDetailCopes.data['客户名称'];
|
|
|
- // yycpzlformData['cpdh'] = WorkOrderDetailCopes.data['产品代号'];
|
|
|
- // yycpzlformData['cpmc'] = WorkOrderDetailCopes.data['产品名称'];
|
|
|
- // }
|
|
|
-}
|
|
|
-const yyzltableRowClick = async (row) => {
|
|
|
- yycpzlformData['gdbh'] = row['工单编号'];
|
|
|
- yycpzlformData['khdh'] = row['客户编号'];
|
|
|
- yycpzlformData['khmc'] = row['客户名称'];
|
|
|
- yycpzlformData['cpdh'] = row['产品编号'];
|
|
|
- yycpzlformData['cpmc'] = row['产品名称'];
|
|
|
-};
|
|
|
+ const WorkOrderDetailCopes = await ProductInformation({workOrder:search});
|
|
|
+ // const WorkOrderDetailCopes = await WorkOrderDetailCope({search:search});
|
|
|
+ console.log(WorkOrderDetailCopes);
|
|
|
+ // yyzltableData.value = WorkOrderDetailCopes.data
|
|
|
+ // yycpzlformData['gdbh'] = WorkOrderDetailCopes.data[0]['工单编号'];
|
|
|
+ // yycpzlformData['khdh'] = WorkOrderDetailCopes.data[0]['客户编号'];
|
|
|
+ // yycpzlformData['khmc'] = WorkOrderDetailCopes.data[0]['客户名称'];
|
|
|
+ // yycpzlformData['cpdh'] = WorkOrderDetailCopes.data[0]['产品编号'];
|
|
|
+ // yycpzlformData['cpmc'] = WorkOrderDetailCopes.data[0]['产品名称'];
|
|
|
+ if(WorkOrderDetailCopes.msg === '未找到工单信息'){
|
|
|
+ yycpzlformData['khdh'] = '';
|
|
|
+ yycpzlformData['khmc'] = '';
|
|
|
+ yycpzlformData['cpdh'] = '';
|
|
|
+ yycpzlformData['cpmc'] = '';
|
|
|
+ ElMessage({type: 'warning',message: '未找到工单信息'})
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ yycpzlformData['gdbh'] = WorkOrderDetailCopes.data['工单编号'];
|
|
|
+ yycpzlformData['khdh'] = WorkOrderDetailCopes.data['客户代号'];
|
|
|
+ yycpzlformData['khmc'] = WorkOrderDetailCopes.data['客户名称'];
|
|
|
+ yycpzlformData['cpdh'] = WorkOrderDetailCopes.data['产品代号'];
|
|
|
+ yycpzlformData['cpmc'] = WorkOrderDetailCopes.data['产品名称'];
|
|
|
+ }
|
|
|
+}
|
|
|
+//点击获取工单资料展示数据
|
|
|
+// const yyzltableRowClick = async (row) => {
|
|
|
+// yycpzlformData['gdbh'] = row['工单编号'];
|
|
|
+// yycpzlformData['khdh'] = row['客户编号'];
|
|
|
+// yycpzlformData['khmc'] = row['客户名称'];
|
|
|
+// yycpzlformData['cpdh'] = row['产品编号'];
|
|
|
+// yycpzlformData['cpmc'] = row['产品名称'];
|
|
|
+// };
|
|
|
//引用产品资料【执行】
|
|
|
const yycpzlhandleConfirm = async () => {
|
|
|
_ProductInformationEdit();
|