From 6ab7d9bee6290c963726cb1545505e3398bff9ab Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 17 十月 2023 09:38:37 +0800
Subject: [PATCH] Merge branch 'zhengwenfeng/modify-style' into dev
---
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index ca9fa90..5a34d74 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -401,6 +401,8 @@
import { getContactList } from "@/api/client/contacts"
import { mapActions } from "vuex";
import { getSaleChanceList } from "@/api/sales/salesOpportunity";
+import { getSalesLeadsList } from "@/api/client/salesLead"
+
export default {
name: "AddFollowupRecordsDialog",
@@ -538,7 +540,7 @@
},
},
methods: {
- ...mapActions(["getContactFilter"]),
+ ...mapActions(["getContactFilter","getLeadFilter"]),
formInfo() {
this.objCode.type = "璺熻繘璁板綍缂栫爜";
this.objCode.codeStandID = "";
@@ -675,9 +677,10 @@
},
async handleSelectClient(value, item) {
if (value === "client") {
+ console.log(item,"item")
this.editSelectContactConfig.search_map.client_id=item.id
this.editSelectChanceConfig.search_map.client_id=item.id
- this.editSelectLeadConfig.search_map.client_id=item.id
+ this.editSelectLeadConfig.search_map.name=item.name
await getContactList({
search_map:{
client_id:item.id
@@ -689,11 +692,19 @@
this.getContactFilter(res.data.list);
}
});
+ await getSalesLeadsList({
+ search_map:{
+ name:item.name
+ },
+ }).then((res) => {
+ if (res.code === 200) {
+ this.getLeadFilter(res.data.list);
+ }
+ });
this.clientId = item.id;
this.editConfig.infomation.client_name = item.name;
this.isChance = false;
this.getChanceList(item.id);
- // console.log("clientId",this.clientId,this.editConfig.infomation.client_name)
} else if (value === "contact") {
this.contactId = item.id;
this.editConfig.infomation.contact_name = item.name;
--
Gitblit v1.8.0