From 3f6cd5f8b39c8fdae604090e0db3995123f28cc8 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 24 四月 2024 18:33:21 +0800
Subject: [PATCH] xiug

---
 src/views/quality/teststandard/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue
index 241ac69..ff128d8 100644
--- a/src/views/quality/teststandard/index.vue
+++ b/src/views/quality/teststandard/index.vue
@@ -497,10 +497,11 @@
   },
   computed: {
     ...mapGetters(['permissions']),
-    editable: function() {
+    editable : function() {
       if (!this.currentTestStandard) {
         return true
       }
+      console.log('99999999999', this.currentTestStandard)
       if (
         this.currentTestStandard.id &&
         this.currentTestStandard.state === '01draft'
@@ -866,14 +867,16 @@
     dataFormTestStandardParam() {
       this.isSubmit = true
       if (this.testStandardParams.length > 0) {
-        this.testStandardParams.map(m=>{
-          if(m.referenceValue !== undefined) {
-              m.referenceValue = m.referenceValue.replace(',','锛�').replace('(','锛�').replace(')','锛�')
-            return m
+        for(let standardParam in this.testStandardParams) {
+            let value = this.testStandardParams[standardParam].referenceValue
+            if( value !== undefined) {
+                value = value.replace(',','锛�').replace('(','锛�').replace(')','锛�')
           } else{
             this.$message.warning('瑕佹眰鑼冨洿娌℃湁濉啓!')
+            this.isSubmit = false
+            return;
           }
-        })
+        }
         addTestStandardParam(this.testStandardParams)
           .then((response) => {
             this.$message.success('妫�娴嬫爣鍑嗗弬鏁颁繚瀛樻垚鍔�')

--
Gitblit v1.9.3