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
|
@@ -1,22 +1,22 @@
|
|
|
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 { storeToRefs } from 'pinia'
|
|
12
|
+
import { ElMessageBox } from 'element-plus'
|
|
11
13
|
import {
|
|
12
14
|
CircleCheck,
|
|
13
15
|
DataAnalysis,
|
|
14
|
-
Document,
|
|
15
16
|
FullScreen,
|
|
16
17
|
InfoFilled,
|
|
17
18
|
RefreshLeft,
|
|
18
19
|
Search,
|
|
19
|
-
Setting,
|
|
20
20
|
} from '@element-plus/icons-vue'
|
|
21
21
|
import { queryForeignSettlementForecasts } from '../api'
|
|
22
22
|
import {
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
currencyOptions,
|
|
25
25
|
forecastColumns,
|
|
26
26
|
forecastWayOptions,
|
|
27
|
-
getDefaultColumnProps,
|
|
28
27
|
payDirectionOptions,
|
|
29
28
|
verifyStatusOptions,
|
|
30
29
|
} from '../options'
|
|
@@ -43,42 +42,63 @@ import {
|
|
|
43
42
|
toForeignSettlementAmountText,
|
|
44
43
|
} from '../utils'
|
|
45
44
|
import { useScopedMessage } from '../../ForecastInfo/useScopedMessage'
|
|
45
|
+
import { useForeignSettlementStore } from '../store'
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* 外币预报信息业务面板。
|
|
49
|
-
*
|
|
49
|
+
* 筛选、分页、勾选和请求生命周期收敛在当前组件,列配置统一交由 ElTablePro 管理。
|
|
50
50
|
*/
|
|
51
51
|
const props = defineProps<{
|
|
52
52
|
layout: ForeignSettlementCardLayout
|
|
53
53
|
layoutOptions: ForeignSettlementLayoutOption[]
|
|
54
54
|
isFullscreen: boolean
|
|
55
|
+
isActive: boolean
|
|
55
56
|
overlayContainer: HTMLElement | null
|
|
56
57
|
}>()
|
|
57
58
|
|
|
58
59
|
const emit = defineEmits<{
|
|
59
60
|
changeLayout: [layout: ForeignSettlementCardLayout]
|
|
60
61
|
toggleFullscreen: []
|
|
61
|
-
viewDetail: [row: ForeignSettlementForecastRow]
|
|
62
62
|
}>()
|
|
63
63
|
|
|
64
64
|
const pageMessage = useScopedMessage(() => props.overlayContainer)
|
|
65
|
+
const foreignSettlementStore = useForeignSettlementStore()
|
|
66
|
+
const {
|
|
67
|
+
forecastSelectedRows: selectedRows,
|
|
68
|
+
tableSelectionResetKey,
|
|
69
|
+
listRefreshKey,
|
|
70
|
+
activeOperation,
|
|
71
|
+
operationLoading,
|
|
72
|
+
} = storeToRefs(foreignSettlementStore)
|
|
65
73
|
const filterForm = reactive(createDefaultForeignSettlementFilter())
|
|
66
74
|
const page = ref(1)
|
|
67
75
|
const pageSize = ref(10)
|
|
68
76
|
const loading = ref(false)
|
|
69
77
|
const total = ref(0)
|
|
70
78
|
const rows = ref<ForeignSettlementForecastRow[]>([])
|
|
71
|
-
const selectedRows = ref<ForeignSettlementForecastRow[]>([])
|
|
72
|
-
const selectionResetKey = ref(0)
|
|
73
79
|
const filterDrawerVisible = ref(false)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
|
|
81
|
+
type TableOverlayController = {
|
|
82
|
+
closeTransientOverlays: () => void
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const forecastTable = ref<TableOverlayController | null>(null)
|
|
79
86
|
|
|
80
87
|
let requestController: AbortController | null = null
|
|
81
|
-
let panelActive =
|
|
88
|
+
let panelActive = props.isActive
|
|
89
|
+
let pendingOperationRefresh = false
|
|
90
|
+
|
|
91
|
+
function activatePanel() {
|
|
92
|
+
panelActive = props.isActive
|
|
93
|
+
if (!panelActive || !pendingOperationRefresh) return
|
|
94
|
+
pendingOperationRefresh = false
|
|
95
|
+
void loadForecasts()
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function deactivatePanel() {
|
|
99
|
+
panelActive = false
|
|
100
|
+
closeTransientOverlays()
|
|
101
|
+
}
|
|
82
102
|
|
|
83
103
|
function buildQuery(): ForeignSettlementForecastQuery {
|
|
84
104
|
const [startAmount, endAmount] = filterForm.amountRange
|
|
@@ -120,8 +140,7 @@ function validateFilter() {
|
|
|
120
140
|
}
|
|
121
141
|
|
|
122
142
|
function resetSelection() {
|
|
123
|
-
|
|
124
|
-
selectedRows.value = []
|
|
143
|
+
foreignSettlementStore.resetAllTableSelections()
|
|
125
144
|
}
|
|
126
145
|
|
|
127
146
|
function cancelPendingRequest() {
|
|
@@ -132,6 +151,7 @@ function cancelPendingRequest() {
|
|
|
132
151
|
|
|
133
152
|
async function loadForecasts(showSuccessMessage = false) {
|
|
134
153
|
requestController?.abort()
|
|
154
|
+
resetSelection()
|
|
135
155
|
const controller = new AbortController()
|
|
136
156
|
requestController = controller
|
|
137
157
|
loading.value = true
|
|
@@ -148,7 +168,6 @@ async function loadForecasts(showSuccessMessage = false) {
|
|
|
148
168
|
|
|
149
169
|
rows.value = result.resultList
|
|
150
170
|
total.value = result.totalCount
|
|
151
|
-
resetSelection()
|
|
152
171
|
if (showSuccessMessage) pageMessage.success('已查询预报信息')
|
|
153
172
|
return true
|
|
154
173
|
} catch (error) {
|
|
@@ -179,74 +198,115 @@ function handleReset() {
|
|
|
179
198
|
pageMessage.info('预报筛选条件已重置')
|
|
180
199
|
}
|
|
181
200
|
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
void loadForecasts()
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function handlePageSizeUpdate(nextPageSize: number) {
|
|
189
|
-
if (pageSize.value === nextPageSize) return
|
|
190
|
-
pageSize.value = nextPageSize
|
|
191
|
-
page.value = 1
|
|
201
|
+
function handlePaginationChange(pagination: { page: number; pageSize: number }) {
|
|
202
|
+
page.value = pagination.page
|
|
203
|
+
pageSize.value = pagination.pageSize
|
|
192
204
|
void loadForecasts()
|
|
193
205
|
}
|
|
194
206
|
|
|
195
207
|
function handleSelectionChange(selection: ForeignSettlementForecastRow[]) {
|
|
196
|
-
|
|
208
|
+
foreignSettlementStore.setForecastSelectedRows(selection)
|
|
197
209
|
}
|
|
198
210
|
|
|
199
|
-
function
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
211
|
+
async function handleForecastVerify() {
|
|
212
|
+
const validation = foreignSettlementStore.validateVerifySelectedRows()
|
|
213
|
+
if (!validation.success) {
|
|
214
|
+
pageMessage.warning(validation.message)
|
|
215
|
+
return
|
|
216
|
+
}
|
|
204
217
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
218
|
+
try {
|
|
219
|
+
await ElMessageBox.confirm('您是否确定核销?', '提示', {
|
|
220
|
+
appendTo: props.overlayContainer || undefined,
|
|
221
|
+
confirmButtonText: '确定',
|
|
222
|
+
cancelButtonText: '取消',
|
|
223
|
+
type: 'warning',
|
|
224
|
+
})
|
|
225
|
+
} catch {
|
|
226
|
+
return
|
|
227
|
+
}
|
|
208
228
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
229
|
+
try {
|
|
230
|
+
const result = await foreignSettlementStore.verifySelectedRows()
|
|
231
|
+
if (!panelActive) return
|
|
232
|
+
pageMessage[result.success ? 'success' : 'warning'](result.message)
|
|
233
|
+
} catch (error) {
|
|
234
|
+
foreignSettlementStore.refreshOperationLists()
|
|
235
|
+
if (panelActive) {
|
|
236
|
+
pageMessage.error(error instanceof Error ? error.message : '核销失败,请稍后重试')
|
|
237
|
+
}
|
|
212
238
|
}
|
|
213
|
-
columnDrawerVisible.value = visible
|
|
214
239
|
}
|
|
215
240
|
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
|
|
241
|
+
async function handleForecastCancelVerify() {
|
|
242
|
+
const validation = foreignSettlementStore.validateCancelVerifySelectedRows()
|
|
243
|
+
if (!validation.success) {
|
|
244
|
+
pageMessage.warning(validation.message)
|
|
245
|
+
return
|
|
246
|
+
}
|
|
219
247
|
|
|
220
|
-
|
|
221
|
-
|
|
248
|
+
try {
|
|
249
|
+
await ElMessageBox.confirm('您是否确定撤销核销?', '提示', {
|
|
250
|
+
appendTo: props.overlayContainer || undefined,
|
|
251
|
+
confirmButtonText: '确定',
|
|
252
|
+
cancelButtonText: '取消',
|
|
253
|
+
type: 'warning',
|
|
254
|
+
})
|
|
255
|
+
} catch {
|
|
256
|
+
return
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
try {
|
|
260
|
+
const result = await foreignSettlementStore.cancelVerifySelectedRows()
|
|
261
|
+
if (!panelActive) return
|
|
262
|
+
pageMessage[result.success ? 'success' : 'warning'](result.message)
|
|
263
|
+
} catch (error) {
|
|
264
|
+
foreignSettlementStore.refreshOperationLists()
|
|
265
|
+
if (panelActive) {
|
|
266
|
+
pageMessage.error(error instanceof Error ? error.message : '撤销核销失败,请稍后重试')
|
|
267
|
+
}
|
|
268
|
+
}
|
|
222
269
|
}
|
|
223
270
|
|
|
224
|
-
function
|
|
225
|
-
|
|
226
|
-
columnDrawerVisible.value = false
|
|
227
|
-
pageMessage.closeAll()
|
|
271
|
+
function getSequence(index: number) {
|
|
272
|
+
return (page.value - 1) * pageSize.value + index + 1
|
|
228
273
|
}
|
|
229
274
|
|
|
230
275
|
function closeTransientOverlays() {
|
|
231
276
|
cancelPendingRequest()
|
|
232
|
-
|
|
277
|
+
filterDrawerVisible.value = false
|
|
278
|
+
ElMessageBox.close()
|
|
279
|
+
forecastTable.value?.closeTransientOverlays()
|
|
280
|
+
pageMessage.closeAll()
|
|
233
281
|
}
|
|
234
282
|
|
|
235
|
-
defineExpose({ closeTransientOverlays
|
|
283
|
+
defineExpose({ closeTransientOverlays })
|
|
236
284
|
|
|
237
285
|
onMounted(() => {
|
|
238
|
-
void loadForecasts()
|
|
286
|
+
if (panelActive) void loadForecasts()
|
|
239
287
|
})
|
|
240
|
-
onActivated(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
288
|
+
onActivated(activatePanel)
|
|
289
|
+
onDeactivated(deactivatePanel)
|
|
290
|
+
onBeforeUnmount(deactivatePanel)
|
|
291
|
+
|
|
292
|
+
watch(
|
|
293
|
+
() => props.isActive,
|
|
294
|
+
(active) => {
|
|
295
|
+
if (!active) {
|
|
296
|
+
deactivatePanel()
|
|
297
|
+
return
|
|
298
|
+
}
|
|
299
|
+
activatePanel()
|
|
300
|
+
},
|
|
301
|
+
{ flush: 'sync' },
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
watch(listRefreshKey, () => {
|
|
305
|
+
if (!panelActive) {
|
|
306
|
+
pendingOperationRefresh = true
|
|
307
|
+
return
|
|
308
|
+
}
|
|
309
|
+
void loadForecasts()
|
|
250
310
|
})
|
|
251
311
|
</script>
|
|
252
312
|
|
|
@@ -255,7 +315,6 @@ onBeforeUnmount(() => {
|
|
|
255
315
|
<header class="forecast-info-card__header">
|
|
256
316
|
<div class="foreign-currency-settlement-title-group">
|
|
257
317
|
<h2 id="foreign-currency-forecast-info-title" class="forecast-info-card__title">预报信息</h2>
|
|
258
|
-
<span class="foreign-currency-settlement-badge">外币</span>
|
|
259
318
|
</div>
|
|
260
319
|
|
|
261
320
|
<div class="forecast-info-header-actions">
|
|
@@ -343,119 +402,111 @@ onBeforeUnmount(() => {
|
|
|
343
402
|
</div>
|
|
344
403
|
|
|
345
404
|
<section class="forecast-info-table-area" aria-label="外币预报信息列表">
|
|
346
|
-
<
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
405
|
+
<ElTablePro
|
|
406
|
+
ref="forecastTable"
|
|
407
|
+
v-model:page="page"
|
|
408
|
+
v-model:page-size="pageSize"
|
|
409
|
+
v-loading="loading"
|
|
410
|
+
:data="rows"
|
|
411
|
+
:total="total"
|
|
412
|
+
:page-sizes="[10, 20, 50, 100]"
|
|
413
|
+
:selection-reset-key="tableSelectionResetKey"
|
|
414
|
+
:append-to="overlayContainer || undefined"
|
|
415
|
+
table-key="foreign-currency-settlement-forecast-info"
|
|
416
|
+
row-key="predRefNo"
|
|
417
|
+
border
|
|
418
|
+
stripe
|
|
419
|
+
size="small"
|
|
420
|
+
table-layout="auto"
|
|
421
|
+
height="100%"
|
|
422
|
+
col-btn-size="small"
|
|
423
|
+
class="forecast-info-table foreign-currency-settlement-table foreign-currency-settlement-table-shell"
|
|
424
|
+
@selection-change="handleSelectionChange"
|
|
425
|
+
@pagination-change="handlePaginationChange"
|
|
426
|
+
>
|
|
427
|
+
<template #toolbar>
|
|
428
|
+
<el-tooltip content="待提供外币匡算接口后启用" placement="top" :append-to="overlayContainer || undefined">
|
|
429
|
+
<span class="foreign-currency-settlement-disabled-action">
|
|
430
|
+
<el-button type="primary" plain size="small" :icon="DataAnalysis" disabled>匡算</el-button>
|
|
367
431
|
</span>
|
|
368
|
-
</
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
v-loading="loading"
|
|
378
|
-
:data="rows"
|
|
379
|
-
row-key="predRefNo"
|
|
380
|
-
border
|
|
381
|
-
stripe
|
|
382
|
-
size="small"
|
|
383
|
-
table-layout="auto"
|
|
384
|
-
height="100%"
|
|
385
|
-
class="forecast-info-table foreign-currency-settlement-table"
|
|
386
|
-
@selection-change="handleSelectionChange"
|
|
387
|
-
>
|
|
388
|
-
<el-table-column type="selection" column-key="selection" width="46" align="center" fixed="left" />
|
|
389
|
-
<el-table-column
|
|
390
|
-
type="index"
|
|
391
|
-
column-key="sequence"
|
|
392
|
-
label="序号"
|
|
393
|
-
width="62"
|
|
394
|
-
align="center"
|
|
395
|
-
fixed="left"
|
|
396
|
-
:index="getSequence"
|
|
397
|
-
/>
|
|
398
|
-
<el-table-column
|
|
399
|
-
v-for="column in displayedColumns"
|
|
400
|
-
:key="column.prop"
|
|
401
|
-
:prop="column.prop"
|
|
402
|
-
:column-key="column.prop"
|
|
403
|
-
:label="column.label"
|
|
404
|
-
:min-width="column.minWidth"
|
|
405
|
-
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
432
|
+
</el-tooltip>
|
|
433
|
+
<el-button
|
|
434
|
+
type="success"
|
|
435
|
+
plain
|
|
436
|
+
size="small"
|
|
437
|
+
:icon="CircleCheck"
|
|
438
|
+
:loading="activeOperation === 'verify'"
|
|
439
|
+
:disabled="operationLoading"
|
|
440
|
+
@click="handleForecastVerify"
|
|
406
441
|
>
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
</template>
|
|
418
|
-
</el-table-column>
|
|
419
|
-
|
|
420
|
-
<el-table-column
|
|
421
|
-
column-key="operations"
|
|
422
|
-
label="操作"
|
|
423
|
-
width="82"
|
|
424
|
-
fixed="right"
|
|
425
|
-
align="center"
|
|
442
|
+
核销
|
|
443
|
+
</el-button>
|
|
444
|
+
<el-button
|
|
445
|
+
type="danger"
|
|
446
|
+
plain
|
|
447
|
+
size="small"
|
|
448
|
+
:icon="RefreshLeft"
|
|
449
|
+
:loading="activeOperation === 'cancelVerify'"
|
|
450
|
+
:disabled="operationLoading"
|
|
451
|
+
@click="handleForecastCancelVerify"
|
|
426
452
|
>
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
453
|
+
撤销核销
|
|
454
|
+
</el-button>
|
|
455
|
+
|
|
456
|
+
<span v-if="selectedRows.length" class="foreign-currency-settlement-selection-count">
|
|
457
|
+
已选 {{ selectedRows.length }} 笔
|
|
458
|
+
</span>
|
|
459
|
+
</template>
|
|
460
|
+
|
|
461
|
+
<el-table-column
|
|
462
|
+
type="selection"
|
|
463
|
+
column-key="selection"
|
|
464
|
+
width="46"
|
|
465
|
+
align="center"
|
|
466
|
+
fixed="left"
|
|
467
|
+
disabled
|
|
468
|
+
/>
|
|
469
|
+
<el-table-column
|
|
470
|
+
type="index"
|
|
471
|
+
column-key="sequence"
|
|
472
|
+
label="序号"
|
|
473
|
+
width="62"
|
|
474
|
+
align="center"
|
|
475
|
+
fixed="left"
|
|
476
|
+
:index="getSequence"
|
|
477
|
+
disabled
|
|
478
|
+
/>
|
|
479
|
+
<el-table-column
|
|
480
|
+
v-for="column in forecastColumns"
|
|
481
|
+
:key="column.prop"
|
|
482
|
+
:prop="column.prop"
|
|
483
|
+
:column-key="column.prop"
|
|
484
|
+
:label="column.label"
|
|
485
|
+
:min-width="column.minWidth"
|
|
486
|
+
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
487
|
+
:visible="column.defaultVisible === true"
|
|
488
|
+
>
|
|
489
|
+
<template #default="{ row }">
|
|
490
|
+
<el-tag
|
|
491
|
+
v-if="column.format === 'verifyStatus'"
|
|
492
|
+
:type="getForeignSettlementVerifyTagType(row[column.prop])"
|
|
493
|
+
effect="plain"
|
|
494
|
+
size="small"
|
|
495
|
+
>
|
|
496
|
+
{{ formatForeignSettlementCell(row[column.prop], column.format) }}
|
|
497
|
+
</el-tag>
|
|
498
|
+
<span v-else>{{ formatForeignSettlementCell(row[column.prop], column.format) }}</span>
|
|
442
499
|
</template>
|
|
443
|
-
</el-table>
|
|
444
|
-
|
|
445
|
-
<
|
|
446
|
-
<
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
small
|
|
454
|
-
@update:current-page="handlePageUpdate"
|
|
455
|
-
@update:page-size="handlePageSizeUpdate"
|
|
456
|
-
/>
|
|
457
|
-
</div>
|
|
458
|
-
</div>
|
|
500
|
+
</el-table-column>
|
|
501
|
+
|
|
502
|
+
<template #empty>
|
|
503
|
+
<div class="foreign-currency-settlement-empty">
|
|
504
|
+
<span class="foreign-currency-settlement-empty__icon"><el-icon><InfoFilled /></el-icon></span>
|
|
505
|
+
<strong>暂无数据</strong>
|
|
506
|
+
<span>暂无符合条件的外币预报信息</span>
|
|
507
|
+
</div>
|
|
508
|
+
</template>
|
|
509
|
+
</ElTablePro>
|
|
459
510
|
</section>
|
|
460
511
|
|
|
461
512
|
<el-drawer
|
|
@@ -602,36 +653,5 @@ onBeforeUnmount(() => {
|
|
|
602
653
|
</template>
|
|
603
654
|
</el-drawer>
|
|
604
655
|
|
|
605
|
-
<el-drawer
|
|
606
|
-
v-if="columnDrawerVisible"
|
|
607
|
-
:model-value="columnDrawerVisible"
|
|
608
|
-
title="预报信息列配置"
|
|
609
|
-
size="520px"
|
|
610
|
-
:append-to="overlayContainer || undefined"
|
|
611
|
-
destroy-on-close
|
|
612
|
-
:lock-scroll="false"
|
|
613
|
-
class="forecast-info-filter-drawer foreign-currency-settlement-column-drawer"
|
|
614
|
-
@update:model-value="setColumnDrawerVisible"
|
|
615
|
-
>
|
|
616
|
-
<div class="foreign-currency-settlement-column-actions">
|
|
617
|
-
<span>已显示 {{ visibleColumnProps.length }} / {{ forecastColumns.length }} 列</span>
|
|
618
|
-
<div>
|
|
619
|
-
<el-button size="small" @click="selectAllColumns">全选</el-button>
|
|
620
|
-
<el-button size="small" @click="resetColumns">恢复默认</el-button>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
|
|
624
|
-
<el-checkbox-group v-model="visibleColumnProps" class="foreign-currency-settlement-column-grid">
|
|
625
|
-
<el-checkbox v-for="column in forecastColumns" :key="column.prop" :value="column.prop">
|
|
626
|
-
{{ column.label }}
|
|
627
|
-
</el-checkbox>
|
|
628
|
-
</el-checkbox-group>
|
|
629
|
-
|
|
630
|
-
<template #footer>
|
|
631
|
-
<div class="forecast-info-filter__drawer-actions">
|
|
632
|
-
<el-button type="primary" size="small" @click="setColumnDrawerVisible(false)">完成</el-button>
|
|
633
|
-
</div>
|
|
634
|
-
</template>
|
|
635
|
-
</el-drawer>
|
|
636
656
|
</section>
|
|
637
657
|
</template>
|