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 @@ - +