|
|
@ -141,12 +141,13 @@
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { GetFees, Audit, SetInvoiceEnabled, AuditByBiz } from '../api'
|
|
|
|
import { GetFees, Audit, SetInvoiceEnabled, AuditByBiz } from '../api'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import FeeActionBar from './feeActionBar.vue'
|
|
|
|
import { numberThousandFormat } from '/@/utils/commonUtil'
|
|
|
|
import AlterNewValue from './AlterNewValue.vue'
|
|
|
|
// import FeeActionBar from './feeActionBar.vue'
|
|
|
|
|
|
|
|
// import AlterNewValue from './AlterNewValue.vue'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import FeeRejectModal from './feeRejectModal.vue'
|
|
|
|
import FeeRejectModal from './feeRejectModal.vue'
|
|
|
|
import { formatTableData } from '/@/hooks/web/common'
|
|
|
|
// import { formatTableData } from '/@/hooks/web/common'
|
|
|
|
import emitter from '/@/utils/Bus'
|
|
|
|
// import emitter from '/@/utils/Bus'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
// 当前页面状态
|
|
|
|
// 当前页面状态
|
|
|
@ -182,13 +183,13 @@
|
|
|
|
dataIndex: 'RMB',
|
|
|
|
dataIndex: 'RMB',
|
|
|
|
title: 'RMB',
|
|
|
|
title: 'RMB',
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
minWidth: 70
|
|
|
|
width: 80
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataIndex: 'USD',
|
|
|
|
dataIndex: 'USD',
|
|
|
|
title: 'USD',
|
|
|
|
title: 'USD',
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
minWidth: 70
|
|
|
|
width: 80
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataIndex: 'customerFullName',
|
|
|
|
dataIndex: 'customerFullName',
|
|
|
@ -218,7 +219,7 @@
|
|
|
|
dataIndex: 'exchangeRate',
|
|
|
|
dataIndex: 'exchangeRate',
|
|
|
|
title: '汇率',
|
|
|
|
title: '汇率',
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
width: 40
|
|
|
|
width: 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -244,7 +245,7 @@
|
|
|
|
// 遍历所有列,找出需要合计的列
|
|
|
|
// 遍历所有列,找出需要合计的列
|
|
|
|
const columns = feeColumns(1)
|
|
|
|
const columns = feeColumns(1)
|
|
|
|
columns[0].children.forEach(column => {
|
|
|
|
columns[0].children.forEach(column => {
|
|
|
|
if (['RMB', 'USD', 'other'].includes(column.dataIndex)) {
|
|
|
|
if (['RMB', 'USD'].includes(column.dataIndex)) {
|
|
|
|
console.log(column)
|
|
|
|
console.log(column)
|
|
|
|
// 初始化合计值为0
|
|
|
|
// 初始化合计值为0
|
|
|
|
sums[column.dataIndex] = 0
|
|
|
|
sums[column.dataIndex] = 0
|
|
|
@ -275,7 +276,7 @@
|
|
|
|
// 遍历所有列,找出需要合计的列
|
|
|
|
// 遍历所有列,找出需要合计的列
|
|
|
|
const columns = feeColumns(2)
|
|
|
|
const columns = feeColumns(2)
|
|
|
|
columns[0].children.forEach(column => {
|
|
|
|
columns[0].children.forEach(column => {
|
|
|
|
if (['RMB', 'USD', 'other'].includes(column.dataIndex)) {
|
|
|
|
if (['RMB', 'USD'].includes(column.dataIndex)) {
|
|
|
|
console.log(column)
|
|
|
|
console.log(column)
|
|
|
|
// 初始化合计值为0
|
|
|
|
// 初始化合计值为0
|
|
|
|
sums[column.dataIndex] = 0
|
|
|
|
sums[column.dataIndex] = 0
|
|
|
@ -346,12 +347,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
item.items.forEach(row => {
|
|
|
|
item.items.forEach(row => {
|
|
|
|
if (row.currency == 'RMB') {
|
|
|
|
if (row.currency == 'RMB') {
|
|
|
|
row['RMB'] = row.amount
|
|
|
|
row['RMB'] = numberThousandFormat(row.amount, 2, false)
|
|
|
|
} else if (row.currency == 'USD') {
|
|
|
|
} else if (row.currency == 'USD') {
|
|
|
|
row['USD'] = row.amount
|
|
|
|
row['USD'] = numberThousandFormat(row.amount, 2, false)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
row['other'] = row.amount
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
row.exchangeRate = numberThousandFormat(row.exchangeRate, 6, false)
|
|
|
|
// 应收
|
|
|
|
// 应收
|
|
|
|
if (row.feeType === 1) {
|
|
|
|
if (row.feeType === 1) {
|
|
|
|
RData.value.push(row)
|
|
|
|
RData.value.push(row)
|
|
|
|