|
|
@@ -184,10 +184,10 @@
|
|
|
async getInfo(row) {
|
|
|
let data = await accountstatementInfoAPI(row.id);
|
|
|
// this.recorpayList = data.recorpayList || [];
|
|
|
- data.orderTotalAmount = data.orderList.reduce((pre, cur) => pre + +cur.orderAmount, 0),
|
|
|
- data.amountTotalPrice = data.orderList.reduce((pre, cur) => pre + +cur.amountTotalPrice, 0),
|
|
|
- data.amountCompletePrice = data.orderList.reduce((pre, cur) => pre + +cur.statementAmount, 0),
|
|
|
- data.amountUnCompletePrice = data.orderList.reduce((pre, cur) => pre + +cur.unStatementAmount, 0)
|
|
|
+ data.orderTotalAmount = data.orderList.reduce((pre, cur) => pre + +cur.orderAmount, 0);
|
|
|
+ data.amountTotalPrice = data.orderList.reduce((pre, cur) => pre + +cur.amountTotalPrice, 0);
|
|
|
+ data.amountCompletePrice = data.orderList.reduce((pre, cur) => pre + +cur.statementAmount, 0);
|
|
|
+ data.amountUnCompletePrice = data.orderList.reduce((pre, cur) => pre + +cur.unStatementAmount, 0);
|
|
|
this.datasource = data.orderList || [];
|
|
|
this.dataForm = data;
|
|
|
switch (this.dataForm.dateType) {
|
|
|
@@ -245,6 +245,7 @@
|
|
|
// amountTotalPrice: data.amountTotalPrice,
|
|
|
// amountPayablePass: data.amountPayablePass,
|
|
|
// amountReceivablePass: data.amountReceivablePass
|
|
|
+ orderTotalAmount: data.reduce((pre, cur) => pre + +cur.orderAmount, 0),
|
|
|
amountTotalPrice: data.reduce((pre, cur) => pre + +cur.amountTotalPrice, 0),
|
|
|
amountCompletePrice: data.reduce((pre, cur) => pre + +cur.statementAmount, 0),
|
|
|
amountUnCompletePrice: data.reduce((pre, cur) => pre + +cur.unStatementAmount, 0)
|