|
@@ -142,13 +142,13 @@ export default {
|
|
|
selectedReceivableAmount() {
|
|
selectedReceivableAmount() {
|
|
|
return this.row.receivableTotalPrice || 0;
|
|
return this.row.receivableTotalPrice || 0;
|
|
|
},
|
|
},
|
|
|
- // 已收金额 = 勾选的应收明细「折让合计」之和 || 接口下发的 row.receivedTotalPrice
|
|
|
|
|
|
|
+ // 已收金额 = 勾选的应收明细「折让合计」之和 || 接口下发的 row.receivableTotalPrice
|
|
|
receivedAmount() {
|
|
receivedAmount() {
|
|
|
const sum = this.selection.reduce((pre, item) => {
|
|
const sum = this.selection.reduce((pre, item) => {
|
|
|
const val = parseFloat(item.statementAmount);
|
|
const val = parseFloat(item.statementAmount);
|
|
|
return pre + (isNaN(val) ? 0 : val);
|
|
return pre + (isNaN(val) ? 0 : val);
|
|
|
}, 0);
|
|
}, 0);
|
|
|
- return sum.toFixed(2) || (this.row.receivedTotalPrice || 0);
|
|
|
|
|
|
|
+ return sum.toFixed(2) || this.selectedReceivableAmount;
|
|
|
},
|
|
},
|
|
|
// 未收金额 = 接口下发的 row.unreceiveTotalPrice
|
|
// 未收金额 = 接口下发的 row.unreceiveTotalPrice
|
|
|
unreceivedAmount() {
|
|
unreceivedAmount() {
|
|
@@ -532,8 +532,8 @@ export default {
|
|
|
...this.form,
|
|
...this.form,
|
|
|
statementAmount,
|
|
statementAmount,
|
|
|
receivableTotalPrice: Number(this.selectedReceivableAmount), // 应收金额(勾选行折让合计之和)
|
|
receivableTotalPrice: Number(this.selectedReceivableAmount), // 应收金额(勾选行折让合计之和)
|
|
|
- receivedTotalPrice: this.row.receivedTotalPrice, // 历史已收总额(接口下发)
|
|
|
|
|
- unreceiveTotalPrice: this.row.unreceiveTotalPrice, // 历史未收金额(接口下发)
|
|
|
|
|
|
|
+ receivedTotalPrice: Number(this.receivedAmount), // 历史已收总额(接口下发)
|
|
|
|
|
+ unreceiveTotalPrice: Number(this.unreceivedAmount), // 历史未收金额(接口下发)
|
|
|
receivableId: this.row.id,
|
|
receivableId: this.row.id,
|
|
|
receivableCode: this.row.code,
|
|
receivableCode: this.row.code,
|
|
|
productList
|
|
productList
|