From 4c1557b4c0cc76b24620c8f52e2ae01d65a95e42 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 12 四月 2024 10:57:10 +0800
Subject: [PATCH] 打印标签修改

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

diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue
index f467d9f..b4eb8f8 100644
--- a/src/views/technology/routing/routing-form.vue
+++ b/src/views/technology/routing/routing-form.vue
@@ -445,7 +445,7 @@
                   effect="dark"
                 >
                   {{ item.label }}
-                </el-tag> 
+                </el-tag>
               </div> -->
               <el-divider content-position="left">澶囨敞</el-divider>
               <div class="node-content-remark">
@@ -695,7 +695,7 @@
       dataRule: {
         partNo: [
           { required: true, message: '闆朵欢涓嶈兘涓虹┖', trigger: 'blur' }
-        ], 
+        ],
         bomTypeDb: [
           { required: true, message: '宸ヨ壓绫诲瀷涓嶈兘涓虹┖', trigger: 'change' }
         ],
@@ -888,11 +888,11 @@
                 operationsFlag = false
               }
             })
-            if (!operationsFlag) {
+           /*  if (!operationsFlag) {
               this.$message.error('姣忎釜宸ュ簭閮介渶娣诲姞瀵瑰簲闆朵欢')
               this.isSubmit = false
               return
-            }
+            } */
             if (this.dataForm.id) {
               putObj(this.dataForm)
                 .then((response) => {
@@ -1397,6 +1397,17 @@
     // 淇濆瓨鎵�鏈夊弬鏁扮殑淇敼
     saveAllParamChange() {
       const paramJson = { routingOperationParam: this.paramData }
+      let num = 0
+      this.paramData.forEach(e=>{
+        var regex=/^[^\(\)|^,]+$/;
+        if(!regex.test(e.paramValue)){
+            num+=1
+        }
+      })
+      if(num>0){
+        this.$message.error("鍙傛暟鍊间笉鑳藉寘鍚嫳鏂囨嫭鍙锋垨閫楀彿,璇锋鏌�")
+        return
+      }
       putRoutingTemplateParam(paramJson).then((response) => {
         const data = response.data
         if (data.code == 0) {

--
Gitblit v1.9.3