From 103b4575556d8c18a5707c162099070b82640554 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 17 十一月 2023 09:45:55 +0800 Subject: [PATCH] 车间订单客户附件bug解决 --- src/views/plan/manufacturingorder/productorder-form.vue | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views/plan/manufacturingorder/productorder-form.vue b/src/views/plan/manufacturingorder/productorder-form.vue index 039af71..ba11120 100644 --- a/src/views/plan/manufacturingorder/productorder-form.vue +++ b/src/views/plan/manufacturingorder/productorder-form.vue @@ -638,17 +638,11 @@ </el-row> <el-row> <el-table - default-expand-all - :data="components" + :data="components[0]" @selection-change="structSelectionChange" - row-key="id" border - :tree-props="{ - children: 'children' - }" style="width: 100%" height="400px" - :default-sort="{ prop: 'index' }" > <el-table-column type="selection" width="40" fixed="left" /> <el-table-column @@ -1071,6 +1065,7 @@ data() { return { + componentsTable:[], typeOptions: [], paramTemplateSelArr: [], paramTemplateSelCol: 'operationTemplateNo', @@ -1232,6 +1227,7 @@ this.getBomTypeDbOptions() this.getManufactureAttrs('manufacture_attr_type') this.getSysParam(sysParam.IS_REPORT_OPERATION) + // console.log(this.components); }, watch: { 'dataForm.partId'(newValue, oldValue) { @@ -1245,7 +1241,11 @@ } } }, - + components(newVal,oldVal){ + console.log("鏂�",newVal); + console.log("鑰�",oldVal); + console.log(this.components); + }, currentRouting(newValue, oldValue) { if (newValue && newValue.id) { if (this.dataForm.id != null && this.dataForm.id !== 0) { @@ -1295,7 +1295,8 @@ if (newValue && newValue.id) { // 鏌ヨ浜у搧缁撴瀯瀵瑰簲鐨勭粍浠� getBom(newValue.id).then((response) => { - this.components = [response.data.data.tree] + console.log("鏌�",this.components); + // this.components = [response.data.data.tree] }) } }, @@ -1397,6 +1398,7 @@ }, // 鏌ヨ褰撳墠杞﹂棿璁㈠崟淇℃伅 getOrderInfo() { + let that=this getManufacturingOrder(this.dataForm.id).then((response) => { this.dataForm = response.data.data // 鎶婂伐鑹烘寕涓婂幓 @@ -1416,7 +1418,7 @@ } // 鎶婁骇鍝佺粨鏋勭粍浠舵寕涓婂幓 if (this.dataForm.bomRoot) { - this.components = [this.dataForm.bomRoot] + that.components = [this.dataForm.bomRoot] } }) }, -- Gitblit v1.9.3