From d69611b526c9b269727c8b301ca1a6b7b108c887 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 24 四月 2024 10:16:20 +0800
Subject: [PATCH] 参数及模板,工艺路线,车间订单里面参数要求值英文符号替换

---
 src/views/technology/routing/routing-form.vue |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue
index cf29055..e7da9de 100644
--- a/src/views/technology/routing/routing-form.vue
+++ b/src/views/technology/routing/routing-form.vue
@@ -1429,18 +1429,15 @@
     },
     // 淇濆瓨鎵�鏈夊弬鏁扮殑淇敼
     saveAllParamChange() {
-      const paramJson = { routingOperationParam: this.paramData }
-      let num = 0
       this.paramData.forEach(e=>{
-        var regex=/^[^\(\)|^,]+$/;
-        if(!regex.test(e.paramValue)){
-            num+=1
+        if(e.paramValue!=null){
+        e.paramValue=e.paramValue.replace(',','锛�').replace('(','锛�').replace(')','锛�')
+          if (!isNaN(e.paramValue)) {
+            e.paramValue='='+e.paramValue
+          }
         }
       })
-      if(num>0){
-        this.$message.error("鍙傛暟鍊间笉鑳藉寘鍚嫳鏂囨嫭鍙锋垨閫楀彿,璇锋鏌�")
-        return
-      }
+      const paramJson = { routingOperationParam: this.paramData }
       putRoutingTemplateParam(paramJson).then((response) => {
         const data = response.data
         if (data.code == 0) {

--
Gitblit v1.9.3