|
|
@@ -138,17 +138,17 @@ export default {
|
|
|
isView() {
|
|
|
return this.dialogType === 'view';
|
|
|
},
|
|
|
- // 应收金额 = 勾选的应收明细「折让合计」之和
|
|
|
+ // 应收金额 = 接口下发的 row.receivableTotalPrice
|
|
|
selectedReceivableAmount() {
|
|
|
+ return this.row.receivableTotalPrice || 0;
|
|
|
+ },
|
|
|
+ // 已收金额 = 勾选的应收明细「折让合计」之和 || 接口下发的 row.receivedTotalPrice
|
|
|
+ receivedAmount() {
|
|
|
const sum = this.selection.reduce((pre, item) => {
|
|
|
const val = parseFloat(item.statementAmount);
|
|
|
return pre + (isNaN(val) ? 0 : val);
|
|
|
}, 0);
|
|
|
- return sum.toFixed(2);
|
|
|
- },
|
|
|
- // 已收金额 = 接口下发的 row.receivedTotalPrice
|
|
|
- receivedAmount() {
|
|
|
- return this.row.receivedTotalPrice || 0;
|
|
|
+ return sum.toFixed(2) || (this.row.receivedTotalPrice || 0);
|
|
|
},
|
|
|
// 未收金额 = 接口下发的 row.unreceiveTotalPrice
|
|
|
unreceivedAmount() {
|
|
|
@@ -184,7 +184,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
minWidth: 140,
|
|
|
- prop: 'statementSubOrderNo',
|
|
|
+ prop: this.queryDimension == 3 ? 'statementSubOrderNo' : this.queryDimension == 1 ? 'statementSubOrderCode' : 'statementSubOrderNo',
|
|
|
label: this.queryDimension == 3 ? '收货单编码' : this.queryDimension == 1 ? '发货单编码' : '调拨单编码',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|