|
@@ -27,7 +27,7 @@
|
|
|
<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>{{ isNonDirectionalSale ? '--' : dataForm.orderTotalAmount || 0 }}</span>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<span>已对账金额:</span>
|
|
<span>已对账金额:</span>
|
|
|
<span>{{ dataForm.amountCompletePrice || 0 }}</span>
|
|
<span>{{ dataForm.amountCompletePrice || 0 }}</span>
|
|
@@ -157,7 +157,11 @@
|
|
|
businessId: ''
|
|
businessId: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- computed: {},
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ isNonDirectionalSale() {
|
|
|
|
|
+ return this.datasource.some(item => item.orderCategory == 4);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
changeDiscountPrice(price, tableIndex) {
|
|
changeDiscountPrice(price, tableIndex) {
|
|
|
console.log('price~~~', price, tableIndex)
|
|
console.log('price~~~', price, tableIndex)
|
|
@@ -192,6 +196,7 @@
|
|
|
//获取对账单详情
|
|
//获取对账单详情
|
|
|
async getInfo(row) {
|
|
async getInfo(row) {
|
|
|
let data = await accountstatementInfoAPI(row.id);
|
|
let data = await accountstatementInfoAPI(row.id);
|
|
|
|
|
+ console.log('data~~~', data)
|
|
|
// this.recorpayList = data.recorpayList || [];
|
|
// this.recorpayList = data.recorpayList || [];
|
|
|
// 解决小数精度丢失问题,使用分进行计算
|
|
// 解决小数精度丢失问题,使用分进行计算
|
|
|
data.orderTotalAmount = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.orderAmount * 100), 0) / 100;
|
|
data.orderTotalAmount = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.orderAmount * 100), 0) / 100;
|
|
@@ -242,7 +247,7 @@
|
|
|
},
|
|
},
|
|
|
//查询获取订单数据
|
|
//查询获取订单数据
|
|
|
async handleSearch(params) {
|
|
async handleSearch(params) {
|
|
|
- console.log('this.$refs.inventoryTableRef~~~', this.$refs.inventoryTableref);
|
|
|
|
|
|
|
+ // console.log('this.$refs.inventoryTableRef~~~', this.$refs.inventoryTableref);
|
|
|
let searchQuery = {
|
|
let searchQuery = {
|
|
|
endDate: params.endDate,
|
|
endDate: params.endDate,
|
|
|
sourceId: params.sourceId,
|
|
sourceId: params.sourceId,
|