|
|
@@ -250,22 +250,24 @@
|
|
|
return this.dialogType === 'view';
|
|
|
},
|
|
|
statementAdvanceTotalPrice() {
|
|
|
- return (
|
|
|
- this.localList.reduce(
|
|
|
- (pre, cur) =>
|
|
|
- pre + Math.round((+cur.statementAdvanceConfirmAmount || 0) * 100),
|
|
|
- 0
|
|
|
- ) / 100
|
|
|
- );
|
|
|
+ // return (
|
|
|
+ // this.localList.reduce(
|
|
|
+ // (pre, cur) =>
|
|
|
+ // pre + Math.round((+cur.statementAdvanceConfirmAmount || 0) * 100),
|
|
|
+ // 0
|
|
|
+ // ) / 100
|
|
|
+ // );
|
|
|
+ return this.dataForm?.statReceipt?.statementAdvanceTotalPrice || 0;
|
|
|
},
|
|
|
receivedTotalPrice() {
|
|
|
- return (
|
|
|
- Math.round(
|
|
|
- ((+this.dataForm.amountTotalPrice || 0) -
|
|
|
- this.statementAdvanceTotalPrice) *
|
|
|
- 100
|
|
|
+ const value = (
|
|
|
+ this.dataForm?.statReceipt?.statReceiptDetailList?.reduce(
|
|
|
+ (pre, cur) =>
|
|
|
+ pre + Math.round((+cur.statementAmt || 0) * 100),
|
|
|
+ 0
|
|
|
) / 100
|
|
|
);
|
|
|
+ return isNaN(value) ? 0 : value;
|
|
|
}
|
|
|
},
|
|
|
watch: {
|