From b87e9e675beff118396cedd9d7af20569c3d63b1 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 11 十二月 2024 10:30:16 +0800
Subject: [PATCH] 电路试验上传文件报错

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 014a596..9ee5c6a 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -3732,14 +3732,18 @@
             this.currentSample.insProduct = this.HaveJson(list)
             this.currentNum++
           }
+				}else {
+          this.$message.error(response.message);
 				}
 			},
-      async beforeUpload(file) {
-        if(this.sonLaboratory === '鐢佃矾璇曢獙'&&!this.$refs.CircuitParameters.allBandList.find(m=>m.band)){
+      beforeUpload(file) {
+        if(this.sonLaboratory === '鐢佃矾璇曢獙'&&(file.name.includes('浜よ皟')||file.name.includes('浜掕皟'))&&!this.$refs.CircuitParameters.allBandList.find(m=>m.band)){
           this.$message.error('涓婁紶闄勪欢鍓嶈鍏堝~鍐欏苟淇濆瓨棰戞');
           return false
         }else{
-          await this.$refs.CircuitParameters.saveAll()
+          if(file.name.includes('浜よ皟')||file.name.includes('浜掕皟')){
+            this.$refs.CircuitParameters.saveAll()
+          }
           if (file.size > 1024 * 1024 * 10) {
             this.$message.error('涓婁紶鏂囦欢涓嶈秴杩�10M');
             this.$refs.upload.clearFiles()

--
Gitblit v1.9.3