verce-vue-test 0.0.90 → 0.0.92
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/docs/payment-tam-online.md +177 -2
- package/package.json +1 -1
- package/src/api/account-bank.ts +61 -0
- package/src/components/business/AccountBankSelect.vue +142 -0
- package/src/components/business/Public/TokenTag.vue +104 -0
- package/src/components/index.ts +8 -0
- package/src/views/foreign-currency-authorization/index.vue +5 -5
- package/src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue +4 -32
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +52 -5
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +55 -13
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +21 -2
- package/src/views/foreign-currency-settlement/index.vue +1 -1
- package/src/views/foreign-currency-settlement/options.ts +2 -2
- package/src/views/foreign-currency-settlement/store.ts +17 -8
- package/src/views/foreign-currency-settlement/types.ts +6 -5
- package/src/views/foreign-currency-settlement/useScopedMessage.ts +55 -0
- package/.claude/settings.local.json +0 -9
- package/.playwright-cli/console-2026-07-09T06-04-17-080Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T06-12-15-073Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T06-26-29-737Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-23-15-426Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-24-26-534Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-30-40-534Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-36-44-016Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-41-10-340Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-43-15-882Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-46-22-087Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T07-49-21-886Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T08-09-19-969Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T08-11-30-991Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T08-16-26-237Z.log +0 -1
- package/.playwright-cli/console-2026-07-09T08-41-08-975Z.log +0 -2
- package/.playwright-cli/console-2026-07-09T09-33-59-980Z.log +0 -2
- package/.playwright-cli/page-2026-07-09T05-18-52-868Z.yml +0 -66
- package/.playwright-cli/page-2026-07-09T05-29-33-800Z.yml +0 -66
- package/.playwright-cli/page-2026-07-09T05-30-01-271Z.yml +0 -270
- package/.playwright-cli/page-2026-07-09T05-31-30-776Z.yml +0 -63
- package/.playwright-cli/page-2026-07-09T05-31-50-991Z.yml +0 -270
- package/.playwright-cli/page-2026-07-09T05-33-28-782Z.yml +0 -66
- package/.playwright-cli/page-2026-07-09T05-33-51-915Z.yml +0 -270
- package/.playwright-cli/page-2026-07-09T05-42-00-004Z.yml +0 -63
- package/.playwright-cli/page-2026-07-09T06-01-57-002Z.yml +0 -264
- package/.playwright-cli/page-2026-07-09T06-04-17-487Z.yml +0 -273
- package/.playwright-cli/page-2026-07-09T06-04-52-168Z.yml +0 -273
- package/.playwright-cli/page-2026-07-09T06-12-15-498Z.yml +0 -267
- package/.playwright-cli/page-2026-07-09T06-12-35-238Z.yml +0 -267
- package/.playwright-cli/page-2026-07-09T06-26-30-006Z.yml +0 -66
- package/.playwright-cli/page-2026-07-09T06-26-54-045Z.yml +0 -335
- package/.playwright-cli/page-2026-07-09T06-27-15-581Z.yml +0 -251
- package/.playwright-cli/page-2026-07-09T06-27-18-660Z.yml +0 -315
- package/.playwright-cli/page-2026-07-09T06-27-36-307Z.yml +0 -251
- package/.playwright-cli/page-2026-07-09T06-27-39-489Z.yml +0 -271
- package/.playwright-cli/page-2026-07-09T07-23-15-855Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-23-33-545Z.yml +0 -329
- package/.playwright-cli/page-2026-07-09T07-23-43-166Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-23-47-127Z.yml +0 -309
- package/.playwright-cli/page-2026-07-09T07-24-26-906Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-30-41-042Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-30-55-046Z.yml +0 -329
- package/.playwright-cli/page-2026-07-09T07-31-07-705Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-31-13-150Z.yml +0 -309
- package/.playwright-cli/page-2026-07-09T07-31-23-534Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-31-27-447Z.yml +0 -263
- package/.playwright-cli/page-2026-07-09T07-36-44-447Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-36-57-287Z.yml +0 -329
- package/.playwright-cli/page-2026-07-09T07-37-02-984Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-37-09-572Z.yml +0 -263
- package/.playwright-cli/page-2026-07-09T07-41-10-769Z.yml +0 -247
- package/.playwright-cli/page-2026-07-09T07-41-23-329Z.yml +0 -320
- package/.playwright-cli/page-2026-07-09T07-43-16-350Z.yml +0 -261
- package/.playwright-cli/page-2026-07-09T07-46-22-489Z.yml +0 -261
- package/.playwright-cli/page-2026-07-09T07-46-39-112Z.yml +0 -277
- package/.playwright-cli/page-2026-07-09T07-49-22-338Z.yml +0 -261
- package/.playwright-cli/page-2026-07-09T08-09-20-400Z.yml +0 -269
- package/.playwright-cli/page-2026-07-09T08-09-37-336Z.yml +0 -324
- package/.playwright-cli/page-2026-07-09T08-11-31-421Z.yml +0 -269
- package/.playwright-cli/page-2026-07-09T08-16-26-654Z.yml +0 -269
- package/.playwright-cli/page-2026-07-09T08-16-46-658Z.yml +0 -285
- package/.playwright-cli/page-2026-07-09T08-41-09-376Z.yml +0 -269
- package/.playwright-cli/page-2026-07-09T08-41-31-949Z.yml +0 -748
- package/.playwright-cli/page-2026-07-09T08-45-14-780Z.png +0 -0
- package/.playwright-cli/page-2026-07-09T09-34-00-473Z.yml +0 -272
- package/.playwright-cli/page-2026-07-09T09-34-17-738Z.yml +0 -711
- package/.playwright-cli/page-2026-07-09T09-34-38-429Z.yml +0 -708
- package/.playwright-cli/page-2026-07-09T09-36-12-424Z.yml +0 -743
- package/.playwright-cli/page-2026-07-09T09-36-31-519Z.png +0 -0
- package/.vscode/settings.json +0 -8
- package/output/playwright/forecast-info-filters-split-vertical.png +0 -0
- package/output/playwright/forecast-info-flow-drawer-all-filters-1672x941.png +0 -0
- package/output/playwright/forecast-info-flow-filter-fields.png +0 -0
- package/output/playwright/forecast-info-flow-query-params.png +0 -0
- package/output/playwright/forecast-info-forecast-drawer-all-filters-1672x941.png +0 -0
- package/output/playwright/forecast-info-forecast-table-fields.png +0 -0
- package/output/playwright/forecast-info-horizontal-date-width.png +0 -0
- package/output/playwright/forecast-info-horizontal-filter-one-line.png +0 -0
- package/output/playwright/forecast-info-horizontal-one-filter-1672x941.png +0 -0
- package/output/playwright/forecast-info-icon-switch-default-horizontal-1672x941.png +0 -0
- package/output/playwright/forecast-info-icon-switch-tooltip-1672x941.png +0 -0
- package/output/playwright/forecast-info-inline-filters-1672x941.png +0 -0
- package/output/playwright/forecast-info-layout-horizontal-1440x900.png +0 -0
- package/output/playwright/forecast-info-layout-horizontal-1672x941.png +0 -0
- package/output/playwright/forecast-info-layout-horizontal-compact-1672x941.png +0 -0
- package/output/playwright/forecast-info-layout-vertical-1672x941.png +0 -0
- package/output/playwright/forecast-info-operation-column-1672x941.png +0 -0
- package/output/playwright/forecast-info-pinia-flow-switch-horizontal-1672x941.png +0 -0
- package/output/playwright/forecast-info-pinia-layout-vertical-1672x941.png +0 -0
- package/output/playwright/forecast-info-single-trade-date.png +0 -0
- package/output/playwright/forecast-info-split-components-1672x941.png +0 -0
- package/output/playwright/forecast-info-table-pro-1672x941.png +0 -0
- package/output/playwright/forecast-info-three-vue-structure.png +0 -0
- package/output/playwright/forecast-info-vertical-date-width.png +0 -0
- package/output/playwright/forecast-info-vertical-filter-left-align.png +0 -0
- package/output/playwright/forecast-info-vertical-two-filters-1672x941.png +0 -0
- package/output/playwright/home-1672x941.png +0 -0
- package/output/playwright/home-preview-1672x941.png +0 -0
- package/output/playwright/home-reference-vs-preview.png +0 -0
|
@@ -9,7 +9,15 @@ import {
|
|
|
9
9
|
watch,
|
|
10
10
|
} from 'vue'
|
|
11
11
|
import { storeToRefs } from 'pinia'
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
Calendar,
|
|
14
|
+
Download,
|
|
15
|
+
FullScreen,
|
|
16
|
+
InfoFilled,
|
|
17
|
+
Refresh,
|
|
18
|
+
Search,
|
|
19
|
+
} from '@element-plus/icons-vue'
|
|
20
|
+
import AccountBankSelect from '@/components/business/AccountBankSelect.vue'
|
|
13
21
|
import { queryForeignSettlementFlows } from '../api'
|
|
14
22
|
import {
|
|
15
23
|
currencyOptions,
|
|
@@ -32,7 +40,7 @@ import {
|
|
|
32
40
|
isForeignSettlementAbortError,
|
|
33
41
|
toForeignSettlementAmountText,
|
|
34
42
|
} from '../utils'
|
|
35
|
-
import { useScopedMessage } from '
|
|
43
|
+
import { useScopedMessage } from '../useScopedMessage'
|
|
36
44
|
import { useForeignSettlementStore } from '../store'
|
|
37
45
|
|
|
38
46
|
/**
|
|
@@ -61,11 +69,14 @@ const {
|
|
|
61
69
|
} = storeToRefs(foreignSettlementStore)
|
|
62
70
|
const filterForm = reactive(createDefaultForeignSettlementFilter())
|
|
63
71
|
const page = ref(1)
|
|
64
|
-
const pageSize = ref(
|
|
72
|
+
const pageSize = ref(20)
|
|
65
73
|
const loading = ref(false)
|
|
66
74
|
const total = ref(0)
|
|
67
75
|
const rows = ref<ForeignSettlementFlowRow[]>([])
|
|
68
76
|
const filterDrawerVisible = ref(false)
|
|
77
|
+
const columnComponentMap: Record<string, string> = {
|
|
78
|
+
ccy: 'TokenTag',
|
|
79
|
+
}
|
|
69
80
|
|
|
70
81
|
type TableOverlayController = {
|
|
71
82
|
closeTransientOverlays: () => void
|
|
@@ -316,6 +327,23 @@ watch(listRefreshKey, () => {
|
|
|
316
327
|
<el-option v-for="option in payDirectionOptions" :key="option.value" v-bind="option" />
|
|
317
328
|
</el-select>
|
|
318
329
|
</label>
|
|
330
|
+
|
|
331
|
+
<label v-if="layout === 'vertical'" class="forecast-info-filter__item">
|
|
332
|
+
<span>币种</span>
|
|
333
|
+
<el-select
|
|
334
|
+
v-model="filterForm.currency"
|
|
335
|
+
:append-to="overlayContainer || undefined"
|
|
336
|
+
:persistent="false"
|
|
337
|
+
size="small"
|
|
338
|
+
placeholder="请选择"
|
|
339
|
+
filterable
|
|
340
|
+
allow-create
|
|
341
|
+
default-first-option
|
|
342
|
+
clearable
|
|
343
|
+
>
|
|
344
|
+
<el-option v-for="option in currencyOptions" :key="option.value" v-bind="option" />
|
|
345
|
+
</el-select>
|
|
346
|
+
</label>
|
|
319
347
|
</div>
|
|
320
348
|
|
|
321
349
|
<div class="forecast-info-filter__actions">
|
|
@@ -351,11 +379,18 @@ watch(listRefreshKey, () => {
|
|
|
351
379
|
@pagination-change="handlePaginationChange"
|
|
352
380
|
>
|
|
353
381
|
<template #toolbar>
|
|
382
|
+
<el-button type="primary" plain size="small" :icon="Refresh">获取流水</el-button>
|
|
383
|
+
<el-button type="primary" plain size="small" :icon="Calendar">获取日终流水</el-button>
|
|
384
|
+
|
|
354
385
|
<span v-if="selectedRows.length" class="foreign-currency-settlement-selection-count">
|
|
355
386
|
已选 {{ selectedRows.length }} 笔
|
|
356
387
|
</span>
|
|
357
388
|
</template>
|
|
358
389
|
|
|
390
|
+
<template #toolbar-right>
|
|
391
|
+
<el-button type="primary" plain size="small" :icon="Download">导出</el-button>
|
|
392
|
+
</template>
|
|
393
|
+
|
|
359
394
|
<el-table-column
|
|
360
395
|
type="selection"
|
|
361
396
|
column-key="selection"
|
|
@@ -384,7 +419,13 @@ watch(listRefreshKey, () => {
|
|
|
384
419
|
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
385
420
|
:visible="column.defaultVisible === true"
|
|
386
421
|
>
|
|
387
|
-
<template #default="{ row }">
|
|
422
|
+
<template v-if="column.solt" #default="{ row }">
|
|
423
|
+
<component
|
|
424
|
+
:is="columnComponentMap[column.prop]"
|
|
425
|
+
:value="row[column.prop]"
|
|
426
|
+
/>
|
|
427
|
+
</template>
|
|
428
|
+
<template v-else #default="{ row }">
|
|
388
429
|
<el-tag
|
|
389
430
|
v-if="column.format === 'verifyStatus'"
|
|
390
431
|
:type="getForeignSettlementVerifyTagType(row[column.prop])"
|
|
@@ -505,7 +546,13 @@ watch(listRefreshKey, () => {
|
|
|
505
546
|
|
|
506
547
|
<label class="forecast-info-filter__item">
|
|
507
548
|
<span>账户行</span>
|
|
508
|
-
<
|
|
549
|
+
<AccountBankSelect
|
|
550
|
+
v-model="filterForm.bankCode"
|
|
551
|
+
:currency="filterForm.currency"
|
|
552
|
+
:append-to="overlayContainer || undefined"
|
|
553
|
+
size="small"
|
|
554
|
+
placeholder="请选择账户行"
|
|
555
|
+
/>
|
|
509
556
|
</label>
|
|
510
557
|
|
|
511
558
|
<label class="forecast-info-filter__item">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import {
|
|
3
|
+
computed,
|
|
3
4
|
onActivated,
|
|
4
5
|
onBeforeUnmount,
|
|
5
6
|
onDeactivated,
|
|
@@ -12,12 +13,13 @@ import { storeToRefs } from 'pinia'
|
|
|
12
13
|
import { ElMessageBox } from 'element-plus'
|
|
13
14
|
import {
|
|
14
15
|
CircleCheck,
|
|
15
|
-
|
|
16
|
+
Download,
|
|
16
17
|
FullScreen,
|
|
17
18
|
InfoFilled,
|
|
18
19
|
RefreshLeft,
|
|
19
20
|
Search,
|
|
20
21
|
} from '@element-plus/icons-vue'
|
|
22
|
+
import AccountBankSelect from '@/components/business/AccountBankSelect.vue'
|
|
21
23
|
import { queryForeignSettlementForecasts } from '../api'
|
|
22
24
|
import {
|
|
23
25
|
businessTypeOptions,
|
|
@@ -41,7 +43,7 @@ import {
|
|
|
41
43
|
isForeignSettlementAbortError,
|
|
42
44
|
toForeignSettlementAmountText,
|
|
43
45
|
} from '../utils'
|
|
44
|
-
import { useScopedMessage } from '
|
|
46
|
+
import { useScopedMessage } from '../useScopedMessage'
|
|
45
47
|
import { useForeignSettlementStore } from '../store'
|
|
46
48
|
|
|
47
49
|
/**
|
|
@@ -72,11 +74,14 @@ const {
|
|
|
72
74
|
} = storeToRefs(foreignSettlementStore)
|
|
73
75
|
const filterForm = reactive(createDefaultForeignSettlementFilter())
|
|
74
76
|
const page = ref(1)
|
|
75
|
-
const pageSize = ref(
|
|
77
|
+
const pageSize = ref(20)
|
|
76
78
|
const loading = ref(false)
|
|
77
79
|
const total = ref(0)
|
|
78
80
|
const rows = ref<ForeignSettlementForecastRow[]>([])
|
|
79
81
|
const filterDrawerVisible = ref(false)
|
|
82
|
+
const columnComponentMap: Record<string, string> = {
|
|
83
|
+
ccy: 'TokenTag',
|
|
84
|
+
}
|
|
80
85
|
|
|
81
86
|
type TableOverlayController = {
|
|
82
87
|
closeTransientOverlays: () => void
|
|
@@ -100,7 +105,7 @@ function deactivatePanel() {
|
|
|
100
105
|
closeTransientOverlays()
|
|
101
106
|
}
|
|
102
107
|
|
|
103
|
-
|
|
108
|
+
const queryParams = computed<ForeignSettlementForecastQuery>(() => {
|
|
104
109
|
const [startAmount, endAmount] = filterForm.amountRange
|
|
105
110
|
|
|
106
111
|
return {
|
|
@@ -121,7 +126,7 @@ function buildQuery(): ForeignSettlementForecastQuery {
|
|
|
121
126
|
filter: '',
|
|
122
127
|
amtOrder: '1',
|
|
123
128
|
}
|
|
124
|
-
}
|
|
129
|
+
})
|
|
125
130
|
|
|
126
131
|
function validateFilter() {
|
|
127
132
|
const [startAmount, endAmount] = filterForm.amountRange
|
|
@@ -158,7 +163,7 @@ async function loadForecasts(showSuccessMessage = false) {
|
|
|
158
163
|
|
|
159
164
|
try {
|
|
160
165
|
const result = await queryForeignSettlementForecasts(
|
|
161
|
-
|
|
166
|
+
queryParams.value,
|
|
162
167
|
page.value,
|
|
163
168
|
pageSize.value,
|
|
164
169
|
controller.signal,
|
|
@@ -191,6 +196,13 @@ function handleQuery() {
|
|
|
191
196
|
void loadForecasts(true)
|
|
192
197
|
}
|
|
193
198
|
|
|
199
|
+
function handleExport() {
|
|
200
|
+
console.log('外币预报信息导出参数:', {
|
|
201
|
+
...queryParams.value,
|
|
202
|
+
opType: 'export',
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
|
|
194
206
|
function handleReset() {
|
|
195
207
|
Object.assign(filterForm, createDefaultForeignSettlementFilter())
|
|
196
208
|
page.value = 1
|
|
@@ -390,6 +402,23 @@ watch(listRefreshKey, () => {
|
|
|
390
402
|
<el-option v-for="option in payDirectionOptions" :key="option.value" v-bind="option" />
|
|
391
403
|
</el-select>
|
|
392
404
|
</label>
|
|
405
|
+
|
|
406
|
+
<label v-if="layout === 'vertical'" class="forecast-info-filter__item">
|
|
407
|
+
<span>币种</span>
|
|
408
|
+
<el-select
|
|
409
|
+
v-model="filterForm.currency"
|
|
410
|
+
:append-to="overlayContainer || undefined"
|
|
411
|
+
:persistent="false"
|
|
412
|
+
size="small"
|
|
413
|
+
placeholder="请选择"
|
|
414
|
+
filterable
|
|
415
|
+
allow-create
|
|
416
|
+
default-first-option
|
|
417
|
+
clearable
|
|
418
|
+
>
|
|
419
|
+
<el-option v-for="option in currencyOptions" :key="option.value" v-bind="option" />
|
|
420
|
+
</el-select>
|
|
421
|
+
</label>
|
|
393
422
|
</div>
|
|
394
423
|
|
|
395
424
|
<div class="forecast-info-filter__actions">
|
|
@@ -425,11 +454,6 @@ watch(listRefreshKey, () => {
|
|
|
425
454
|
@pagination-change="handlePaginationChange"
|
|
426
455
|
>
|
|
427
456
|
<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>
|
|
431
|
-
</span>
|
|
432
|
-
</el-tooltip>
|
|
433
457
|
<el-button
|
|
434
458
|
type="success"
|
|
435
459
|
plain
|
|
@@ -458,6 +482,12 @@ watch(listRefreshKey, () => {
|
|
|
458
482
|
</span>
|
|
459
483
|
</template>
|
|
460
484
|
|
|
485
|
+
<template #toolbar-right>
|
|
486
|
+
<el-button type="primary" plain size="small" :icon="Download" @click="handleExport">
|
|
487
|
+
导出
|
|
488
|
+
</el-button>
|
|
489
|
+
</template>
|
|
490
|
+
|
|
461
491
|
<el-table-column
|
|
462
492
|
type="selection"
|
|
463
493
|
column-key="selection"
|
|
@@ -486,7 +516,13 @@ watch(listRefreshKey, () => {
|
|
|
486
516
|
:align="column.format === 'amount' ? 'right' : 'center'"
|
|
487
517
|
:visible="column.defaultVisible === true"
|
|
488
518
|
>
|
|
489
|
-
<template #default="{ row }">
|
|
519
|
+
<template v-if="column.solt" #default="{ row }">
|
|
520
|
+
<component
|
|
521
|
+
:is="columnComponentMap[column.prop]"
|
|
522
|
+
:value="row[column.prop]"
|
|
523
|
+
/>
|
|
524
|
+
</template>
|
|
525
|
+
<template v-else #default="{ row }">
|
|
490
526
|
<el-tag
|
|
491
527
|
v-if="column.format === 'verifyStatus'"
|
|
492
528
|
:type="getForeignSettlementVerifyTagType(row[column.prop])"
|
|
@@ -615,7 +651,13 @@ watch(listRefreshKey, () => {
|
|
|
615
651
|
|
|
616
652
|
<label class="forecast-info-filter__item">
|
|
617
653
|
<span>账户行</span>
|
|
618
|
-
<
|
|
654
|
+
<AccountBankSelect
|
|
655
|
+
v-model="filterForm.bankCode"
|
|
656
|
+
:currency="filterForm.currency"
|
|
657
|
+
:append-to="overlayContainer || undefined"
|
|
658
|
+
size="small"
|
|
659
|
+
placeholder="请选择账户行"
|
|
660
|
+
/>
|
|
619
661
|
</label>
|
|
620
662
|
|
|
621
663
|
<label class="forecast-info-filter__item">
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
gap: 10px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
|
|
8
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"].foreign-currency-settlement-page
|
|
9
|
+
.forecast-info-filter:not(.forecast-info-filter--horizontal)
|
|
10
|
+
.forecast-info-filter__grid {
|
|
11
|
+
grid-template-columns: 248px 220px 220px;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.foreign-currency-settlement-page .foreign-currency-settlement-selection-count {
|
|
@@ -37,6 +39,15 @@
|
|
|
37
39
|
align-items: center;
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
.foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-left {
|
|
43
|
+
width: auto;
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-right {
|
|
48
|
+
flex: 0 0 auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
.foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__pagination {
|
|
41
52
|
display: flex;
|
|
42
53
|
align-items: center;
|
|
@@ -79,3 +90,11 @@
|
|
|
79
90
|
.foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__empty-block {
|
|
80
91
|
min-height: 150px;
|
|
81
92
|
}
|
|
93
|
+
|
|
94
|
+
@media (max-width: 900px) {
|
|
95
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"].foreign-currency-settlement-page
|
|
96
|
+
.forecast-info-filter:not(.forecast-info-filter--horizontal)
|
|
97
|
+
.forecast-info-filter__grid {
|
|
98
|
+
grid-template-columns: minmax(0, 1fr);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
ForeignSettlementCardLayout,
|
|
24
24
|
ForeignSettlementLayoutOption,
|
|
25
25
|
} from './types'
|
|
26
|
-
import { useScopedMessage } from '
|
|
26
|
+
import { useScopedMessage } from './useScopedMessage'
|
|
27
27
|
import { useForeignSettlementStore } from './store'
|
|
28
28
|
import '../ForecastInfo/forecast-info.css'
|
|
29
29
|
import './foreign-currency-settlement.css'
|
|
@@ -65,7 +65,7 @@ export const forecastColumns: ForeignSettlementTableColumn[] = [
|
|
|
65
65
|
{ prop: 'predRefNo', label: '预报流水号', minWidth: 146, defaultVisible: true },
|
|
66
66
|
{ prop: 'tranDate', label: '起息日期', minWidth: 108, format: 'date', defaultVisible: true },
|
|
67
67
|
{ prop: 'payDirec', label: '收支方向', minWidth: 94, format: 'direction', defaultVisible: true },
|
|
68
|
-
{ prop: 'ccy', label: '币种', minWidth:
|
|
68
|
+
{ prop: 'ccy', label: '币种', minWidth: 176, defaultVisible: true, solt: true },
|
|
69
69
|
{ prop: 'predAmt', label: '预报金额(原币)', minWidth: 142, format: 'amount', defaultVisible: true },
|
|
70
70
|
{ prop: 'verifyAmt', label: '已核销金额(原币)', minWidth: 154, format: 'amount', defaultVisible: true },
|
|
71
71
|
{ prop: 'unverifyAmt', label: '未核销金额(原币)', minWidth: 166, format: 'amount', defaultVisible: true },
|
|
@@ -97,7 +97,7 @@ export const flowColumns: ForeignSettlementTableColumn[] = [
|
|
|
97
97
|
{ prop: 'valueDate', label: '起息日', minWidth: 106, format: 'date', defaultVisible: true },
|
|
98
98
|
{ prop: 'direction', label: '往来标志', minWidth: 94, format: 'direction', defaultVisible: true },
|
|
99
99
|
{ prop: 'paymentType', label: '收付款类型', minWidth: 108, defaultVisible: true },
|
|
100
|
-
{ prop: 'ccy', label: '币种', minWidth:
|
|
100
|
+
{ prop: 'ccy', label: '币种', minWidth: 176, defaultVisible: true, solt: true },
|
|
101
101
|
{ prop: 'tranAmt', label: '交易金额(原币)', minWidth: 146, format: 'amount', defaultVisible: true },
|
|
102
102
|
{ prop: 'notVerifyAmt', label: '未核销金额(原币)', minWidth: 166, format: 'amount', defaultVisible: true },
|
|
103
103
|
{ prop: 'verifyStatus', label: '核销状态', minWidth: 100, format: 'verifyStatus', defaultVisible: true },
|
|
@@ -106,12 +106,11 @@ export const useForeignSettlementStore = defineStore('foreign-currency-settlemen
|
|
|
106
106
|
message: '不允许选择已核销的预报记录!',
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
// 预报支持不勾选流水直接核销;撤销核销仍需通过已选流水定位原核销关系。
|
|
110
|
+
if (action === 'cancelVerify' && flowSelectedRows.value.length === 0) {
|
|
110
111
|
return {
|
|
111
112
|
success: false,
|
|
112
|
-
message:
|
|
113
|
-
? '请至少选择一条流水记录!'
|
|
114
|
-
: '请勾选一条已核销流水信息后撤销!',
|
|
113
|
+
message: '请勾选一条已核销流水信息后撤销!',
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
if (action === 'cancelVerify' && forecastSelectedRows.value.length !== 1) {
|
|
@@ -195,14 +194,24 @@ export const useForeignSettlementStore = defineStore('foreign-currency-settlemen
|
|
|
195
194
|
|
|
196
195
|
return {
|
|
197
196
|
predIds: forecasts.map((row) => String(row.predRefNo).trim()).join(','),
|
|
198
|
-
tranSeqIds: flows.map((row) => String(row.tranRefNo).trim()).join(','),
|
|
199
197
|
predAmts: forecasts.map((row) => toForeignSettlementOperationAmount(row.predAmt)).join(','),
|
|
200
198
|
verifyAmts: forecasts.map((row) => toForeignSettlementOperationAmount(row.verifyAmt)).join(','),
|
|
201
|
-
tranAmts: flows.map((row) => toForeignSettlementOperationAmount(row.notVerifyAmt)).join(','),
|
|
202
199
|
preStatus: forecasts.map((row) => toForeignSettlementProtocolVerifyStatus(row.verifyStatus)).join(','),
|
|
203
|
-
seqVerifyStatus: flows.map((row) => toForeignSettlementProtocolVerifyStatus(row.verifyStatus)).join(','),
|
|
204
|
-
tranValueDates: flows.map((row) => toForeignSettlementOperationDate(row.valueDate)).join(','),
|
|
205
200
|
predValueDates: forecasts.map((row) => toForeignSettlementOperationDate(row.tranDate)).join(','),
|
|
201
|
+
...(flows.length > 0
|
|
202
|
+
? {
|
|
203
|
+
tranSeqIds: flows.map((row) => String(row.tranRefNo).trim()).join(','),
|
|
204
|
+
tranAmts: flows
|
|
205
|
+
.map((row) => toForeignSettlementOperationAmount(row.notVerifyAmt))
|
|
206
|
+
.join(','),
|
|
207
|
+
seqVerifyStatus: flows
|
|
208
|
+
.map((row) => toForeignSettlementProtocolVerifyStatus(row.verifyStatus))
|
|
209
|
+
.join(','),
|
|
210
|
+
tranValueDates: flows
|
|
211
|
+
.map((row) => toForeignSettlementOperationDate(row.valueDate))
|
|
212
|
+
.join(','),
|
|
213
|
+
}
|
|
214
|
+
: {}),
|
|
206
215
|
}
|
|
207
216
|
}
|
|
208
217
|
|
|
@@ -30,6 +30,7 @@ export type ForeignSettlementTableColumn = {
|
|
|
30
30
|
minWidth: number
|
|
31
31
|
format?: ForeignSettlementColumnFormat
|
|
32
32
|
defaultVisible?: boolean
|
|
33
|
+
solt?: boolean
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
/** 页面筛选表单使用语义化字段,提交接口前再转换成 TAM 字段名。 */
|
|
@@ -181,17 +182,17 @@ export type ForeignSettlementQueryResult<T> = {
|
|
|
181
182
|
totalPage: number
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
/** 120202002
|
|
185
|
+
/** 120202002 外币核销业务体:预报按流水号升序;未选流水时不传流水平行字段。 */
|
|
185
186
|
export type ForeignSettlementVerifyRequest = {
|
|
186
187
|
predIds: string
|
|
187
|
-
tranSeqIds: string
|
|
188
188
|
predAmts: string
|
|
189
189
|
verifyAmts: string
|
|
190
|
+
tranSeqIds?: string
|
|
190
191
|
/** 沿用旧字段名,实际传递各流水当前未核销金额 notVerifyAmt。 */
|
|
191
|
-
tranAmts
|
|
192
|
+
tranAmts?: string
|
|
192
193
|
preStatus: string
|
|
193
|
-
seqVerifyStatus
|
|
194
|
-
tranValueDates
|
|
194
|
+
seqVerifyStatus?: string
|
|
195
|
+
tranValueDates?: string
|
|
195
196
|
predValueDates: string
|
|
196
197
|
}
|
|
197
198
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ElMessage } from 'element-plus'
|
|
2
|
+
|
|
3
|
+
type ScopedMessageType = 'success' | 'warning' | 'info' | 'error'
|
|
4
|
+
|
|
5
|
+
type MessageHandle = {
|
|
6
|
+
close: () => void
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 只管理外币手工核销页面创建的消息提示。
|
|
11
|
+
* 页面停用时逐个关闭自己的消息,不调用 ElMessage.closeAll,避免误伤其他路由的提示。
|
|
12
|
+
*/
|
|
13
|
+
export function useScopedMessage(resolveAppendTo: () => HTMLElement | null) {
|
|
14
|
+
const activeHandles = new Set<MessageHandle>()
|
|
15
|
+
|
|
16
|
+
function show(type: ScopedMessageType, message: string) {
|
|
17
|
+
const appendTo = resolveAppendTo()
|
|
18
|
+
const pageContainer = appendTo?.closest(
|
|
19
|
+
'.foreign-currency-settlement-page[data-business-scope="foreign-currency-settlement"]',
|
|
20
|
+
)
|
|
21
|
+
if (!appendTo?.isConnected || !pageContainer?.getClientRects().length) return
|
|
22
|
+
|
|
23
|
+
let handle: MessageHandle | undefined
|
|
24
|
+
|
|
25
|
+
handle = ElMessage({
|
|
26
|
+
appendTo,
|
|
27
|
+
message,
|
|
28
|
+
type,
|
|
29
|
+
onClose: () => {
|
|
30
|
+
if (handle) activeHandles.delete(handle)
|
|
31
|
+
},
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
activeHandles.add(handle)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function closeAll() {
|
|
38
|
+
activeHandles.forEach((handle) => {
|
|
39
|
+
try {
|
|
40
|
+
handle.close()
|
|
41
|
+
} catch {
|
|
42
|
+
// 单条消息关闭失败不能阻断其余页面清理。
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
activeHandles.clear()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
success: (message: string) => show('success', message),
|
|
50
|
+
warning: (message: string) => show('warning', message),
|
|
51
|
+
info: (message: string) => show('info', message),
|
|
52
|
+
error: (message: string) => show('error', message),
|
|
53
|
+
closeAll,
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 348ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 370ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 353ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 379ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 323ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 443ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 386ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 381ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 407ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 350ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 401ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 367ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 375ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ 362ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
[ 345ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
2
|
-
[ 22430ms] [LOG] 预报信息查询条件 {tradeDate: 2026-07-01, direction: , businessType: , amountRange: Array(2), channel: } @ http://127.0.0.1:5173/src/views/ForecastInfo/components/ForecastInfoPanel.vue?t=1783586394399:295
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
[ 432ms] [LOG] 🍍 "forecastInfo" store installed 🆕 @ http://127.0.0.1:5173/node_modules/.vite/deps/pinia.js?v=d77c9587:3788
|
|
2
|
-
[ 17163ms] [LOG] 预报信息查询条件 {busiType: , clientName: , competName: , endTransAmt: , groundBranch: } @ http://127.0.0.1:5173/src/views/ForecastInfo/components/ForecastInfoPanel.vue?t=1783589135212:324
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
- generic [active] [ref=e1]:
|
|
2
|
-
- generic [ref=e3]:
|
|
3
|
-
- complementary [ref=e4]:
|
|
4
|
-
- generic [ref=e6]: 管理系统
|
|
5
|
-
- menubar [ref=e10]:
|
|
6
|
-
- menuitem "首页" [ref=e11] [cursor=pointer]:
|
|
7
|
-
- img [ref=e13]
|
|
8
|
-
- generic [ref=e15]: 首页
|
|
9
|
-
- menuitem "仪表盘" [ref=e16] [cursor=pointer]:
|
|
10
|
-
- img [ref=e18]
|
|
11
|
-
- generic [ref=e22]: 仪表盘
|
|
12
|
-
- menuitem "用户管理" [ref=e23] [cursor=pointer]:
|
|
13
|
-
- img [ref=e25]
|
|
14
|
-
- generic [ref=e27]: 用户管理
|
|
15
|
-
- menuitem "表单页面" [ref=e28] [cursor=pointer]:
|
|
16
|
-
- img [ref=e30]
|
|
17
|
-
- generic [ref=e32]: 表单页面
|
|
18
|
-
- menuitem "高级表格" [ref=e33] [cursor=pointer]:
|
|
19
|
-
- img [ref=e35]
|
|
20
|
-
- generic [ref=e37]: 高级表格
|
|
21
|
-
- menuitem "循环表格" [ref=e38] [cursor=pointer]:
|
|
22
|
-
- img [ref=e40]
|
|
23
|
-
- generic [ref=e42]: 循环表格
|
|
24
|
-
- menuitem "员工管理" [ref=e43] [cursor=pointer]:
|
|
25
|
-
- img [ref=e45]
|
|
26
|
-
- generic [ref=e47]: 员工管理
|
|
27
|
-
- menuitem "千分位输入" [ref=e48] [cursor=pointer]:
|
|
28
|
-
- img [ref=e50]
|
|
29
|
-
- generic [ref=e52]: 千分位输入
|
|
30
|
-
- menuitem "数字区间" [ref=e53] [cursor=pointer]:
|
|
31
|
-
- img [ref=e55]
|
|
32
|
-
- generic [ref=e57]: 数字区间
|
|
33
|
-
- menuitem "头寸预报" [ref=e58] [cursor=pointer]:
|
|
34
|
-
- img [ref=e60]
|
|
35
|
-
- generic [ref=e62]: 头寸预报
|
|
36
|
-
- menuitem "头寸预报执行" [ref=e63] [cursor=pointer]:
|
|
37
|
-
- img [ref=e65]
|
|
38
|
-
- generic [ref=e67]: 头寸预报执行
|
|
39
|
-
- menuitem "预报信息" [ref=e68] [cursor=pointer]:
|
|
40
|
-
- img [ref=e70]
|
|
41
|
-
- generic [ref=e72]: 预报信息
|
|
42
|
-
- menuitem "总行管理员首页" [ref=e73] [cursor=pointer]:
|
|
43
|
-
- img [ref=e75]
|
|
44
|
-
- generic [ref=e77]: 总行管理员首页
|
|
45
|
-
- menuitem "资金驾驶舱" [ref=e78] [cursor=pointer]:
|
|
46
|
-
- img [ref=e80]
|
|
47
|
-
- generic [ref=e82]: 资金驾驶舱
|
|
48
|
-
- menuitem "通知公告" [ref=e83] [cursor=pointer]:
|
|
49
|
-
- img [ref=e85]
|
|
50
|
-
- generic [ref=e89]: 通知公告
|
|
51
|
-
- menuitem "占位符页面" [ref=e90] [cursor=pointer]:
|
|
52
|
-
- img [ref=e92]
|
|
53
|
-
- generic [ref=e94]: 占位符页面
|
|
54
|
-
- menuitem "关于" [ref=e95] [cursor=pointer]:
|
|
55
|
-
- img [ref=e97]
|
|
56
|
-
- generic [ref=e99]: 关于
|
|
57
|
-
- generic [ref=e100]:
|
|
58
|
-
- generic [ref=e101]:
|
|
59
|
-
- img [ref=e103] [cursor=pointer]
|
|
60
|
-
- button "管理员" [ref=e106] [cursor=pointer]
|
|
61
|
-
- main [ref=e107]
|
|
62
|
-
- generic [ref=e108]:
|
|
63
|
-
- generic "Toggle devtools panel" [ref=e109] [cursor=pointer]:
|
|
64
|
-
- img [ref=e110]
|
|
65
|
-
- generic "Toggle Component Inspector" [ref=e115] [cursor=pointer]:
|
|
66
|
-
- img [ref=e116]
|