From 5eb40b51f136604ce568c3dde114ca91d1b7ac1d Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期三, 11 十月 2023 19:34:56 +0800
Subject: [PATCH] feat: 销售机会报价单销售总单销售子单弹窗表单必填项调整

---
 src/views/client/followupRecords/mixin/codeMixin.js |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/client/followupRecords/mixin/codeMixin.js b/src/views/client/followupRecords/mixin/codeMixin.js
index dd856eb..8523a34 100644
--- a/src/views/client/followupRecords/mixin/codeMixin.js
+++ b/src/views/client/followupRecords/mixin/codeMixin.js
@@ -14,7 +14,9 @@
       codenumer: 0, //姣忔杈撳叆鐨勭紪鐮�
       codenumberList: [], //鏁存潯缂栫爜
       sum: 0,
-      objCode: { name: "", page: 0, pageSize: 0, type: "璺熻繘璁板綍缂栫爜" },
+      method:0,
+      objCode: { name: "", page: 0, pageSize: 0, type: "璺熻繘璁板綍缂栫爜",codeStandID:'' },
+      codeRule:{},
     };
   },
   
@@ -28,12 +30,16 @@
         if(res.data.code==200){
           const {
             List = [],
+            ID,
             AutoRule = {},
             Method,
           } = (res.data.data&&res.data.data.data) ? res.data.data.data[0] : [];
+          this.codeRule= (res.data.data&&res.data.data.data) ? res.data.data.data[0]:{}
           let autoRule=AutoRule
           let method=Method?Method:0
+          this.method=method
           let rules=List
+          this.editConfig.infomation.ID=ID
           if (method == 0 && res.data.data.data.length > 0) {
             rules.forEach((item, index) => {
               // setTimeout(() => {
@@ -62,10 +68,14 @@
                 this.codeList(
                   this.editConfig.infomation.number ? this.editConfig.infomation.number : autoRule.PrefixValue
                 );
+                return true;
               }
             }
           }
-  
+          if(this.editConfig.infomation.id){
+            this.codeList( this.editConfig.infomation.number);
+          }
+          
           this.$forceUpdate();
         }else{
           this.$message.error(res.data.msg?res.data.msg:'鑾峰彇缂栫爜瑙勮寖澶辫触锛岃閲嶈瘯锛�')

--
Gitblit v1.8.0