From 056c68b2080c28fa23eb08324ae4594a0ecd6b52 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 16 十月 2023 21:16:45 +0800
Subject: [PATCH] 销售明细,退货单、退款单根据客户进行筛选
---
src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 4 +++-
src/views/other/commonDialog/SelectCommonDialog.vue | 12 +++++++-----
src/views/sales/salesReturn/AddSalesReturnDialog.vue | 4 +++-
src/views/sales/refundForm/AddRefundFormDialog.vue | 4 +++-
4 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue
index 3df5f0c..c983bd5 100644
--- a/src/views/other/commonDialog/SelectCommonDialog.vue
+++ b/src/views/other/commonDialog/SelectCommonDialog.vue
@@ -68,7 +68,7 @@
editVisible: false,
title: "",
clientId: 0,
- tableInfomation: []
+ tableInfomation: [],
}
}
}
@@ -349,8 +349,9 @@
// 閿�鍞槑缁嗗崟
async getSalesDetailsList() {
await getSalesDetailsList({
- keyword: this.keyword,
- keywordType: this.keywordType,
+ // keyword: this.keyword,
+ // keywordType: this.keywordType,
+ clientId:this.editCommonConfig.clientId,
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
}).then((res) => {
@@ -430,8 +431,9 @@
},
async getSalesReturnList() {
await getSalesReturnList({
- keyword: this.keyword,
- keywordType: this.keywordType,
+ // keyword: this.keyword,
+ // keywordType: this.keywordType,
+ clientId:this.editCommonConfig.clientId,
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
}).then((res) => {
diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue
index 1211ce1..0402e2c 100644
--- a/src/views/sales/refundForm/AddRefundFormDialog.vue
+++ b/src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -374,7 +374,8 @@
editSelCommonConfig: {
editVisible: false,
title: "",
- infomation: {}
+ infomation: {},
+ clientId:""
},
clientId: this.editCommonConfig.infomation.client_id,
sourceId: this.editCommonConfig.infomation.sourceId,
@@ -515,6 +516,7 @@
async handleSelectClient(value, item) {
if (value === "client") {
this.clientId = item.id
+ this.editSelCommonConfig.clientId=item.id
console.log("瀹㈡埛鍚嶇О",this.clientId,value,item)
await getSalesReturnList({
clientId:this.clientId
diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index 6166496..242a514 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -488,7 +488,8 @@
editSelectChanceConfig: {
editVisible: false,
title: "",
- infomation: {}
+ infomation: {},
+ search_map:{},
},
editSelCommonConfig: {
editVisible: false,
@@ -672,6 +673,7 @@
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,
diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
index c59f472..44eef53 100644
--- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue
+++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -308,7 +308,8 @@
editSelCommonConfig: {
editVisible: false,
title: "",
- infomation: {}
+ infomation: {},
+ clientId:""
},
productId: 1,
isNoProduct: true,
@@ -459,6 +460,7 @@
async handleSelectClient(value, item) {
if (value === "client") {
this.clientId = item.id
+ this.editSelCommonConfig.clientId=item.id
await getSalesDetailsList({
clientId: this.clientId
}).then((res) => {
--
Gitblit v1.8.0