From 33836e44d74759010d8e79f3cc702186c4bdf4ea Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 17 十月 2023 11:22:56 +0800 Subject: [PATCH] bug修复(5235 5236) --- src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 56 ++++++++++++++++++++++++++++++++------------------------ 1 files changed, 32 insertions(+), 24 deletions(-) diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue index 6e9ec9f..ee35820 100644 --- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue +++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue @@ -489,7 +489,7 @@ editVisible: false, title: "", infomation: {}, - search_map:{}, + search_map: {} }, editSelCommonConfig: { editVisible: false, @@ -548,7 +548,7 @@ getAllData() .then((res) => { this.memberOptions = res.data.member - this.dataProcess() + // this.dataProcess() }) .catch((err) => { console.log(err) @@ -673,31 +673,37 @@ } } }, - async handleSelectClient(value, item) { + // 閿�鍞満浼氬垪琛� + async getSaleChanceList(item) { + await getSaleChanceList({ + page: 1, + pageSize: 15, + search_map: { + client_id: item.id + } + }).then((res) => { + console.log(res) + this.saleChancelist = res.data.list + }) + }, + // 閿�鍞瓙鍗曞垪琛� + async getSubOrderList(item) { + await getSubOrderList({ + page: 1, + pageSize: 15, + search_map: { + client_id: item.id + } + }).then((res) => { + this.subOrderList = res.data.list + }) + }, + handleSelectClient(value, item) { if (value === "client") { this.clientId = item.id this.editConfig.infomation.client_name = item.name - this.editSelectChanceConfig.search_map.client_id=item.id - // 闇�瑕佷慨鏀� - await getSaleChanceList({ - page: 1, - pageSize: 15, - search_map: { - client_id: item.id - } - }).then((res) => { - console.log(res) - this.saleChancelist = res.data.list - }) - await getSubOrderList({ - page: 1, - pageSize: 15, - search_map: { - client_id: item.id - } - }).then((res) => { - this.subOrderList = res.data.list - }) + this.getSaleChanceList(item) + this.getSubOrderList(item) } else if (value === "chance") { this.saleChanceId = item.id this.editConfig.infomation.client_name = item.name @@ -723,6 +729,8 @@ if (value === "client") { this.editConfig.infomation.client_name = row.name this.clientId = row.id + this.getSaleChanceList(row) + this.getSubOrderList(row) } else if (value === "chance") { this.editConfig.infomation.sale_chance_name = row.name this.saleChanceId = row.id -- Gitblit v1.8.0