From b2d9d1619a4325e82c13420fcb00c79adc31fab0 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 11 十二月 2024 10:04:50 +0800
Subject: [PATCH] 电路试验驻波比等数采
---
src/components/do/b1-inspect-order-plan/Inspection.vue | 8 +++++---
1 files changed, 5 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..0497449 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -3734,12 +3734,14 @@
}
}
},
- 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