From be027530e123c33560a7c18af815ece1465816f7 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 21 十一月 2023 12:54:47 +0800
Subject: [PATCH] 	modified:   src/views/quality/exception/exception.vue

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

diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
index e806b33..a09ed00 100644
--- a/src/views/quality/finishedProductInspection/finishedProduct-form.vue
+++ b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
@@ -134,7 +134,7 @@
                                 </div>
                             </template>
                         </el-table-column>
-                        <el-table-column prop="inspectionValue" v-for="(item, index) in empiricalValueAdd" :key="index"
+                        <el-table-column prop="inspectionValue"  :key="index"
                                 label="妫�楠屾弿杩�" width="240" style="text-align: center;">
                                 <template slot-scope="scope">
                                     <el-col v-if="scope.row.itype === '1'">
@@ -154,7 +154,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, index)" placeholder="璇疯緭鍏ユ楠屾弿杩�"></el-input>
+                                                @blur="changeState(scope.row, index)" placeholder="璇疯緭鍏ユ娴嬪��"></el-input>
                                             <!-- <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.inote" placeholder="璇烽�夋嫨">
                                                 <el-option v-for="item in dataVal" :key="item.value" :label="item.label"
                                                     :value="item.value">
@@ -390,15 +390,26 @@
             })
         },
         updateDevice(row,index){
-            updateDeviceById({deviceId:row.eId,fpid:row.iId}).then(res=>{
+            let rowId=JSON.stringify(row.iid)
+            console.log(row);
+            updateDeviceById({deviceId:row.eId,fpid:row.iid}).then(res=>{
                 this.inspectionItems.forEach(obj=>{
-                    if(obj.children){
-                        obj.children[index-1].inspectionValue = ''
-                        obj.children[index-1].iresult = null
-                        obj.children[index-1].empiricalValueAddss = []
-                        obj.children[index-1].inote=''
+                    obj.children.forEach(c=>{
+                        if(c.iid==rowId){
+                        c.inspectionValue = null
+                        c.iresult = null
+                        c.empiricalValueAddss = []
+                        c.inote=''
+                        }
+                    })
 
-                    }
+                    // if(obj.children){
+                    //     obj.children[index-1].inspectionValue = ''
+                    //     obj.children[index-1].iresult = null
+                    //     obj.children[index-1].empiricalValueAddss = []
+                    //     obj.children[index-1].inote=''
+
+                    // }
                 })
             }).catch(error=>{
                 console.log(error)

--
Gitblit v1.9.3