From 003a3d7a15cad3c10c04696b318f677c9a123921 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 11 十月 2023 15:14:46 +0800
Subject: [PATCH] 销售线索+客户管理+联系人的编码
---
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