From f450367d25cc92950b3ebed3e19d97627e0b3fb7 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 11 十月 2023 12:07:25 +0800
Subject: [PATCH] 跟进记录的编码 接口联调和修改
---
src/views/client/followupRecords/index.vue | 4 ++--
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 19 +++++++++++--------
src/components/wordInput.vue | 9 +++++----
src/views/client/followupRecords/mixin/codeMixin.js | 14 ++++++++++++--
4 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/src/components/wordInput.vue b/src/components/wordInput.vue
index fe0a4a4..8e9408a 100644
--- a/src/components/wordInput.vue
+++ b/src/components/wordInput.vue
@@ -25,8 +25,8 @@
style="
height: 100%;
display: inline-block;
- line-height: 24px;
- width: 24px;
+ line-height: 22px;
+ width: 22px;
text-align: center;
"
class="el-icon-minus"
@@ -277,14 +277,15 @@
// justify-content: space-between;
display: inline-block;
margin-right: 0px;
+ line-height:28px;
input {
color: inherit;
font-family: inherit;
border: 0;
outline: 0;
border-bottom: 1px solid #919191;
- height: 24px;
- width: 24px;
+ height: 22px;
+ width: 22px;
font-size:18px;
text-align: center;
border: #919191 1px solid;
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index 662d570..5604167 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -28,20 +28,21 @@
</el-form-item> -->
<el-form-item label="璺熻繘璁板綍缂栧彿" prop="number">
<WordInput
- v-if="codenumer && (explain != '' || isIdDisabled)"
+ v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
:codenumer="codenumer"
:sum="sum"
:disabled="editConfig.infomation.id || isIdDisabled"
:inputValue="inputValue"
@codeList="codeList"
/>
- <span v-else style="color: #f56c6c"
+ <span v-else-if="method == 0" style="color: #f56c6c"
>璇蜂紭鍏堥厤缃紪鐮佽鑼�
<el-button type="text" @click="numberClick">
閰嶇疆瑙勮寖
</el-button
></span
>
+ <span v-else>鑷姩鐢熸垚</span>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -437,23 +438,23 @@
this.$store.dispatch("geLead")
this.getCommonData()
this.getContactInfoList()
- this.getRCodeStandardList();
+ this.formInfo();
},
watch:{
- 'editConfig.visible'(val){
+ 'editContactsConfig.visible'(val){
if(val){
this.formInfo()
}
},
- 'editConfig.infomation'(){
+ 'editContactsConfig.infomation.codeStandID'(){
this.formInfo()
}
},
methods: {
formInfo(){
this.objCode.codeStandID = ''
- if(this.editConfig.infomation.number&&this.editConfig.infomation.codeStandardID){
- this.objCode.codeStandID = this.editConfig.infomation.codeStandardID;
+ if(this.editConfig.infomation.codeStandID){
+ this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
}
this.getRCodeStandardList();
},
@@ -532,7 +533,9 @@
record: data.record || "",
sale_chance_id: this.saleChanceId || 0,
sales_leads_id: this.saleLeadId || 0,
- topic: data.topic || ""
+ topic: data.topic || "",
+ codeStandID:data.ID,
+ codeRule:this.codeRule,
}
}
let params = {}
diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue
index e593d33..592b2bb 100644
--- a/src/views/client/followupRecords/index.vue
+++ b/src/views/client/followupRecords/index.vue
@@ -255,16 +255,16 @@
},
// 鏂板缓
addBtnClick() {
- this.editConfig.visible = true
this.editConfig.title = "鏂板缓"
this.editConfig.infomation = { ...this.addConfig }
+ this.editConfig.visible = true
},
// 缂栬緫
handleClick(row) {
console.log(row)
- this.editConfig.visible = true
this.editConfig.title = "缂栬緫"
this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" }
+ this.editConfig.visible = true
},
// 鍒犻櫎
delClick(id) {
diff --git a/src/views/client/followupRecords/mixin/codeMixin.js b/src/views/client/followupRecords/mixin/codeMixin.js
index dd856eb..c4bd01d 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.editContactsConfig.infomation.id){
+ this.codeList( this.editConfig.infomation.number);
+ }
+
this.$forceUpdate();
}else{
this.$message.error(res.data.msg?res.data.msg:'鑾峰彇缂栫爜瑙勮寖澶辫触锛岃閲嶈瘯锛�')
--
Gitblit v1.8.0