|
@@ -118,12 +118,13 @@ export default {
|
|
|
//获取对账单详情
|
|
//获取对账单详情
|
|
|
async getInfo(id) {
|
|
async getInfo(id) {
|
|
|
let data = await accountstatementInfoAPI(id)
|
|
let data = await accountstatementInfoAPI(id)
|
|
|
|
|
+ console.log(data,'获取对账单详情')
|
|
|
this.datasource = data?.orderList || []
|
|
this.datasource = data?.orderList || []
|
|
|
// this.recorpayList=data?.recorpayList||[]
|
|
// 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.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.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.dataForm = data
|
|
|
// this.priceObj.amountNotInvoicedPrice = data.amountNotInvoicedPrice
|
|
// this.priceObj.amountNotInvoicedPrice = data.amountNotInvoicedPrice
|
|
|
switch (this.dataForm.dateType) {
|
|
switch (this.dataForm.dateType) {
|