|
|
@@ -9,7 +9,7 @@
|
|
|
<headerTitle title="对账明细" style="margin-top: 30px">
|
|
|
<template v-slot>
|
|
|
<el-row style="font-weight: 700; color: red">
|
|
|
- <span>总金额:</span>
|
|
|
+ <span>订单总金额:</span>
|
|
|
<span>{{ dataForm.orderTotalAmount || 0 }}</span>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<span>已对账金额:</span>
|
|
|
@@ -120,9 +120,10 @@ export default {
|
|
|
let data = await accountstatementInfoAPI(id)
|
|
|
this.datasource = data?.orderList || []
|
|
|
// this.recorpayList=data?.recorpayList||[]
|
|
|
- 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.dataForm = data
|
|
|
// this.priceObj.amountNotInvoicedPrice = data.amountNotInvoicedPrice
|
|
|
switch (this.dataForm.dateType) {
|