From 85bb87e9fb87df6478be0a940e1552f78ee02aa9 Mon Sep 17 00:00:00 2001 From: jhd <1684074631@qq.com> Date: Mon, 25 May 2026 14:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=8A=B6=E6=80=81bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/crm/components/ReceiveTable.vue | 19 +++---- .../src/views/crm/contract/fin_sta/index.vue | 28 +++++----- klp-ui/src/views/crm/customer/index.vue | 52 +++++++++++++++---- 3 files changed, 66 insertions(+), 33 deletions(-) diff --git a/klp-ui/src/views/crm/components/ReceiveTable.vue b/klp-ui/src/views/crm/components/ReceiveTable.vue index b4f78aae..f84330f8 100644 --- a/klp-ui/src/views/crm/components/ReceiveTable.vue +++ b/klp-ui/src/views/crm/components/ReceiveTable.vue @@ -180,15 +180,16 @@ export default { }, immediate: true, }, - currentCustomerId: { - handler(newVal) { - if (newVal) { - this.queryParams.customerId = newVal; - this.getList(); - } - }, - immediate: true, - } + // 移除 customerId 查询条件,只根据 orderId 查询收款明细 + // currentCustomerId: { + // handler(newVal) { + // if (newVal) { + // this.queryParams.customerId = newVal; + // this.getList(); + // } + // }, + // immediate: true, + // } }, data() { return { diff --git a/klp-ui/src/views/crm/contract/fin_sta/index.vue b/klp-ui/src/views/crm/contract/fin_sta/index.vue index dc7af7fd..0947af59 100644 --- a/klp-ui/src/views/crm/contract/fin_sta/index.vue +++ b/klp-ui/src/views/crm/contract/fin_sta/index.vue @@ -6,8 +6,8 @@ - - + + @@ -70,8 +70,8 @@ - - + + @@ -151,7 +151,7 @@ export default { }, created() { this.getList(); - this.loadContracts(); // 加载所有合同编号,支持独立查询 + this.loadContracts(); // 加载所有合同编号,作为独立筛选条件 }, methods: { getList() { @@ -173,30 +173,30 @@ export default { this.reset(); }, handleCustomerChange(customer) { - // 根据客户ID获取合同列表(可选) + // 客户和合同编号是独立的筛选条件,互不关联 if (customer && customer.customerId) { - this.loadContracts(customer.customerId); + this.queryParams.customerId = customer.customerId; } else { - // 不传客户ID,加载所有合同 - this.loadContracts(); + this.queryParams.customerId = undefined; } }, - loadContracts(customerId) { - listOrder({ customerId: customerId || undefined, pageNum: 1, pageSize: 100 }).then(res => { + loadContracts() { + // 加载所有合同编号,不根据客户ID过滤 + listOrder({ pageNum: 1, pageSize: 100 }).then(res => { this.contractOptions = (res.rows || []).map(item => ({ - value: item.contractCode, + value: item.orderId, label: item.contractCode })); }); }, handleFormCustomerChange(customer) { // 清空合同选择 - this.form.contractCode = undefined; + this.form.orderId = undefined; // 根据客户ID获取合同列表 if (customer && customer.customerId) { listOrder({ customerId: customer.customerId, pageNum: 1, pageSize: 100 }).then(res => { this.formContractOptions = (res.rows || []).map(item => ({ - value: item.contractCode, + value: item.orderId, label: item.contractCode })); }); diff --git a/klp-ui/src/views/crm/customer/index.vue b/klp-ui/src/views/crm/customer/index.vue index c0e6fc26..02a5270d 100644 --- a/klp-ui/src/views/crm/customer/index.vue +++ b/klp-ui/src/views/crm/customer/index.vue @@ -86,7 +86,7 @@ - +