|
|
@@ -26,7 +26,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>
|
|
|
@@ -161,10 +161,10 @@
|
|
|
methods: {
|
|
|
changeDiscountPrice(price, tableIndex) {
|
|
|
console.log('price~~~', price, tableIndex)
|
|
|
- this.datasource[tableIndex].amountTotalPrice = price;
|
|
|
+ this.datasource[tableIndex].statementAmount = price;
|
|
|
this.datasource[tableIndex].unStatementAmount = price;
|
|
|
console.log('this.datasource', this.datasource)
|
|
|
- this.dataForm.amountTotalPrice = this.datasource.reduce((pre, cur) => pre + Math.round(+cur.amountTotalPrice * 100), 0) / 100;
|
|
|
+ this.dataForm.amountTotalPrice = this.datasource.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 100), 0) / 100;
|
|
|
this.dataForm.amountUnCompletePrice = this.datasource.reduce((pre, cur) => pre + Math.round(+cur.unStatementAmount * 100), 0) / 100;
|
|
|
},
|
|
|
open(dialogType, row, type = '') {
|
|
|
@@ -195,8 +195,8 @@
|
|
|
// this.recorpayList = data.recorpayList || [];
|
|
|
// 解决小数精度丢失问题,使用分进行计算
|
|
|
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.amountTotalPrice * 100), 0) / 100;
|
|
|
- data.amountCompletePrice = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 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;
|
|
|
data.orderList = data.orderList.map(item => {
|
|
|
item.deliveryProducts = item.deliveryProducts.map(i => {
|
|
|
@@ -281,8 +281,8 @@
|
|
|
// amountPayablePass: data.amountPayablePass,
|
|
|
// amountReceivablePass: data.amountReceivablePass
|
|
|
orderTotalAmount: data.reduce((pre, cur) => pre + Math.round(+cur.orderAmount * 100), 0) / 100,
|
|
|
- amountTotalPrice: data.reduce((pre, cur) => pre + Math.round(+cur.amountTotalPrice * 100), 0) / 100,
|
|
|
- amountCompletePrice: data.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 100), 0) / 100,
|
|
|
+ amountTotalPrice: data.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 100), 0) / 100,
|
|
|
+ amountCompletePrice: data.reduce((pre, cur) => pre + Math.round(+cur.statementedAmount * 100), 0) / 100,
|
|
|
amountUnCompletePrice: data.reduce((pre, cur) => pre + Math.round(+cur.unStatementAmount * 100), 0) / 100
|
|
|
};
|
|
|
this.$forceUpdate();
|