verce-vue-test 0.0.84 → 0.0.86
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/App.vue +8 -0
- package/src/components/element-rewrite/ElTablePro.vue +13 -0
- package/src/router/index.ts +10 -0
- package/src/views/LoginView.vue +11 -1
- package/src/views/foreign-currency-authorization/adapter.ts +70 -0
- package/src/views/foreign-currency-authorization/api.ts +32 -0
- package/src/views/foreign-currency-authorization/index.vue +937 -0
- package/src/views/foreign-currency-authorization/options.ts +78 -0
- package/src/views/foreign-currency-authorization/types.ts +114 -0
- package/src/views/foreign-currency-settlement/api.ts +77 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +515 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +549 -0
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +81 -0
- package/src/views/foreign-currency-settlement/index.vue +201 -0
- package/src/views/foreign-currency-settlement/options.ts +145 -0
- package/src/views/foreign-currency-settlement/types.ts +182 -0
- package/src/views/foreign-currency-settlement/utils.ts +109 -0
- package/src/views/rmb-position-estimation/README.md +7 -4
- package/src/views/rmb-position-estimation/index.vue +56 -22
- package/copy-path-0.1.2.vsix +0 -0
- package/src/de.vue +0 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -44,6 +44,8 @@ const searchableMenus: MenuSearchItem[] = [
|
|
|
44
44
|
{ value: '分行看板', path: '/position-forecast' },
|
|
45
45
|
{ value: '人民币头寸预报', path: '/rmb-position-forecast' },
|
|
46
46
|
{ value: '外币头寸预报', path: '/foreign-currency-position-forecast' },
|
|
47
|
+
{ value: '外币授权', path: '/foreign-currency-authorization' },
|
|
48
|
+
{ value: '外币手工核销', path: '/foreign-currency-settlement' },
|
|
47
49
|
{ value: '预报员页看板', path: '/position-forecast-execution' },
|
|
48
50
|
{ value: '人民币手工核销', path: '/forecast-info' },
|
|
49
51
|
{ value: '人民币头寸匡算', path: '/rmb-position-estimation' },
|
|
@@ -172,6 +174,12 @@ function toggleCollapse() {
|
|
|
172
174
|
<el-menu-item index="/foreign-currency-position-forecast">
|
|
173
175
|
<span>外币头寸预报</span>
|
|
174
176
|
</el-menu-item>
|
|
177
|
+
<el-menu-item index="/foreign-currency-authorization">
|
|
178
|
+
<span>外币授权</span>
|
|
179
|
+
</el-menu-item>
|
|
180
|
+
<el-menu-item index="/foreign-currency-settlement">
|
|
181
|
+
<span>外币手工核销</span>
|
|
182
|
+
</el-menu-item>
|
|
175
183
|
</el-sub-menu>
|
|
176
184
|
<el-menu-item index="/notice-announcement">
|
|
177
185
|
<el-icon><Bell /></el-icon>
|
|
@@ -36,6 +36,8 @@ const props = withDefaults(
|
|
|
36
36
|
tableKey?: string
|
|
37
37
|
// 完全自定义缓存 key,优先级最高
|
|
38
38
|
columnStorageKey?: string
|
|
39
|
+
// 列配置弹窗挂载节点,用于页面级浮层隔离
|
|
40
|
+
appendTo?: string | HTMLElement
|
|
39
41
|
// 是否开启列配置功能
|
|
40
42
|
columnConfig?: boolean
|
|
41
43
|
// 是否持久化列配置到本地存储
|
|
@@ -467,6 +469,13 @@ const cancelColumnConfig = () => {
|
|
|
467
469
|
dialogVisible.value = false
|
|
468
470
|
}
|
|
469
471
|
|
|
472
|
+
/** 供路由页在离开、停用或卸载前关闭组件内部的列配置弹窗。 */
|
|
473
|
+
const closeTransientOverlays = () => {
|
|
474
|
+
cancelColumnConfig()
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
defineExpose({ closeTransientOverlays })
|
|
478
|
+
|
|
470
479
|
/**
|
|
471
480
|
* 初始化列配置
|
|
472
481
|
*/
|
|
@@ -563,6 +572,9 @@ initColumns()
|
|
|
563
572
|
v-for="column in visibleColumns"
|
|
564
573
|
:key="column.key"
|
|
565
574
|
/>
|
|
575
|
+
<template v-if="slots.empty" #empty>
|
|
576
|
+
<slot name="empty" />
|
|
577
|
+
</template>
|
|
566
578
|
</el-table>
|
|
567
579
|
|
|
568
580
|
<!-- 分页组件 -->
|
|
@@ -583,6 +595,7 @@ initColumns()
|
|
|
583
595
|
v-model="dialogVisible"
|
|
584
596
|
title="表格列配置"
|
|
585
597
|
width="min(640px, calc(100vw - 32px))"
|
|
598
|
+
:append-to="appendTo || undefined"
|
|
586
599
|
:close-on-click-modal="false"
|
|
587
600
|
@closed="resetColumnDragState"
|
|
588
601
|
>
|
package/src/router/index.ts
CHANGED
|
@@ -80,6 +80,16 @@ const router = createRouter({
|
|
|
80
80
|
name: 'foreignCurrencyPositionForecast',
|
|
81
81
|
component: () => import('../views/foreign-currency-position-forecast/index.vue'),
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
path: '/foreign-currency-authorization',
|
|
85
|
+
name: 'foreignCurrencyAuthorization',
|
|
86
|
+
component: () => import('../views/foreign-currency-authorization/index.vue'),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
path: '/foreign-currency-settlement',
|
|
90
|
+
name: 'foreignCurrencySettlement',
|
|
91
|
+
component: () => import('../views/foreign-currency-settlement/index.vue'),
|
|
92
|
+
},
|
|
83
93
|
{
|
|
84
94
|
path: '/position-forecast-execution',
|
|
85
95
|
name: 'positionForecastExecution',
|
package/src/views/LoginView.vue
CHANGED
|
@@ -36,6 +36,7 @@ const handleLogin = async () => {
|
|
|
36
36
|
<el-form ref="formRef" :model="loginStore" :rules="rules" size="large">
|
|
37
37
|
<el-form-item prop="username">
|
|
38
38
|
<el-input
|
|
39
|
+
id="login-username-input"
|
|
39
40
|
v-model="loginStore.username"
|
|
40
41
|
placeholder="请输入用户名"
|
|
41
42
|
:prefix-icon="User"
|
|
@@ -43,6 +44,7 @@ const handleLogin = async () => {
|
|
|
43
44
|
</el-form-item>
|
|
44
45
|
<el-form-item prop="password">
|
|
45
46
|
<el-input
|
|
47
|
+
id="login-password-input"
|
|
46
48
|
v-model="loginStore.password"
|
|
47
49
|
type="password"
|
|
48
50
|
placeholder="请输入密码"
|
|
@@ -54,7 +56,15 @@ const handleLogin = async () => {
|
|
|
54
56
|
<el-checkbox v-model="loginStore.remember">记住我</el-checkbox>
|
|
55
57
|
</el-form-item>
|
|
56
58
|
<el-form-item>
|
|
57
|
-
<el-button
|
|
59
|
+
<el-button
|
|
60
|
+
id="login-submit-button"
|
|
61
|
+
type="primary"
|
|
62
|
+
class="login-btn"
|
|
63
|
+
:loading="loginStore.loading"
|
|
64
|
+
@click="handleLogin"
|
|
65
|
+
>
|
|
66
|
+
登录
|
|
67
|
+
</el-button>
|
|
58
68
|
</el-form-item>
|
|
59
69
|
</el-form>
|
|
60
70
|
</div>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ForeignAuthorizationBusinessChannel,
|
|
3
|
+
ForeignAuthorizationBusinessType,
|
|
4
|
+
ForeignAuthorizationCustomerKind,
|
|
5
|
+
ForeignAuthorizationIdType,
|
|
6
|
+
ForeignAuthorizationReturnFlag,
|
|
7
|
+
ForeignAuthorizationYesNo,
|
|
8
|
+
ForeignCurrencyAuthorizationApiRow,
|
|
9
|
+
ForeignCurrencyAuthorizationRow,
|
|
10
|
+
} from './types'
|
|
11
|
+
|
|
12
|
+
function enumValue<T extends string>(value: unknown, values: readonly T[], fallback: T): T {
|
|
13
|
+
const normalized = String(value ?? '') as T
|
|
14
|
+
return values.includes(normalized) ? normalized : fallback
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function reviewStatus(row: ForeignCurrencyAuthorizationApiRow) {
|
|
18
|
+
if (row.oposStausCode === '00') return 'approved' as const
|
|
19
|
+
if (row.oposStausCode === '99') return 'rejected' as const
|
|
20
|
+
return row.author ? 'approved' as const : 'pending' as const
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** 将 140207001 原始协议行整理为页面表格行。 */
|
|
24
|
+
export function toAuthorizationRow(
|
|
25
|
+
row: ForeignCurrencyAuthorizationApiRow,
|
|
26
|
+
): ForeignCurrencyAuthorizationRow {
|
|
27
|
+
const amount = Number(String(row.forecastAmt ?? '').replaceAll(',', ''))
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
id: String(row.id ?? ''),
|
|
31
|
+
custKind: enumValue<ForeignAuthorizationCustomerKind>(row.custKind, ['01', '02', '03'], '01'),
|
|
32
|
+
refType: enumValue<ForeignAuthorizationBusinessType>(
|
|
33
|
+
row.refType,
|
|
34
|
+
['01', '02', '03', '04', '05', '06', '07'],
|
|
35
|
+
'01',
|
|
36
|
+
),
|
|
37
|
+
bizarc: enumValue<ForeignAuthorizationBusinessChannel>(row.bizarc, ['10', '50', '70'], '10'),
|
|
38
|
+
rdfibic: String(row.rdfibic ?? ''),
|
|
39
|
+
rtnFlag: enumValue<ForeignAuthorizationReturnFlag>(row.rtnFlag, ['01', '02'], '01'),
|
|
40
|
+
oriInnerrefno: String(row.oriInnerrefno ?? ''),
|
|
41
|
+
currency: String(row.currency ?? ''),
|
|
42
|
+
nostro: String(row.nostro ?? ''),
|
|
43
|
+
forecastAmt: Number.isFinite(amount) ? amount : 0,
|
|
44
|
+
valueDate: String(row.valueDate ?? ''),
|
|
45
|
+
planDate: String(row.planDate ?? ''),
|
|
46
|
+
forecastDate: String(row.forecastDate ?? ''),
|
|
47
|
+
idType: enumValue<ForeignAuthorizationIdType>(
|
|
48
|
+
row.idType,
|
|
49
|
+
['0', '1', '2', '3', '4', '5', '6', '7'],
|
|
50
|
+
'0',
|
|
51
|
+
),
|
|
52
|
+
custCode: String(row.custCode ?? ''),
|
|
53
|
+
custName: String(row.custName ?? ''),
|
|
54
|
+
orgId: String(row.orgId ?? ''),
|
|
55
|
+
orgName: String(row.orgName ?? row.orgId ?? ''),
|
|
56
|
+
pyeBankAgt: String(row.pyeBankAgt ?? ''),
|
|
57
|
+
pyeaccBic: String(row.pyeaccBic ?? ''),
|
|
58
|
+
pyeBankName: String(row.pyeBankName ?? ''),
|
|
59
|
+
isEmail: enumValue<ForeignAuthorizationYesNo>(row.isEmail, ['0', '1'], '0'),
|
|
60
|
+
mulcurflag: enumValue<ForeignAuthorizationYesNo>(row.mulcurflag, ['0', '1'], '0'),
|
|
61
|
+
ftzFlag: enumValue<ForeignAuthorizationYesNo>(row.ftzFlag, ['0', '1'], '0'),
|
|
62
|
+
linkMan: String(row.linkMan ?? ''),
|
|
63
|
+
linkWay: String(row.linkWay ?? ''),
|
|
64
|
+
supervisor: String(row.supervisor ?? ''),
|
|
65
|
+
author: String(row.author ?? ''),
|
|
66
|
+
reviewStatus: reviewStatus(row),
|
|
67
|
+
rejectReason: String(row.refuseRemark ?? ''),
|
|
68
|
+
posRemark: String(row.posRemark ?? ''),
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import baseHttpClient, {
|
|
2
|
+
type HttpRequestOptions,
|
|
3
|
+
type TamResponse,
|
|
4
|
+
} from '@/utils/baseHttpClient'
|
|
5
|
+
import type {
|
|
6
|
+
ForeignCurrencyAuthorizationFilter,
|
|
7
|
+
ForeignCurrencyAuthorizationQueryResponseBody,
|
|
8
|
+
ForeignCurrencyAuthorizationReviewRequestBody,
|
|
9
|
+
} from './types'
|
|
10
|
+
|
|
11
|
+
/** 外币授权页面接口入口;TAM 公共报文头由 baseHttpClient 自动补齐。 */
|
|
12
|
+
const API = {
|
|
13
|
+
queryAPI: (
|
|
14
|
+
params: ForeignCurrencyAuthorizationFilter,
|
|
15
|
+
options?: HttpRequestOptions,
|
|
16
|
+
) => baseHttpClient.post<TamResponse<ForeignCurrencyAuthorizationQueryResponseBody>>(
|
|
17
|
+
'/TAM/0001/140207001',
|
|
18
|
+
params,
|
|
19
|
+
options,
|
|
20
|
+
),
|
|
21
|
+
|
|
22
|
+
reviewAPI: (
|
|
23
|
+
params: ForeignCurrencyAuthorizationReviewRequestBody,
|
|
24
|
+
options?: HttpRequestOptions,
|
|
25
|
+
) => baseHttpClient.post<TamResponse<Record<string, unknown>>>(
|
|
26
|
+
'/TAM/0001/120207001',
|
|
27
|
+
params,
|
|
28
|
+
options,
|
|
29
|
+
),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default API
|