verce-vue-test 0.0.85 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/element-rewrite/ElTablePro.vue +13 -0
- package/src/views/foreign-currency-authorization/adapter.ts +70 -0
- package/src/views/foreign-currency-authorization/api.ts +26 -37
- package/src/views/foreign-currency-authorization/index.vue +264 -61
- package/src/views/foreign-currency-authorization/types.ts +32 -3
- package/src/views/foreign-currency-settlement/api.ts +15 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +140 -194
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +223 -203
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +0 -233
- package/src/views/foreign-currency-settlement/index.vue +5 -72
- package/src/views/foreign-currency-settlement/options.ts +1 -156
- package/src/views/foreign-currency-settlement/store.ts +286 -0
- package/src/views/foreign-currency-settlement/types.ts +27 -12
- package/src/views/foreign-currency-settlement/utils.ts +17 -0
- package/src/views/foreign-currency-authorization/mock.ts +0 -116
- package/src/views/foreign-currency-settlement/components/ForeignSettlementDetailView.vue +0 -121
|
@@ -23,6 +23,9 @@ export type ForeignAuthorizationIdType = '0' | '1' | '2' | '3' | '4' | '5' | '6'
|
|
|
23
23
|
/** 通用是否标识。 */
|
|
24
24
|
export type ForeignAuthorizationYesNo = '0' | '1'
|
|
25
25
|
|
|
26
|
+
/** 授权审核状态。 */
|
|
27
|
+
export type ForeignAuthorizationReviewStatus = 'pending' | 'approved' | 'rejected'
|
|
28
|
+
|
|
26
29
|
/** 外币授权查询条件。 */
|
|
27
30
|
export type ForeignCurrencyAuthorizationFilter = {
|
|
28
31
|
posDate: string
|
|
@@ -64,12 +67,38 @@ export type ForeignCurrencyAuthorizationRow = {
|
|
|
64
67
|
linkWay: string
|
|
65
68
|
supervisor: string
|
|
66
69
|
author: string
|
|
70
|
+
reviewStatus: ForeignAuthorizationReviewStatus
|
|
71
|
+
rejectReason: string
|
|
67
72
|
posRemark: string
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
/** 140207001 返回的原始协议行。 */
|
|
76
|
+
export type ForeignCurrencyAuthorizationApiRow = Partial<Omit<
|
|
77
|
+
ForeignCurrencyAuthorizationRow,
|
|
78
|
+
'id' | 'forecastAmt' | 'reviewStatus' | 'rejectReason'
|
|
79
|
+
>> & {
|
|
80
|
+
id?: string | number
|
|
81
|
+
forecastAmt?: string | number
|
|
82
|
+
oposStausCode?: string
|
|
83
|
+
refuseRemark?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** 140207001 业务响应体。 */
|
|
87
|
+
export type ForeignCurrencyAuthorizationQueryResponseBody = {
|
|
88
|
+
resultList?: ForeignCurrencyAuthorizationApiRow[]
|
|
89
|
+
totalCount?: string | number
|
|
90
|
+
totalPage?: string | number
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** 120207001 业务请求体。 */
|
|
94
|
+
export type ForeignCurrencyAuthorizationReviewRequestBody = {
|
|
95
|
+
author: string
|
|
96
|
+
id: string
|
|
97
|
+
nostro: string
|
|
98
|
+
oposStausCode: '00' | '99'
|
|
99
|
+
refType: ForeignAuthorizationBusinessType
|
|
100
|
+
refuseRemark: string
|
|
101
|
+
valueDate: string
|
|
73
102
|
}
|
|
74
103
|
|
|
75
104
|
export function createDefaultForeignCurrencyAuthorizationFilter(): ForeignCurrencyAuthorizationFilter {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import baseHttpClient, { type TamResponse } from '@/utils/baseHttpClient'
|
|
2
2
|
import type {
|
|
3
|
+
ForeignSettlementCancelVerifyRequest,
|
|
3
4
|
ForeignSettlementFlowQuery,
|
|
4
5
|
ForeignSettlementFlowRow,
|
|
5
6
|
ForeignSettlementForecastQuery,
|
|
6
7
|
ForeignSettlementForecastRow,
|
|
7
8
|
ForeignSettlementQueryResult,
|
|
9
|
+
ForeignSettlementVerifyRequest,
|
|
8
10
|
} from './types'
|
|
9
11
|
|
|
10
12
|
const FORECAST_QUERY_TRAN_CODE = '/TAM/0001/140202001'
|
|
11
13
|
const FLOW_QUERY_TRAN_CODE = '/TAM/0001/140202002'
|
|
14
|
+
const VERIFY_TRAN_CODE = '/TAM/0001/120202002'
|
|
15
|
+
const CANCEL_VERIFY_TRAN_CODE = '/TAM/0001/120202003'
|
|
12
16
|
|
|
13
17
|
type TamListBody<T extends object> = {
|
|
14
18
|
fileName?: string
|
|
@@ -75,3 +79,14 @@ export async function queryForeignSettlementFlows(
|
|
|
75
79
|
|
|
76
80
|
return normalizeListBody(response.body, '外币流水信息接口返回结构不正确')
|
|
77
81
|
}
|
|
82
|
+
|
|
83
|
+
/** 外币操作接口的响应业务体为空,baseHttpClient 已统一校验 TAM 响应头。 */
|
|
84
|
+
export async function verifyForeignSettlements(params: ForeignSettlementVerifyRequest) {
|
|
85
|
+
await baseHttpClient.post<TamResponse<Record<string, never>>>(VERIFY_TRAN_CODE, params)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export async function cancelVerifyForeignSettlements(
|
|
89
|
+
params: ForeignSettlementCancelVerifyRequest,
|
|
90
|
+
) {
|
|
91
|
+
await baseHttpClient.post<TamResponse<Record<string, never>>>(CANCEL_VERIFY_TRAN_CODE, params)
|
|
92
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import {
|
|
3
|
-
computed,
|
|
4
3
|
onActivated,
|
|
5
4
|
onBeforeUnmount,
|
|
6
5
|
onDeactivated,
|
|
7
6
|
onMounted,
|
|
8
7
|
reactive,
|
|
9
8
|
ref,
|
|
9
|
+
watch,
|
|
10
10
|
} from 'vue'
|
|
11
|
-
import {
|
|
11
|
+
import { storeToRefs } from 'pinia'
|
|
12
|
+
import { FullScreen, InfoFilled, Search } from '@element-plus/icons-vue'
|
|
12
13
|
import { queryForeignSettlementFlows } from '../api'
|
|
13
14
|
import {
|
|
14
15
|
currencyOptions,
|
|
15
16
|
flowColumns,
|
|
16
|
-
getDefaultColumnProps,
|
|
17
17
|
messageTypeOptions,
|
|
18
18
|
payDirectionOptions,
|
|
19
19
|
verifyStatusOptions,
|
|
@@ -33,42 +33,61 @@ import {
|
|
|
33
33
|
toForeignSettlementAmountText,
|
|
34
34
|
} from '../utils'
|
|
35
35
|
import { useScopedMessage } from '../../ForecastInfo/useScopedMessage'
|
|
36
|
+
import { useForeignSettlementStore } from '../store'
|
|
36
37
|
|
|
37
38
|
/**
|
|
38
39
|
* 外币流水信息业务面板。
|
|
39
|
-
*
|
|
40
|
+
* 流水筛选、分页、勾选和请求生命周期独立于预报组件,列配置统一交由 ElTablePro 管理。
|
|
40
41
|
*/
|
|
41
42
|
const props = defineProps<{
|
|
42
43
|
layout: ForeignSettlementCardLayout
|
|
43
44
|
layoutOptions: ForeignSettlementLayoutOption[]
|
|
44
45
|
isFullscreen: boolean
|
|
46
|
+
isActive: boolean
|
|
45
47
|
overlayContainer: HTMLElement | null
|
|
46
48
|
}>()
|
|
47
49
|
|
|
48
50
|
const emit = defineEmits<{
|
|
49
51
|
changeLayout: [layout: ForeignSettlementCardLayout]
|
|
50
52
|
toggleFullscreen: []
|
|
51
|
-
viewDetail: [row: ForeignSettlementFlowRow]
|
|
52
53
|
}>()
|
|
53
54
|
|
|
54
55
|
const pageMessage = useScopedMessage(() => props.overlayContainer)
|
|
56
|
+
const foreignSettlementStore = useForeignSettlementStore()
|
|
57
|
+
const {
|
|
58
|
+
flowSelectedRows: selectedRows,
|
|
59
|
+
tableSelectionResetKey,
|
|
60
|
+
listRefreshKey,
|
|
61
|
+
} = storeToRefs(foreignSettlementStore)
|
|
55
62
|
const filterForm = reactive(createDefaultForeignSettlementFilter())
|
|
56
63
|
const page = ref(1)
|
|
57
64
|
const pageSize = ref(10)
|
|
58
65
|
const loading = ref(false)
|
|
59
66
|
const total = ref(0)
|
|
60
67
|
const rows = ref<ForeignSettlementFlowRow[]>([])
|
|
61
|
-
const selectedRows = ref<ForeignSettlementFlowRow[]>([])
|
|
62
|
-
const selectionResetKey = ref(0)
|
|
63
68
|
const filterDrawerVisible = ref(false)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
|
|
70
|
+
type TableOverlayController = {
|
|
71
|
+
closeTransientOverlays: () => void
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const flowTable = ref<TableOverlayController | null>(null)
|
|
69
75
|
|
|
70
76
|
let requestController: AbortController | null = null
|
|
71
|
-
let panelActive =
|
|
77
|
+
let panelActive = props.isActive
|
|
78
|
+
let pendingOperationRefresh = false
|
|
79
|
+
|
|
80
|
+
function activatePanel() {
|
|
81
|
+
panelActive = props.isActive
|
|
82
|
+
if (!panelActive || !pendingOperationRefresh) return
|
|
83
|
+
pendingOperationRefresh = false
|
|
84
|
+
void loadFlows()
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function deactivatePanel() {
|
|
88
|
+
panelActive = false
|
|
89
|
+
closeTransientOverlays()
|
|
90
|
+
}
|
|
72
91
|
|
|
73
92
|
function buildQuery(): ForeignSettlementFlowQuery {
|
|
74
93
|
const [startAmount, endAmount] = filterForm.amountRange
|
|
@@ -108,8 +127,7 @@ function validateFilter() {
|
|
|
108
127
|
}
|
|
109
128
|
|
|
110
129
|
function resetSelection() {
|
|
111
|
-
|
|
112
|
-
selectedRows.value = []
|
|
130
|
+
foreignSettlementStore.resetAllTableSelections()
|
|
113
131
|
}
|
|
114
132
|
|
|
115
133
|
function cancelPendingRequest() {
|
|
@@ -120,6 +138,7 @@ function cancelPendingRequest() {
|
|
|
120
138
|
|
|
121
139
|
async function loadFlows(showSuccessMessage = false) {
|
|
122
140
|
requestController?.abort()
|
|
141
|
+
resetSelection()
|
|
123
142
|
const controller = new AbortController()
|
|
124
143
|
requestController = controller
|
|
125
144
|
loading.value = true
|
|
@@ -136,7 +155,6 @@ async function loadFlows(showSuccessMessage = false) {
|
|
|
136
155
|
|
|
137
156
|
rows.value = result.resultList
|
|
138
157
|
total.value = result.totalCount
|
|
139
|
-
resetSelection()
|
|
140
158
|
if (showSuccessMessage) pageMessage.success('已查询流水信息')
|
|
141
159
|
return true
|
|
142
160
|
} catch (error) {
|
|
@@ -167,74 +185,54 @@ function handleReset() {
|
|
|
167
185
|
pageMessage.info('流水筛选条件已重置')
|
|
168
186
|
}
|
|
169
187
|
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
void loadFlows()
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function handlePageSizeUpdate(nextPageSize: number) {
|
|
177
|
-
if (pageSize.value === nextPageSize) return
|
|
178
|
-
pageSize.value = nextPageSize
|
|
179
|
-
page.value = 1
|
|
188
|
+
function handlePaginationChange(pagination: { page: number; pageSize: number }) {
|
|
189
|
+
page.value = pagination.page
|
|
190
|
+
pageSize.value = pagination.pageSize
|
|
180
191
|
void loadFlows()
|
|
181
192
|
}
|
|
182
193
|
|
|
183
194
|
function handleSelectionChange(selection: ForeignSettlementFlowRow[]) {
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
function openDetail(row: ForeignSettlementFlowRow) {
|
|
188
|
-
filterDrawerVisible.value = false
|
|
189
|
-
columnDrawerVisible.value = false
|
|
190
|
-
emit('viewDetail', { ...row })
|
|
195
|
+
foreignSettlementStore.setFlowSelectedRows(selection)
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
function getSequence(index: number) {
|
|
194
199
|
return (page.value - 1) * pageSize.value + index + 1
|
|
195
200
|
}
|
|
196
201
|
|
|
197
|
-
function setColumnDrawerVisible(visible: boolean) {
|
|
198
|
-
if (!visible && visibleColumnProps.value.length === 0) {
|
|
199
|
-
visibleColumnProps.value = getDefaultColumnProps(flowColumns)
|
|
200
|
-
}
|
|
201
|
-
columnDrawerVisible.value = visible
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function selectAllColumns() {
|
|
205
|
-
visibleColumnProps.value = flowColumns.map((column) => column.prop)
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function resetColumns() {
|
|
209
|
-
visibleColumnProps.value = getDefaultColumnProps(flowColumns)
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
function closeVisibleOverlays() {
|
|
213
|
-
filterDrawerVisible.value = false
|
|
214
|
-
columnDrawerVisible.value = false
|
|
215
|
-
pageMessage.closeAll()
|
|
216
|
-
}
|
|
217
|
-
|
|
218
202
|
function closeTransientOverlays() {
|
|
219
203
|
cancelPendingRequest()
|
|
220
|
-
|
|
204
|
+
filterDrawerVisible.value = false
|
|
205
|
+
flowTable.value?.closeTransientOverlays()
|
|
206
|
+
pageMessage.closeAll()
|
|
221
207
|
}
|
|
222
208
|
|
|
223
|
-
defineExpose({ closeTransientOverlays
|
|
209
|
+
defineExpose({ closeTransientOverlays })
|
|
224
210
|
|
|
225
211
|
onMounted(() => {
|
|
226
|
-
void loadFlows()
|
|
227
|
-
})
|
|
228
|
-
onActivated(() => {
|
|
229
|
-
panelActive = true
|
|
230
|
-
})
|
|
231
|
-
onDeactivated(() => {
|
|
232
|
-
panelActive = false
|
|
233
|
-
closeTransientOverlays()
|
|
212
|
+
if (panelActive) void loadFlows()
|
|
234
213
|
})
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
214
|
+
onActivated(activatePanel)
|
|
215
|
+
onDeactivated(deactivatePanel)
|
|
216
|
+
onBeforeUnmount(deactivatePanel)
|
|
217
|
+
|
|
218
|
+
watch(
|
|
219
|
+
() => props.isActive,
|
|
220
|
+
(active) => {
|
|
221
|
+
if (!active) {
|
|
222
|
+
deactivatePanel()
|
|
223
|
+
return
|
|
224
|
+
}
|
|
225
|
+
activatePanel()
|
|
226
|
+
},
|
|
227
|
+
{ flush: 'sync' },
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
watch(listRefreshKey, () => {
|
|
231
|
+
if (!panelActive) {
|
|
232
|
+
pendingOperationRefresh = true
|
|
233
|
+
return
|
|
234
|
+
}
|
|
235
|
+
void loadFlows()
|
|
238
236
|
})
|
|
239
237
|
</script>
|
|
240
238
|
|
|
@@ -243,7 +241,6 @@ onBeforeUnmount(() => {
|
|
|
243
241
|
<header class="forecast-info-card__header">
|
|
244
242
|
<div class="foreign-currency-settlement-title-group">
|
|
245
243
|
<h2 id="foreign-currency-flow-info-title" class="forecast-info-card__title">流水信息</h2>
|
|
246
|
-
<span class="foreign-currency-settlement-badge">外币</span>
|
|
247
244
|
</div>
|
|
248
245
|
|
|
249
246
|
<div class="forecast-info-header-actions">
|
|
@@ -331,103 +328,83 @@ onBeforeUnmount(() => {
|
|
|
331
328
|
</div>
|
|
332
329
|
|
|
333
330
|
<section class="forecast-info-table-area" aria-label="外币流水信息列表">
|
|
334
|
-
<
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
class="
|
|
358
|
-
|
|
331
|
+
<ElTablePro
|
|
332
|
+
ref="flowTable"
|
|
333
|
+
v-model:page="page"
|
|
334
|
+
v-model:page-size="pageSize"
|
|
335
|
+
v-loading="loading"
|
|
336
|
+
:data="rows"
|
|
337
|
+
:total="total"
|
|
338
|
+
:page-sizes="[10, 20, 50, 100]"
|
|
339
|
+
:selection-reset-key="tableSelectionResetKey"
|
|
340
|
+
:append-to="overlayContainer || undefined"
|
|
341
|
+
table-key="foreign-currency-settlement-flow-info"
|
|
342
|
+
row-key="tranRefNo"
|
|
343
|
+
border
|
|
344
|
+
stripe
|
|
345
|
+
size="small"
|
|
346
|
+
table-layout="auto"
|
|
347
|
+
height="100%"
|
|
348
|
+
col-btn-size="small"
|
|
349
|
+
class="forecast-info-table foreign-currency-settlement-table foreign-currency-settlement-table-shell"
|
|
350
|
+
@selection-change="handleSelectionChange"
|
|
351
|
+
@pagination-change="handlePaginationChange"
|
|
352
|
+
>
|
|
353
|
+
<template #toolbar>
|
|
354
|
+
<span v-if="selectedRows.length" class="foreign-currency-settlement-selection-count">
|
|
355
|
+
已选 {{ selectedRows.length }} 笔
|
|
356
|
+
</span>
|
|
357
|
+
</template>
|
|
358
|
+
|
|
359
|
+
<el-table-column
|
|
360
|
+
type="selection"
|
|
361
|
+
column-key="selection"
|
|
362
|
+
width="46"
|
|
363
|
+
align="center"
|
|
364
|
+
fixed="left"
|
|
365
|
+
disabled
|
|
366
|
+
/>
|
|
367
|
+
<el-table-column
|
|
368
|
+
type="index"
|
|
369
|
+
column-key="sequence"
|
|
370
|
+
label="序号"
|
|
371
|
+
width="62"
|
|
372
|
+
align="center"
|
|
373
|
+
fixed="left"
|
|
374
|
+
:index="getSequence"
|
|
375
|
+
disabled
|
|
376
|
+
/>
|
|
377
|
+
<el-table-column
|
|
378
|
+
v-for="column in flowColumns"
|
|
379
|
+
:key="column.prop"
|
|
380
|
+
:prop="column.prop"
|
|
381
|
+
:column-key="column.prop"
|
|
382
|
+
:label="column.label"
|
|
383
|
+
:min-width="column.minWidth"
|
|
384
|
+
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
385
|
+
:visible="column.defaultVisible === true"
|
|
359
386
|
>
|
|
360
|
-
<
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
<el-table-column
|
|
371
|
-
v-for="column in displayedColumns"
|
|
372
|
-
:key="column.prop"
|
|
373
|
-
:prop="column.prop"
|
|
374
|
-
:column-key="column.prop"
|
|
375
|
-
:label="column.label"
|
|
376
|
-
:min-width="column.minWidth"
|
|
377
|
-
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
378
|
-
>
|
|
379
|
-
<template #default="{ row }">
|
|
380
|
-
<el-tag
|
|
381
|
-
v-if="column.format === 'verifyStatus'"
|
|
382
|
-
:type="getForeignSettlementVerifyTagType(row[column.prop])"
|
|
383
|
-
effect="plain"
|
|
384
|
-
size="small"
|
|
385
|
-
>
|
|
386
|
-
{{ formatForeignSettlementCell(row[column.prop], column.format) }}
|
|
387
|
-
</el-tag>
|
|
388
|
-
<span v-else>{{ formatForeignSettlementCell(row[column.prop], column.format) }}</span>
|
|
389
|
-
</template>
|
|
390
|
-
</el-table-column>
|
|
391
|
-
|
|
392
|
-
<el-table-column
|
|
393
|
-
column-key="operations"
|
|
394
|
-
label="操作"
|
|
395
|
-
width="82"
|
|
396
|
-
fixed="right"
|
|
397
|
-
align="center"
|
|
398
|
-
>
|
|
399
|
-
<template #default="{ row }">
|
|
400
|
-
<div class="forecast-info-row-actions">
|
|
401
|
-
<el-button link type="primary" size="small" :icon="Document" @click.stop="openDetail(row)">
|
|
402
|
-
详情
|
|
403
|
-
</el-button>
|
|
404
|
-
</div>
|
|
405
|
-
</template>
|
|
406
|
-
</el-table-column>
|
|
407
|
-
|
|
408
|
-
<template #empty>
|
|
409
|
-
<div class="foreign-currency-settlement-empty">
|
|
410
|
-
<span class="foreign-currency-settlement-empty__icon"><el-icon><InfoFilled /></el-icon></span>
|
|
411
|
-
<strong>暂无数据</strong>
|
|
412
|
-
<span>暂无符合条件的外币流水信息</span>
|
|
413
|
-
</div>
|
|
387
|
+
<template #default="{ row }">
|
|
388
|
+
<el-tag
|
|
389
|
+
v-if="column.format === 'verifyStatus'"
|
|
390
|
+
:type="getForeignSettlementVerifyTagType(row[column.prop])"
|
|
391
|
+
effect="plain"
|
|
392
|
+
size="small"
|
|
393
|
+
>
|
|
394
|
+
{{ formatForeignSettlementCell(row[column.prop], column.format) }}
|
|
395
|
+
</el-tag>
|
|
396
|
+
<span v-else>{{ formatForeignSettlementCell(row[column.prop], column.format) }}</span>
|
|
414
397
|
</template>
|
|
415
|
-
</el-table>
|
|
416
|
-
|
|
417
|
-
<
|
|
418
|
-
<
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
small
|
|
426
|
-
@update:current-page="handlePageUpdate"
|
|
427
|
-
@update:page-size="handlePageSizeUpdate"
|
|
428
|
-
/>
|
|
429
|
-
</div>
|
|
430
|
-
</div>
|
|
398
|
+
</el-table-column>
|
|
399
|
+
|
|
400
|
+
<template #empty>
|
|
401
|
+
<div class="foreign-currency-settlement-empty">
|
|
402
|
+
<span class="foreign-currency-settlement-empty__icon"><el-icon><InfoFilled /></el-icon></span>
|
|
403
|
+
<strong>暂无数据</strong>
|
|
404
|
+
<span>暂无符合条件的外币流水信息</span>
|
|
405
|
+
</div>
|
|
406
|
+
</template>
|
|
407
|
+
</ElTablePro>
|
|
431
408
|
</section>
|
|
432
409
|
|
|
433
410
|
<el-drawer
|
|
@@ -566,36 +543,5 @@ onBeforeUnmount(() => {
|
|
|
566
543
|
</template>
|
|
567
544
|
</el-drawer>
|
|
568
545
|
|
|
569
|
-
<el-drawer
|
|
570
|
-
v-if="columnDrawerVisible"
|
|
571
|
-
:model-value="columnDrawerVisible"
|
|
572
|
-
title="流水信息列配置"
|
|
573
|
-
size="520px"
|
|
574
|
-
:append-to="overlayContainer || undefined"
|
|
575
|
-
destroy-on-close
|
|
576
|
-
:lock-scroll="false"
|
|
577
|
-
class="forecast-info-filter-drawer foreign-currency-settlement-column-drawer"
|
|
578
|
-
@update:model-value="setColumnDrawerVisible"
|
|
579
|
-
>
|
|
580
|
-
<div class="foreign-currency-settlement-column-actions">
|
|
581
|
-
<span>已显示 {{ visibleColumnProps.length }} / {{ flowColumns.length }} 列</span>
|
|
582
|
-
<div>
|
|
583
|
-
<el-button size="small" @click="selectAllColumns">全选</el-button>
|
|
584
|
-
<el-button size="small" @click="resetColumns">恢复默认</el-button>
|
|
585
|
-
</div>
|
|
586
|
-
</div>
|
|
587
|
-
|
|
588
|
-
<el-checkbox-group v-model="visibleColumnProps" class="foreign-currency-settlement-column-grid">
|
|
589
|
-
<el-checkbox v-for="column in flowColumns" :key="column.prop" :value="column.prop">
|
|
590
|
-
{{ column.label }}
|
|
591
|
-
</el-checkbox>
|
|
592
|
-
</el-checkbox-group>
|
|
593
|
-
|
|
594
|
-
<template #footer>
|
|
595
|
-
<div class="forecast-info-filter__drawer-actions">
|
|
596
|
-
<el-button type="primary" size="small" @click="setColumnDrawerVisible(false)">完成</el-button>
|
|
597
|
-
</div>
|
|
598
|
-
</template>
|
|
599
|
-
</el-drawer>
|
|
600
546
|
</section>
|
|
601
547
|
</template>
|