|
@@ -37,7 +37,7 @@
|
|
|
<headerTitle title="对账明细" style="margin-top: 30px">
|
|
<headerTitle title="对账明细" style="margin-top: 30px">
|
|
|
<template v-slot>
|
|
<template v-slot>
|
|
|
<el-row style="font-weight: 700; color: red">
|
|
<el-row style="font-weight: 700; color: red">
|
|
|
- <span>总金额:</span>
|
|
|
|
|
|
|
+ <span>订单总金额:</span>
|
|
|
<span>{{ dataForm.orderTotalAmount || 0 }}</span>
|
|
<span>{{ dataForm.orderTotalAmount || 0 }}</span>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<span>已对账金额:</span>
|
|
<span>已对账金额:</span>
|
|
@@ -115,9 +115,10 @@
|
|
|
this.dialogType = dialogType;
|
|
this.dialogType = dialogType;
|
|
|
this.dataForm.type = type;
|
|
this.dataForm.type = type;
|
|
|
let data = await accountstatementInfoAPI(row.id);
|
|
let data = await accountstatementInfoAPI(row.id);
|
|
|
- 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 + Math.round(+cur.orderAmount * 100), 0) / 100;
|
|
|
|
|
+ data.amountTotalPrice = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 100), 0) / 100;
|
|
|
|
|
+ data.amountCompletePrice = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.statementedAmount * 100), 0) / 100;
|
|
|
|
|
+ data.amountUnCompletePrice = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.unStatementAmount * 100), 0) / 100;
|
|
|
this.datasource = data.orderList||[];
|
|
this.datasource = data.orderList||[];
|
|
|
this.recorpayList = data.recorpayList || [];
|
|
this.recorpayList = data.recorpayList || [];
|
|
|
this.dataForm = data;
|
|
this.dataForm = data;
|