From 3b6cea7dcb3f8bf5aa3142b8183adcf7116b1d54 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期五, 15 九月 2023 17:09:47 +0800
Subject: [PATCH] 	modified:   src/components/view/finishedProductInspectionAdd.vue 	modified:   src/components/view/finishedProductInspectionUp.vue 	modified:   src/components/view/rawInsDetail.vue

---
 src/components/view/finishedProductInspectionUp.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/components/view/finishedProductInspectionUp.vue b/src/components/view/finishedProductInspectionUp.vue
index de810a2..58acfa5 100644
--- a/src/components/view/finishedProductInspectionUp.vue
+++ b/src/components/view/finishedProductInspectionUp.vue
@@ -268,8 +268,8 @@
                 name: null
             }, // node鐐瑰嚮淇濆瓨褰撳墠鐐瑰嚮鏁版嵁
             clickSelectDevice: {
-                index: "", // 鐐瑰嚮閫夋嫨瀛樺偍褰撳墠琛岀储寮�
-                rpId: "" // 鐐瑰嚮閫夋嫨瀛樺偍褰撳墠琛岄」鐩甀d
+                index: null, // 鐐瑰嚮閫夋嫨瀛樺偍褰撳墠琛岀储寮�
+                rpId: null // 鐐瑰嚮閫夋嫨瀛樺偍褰撳墠琛岄」鐩甀d
             }
         };
     },
@@ -337,7 +337,7 @@
                         message: '涓婃姤鎴愬姛',
                         type: 'success'
                     });
-                    this.$refs.comBackMain(true)
+                    this.$parent.comBackMain(true)
                 } else {
                     this.$message({
                         message: res.message,
@@ -396,13 +396,22 @@
                 }
             }).then(res => {
                 this.materialOptions = res.data;
+                if(this.materialOptions.length===1){
+                    this.$message({
+                    message: '璇ラ」鐩笅鍙湁涓�涓瘯楠岃澶囷紝鏃犻渶閫夋嫨锛�',
+                    type: 'warning'
+                });
+                    return
+                }
+                row.isSelectDevice = true
                 this.filterText = row.did
             });
         },
         // 鐐瑰嚮琛ㄦ牸閫夋嫨瑙﹀彂
         clickTableSelect(scope) {
-            scope.row.isSelectDevice = true
-            // this.centerDialogVisible = true;
+            if(this.clickSelectDevice.index!=null){
+                this.$set(this.inspectionItems[this.clickSelectDevice.index],'isSelectDevice',false)
+            }
             this.clickSelectDevice.index = scope.$index;
             this.clickSelectDevice.rpId = scope.row.id;
             this.getOptions(scope.row);

--
Gitblit v1.9.3