From ffb95166c2f65efc41acefc217e558191a41ed8f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 18 四月 2024 17:32:55 +0800
Subject: [PATCH] 纤度登记表  编辑的时候纤度值和数量赋值的逻辑调整

---
 src/views/productManage/silkRegisterForm/addPage.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/productManage/silkRegisterForm/addPage.vue b/src/views/productManage/silkRegisterForm/addPage.vue
index fa97898..8a386e9 100644
--- a/src/views/productManage/silkRegisterForm/addPage.vue
+++ b/src/views/productManage/silkRegisterForm/addPage.vue
@@ -606,7 +606,7 @@
                   JSON.stringify(response.data ? response.data : {})
                 );
                 this.form = config;
-                this.getGroupNumber()
+                this.getGroupNumber('','edit')
                 let finenessList=config.finenessList
                   ? config.finenessList
                   : [];
@@ -762,7 +762,7 @@
         }
       });
     },
-    async getGroupNumber(val) {
+    async getGroupNumber(val,type) {
       if (this.form.name) {
         //缁勫埆
         let number = "";
@@ -789,8 +789,8 @@
             }
           })
         }
-        if(this.form.workshopGroup&&this.form.market){
-            getCarNumber({
+        if(this.form.workshopGroup&&this.form.market&&type!='edit'){
+          await  getCarNumber({
               workshopName:this.form.name,
               marketName:this.form.market,
               groupNumber:this.form.workshopGroup,

--
Gitblit v1.8.0