增加财务状态页面 客户管理财务状态优化
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user