From 0e858a61519b0eacc3a230aee20d76818b2b364c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 29 二月 2024 09:48:21 +0800
Subject: [PATCH] 清空3项值刷新接口获取对应机会和报价列表
---
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 38 ++++++++++++++++++++++++++++++++------
1 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index 92575c0..18e2d13 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -9,6 +9,7 @@
custom-class="iframe-dialog"
>
<el-form
+ v-if="refreshFlag"
ref="form"
:model="editConfig.infomation"
:rules="rules"
@@ -401,6 +402,7 @@
},
data() {
return {
+ refreshFlag: true,
dialogWidth: "50%",
editConfig: this.editContactsConfig,
rules: {
@@ -492,6 +494,16 @@
this.objCode.codeStandID = this.editConfig.infomation.codeStandID
}
this.getRCodeStandardList()
+ },
+ /**
+ * 寮哄埗鍒锋柊form缁勪欢
+ * 澶栭儴鏇存敼琛ㄥ崟鍊间笉浼氳Е鍙戣〃鍗曟牎楠�,瀵艰嚧鍗充娇鏈夊�煎琚〃鍗曟牎楠岄樆濉炰綇
+ */
+ refresh() {
+ this.refreshFlag = false
+ requestAnimationFrame(() => {
+ this.refreshFlag = true
+ })
},
getCommonData() {
getAllData().then((res) => {
@@ -591,13 +603,22 @@
},
// 鑾峰彇閿�鍞満浼�
getChanceList(id) {
- getSaleChanceList({
- page: 1,
- pageSize: 15,
- search_map: {
+ let params={}
+ if(id){
+ params={
+ page: 0,
+ pageSize: 0,
+ }
+ params.search_map={
client_id: id
}
- }).then((res) => {
+ }else{
+ params={
+ page: 0,
+ pageSize: 0,
+ }
+ }
+ getSaleChanceList(params).then((res) => {
if (res.code == 200) {
this.saleChancelist = res.data.list
}
@@ -676,6 +697,9 @@
} else if (value === "chance") {
this.saleChanceId = item.id
this.editConfig.infomation.sale_chance_name = item.name
+ this.editConfig.infomation.client_name = item.client.name
+ this.clientId = item.client.id
+ this.getChanceList(this.clientId)
} else {
this.saleLeadId = item.id
this.editConfig.infomation.sales_leads_name = item.name
@@ -710,12 +734,13 @@
this.isChance = false
this.getContactList(row)
this.getSalesLeadsList(row)
- this.getChanceList(row.id)
+ this.getChanceList(this.clientId)
} else if (value === "chance") {
this.editConfig.infomation.sale_chance_name = row.name
this.saleChanceId = row.id
this.editConfig.infomation.client_name = row.client.name
this.clientId = row.client.id
+ this.getChanceList(this.clientId)
} else {
this.editConfig.infomation.sales_leads_name = row.name
this.saleLeadId = row.id
@@ -742,6 +767,7 @@
this.editConfig.infomation.sales_leads_name = ""
this.saleLeadId = 0
}
+ this.refresh()
},
// 娣诲姞闄勪欢
addAnnexClick() {},
--
Gitblit v1.8.0