From 0ec635d5e432be07c3103ac2e9bd25edb941f775 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 18 十月 2023 17:12:21 +0800
Subject: [PATCH] 跟进记录,销售明细单,退货单客户关联修改
---
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 13 +++++++++----
src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 8 +++++++-
src/views/sales/salesReturn/AddSalesReturnDialog.vue | 7 +++----
3 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index 8fdce8a..da6f687 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -632,7 +632,9 @@
},
async handleSelectClient(value, item) {
if (value === "client") {
- console.log(item, "item")
+ this.editConfig.infomation.contact_name = ""
+ this.editConfig.infomation.sales_leads_name=""
+ this.editConfig.infomation.sale_chance_name=""
this.editSelectContactConfig.search_map.client_id = item.id
this.editSelectChanceConfig.search_map.client_id = item.id
this.editSelectLeadConfig.search_map.name = item.name
@@ -669,9 +671,9 @@
this.editConfig.infomation.contact_name = row.name
this.contactId = row.id
} else if (value === "client") {
- // this.editConfig.infomation.client_name = row.name;
- // this.clientId = row.id;
- // this.isChance = false;
+ this.editConfig.infomation.contact_name = ""
+ this.editConfig.infomation.sales_leads_name=""
+ this.editConfig.infomation.sale_chance_name=""
this.editSelectContactConfig.search_map.client_id = row.id
this.editSelectChanceConfig.search_map.client_id = row.id
this.editSelectLeadConfig.search_map.name = row.name
@@ -692,6 +694,9 @@
// 娓呴櫎宸查�夋嫨鐢ㄦ埛
clearupClient(value) {
if (value === "client") {
+ this.editConfig.infomation.contact_name = ""
+ this.editConfig.infomation.sales_leads_name=""
+ this.editConfig.infomation.sale_chance_name=""
this.editConfig.infomation.client_name = ""
this.clientId = 0
this.isChance = true
diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index 6954d19..6de4c84 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -701,13 +701,15 @@
},
handleSelectClient(value, item) {
if (value === "client") {
+ this.editConfig.infomation.subbill_name =""
+ this.editConfig.infomation.sale_chance_name=""
this.clientId = item.id
this.editConfig.infomation.client_name = item.name
this.getSaleChanceList(item)
this.getSubOrderList(item)
} else if (value === "chance") {
this.saleChanceId = item.id
- this.editConfig.infomation.client_name = item.name
+ this.editConfig.infomation.sale_chance_name = item.name
} else if (value === "subbill") {
console.log("涓嬫媺妗嗙偣鍑�", item)
this.subbillId = item.id
@@ -728,6 +730,8 @@
},
selClient(row, value) {
if (value === "client") {
+ this.editConfig.infomation.sale_chance_name=""
+ this.editConfig.infomation.subbill_name=""
this.editConfig.infomation.client_name = row.name
this.clientId = row.id
this.getSaleChanceList(row)
@@ -743,7 +747,9 @@
// 娓呴櫎宸查�夋嫨鐢ㄦ埛
clearupClient(value) {
if (value === "client") {
+ this.editConfig.infomation.sale_chance_name=""
this.editConfig.infomation.client_name = ""
+ this.editConfig.infomation.subbill_name =""
this.clientId = 0
} else if (value === "chance") {
this.editConfig.infomation.sale_chance_name = ""
diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
index 2661ea9..396ee9a 100644
--- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue
+++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -460,6 +460,7 @@
},
async handleSelectClient(value, item) {
if (value === "client") {
+ this.editConfig.infomation.salesDetailNumber = ""
this.clientId = item.id
this.editSelCommonConfig.clientId = item.id
await getSalesDetailsList({
@@ -486,6 +487,7 @@
async selClient(row, value) {
console.log(row, value)
if (value === "client") {
+ this.editConfig.infomation.salesDetailNumber = ""
this.editConfig.infomation.client_name = row.name
this.clientId = row.id
this.editSelCommonConfig.clientId = row.id
@@ -504,14 +506,11 @@
// 娓呴櫎宸查�夋嫨鐢ㄦ埛
clearupClient(value) {
if (value === "client") {
- // this.editConfig.infomation = {}
+ this.editConfig.infomation.salesDetailNumber = ""
this.editConfig.infomation.client_name = ""
this.clientId = 0
} else if (value === "contract") {
this.editConfig.infomation.salesDetailNumber = ""
- // this.productTableList.tableData = []
- // this.tableData = []
- // this.SalesDetailsId = 0
}
},
// 娣诲姞闄勪欢
--
Gitblit v1.8.0