From 7fca02745d606514a22dc2f4673e3ea1475495b6 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 30 一月 2024 16:54:52 +0800
Subject: [PATCH] 质检报告修改

---
 src/views/quality/finishedProductInspection/finishedProduct-form.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
index 0ca060a..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>
@@ -303,7 +307,6 @@
                 documentId: null,
                 outBatchNo: null,
                 locName: null,
-                productNo: null,
             },
             inspectionItems: [], // 鏂板妫�楠岄」鐩〃鏍�
             inspectionResultForm: [],
@@ -443,8 +446,10 @@
                     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 = []

--
Gitblit v1.9.3