From d77fc6758d8d66e0f3e35486251d211d102857be Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期五, 15 九月 2023 13:45:38 +0800
Subject: [PATCH] 	modified:   src/components/view/finishedProductInspectionAdd.vue 	modified:   src/components/view/finishedProductInspectionUp.vue 	modified:   src/components/view/processInspection.vue 	modified:   src/components/view/processInspectionUpdate.vue 	modified:   src/components/view/rawInsDetail.vue

---
 src/components/view/rawInsDetail.vue |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/components/view/rawInsDetail.vue b/src/components/view/rawInsDetail.vue
index dbb323e..4b6009a 100644
--- a/src/components/view/rawInsDetail.vue
+++ b/src/components/view/rawInsDetail.vue
@@ -12,7 +12,7 @@
             >鎻� 浜�</el-button
           >
           <el-button
-            icon="el-icon-download"
+            icon="el-icon-back"
             @click="
               () => {
                 goBack();
@@ -194,6 +194,7 @@
           <template slot-scope="scope">
             <el-input
               :disabled="detailId != null"
+              @blur="assertTest(scope.row)"
               v-model="scope.row.required"
               placeholder="璇疯緭鍏ユ爣鍑嗗��"
             ></el-input>
@@ -202,6 +203,7 @@
         <el-table-column prop="internal" label="鍐呮帶鍊�" min-width="150">
           <template slot-scope="scope">
             <el-input
+              @blur="assertTest(scope.row)"
               :disabled="detailId != null"
               v-model="scope.row.internal"
               placeholder="璇疯緭鍏ュ唴鎺у��"
@@ -424,6 +426,22 @@
     }
   },
   methods: {
+    assertTest(row){
+      if(!/^[^><=]/.test(row.required)){
+        this.$message({
+                    message: "鏍囧噯鍊糩"+row.required+"]鏍煎紡棣栦綅搴斿寘鍚�>,<鎴栬��=",
+                    type: 'warning'
+                });
+                return
+      }
+      if(!/^[^><=]/.test(row.internal)){
+        this.$message({
+                    message: "鍐呮帶鍊糩"+row.internal+"]鏍煎紡棣栦綅搴斿寘鍚�>,<鎴栬��=",
+                    type: 'warning'
+                });
+                return
+      }
+    },
     // 璁惧鏍戣繃婊ゆ悳绱�
     filterNode(value, data) {
       if (!value) return true;
@@ -469,6 +487,7 @@
       this.detailId = res.data;
       this.getDetailInfo();
       this.$message.success(res.message);
+      this.goBack();
     },
 
     // 淇敼椤圭洰鐨勬娴嬪�兼敼鍙樼粨璁�
@@ -487,9 +506,9 @@
       const res = await this.$axios.post(
         this.$api.url.updateRawInspectsById + `${this.detailId}`
       ).then(res=>{
-聽 聽 聽 聽 this.$parent.removeAllTab()
         this.$message.success("鎻愪氦鎴愬姛");
         this.getDetailInfo();
+        this.goBack()
 聽 聽 聽 });
     },
     // 鑾峰彇璁惧鏍戝唴瀹�

--
Gitblit v1.9.3