|
|
|
@ -140,7 +140,7 @@ import ExchangeRate from './exchangeRate.vue'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
const emits = defineEmits(['updateList', 'refresh', 'updateListFree','updateListFreeLeft'])
|
|
|
|
|
const emits = defineEmits(['updateList', 'refresh', 'updateListFree', 'updateListFreeLeft'])
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
import { get } from 'lodash'
|
|
|
|
|
const route = useRoute()
|
|
|
|
@ -148,6 +148,7 @@ const { createMessage } = useMessage()
|
|
|
|
|
// 未收rmb
|
|
|
|
|
const rrmb = ref(0)
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const queryData = ref({})
|
|
|
|
|
const [registerTable, { getForm, getSelectRows, setSelectedRowKeys }] = useTable({
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
let res = {} as any
|
|
|
|
@ -168,6 +169,7 @@ const [registerTable, { getForm, getSelectRows, setSelectedRowKeys }] = useTable
|
|
|
|
|
onChange: onSelectChange
|
|
|
|
|
},
|
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
|
queryData.value = JSON.parse(JSON.stringify(formatParams(p)))
|
|
|
|
|
return formatParams(p)
|
|
|
|
|
},
|
|
|
|
|
columns: getColums(),
|
|
|
|
@ -282,12 +284,30 @@ const onRowClick = (record, index) => {
|
|
|
|
|
}
|
|
|
|
|
if (route.query.type == 'free') {
|
|
|
|
|
setSelectedRowKeys([String(index)])
|
|
|
|
|
console.log(getSelectRows())
|
|
|
|
|
const data = [{
|
|
|
|
|
id: record.businessId,
|
|
|
|
|
businessType: record.businessType,
|
|
|
|
|
customerId: record.customerId
|
|
|
|
|
}] as any
|
|
|
|
|
const queryDataStr = JSON.parse(queryData.value.queryCondition)
|
|
|
|
|
const arrQuery = [] as any
|
|
|
|
|
queryDataStr.forEach(item => {
|
|
|
|
|
if (item.FieldName == 'feeType') {
|
|
|
|
|
arrQuery.push(item)
|
|
|
|
|
}
|
|
|
|
|
if (item.FieldName == 'currency') {
|
|
|
|
|
arrQuery.push(item)
|
|
|
|
|
}
|
|
|
|
|
if (item.FieldName == 'feeName') {
|
|
|
|
|
arrQuery.push(item)
|
|
|
|
|
}
|
|
|
|
|
if (item.FieldName == 'FeeRange') {
|
|
|
|
|
arrQuery.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const data = {
|
|
|
|
|
items: [{
|
|
|
|
|
id: record.businessId,
|
|
|
|
|
businessType: record.businessType,
|
|
|
|
|
customerId: record.customerId
|
|
|
|
|
}],
|
|
|
|
|
queryCondition: JSON.stringify(arrQuery)
|
|
|
|
|
}
|
|
|
|
|
PaymentFreeSettlementGetFees(data).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
setTableData(res.data.items)
|
|
|
|
|