From 6caecd26f75979777956dc96e14d6f3b39ce6688 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 15 七月 2022 17:23:42 +0800
Subject: [PATCH] 1.修改bug

---
 src/views/zzmx/gylx.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/views/zzmx/gylx.vue b/src/views/zzmx/gylx.vue
index aa4eff6..e31a9b6 100644
--- a/src/views/zzmx/gylx.vue
+++ b/src/views/zzmx/gylx.vue
@@ -392,6 +392,17 @@
         return this.$message.info('杈撳叆妗嗗唴瀹逛笌涓嬫媺閫夐」鍐呭涓嶅尮閰嶏紒')
       }
 
+      // 3.杈撳叆妗嗗唴瀹逛笌宸查�夊唴瀹圭浉鍚屾椂涓嶈兘淇濆瓨
+      let flag2 = false
+      this.dynamicTags.forEach(item => {
+        if (item.stepname === this.autocompleteValue.trim()) {
+          flag2 = true
+        }
+      })
+      if (flag2) {
+        return this.$message.info('姝ゅ伐搴忓凡閫夛紝璇烽�夋嫨鍏跺畠宸ュ簭锛�')
+      }
+
       // 灏嗗�兼浛鎹㈠埌鍘焧ag浣嶇疆涓�
       this.dynamicTags.forEach((item, index) => {
         if ((index + 1) === tag.seq) {
@@ -608,6 +619,13 @@
       this.dynamicTags.forEach(item => {
         Data.push({ seq: item.seq, stepcode: item.stepcode, stepname: item.stepname })
       })
+
+      Data.forEach(item => {
+        if (item.stepname === this.routeArr.find(it => it.stepname === item.stepname).stepname) {
+          item.stepcode = this.routeArr.find(it => it.stepname === item.stepname).stepcode
+        }
+      })
+      console.log(Data, 32)
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
           const data = {

--
Gitblit v1.9.3