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