|
|
@ -10,19 +10,19 @@
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="bank-item"
|
|
|
|
class="bank-item"
|
|
|
|
v-for="item in bankList"
|
|
|
|
v-for="item in bankList"
|
|
|
|
:key="item.accountId"
|
|
|
|
:key="item.bankNo"
|
|
|
|
:style="{
|
|
|
|
:style="{
|
|
|
|
background: activeBank == item.accountId ? '#F5F9FC' : '',
|
|
|
|
background: activeBank == item.bankNo ? '#F5F9FC' : '',
|
|
|
|
color: activeBank == item.accountId ? '#257AFA' : '',
|
|
|
|
color: activeBank == item.bankNo ? '#257AFA' : '',
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
@click="changeActiveBank(item.accountId)"
|
|
|
|
@click="changeActiveBank(item.bankNo)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
<i
|
|
|
|
class="iconfont icon-yinhangzhanghu"
|
|
|
|
class="iconfont icon-yinhangzhanghu"
|
|
|
|
:style="{ color: activeBank == item.accountId ? '#257AFA' : '#7A8798' }"
|
|
|
|
:style="{ color: activeBank == item.bankNo ? '#257AFA' : '#7A8798' }"
|
|
|
|
></i>
|
|
|
|
></i>
|
|
|
|
<span class="bank-name">{{ item.bankName }}</span>
|
|
|
|
<span class="bank-name">{{ item.bankName }}</span>
|
|
|
|
<span>{{ bankNoFormat(item.accountId) }}</span>
|
|
|
|
<span>{{ bankNoFormat(item.bankNo) }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
@ -32,12 +32,14 @@
|
|
|
|
<div class="module-title">流水详情</div>
|
|
|
|
<div class="module-title">流水详情</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
<template v-if="column.key === 'tradeAmount'">
|
|
|
|
<template v-if="column.key === 'transactionType'">
|
|
|
|
<span v-if="record.transactionType == '来账'" class="success">
|
|
|
|
<span :class="record.transactionType == '来账' ? 'success' : 'error'">
|
|
|
|
{{ record.tradeAmount }}
|
|
|
|
{{ record.transactionType }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span v-if="record.transactionType == '往账'" class="error">
|
|
|
|
</template>
|
|
|
|
{{ record.tradeAmount }}
|
|
|
|
<template v-if="column.key === 'tradeAmount'">
|
|
|
|
|
|
|
|
<span :class="record.transactionType == '来账' ? 'success' : 'error'">
|
|
|
|
|
|
|
|
{{ numberThousandFormat(record.tradeAmount) }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
@ -58,6 +60,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
import { ApiBankList, ApiBankFlowList } from './api'
|
|
|
|
import { ApiBankList, ApiBankFlowList } from './api'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
|
|
|
import { numberThousandFormat } from '/@/utils/commonUtil'
|
|
|
|
|
|
|
|
|
|
|
|
const [registerTable, { reload, getForm }] = useTable({
|
|
|
|
const [registerTable, { reload, getForm }] = useTable({
|
|
|
|
api: async (p) => {
|
|
|
|
api: async (p) => {
|
|
|
@ -70,7 +73,14 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
return formatParams({ ...p, accountId: activeBank.value })
|
|
|
|
return {
|
|
|
|
|
|
|
|
...formatParams(p),
|
|
|
|
|
|
|
|
otherQueryCondition: {
|
|
|
|
|
|
|
|
payerOrPayeeName: p.payerOrPayeeName,
|
|
|
|
|
|
|
|
bankNo: activeBank.value,
|
|
|
|
|
|
|
|
bankName: p.bankName,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
columns,
|
|
|
|
columns,
|
|
|
@ -106,8 +116,7 @@
|
|
|
|
const getBankList = async () => {
|
|
|
|
const getBankList = async () => {
|
|
|
|
bankLoading.value = true
|
|
|
|
bankLoading.value = true
|
|
|
|
const res: API.DataResult = await ApiBankList()
|
|
|
|
const res: API.DataResult = await ApiBankList()
|
|
|
|
console.log(res)
|
|
|
|
activeBank.value = res.data?.[0]?.bankNo || ''
|
|
|
|
activeBank.value = res.data?.[0]?.accountId || ''
|
|
|
|
|
|
|
|
reload()
|
|
|
|
reload()
|
|
|
|
bankList.value = res.data
|
|
|
|
bankList.value = res.data
|
|
|
|
bankLoading.value = false
|
|
|
|
bankLoading.value = false
|
|
|
|