From 0ee16193f6ede38950215bd74b49d58b779595a5 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期日, 25 六月 2023 16:01:02 +0800
Subject: [PATCH] 1.项目bug修改

---
 src/views/makeModel/processRoute.vue |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/views/makeModel/processRoute.vue b/src/views/makeModel/processRoute.vue
index 07931f3..61b0a5b 100644
--- a/src/views/makeModel/processRoute.vue
+++ b/src/views/makeModel/processRoute.vue
@@ -613,6 +613,7 @@
     async getStepSelectArr() {
       const { data: res } = await StepSelect({ WorkShop: this.dialogForm.wkshopcode })
       this.routeArr = res
+      console.log('鎵ц浜嗭紒')
     },
     // 澶勭悊涓嬫媺閫夋嫨
     handleSelect(item, tag) {
@@ -895,20 +896,23 @@
       this.operation = operation
       this.dialogVisible = true
 
-      if (this.$store.state.settings.orgType === 'W') {
-        await this.getStepSelectArr()
-      }
+      // if (this.$store.state.settings.orgType === 'W') {
+
+      // }
 
       const { data: res } = await ViewRoute({ routecode: row.code })
       // 寰呮敼
       this.dynamicTags = []
       this.routeSelectedArr = []
+
+      this.dialogForm.code = res[0].code
+      this.dialogForm.name = res[0].name
+      this.dialogForm.enable = res[0].enable
+      this.dialogForm.description = res[0].description
+      this.dialogForm.wkshopcode = res[0].wkshopcode
+      await this.getStepSelectArr()
+
       this.$nextTick(() => {
-        this.dialogForm.code = res[0].code
-        this.dialogForm.name = res[0].name
-        this.dialogForm.enable = res[0].enable
-        this.dialogForm.description = res[0].description
-        this.dialogForm.wkshopcode = res[0].wkshopcode
         res[0].Data.forEach((item, index) => {
           this.dynamicTags.push(
             { seq: item.seq, stepname: item.stepname, stepcode: item.stepcode, editDisabled: true, effect: index === res[0].Data.length - 1 ? 'dark' : 'light' }
@@ -931,7 +935,7 @@
       this.dialogForm.name = ''
       this.dialogForm.enable = 'Y'
       this.dialogForm.description = ''
-      this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode'), // 鎵�灞炶溅闂�
+      this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode') // 鎵�灞炶溅闂�
       this.dialogForm.Data = []
 
       this.dynamicTags = [

--
Gitblit v1.9.3