From 2a1ea6a1c5b2210b3ac751e344517741cfbac2dd Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期五, 19 一月 2024 10:59:31 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before --- src/views/quality/finishedProductInspection/finishedProduct-form.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue index f90cdbf..10715eb 100644 --- a/src/views/quality/finishedProductInspection/finishedProduct-form.vue +++ b/src/views/quality/finishedProductInspection/finishedProduct-form.vue @@ -113,7 +113,11 @@ :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" :cell-style="{textAlign:'center'}" row-key="iid" default-expand-all style="width: 100%" ref="table" :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> - <el-table-column type="index" label="搴忓彿" width="60"></el-table-column> + <el-table-column type="index" prop="parentIndex" label="搴忓彿" width="60"> + <template scope="scope"> + <span v-if="scope.row.isIndex">{{scope.row.parentIndex}}</span> + </template> + </el-table-column> <el-table-column label="椤圭洰" prop="father" show-overflow-tooltip width="140" ></el-table-column> <el-table-column prop="iname" label="鎸囨爣" show-overflow-tooltip width="140" ></el-table-column> <el-table-column prop="iunit" label="鍗曚綅" show-overflow-tooltip width="140" ></el-table-column> @@ -182,7 +186,7 @@ class="item" effect="dark" content="璇峰厛閫夋嫨璁惧锛�" placement="top-start"> <el-input :disabled="scope.row.eId == null" v-model="scope.row.inote" - @blur="changeState(scope.row)" placeholder="璇疯緭鍏ユ娴嬪��"></el-input> + @blur="changeState(scope.row)" placeholder="璇疯緭鍏ユ楠屾弿杩�"></el-input> <span v-if="resultVal != null && processInspectVo.id != null" v-text="scope.row.inote"></span> </el-tooltip> @@ -349,7 +353,7 @@ } }, codeDevice(row,index){ - this.row=row + this.row=row console.log("row",row); this.deviceCode =true this.$refs.codeDeviceCompont.openCamera() @@ -440,9 +444,12 @@ this.processInspectVo.documentId = result.documentId this.processInspectVo.outBatchNo = result.outBatchNo this.processInspectVo.locName = result.locName + this.processInspectVo.productNo = result.productNo let userList = [] - result.children.forEach(item=>{ + result.children.forEach((item,index)=>{ item.iid = Math.random() + item.isIndex = true; + item.parentIndex = index + 1; if(item.children != undefined){ item.children.forEach(obj=>{ let arr = [] @@ -626,7 +633,7 @@ updateFinishedInsProduct(obj).then(res => { if (res.data.code == 0) { this.init() - } + } }) } }) -- Gitblit v1.9.3