增加财务状态页面 客户管理财务状态优化

This commit is contained in:
jhd
2026-05-23 16:20:52 +08:00
parent 74c7618e9a
commit 09535d884c
3 changed files with 527 additions and 5 deletions

View File

@@ -149,14 +149,18 @@ export default {
order: {
type: Object,
default: undefined
},
customerId: {
type: [Number, String],
default: undefined
}
},
computed: {
orderId() {
return this.order ? this.order.orderId : undefined;
},
customerId() {
return this.order ? this.order.customerId : undefined;
currentCustomerId() {
return this.customerId || (this.order ? this.order.customerId : undefined);
},
receivedAmount() {
return this.receivableList.reduce((total, item) => total + parseFloat(item.amount), 0);
@@ -174,6 +178,15 @@ export default {
}
},
immediate: true,
},
currentCustomerId: {
handler(newVal) {
if (newVal) {
this.queryParams.customerId = newVal;
this.getList();
}
},
immediate: true,
}
},
data() {
@@ -344,7 +357,7 @@ export default {
this.receiveForm = {
receivableId: row.receivableId,
amount: row.balanceAmount,
balanceAmount: row.balanceAmount
balanceAmount: row.balanceAmount
};
this.receiveOpen = true;
},