verce-vue-test 0.0.128 → 0.0.130
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/router/index.ts +2 -0
- package/src/utils/baseHttpClient.ts +38 -6
- package/src/views/HomeView.vue +14 -202
- package/src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue +2 -10
- package/src/views/foreign-currency-position-forecast/index.vue +12 -24
- package/src/views/rmb-position-estimation/DetailedList.vue +1 -21
- package/src/views/rmb-position-estimation/detail-routes.ts +41 -0
- package/src/views/rmb-position-estimation/detail-titles.json +44 -0
- package/src/views/rmb-position-estimation/index.vue +63 -55
- package/src/views/rmb-position-estimation/views/C10.vue +12 -0
- package/src/views/rmb-position-estimation/views/C11.vue +12 -0
- package/src/views/rmb-position-estimation/views/C12.vue +12 -0
- package/src/views/rmb-position-estimation/views/C13.vue +12 -0
- package/src/views/rmb-position-estimation/views/C14.vue +12 -0
- package/src/views/rmb-position-estimation/views/C15.vue +12 -0
- package/src/views/rmb-position-estimation/views/C16.vue +12 -0
- package/src/views/rmb-position-estimation/views/C17.vue +12 -0
- package/src/views/rmb-position-estimation/views/C18.vue +12 -0
- package/src/views/rmb-position-estimation/views/C19.vue +12 -0
- package/src/views/rmb-position-estimation/views/C20.vue +12 -0
- package/src/views/rmb-position-estimation/views/C24.vue +12 -0
- package/src/views/rmb-position-estimation/views/C25.vue +12 -0
- package/src/views/rmb-position-estimation/views/C26.vue +12 -0
- package/src/views/rmb-position-estimation/views/C31.vue +12 -0
- package/src/views/rmb-position-estimation/views/C32.vue +12 -0
- package/src/views/rmb-position-estimation/views/C5.vue +12 -0
- package/src/views/rmb-position-estimation/views/C6.vue +12 -0
- package/src/views/rmb-position-estimation/views/C7.vue +12 -0
- package/src/views/rmb-position-estimation/views/C8.vue +12 -0
- package/src/views/rmb-position-estimation/views/C9.vue +12 -0
- package/src/views/rmb-position-estimation/views/D10.vue +12 -0
- package/src/views/rmb-position-estimation/views/D11.vue +12 -0
- package/src/views/rmb-position-estimation/views/D12.vue +12 -0
- package/src/views/rmb-position-estimation/views/D13.vue +12 -0
- package/src/views/rmb-position-estimation/views/D14.vue +12 -0
- package/src/views/rmb-position-estimation/views/D15.vue +12 -0
- package/src/views/rmb-position-estimation/views/D16.vue +12 -0
- package/src/views/rmb-position-estimation/views/D17.vue +12 -0
- package/src/views/rmb-position-estimation/views/D18.vue +12 -0
- package/src/views/rmb-position-estimation/views/D19.vue +12 -0
- package/src/views/rmb-position-estimation/views/D20.vue +12 -0
- package/src/views/rmb-position-estimation/views/D24.vue +12 -0
- package/src/views/rmb-position-estimation/views/D25.vue +12 -0
- package/src/views/rmb-position-estimation/views/D26.vue +12 -0
- package/src/views/rmb-position-estimation/views/D31.vue +12 -0
- package/src/views/rmb-position-estimation/views/D32.vue +12 -0
- package/src/views/rmb-position-estimation/views/D5.vue +12 -0
- package/src/views/rmb-position-estimation/views/D6.vue +12 -0
- package/src/views/rmb-position-estimation/views/D7.vue +12 -0
- package/src/views/rmb-position-estimation/views/D8.vue +12 -0
- package/src/views/rmb-position-estimation/views/D9.vue +12 -0
- package/src/views/rmb-position-forecast/api.ts +18 -29
- package/src/views/rmb-position-forecast/components/RmbPositionForecastEditor.vue +318 -71
- package/src/views/rmb-position-forecast/detail.vue +9 -10
- package/src/views/rmb-position-forecast/form.vue +22 -25
- package/src/views/rmb-position-forecast/index.vue +291 -466
- package/src/views/rmb-position-forecast/runtime.ts +21 -0
- package/file-note-assistant-0.1.5.vsix +0 -0
package/package.json
CHANGED
package/src/router/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
2
2
|
import HomeView from '../views/HomeView.vue'
|
|
3
|
+
import { rmbPositionEstimationDetailRoutes } from '../views/rmb-position-estimation/detail-routes'
|
|
3
4
|
|
|
4
5
|
const router = createRouter({
|
|
5
6
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
@@ -147,6 +148,7 @@ const router = createRouter({
|
|
|
147
148
|
name: 'rmbPositionEstimation',
|
|
148
149
|
component: () => import('../views/rmb-position-estimation/index.vue'),
|
|
149
150
|
},
|
|
151
|
+
...rmbPositionEstimationDetailRoutes,
|
|
150
152
|
{
|
|
151
153
|
path: '/rmb-estimation',
|
|
152
154
|
name: 'rmbEstimation',
|
|
@@ -11,8 +11,13 @@ export type TamRequestHeadOptions = {
|
|
|
11
11
|
pageSize?: number | string
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export type TamRequestAppHeadOptions = {
|
|
15
|
+
opType?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
export type HttpRequestOptions = Omit<RequestInit, 'body' | 'method'> & {
|
|
15
19
|
tamHead?: TamRequestHeadOptions
|
|
20
|
+
tamAppHead?: TamRequestAppHeadOptions
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
export type TamResponse<T> = {
|
|
@@ -55,13 +60,40 @@ function isTamPath(path: string) {
|
|
|
55
60
|
return path.startsWith('/TAM/')
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
function
|
|
63
|
+
function splitTamRequestData(data: unknown) {
|
|
64
|
+
if (!data || typeof data !== 'object' || Array.isArray(data)) {
|
|
65
|
+
return { body: data, headOptions: {} }
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const {
|
|
69
|
+
pageIndex,
|
|
70
|
+
pageSize,
|
|
71
|
+
...body
|
|
72
|
+
} = data as Record<string, unknown>
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
body,
|
|
76
|
+
headOptions: {
|
|
77
|
+
pageIndex: pageIndex as number | string | undefined,
|
|
78
|
+
pageSize: pageSize as number | string | undefined,
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function createTamRequest(
|
|
84
|
+
path: string,
|
|
85
|
+
data: unknown,
|
|
86
|
+
headOptions: TamRequestHeadOptions = {},
|
|
87
|
+
appHeadOptions: TamRequestAppHeadOptions = {},
|
|
88
|
+
) {
|
|
59
89
|
const now = new Date()
|
|
90
|
+
const { body, headOptions: dataHeadOptions } = splitTamRequestData(data)
|
|
91
|
+
const mergedHeadOptions = { ...dataHeadOptions, ...headOptions }
|
|
60
92
|
|
|
61
93
|
return {
|
|
62
94
|
appHead: {
|
|
63
95
|
fileName: '',
|
|
64
|
-
opType: '',
|
|
96
|
+
opType: appHeadOptions.opType ?? '',
|
|
65
97
|
ip: tamClientIp,
|
|
66
98
|
},
|
|
67
99
|
head: {
|
|
@@ -71,8 +103,8 @@ function createTamRequest(path: string, body: unknown, headOptions: TamRequestHe
|
|
|
71
103
|
tranCode: path,
|
|
72
104
|
tranDate: compactDate(now),
|
|
73
105
|
tranTimestamp: compactTime(now),
|
|
74
|
-
pageSize: String(
|
|
75
|
-
pageIndex: String(
|
|
106
|
+
pageSize: String(mergedHeadOptions.pageSize ?? '10'),
|
|
107
|
+
pageIndex: String(mergedHeadOptions.pageIndex ?? '1'),
|
|
76
108
|
traceId: '',
|
|
77
109
|
spanId: '',
|
|
78
110
|
userId: tamUserId,
|
|
@@ -107,7 +139,7 @@ async function request<T>(
|
|
|
107
139
|
options: HttpRequestOptions = {},
|
|
108
140
|
): Promise<T> {
|
|
109
141
|
const tamRequest = isTamPath(path)
|
|
110
|
-
const { tamHead, ...fetchOptions } = options
|
|
142
|
+
const { tamHead, tamAppHead, ...fetchOptions } = options
|
|
111
143
|
const response = await fetch(resolveUrl(path), {
|
|
112
144
|
...fetchOptions,
|
|
113
145
|
method,
|
|
@@ -117,7 +149,7 @@ async function request<T>(
|
|
|
117
149
|
},
|
|
118
150
|
body: data === undefined
|
|
119
151
|
? undefined
|
|
120
|
-
: JSON.stringify(tamRequest ? createTamRequest(path, data, tamHead) : data),
|
|
152
|
+
: JSON.stringify(tamRequest ? createTamRequest(path, data, tamHead, tamAppHead) : data),
|
|
121
153
|
})
|
|
122
154
|
|
|
123
155
|
let payload: unknown
|
package/src/views/HomeView.vue
CHANGED
|
@@ -5,25 +5,12 @@ import { useRouter } from 'vue-router'
|
|
|
5
5
|
import {
|
|
6
6
|
Bell,
|
|
7
7
|
Clock,
|
|
8
|
-
Compass,
|
|
9
|
-
Connection,
|
|
10
8
|
DataLine,
|
|
11
9
|
HomeFilled,
|
|
12
10
|
Lock,
|
|
13
|
-
School,
|
|
14
11
|
TrendCharts,
|
|
15
12
|
} from '@element-plus/icons-vue'
|
|
16
13
|
|
|
17
|
-
import homePageBg from '@/assets/home/optimized/home-page-bg.jpg'
|
|
18
|
-
import cardRmbBg from '@/assets/home/optimized/card-rmb-great-wall.jpg'
|
|
19
|
-
import cardUsdBg from '@/assets/home/optimized/card-usd-liberty.jpg'
|
|
20
|
-
import cardClearingBg from '@/assets/home/optimized/card-clearing-city.jpg'
|
|
21
|
-
import cardEurBg from '@/assets/home/optimized/card-eur-church.jpg'
|
|
22
|
-
import cardCrossBorderBg from '@/assets/home/optimized/card-cross-border-map.jpg'
|
|
23
|
-
import cardHkdBg from '@/assets/home/optimized/card-hkd-skyline.jpg'
|
|
24
|
-
import cardDigitalBg from '@/assets/home/optimized/card-digital-currency.jpg'
|
|
25
|
-
import cardJpyBg from '@/assets/home/optimized/card-jpy-fuji.jpg'
|
|
26
|
-
|
|
27
14
|
/** 金额在卡片上的展示结构,整数和小数分开渲染。 */
|
|
28
15
|
type HomeBalanceAmount = {
|
|
29
16
|
amount: string
|
|
@@ -43,7 +30,6 @@ type ScopedBalanceAmount = HomeBalanceAmount & {
|
|
|
43
30
|
* 注意:
|
|
44
31
|
* - id 用于按卡片更新金额;接口字段由调用方自己取值。
|
|
45
32
|
* - amount / decimal 分开存放,是为了让整数位和小数位在视觉上使用不同字号。
|
|
46
|
-
* - background / accent 系列字段只负责视觉,不参与接口转换。
|
|
47
33
|
*/
|
|
48
34
|
type BalanceCard = {
|
|
49
35
|
id: string
|
|
@@ -52,15 +38,6 @@ type BalanceCard = {
|
|
|
52
38
|
decimal: string
|
|
53
39
|
balances?: ScopedBalanceAmount[]
|
|
54
40
|
unit: string
|
|
55
|
-
symbol?: string
|
|
56
|
-
icon?: Component
|
|
57
|
-
iconSize?: 'normal' | 'compact'
|
|
58
|
-
background: string
|
|
59
|
-
accent: string
|
|
60
|
-
accentDeep: string
|
|
61
|
-
accentSoft: string
|
|
62
|
-
border: string
|
|
63
|
-
glow: string
|
|
64
41
|
}
|
|
65
42
|
|
|
66
43
|
/** 首页右侧快捷菜单项,仅负责本页快捷入口展示和路由跳转。 */
|
|
@@ -88,13 +65,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
88
65
|
amount: '--',
|
|
89
66
|
decimal: '.--',
|
|
90
67
|
unit: 'CNY',
|
|
91
|
-
symbol: '¥',
|
|
92
|
-
background: cardRmbBg,
|
|
93
|
-
accent: '#f11b1f',
|
|
94
|
-
accentDeep: '#c90c13',
|
|
95
|
-
accentSoft: '#ff5d64',
|
|
96
|
-
border: 'rgba(237, 47, 49, 0.56)',
|
|
97
|
-
glow: 'rgba(224, 20, 26, 0.34)',
|
|
98
68
|
},
|
|
99
69
|
{
|
|
100
70
|
id: 'usd',
|
|
@@ -106,13 +76,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
106
76
|
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
107
77
|
],
|
|
108
78
|
unit: 'USD',
|
|
109
|
-
symbol: '$',
|
|
110
|
-
background: cardUsdBg,
|
|
111
|
-
accent: '#159143',
|
|
112
|
-
accentDeep: '#05752f',
|
|
113
|
-
accentSoft: '#3ecf74',
|
|
114
|
-
border: 'rgba(25, 177, 96, 0.58)',
|
|
115
|
-
glow: 'rgba(19, 151, 77, 0.28)',
|
|
116
79
|
},
|
|
117
80
|
{
|
|
118
81
|
id: 'clearing',
|
|
@@ -120,13 +83,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
120
83
|
amount: '--',
|
|
121
84
|
decimal: '.--',
|
|
122
85
|
unit: 'CNY',
|
|
123
|
-
icon: School,
|
|
124
|
-
background: cardClearingBg,
|
|
125
|
-
accent: '#1867ee',
|
|
126
|
-
accentDeep: '#0752d3',
|
|
127
|
-
accentSoft: '#4aa4ff',
|
|
128
|
-
border: 'rgba(35, 121, 239, 0.58)',
|
|
129
|
-
glow: 'rgba(0, 91, 222, 0.3)',
|
|
130
86
|
},
|
|
131
87
|
{
|
|
132
88
|
id: 'eur',
|
|
@@ -138,13 +94,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
138
94
|
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
139
95
|
],
|
|
140
96
|
unit: 'EUR',
|
|
141
|
-
symbol: '€',
|
|
142
|
-
background: cardEurBg,
|
|
143
|
-
accent: '#135fdc',
|
|
144
|
-
accentDeep: '#084cc7',
|
|
145
|
-
accentSoft: '#56a4ff',
|
|
146
|
-
border: 'rgba(28, 112, 232, 0.58)',
|
|
147
|
-
glow: 'rgba(9, 90, 215, 0.28)',
|
|
148
97
|
},
|
|
149
98
|
{
|
|
150
99
|
id: 'cross-border-rmb',
|
|
@@ -152,13 +101,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
152
101
|
amount: '--',
|
|
153
102
|
decimal: '.--',
|
|
154
103
|
unit: 'CNY',
|
|
155
|
-
icon: Compass,
|
|
156
|
-
background: cardCrossBorderBg,
|
|
157
|
-
accent: '#05879b',
|
|
158
|
-
accentDeep: '#056d80',
|
|
159
|
-
accentSoft: '#23c2d0',
|
|
160
|
-
border: 'rgba(0, 159, 181, 0.54)',
|
|
161
|
-
glow: 'rgba(0, 136, 160, 0.28)',
|
|
162
104
|
},
|
|
163
105
|
{
|
|
164
106
|
id: 'hkd',
|
|
@@ -170,14 +112,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
170
112
|
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
171
113
|
],
|
|
172
114
|
unit: 'HKD',
|
|
173
|
-
symbol: 'HK$',
|
|
174
|
-
iconSize: 'compact',
|
|
175
|
-
background: cardHkdBg,
|
|
176
|
-
accent: '#ee7600',
|
|
177
|
-
accentDeep: '#d35a00',
|
|
178
|
-
accentSoft: '#ffab33',
|
|
179
|
-
border: 'rgba(247, 136, 20, 0.58)',
|
|
180
|
-
glow: 'rgba(222, 105, 0, 0.27)',
|
|
181
115
|
},
|
|
182
116
|
{
|
|
183
117
|
id: 'digital-currency',
|
|
@@ -185,13 +119,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
185
119
|
amount: '--',
|
|
186
120
|
decimal: '.--',
|
|
187
121
|
unit: 'CNY',
|
|
188
|
-
icon: Connection,
|
|
189
|
-
background: cardDigitalBg,
|
|
190
|
-
accent: '#6a2ad4',
|
|
191
|
-
accentDeep: '#5520b7',
|
|
192
|
-
accentSoft: '#9d62f0',
|
|
193
|
-
border: 'rgba(119, 65, 221, 0.56)',
|
|
194
|
-
glow: 'rgba(96, 46, 197, 0.28)',
|
|
195
122
|
},
|
|
196
123
|
{
|
|
197
124
|
id: 'jpy',
|
|
@@ -203,13 +130,6 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
203
130
|
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
204
131
|
],
|
|
205
132
|
unit: 'JPY',
|
|
206
|
-
symbol: '¥',
|
|
207
|
-
background: cardJpyBg,
|
|
208
|
-
accent: '#6629c8',
|
|
209
|
-
accentDeep: '#5420af',
|
|
210
|
-
accentSoft: '#9359ec',
|
|
211
|
-
border: 'rgba(115, 63, 216, 0.56)',
|
|
212
|
-
glow: 'rgba(88, 41, 191, 0.27)',
|
|
213
133
|
},
|
|
214
134
|
])
|
|
215
135
|
|
|
@@ -331,11 +251,7 @@ function addThousands(value: string) {
|
|
|
331
251
|
</script>
|
|
332
252
|
|
|
333
253
|
<template>
|
|
334
|
-
<main
|
|
335
|
-
class="balance-home"
|
|
336
|
-
:style="{ '--home-bg': `url(${homePageBg})` }"
|
|
337
|
-
aria-label="账户余额总览"
|
|
338
|
-
>
|
|
254
|
+
<main class="balance-home" aria-label="账户余额总览">
|
|
339
255
|
<div class="home-layout">
|
|
340
256
|
<section class="balance-panel">
|
|
341
257
|
<header class="panel-head">
|
|
@@ -361,38 +277,7 @@ function addThousands(value: string) {
|
|
|
361
277
|
:key="card.id"
|
|
362
278
|
class="balance-card"
|
|
363
279
|
:class="{ 'is-long-amount': isLongAmount(card) }"
|
|
364
|
-
:style="{
|
|
365
|
-
'--accent': card.accent,
|
|
366
|
-
'--accent-deep': card.accentDeep,
|
|
367
|
-
'--accent-soft': card.accentSoft,
|
|
368
|
-
'--card-border': card.border,
|
|
369
|
-
'--card-glow': card.glow,
|
|
370
|
-
}"
|
|
371
280
|
>
|
|
372
|
-
<img
|
|
373
|
-
class="card-bg"
|
|
374
|
-
:src="card.background"
|
|
375
|
-
alt=""
|
|
376
|
-
aria-hidden="true"
|
|
377
|
-
width="1086"
|
|
378
|
-
height="362"
|
|
379
|
-
decoding="async"
|
|
380
|
-
fetchpriority="low"
|
|
381
|
-
/>
|
|
382
|
-
|
|
383
|
-
<div class="badge-shell" aria-hidden="true">
|
|
384
|
-
<div class="currency-badge">
|
|
385
|
-
<span
|
|
386
|
-
v-if="card.symbol"
|
|
387
|
-
class="currency-symbol"
|
|
388
|
-
:class="{ 'is-compact': card.iconSize === 'compact' }"
|
|
389
|
-
>
|
|
390
|
-
{{ card.symbol }}
|
|
391
|
-
</span>
|
|
392
|
-
<component :is="card.icon" v-else class="badge-icon" />
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
|
|
396
281
|
<h2>{{ card.title }}</h2>
|
|
397
282
|
|
|
398
283
|
<div class="amount-block" :class="{ 'is-multiple': card.balances?.length }">
|
|
@@ -463,7 +348,6 @@ function addThousands(value: string) {
|
|
|
463
348
|
padding: var(--edge-pad-y) var(--edge-pad-x);
|
|
464
349
|
overflow: hidden;
|
|
465
350
|
color: var(--navy);
|
|
466
|
-
background: #dcecff var(--home-bg) center / cover no-repeat;
|
|
467
351
|
font-family:
|
|
468
352
|
"Microsoft YaHei",
|
|
469
353
|
"PingFang SC",
|
|
@@ -481,7 +365,7 @@ function addThousands(value: string) {
|
|
|
481
365
|
min-height: 0;
|
|
482
366
|
}
|
|
483
367
|
|
|
484
|
-
/*
|
|
368
|
+
/* 外层主面板保留一层外边框;每个币种项统一使用蓝色边框表达分组。 */
|
|
485
369
|
.balance-panel {
|
|
486
370
|
position: relative;
|
|
487
371
|
display: grid;
|
|
@@ -594,15 +478,19 @@ function addThousands(value: string) {
|
|
|
594
478
|
|
|
595
479
|
/*
|
|
596
480
|
* 单个余额项。
|
|
597
|
-
*
|
|
598
|
-
*
|
|
481
|
+
* 两列分别是:币种名称、金额区。
|
|
482
|
+
* 名称列保持紧凑,给金额列保留更多空间,避免长金额遮挡单位。
|
|
599
483
|
*/
|
|
600
484
|
.balance-card {
|
|
485
|
+
--accent: #1867ee;
|
|
486
|
+
--accent-deep: #0752d3;
|
|
487
|
+
--accent-soft: #4aa4ff;
|
|
488
|
+
--card-border: rgba(35, 121, 239, 0.58);
|
|
489
|
+
--card-glow: rgba(0, 91, 222, 0.3);
|
|
601
490
|
position: relative;
|
|
602
491
|
display: grid;
|
|
603
492
|
grid-template-columns:
|
|
604
|
-
clamp(
|
|
605
|
-
minmax(clamp(4.7rem, 7.2vw, 8.2rem), 0.42fr)
|
|
493
|
+
minmax(clamp(5.2rem, 8vw, 9rem), 0.42fr)
|
|
606
494
|
minmax(0, 1fr);
|
|
607
495
|
align-items: center;
|
|
608
496
|
min-width: 0;
|
|
@@ -622,7 +510,7 @@ function addThousands(value: string) {
|
|
|
622
510
|
0.24rem 0 0 var(--accent) inset;
|
|
623
511
|
}
|
|
624
512
|
|
|
625
|
-
/*
|
|
513
|
+
/* 左侧色条拉满高度并提升层级,避免被柔光覆盖。 */
|
|
626
514
|
.balance-card::before {
|
|
627
515
|
position: absolute;
|
|
628
516
|
top: 0;
|
|
@@ -638,7 +526,7 @@ function addThousands(value: string) {
|
|
|
638
526
|
0 0 clamp(0.45rem, 0.85vw, 1rem) var(--card-glow);
|
|
639
527
|
}
|
|
640
528
|
|
|
641
|
-
/*
|
|
529
|
+
/* 柔光覆盖层让金额文字更有层次;不参与交互。 */
|
|
642
530
|
.balance-card::after {
|
|
643
531
|
position: absolute;
|
|
644
532
|
inset: 0;
|
|
@@ -650,78 +538,12 @@ function addThousands(value: string) {
|
|
|
650
538
|
linear-gradient(0deg, rgba(255, 255, 255, 0.15), transparent 55%);
|
|
651
539
|
}
|
|
652
540
|
|
|
653
|
-
.card-bg {
|
|
654
|
-
position: absolute;
|
|
655
|
-
inset: 0;
|
|
656
|
-
z-index: 0;
|
|
657
|
-
width: 100%;
|
|
658
|
-
height: 100%;
|
|
659
|
-
opacity: 0.92;
|
|
660
|
-
object-fit: fill;
|
|
661
|
-
pointer-events: none;
|
|
662
|
-
user-select: none;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
.badge-shell,
|
|
666
541
|
.balance-card h2,
|
|
667
542
|
.amount-block {
|
|
668
543
|
position: relative;
|
|
669
544
|
z-index: 3;
|
|
670
545
|
}
|
|
671
546
|
|
|
672
|
-
.badge-shell {
|
|
673
|
-
display: grid;
|
|
674
|
-
width: clamp(3.55rem, 5.75vmin, 5.9rem);
|
|
675
|
-
aspect-ratio: 1;
|
|
676
|
-
place-items: center;
|
|
677
|
-
border-radius: 50%;
|
|
678
|
-
background:
|
|
679
|
-
radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 51%, transparent 52%),
|
|
680
|
-
radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 61%, rgba(255, 255, 255, 0) 62%),
|
|
681
|
-
conic-gradient(from 200deg, rgba(255, 255, 255, 0.1), var(--accent-soft), rgba(255, 255, 255, 0.78), var(--accent-deep), rgba(255, 255, 255, 0.24));
|
|
682
|
-
box-shadow:
|
|
683
|
-
0 0.13rem clamp(0.38rem, 0.7vw, 0.82rem) var(--card-glow),
|
|
684
|
-
0 0 clamp(0.65rem, 1.25vw, 1.45rem) rgba(255, 255, 255, 0.86) inset;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
.currency-badge {
|
|
688
|
-
position: relative;
|
|
689
|
-
display: grid;
|
|
690
|
-
width: 81%;
|
|
691
|
-
aspect-ratio: 1;
|
|
692
|
-
place-items: center;
|
|
693
|
-
overflow: hidden;
|
|
694
|
-
border: clamp(0.1rem, 0.16vw, 0.18rem) solid rgba(255, 255, 255, 0.92);
|
|
695
|
-
border-radius: 50%;
|
|
696
|
-
color: #ffffff;
|
|
697
|
-
background:
|
|
698
|
-
radial-gradient(circle at 42% 35%, var(--accent-soft), var(--accent) 58%, var(--accent-deep) 100%);
|
|
699
|
-
box-shadow:
|
|
700
|
-
0 0 0 clamp(0.07rem, 0.13vw, 0.15rem) rgba(255, 255, 255, 0.52),
|
|
701
|
-
0 0.14rem 0.32rem rgba(2, 35, 79, 0.18),
|
|
702
|
-
inset 0 -0.14rem 0.32rem rgba(0, 0, 0, 0.14);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
.currency-symbol {
|
|
706
|
-
color: #ffffff;
|
|
707
|
-
font-size: clamp(2rem, 3.25vmin, 3.35rem);
|
|
708
|
-
font-weight: 900;
|
|
709
|
-
line-height: 1;
|
|
710
|
-
letter-spacing: 0;
|
|
711
|
-
text-shadow: 0 0.08rem 0.1rem rgba(0, 0, 0, 0.17);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.currency-symbol.is-compact {
|
|
715
|
-
font-size: clamp(1.15rem, 1.75vmin, 1.85rem);
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
.badge-icon {
|
|
719
|
-
width: clamp(1.85rem, 3vmin, 3.2rem);
|
|
720
|
-
height: clamp(1.85rem, 3vmin, 3.2rem);
|
|
721
|
-
color: #ffffff;
|
|
722
|
-
filter: drop-shadow(0 0.06rem 0.06rem rgba(0, 0, 0, 0.2));
|
|
723
|
-
}
|
|
724
|
-
|
|
725
547
|
.balance-card h2 {
|
|
726
548
|
margin: 0;
|
|
727
549
|
color: #050d44;
|
|
@@ -966,16 +788,11 @@ function addThousands(value: string) {
|
|
|
966
788
|
|
|
967
789
|
.balance-card {
|
|
968
790
|
grid-template-columns:
|
|
969
|
-
clamp(
|
|
970
|
-
minmax(clamp(4.25rem, 7.4vw, 6.45rem), 0.38fr)
|
|
791
|
+
minmax(clamp(4.75rem, 8vw, 7rem), 0.38fr)
|
|
971
792
|
minmax(0, 1fr);
|
|
972
793
|
padding-inline: clamp(0.42rem, 1vw, 0.75rem);
|
|
973
794
|
}
|
|
974
795
|
|
|
975
|
-
.badge-shell {
|
|
976
|
-
width: clamp(3rem, 5.15vmin, 4.65rem);
|
|
977
|
-
}
|
|
978
|
-
|
|
979
796
|
.amount-main {
|
|
980
797
|
font-size: clamp(1.3rem, 2.22vw, 2.1rem);
|
|
981
798
|
}
|
|
@@ -1063,16 +880,11 @@ function addThousands(value: string) {
|
|
|
1063
880
|
|
|
1064
881
|
.balance-card {
|
|
1065
882
|
grid-template-columns:
|
|
1066
|
-
clamp(
|
|
1067
|
-
minmax(clamp(4.65rem, 15.5vw, 6.75rem), 0.42fr)
|
|
883
|
+
minmax(clamp(5.2rem, 17vw, 7.2rem), 0.42fr)
|
|
1068
884
|
minmax(0, 1fr);
|
|
1069
885
|
padding-inline: clamp(0.42rem, 1.5vw, 0.75rem);
|
|
1070
886
|
}
|
|
1071
887
|
|
|
1072
|
-
.badge-shell {
|
|
1073
|
-
width: clamp(2.9rem, 8.5vw, 4.2rem);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
888
|
.amount-main {
|
|
1077
889
|
font-size: clamp(1.55rem, 5.3vw, 2.65rem);
|
|
1078
890
|
}
|
package/src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue
CHANGED
|
@@ -692,7 +692,7 @@ onBeforeUnmount(() => {
|
|
|
692
692
|
<el-input v-model="form.documentBusinessNo" maxlength="80" placeholder="请输入" />
|
|
693
693
|
</el-form-item>
|
|
694
694
|
|
|
695
|
-
<el-form-item label="币种" prop="currency"
|
|
695
|
+
<el-form-item label="币种" prop="currency">
|
|
696
696
|
<el-select
|
|
697
697
|
v-model="form.currency"
|
|
698
698
|
filterable
|
|
@@ -969,14 +969,10 @@ onBeforeUnmount(() => {
|
|
|
969
969
|
|
|
970
970
|
.editor-section-grid {
|
|
971
971
|
display: grid;
|
|
972
|
-
grid-template-columns: repeat(
|
|
972
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
973
973
|
column-gap: 24px;
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
.editor-row-start {
|
|
977
|
-
grid-column: 1;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
976
|
.forecast-editor-form :deep(.el-form-item) {
|
|
981
977
|
align-items: flex-start;
|
|
982
978
|
min-width: 0;
|
|
@@ -1145,10 +1141,6 @@ onBeforeUnmount(() => {
|
|
|
1145
1141
|
column-gap: 20px;
|
|
1146
1142
|
}
|
|
1147
1143
|
|
|
1148
|
-
.editor-row-start {
|
|
1149
|
-
grid-column: auto;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
1144
|
.editor-section {
|
|
1153
1145
|
padding: 16px 18px 4px;
|
|
1154
1146
|
}
|
|
@@ -131,17 +131,11 @@ function formatMoney(value: number) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function statusTagType(status: ForecastStatus) {
|
|
134
|
-
|
|
135
|
-
if (status === 'PS01' || status === 'PS02') return 'primary'
|
|
136
|
-
if (status === 'PS06' || status === 'PS07') return 'warning'
|
|
137
|
-
if (status === 'PS04' || status === 'PS08') return 'danger'
|
|
138
|
-
return 'info'
|
|
134
|
+
return ['PS01', 'PS02', 'PS06', 'PS07'].includes(status) ? 'primary' : 'info'
|
|
139
135
|
}
|
|
140
136
|
|
|
141
137
|
function verifyTagType(status: VerifyStatus) {
|
|
142
|
-
|
|
143
|
-
if (status === 'VS02') return 'warning'
|
|
144
|
-
return 'info'
|
|
138
|
+
return status === 'VS03' ? 'info' : 'primary'
|
|
145
139
|
}
|
|
146
140
|
|
|
147
141
|
function validateAmountRange() {
|
|
@@ -698,7 +692,7 @@ onBeforeUnmount(() => {
|
|
|
698
692
|
<span class="selection-count">已选 {{ selectedRows.length }} 笔</span>
|
|
699
693
|
<el-button
|
|
700
694
|
size="small"
|
|
701
|
-
type="
|
|
695
|
+
type="primary"
|
|
702
696
|
plain
|
|
703
697
|
:icon="CircleCheck"
|
|
704
698
|
:loading="approvalAction === 'approve'"
|
|
@@ -709,7 +703,7 @@ onBeforeUnmount(() => {
|
|
|
709
703
|
</el-button>
|
|
710
704
|
<el-button
|
|
711
705
|
size="small"
|
|
712
|
-
type="
|
|
706
|
+
type="primary"
|
|
713
707
|
plain
|
|
714
708
|
:icon="CircleClose"
|
|
715
709
|
:loading="approvalAction === 'reject'"
|
|
@@ -833,7 +827,7 @@ onBeforeUnmount(() => {
|
|
|
833
827
|
</el-button>
|
|
834
828
|
<el-button
|
|
835
829
|
link
|
|
836
|
-
|
|
830
|
+
type="primary"
|
|
837
831
|
:icon="row.authirization === '1' ? CircleClose : CircleCheck"
|
|
838
832
|
:loading="authorizationActionPredRefNo === row.predRefNo"
|
|
839
833
|
:disabled="Boolean(authorizationActionPredRefNo) && authorizationActionPredRefNo !== row.predRefNo"
|
|
@@ -1017,22 +1011,19 @@ onBeforeUnmount(() => {
|
|
|
1017
1011
|
}
|
|
1018
1012
|
|
|
1019
1013
|
.summary-item.is-income strong,
|
|
1020
|
-
.summary-item.is-net-positive strong
|
|
1021
|
-
color: #12805c;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1014
|
+
.summary-item.is-net-positive strong,
|
|
1024
1015
|
.summary-item.is-expense strong,
|
|
1025
1016
|
.summary-item.is-net-negative strong {
|
|
1026
|
-
color:
|
|
1017
|
+
color: var(--page-blue);
|
|
1027
1018
|
}
|
|
1028
1019
|
|
|
1029
1020
|
.currency-warning {
|
|
1030
1021
|
margin-bottom: 10px;
|
|
1031
1022
|
padding: 9px 14px;
|
|
1032
|
-
border-color: #
|
|
1023
|
+
border-color: #dce3ec;
|
|
1033
1024
|
border-radius: 7px;
|
|
1034
|
-
color: #
|
|
1035
|
-
background: #
|
|
1025
|
+
color: #667085;
|
|
1026
|
+
background: #f5f8fc;
|
|
1036
1027
|
font-size: 12px;
|
|
1037
1028
|
}
|
|
1038
1029
|
|
|
@@ -1116,12 +1107,9 @@ onBeforeUnmount(() => {
|
|
|
1116
1107
|
font-weight: 700;
|
|
1117
1108
|
}
|
|
1118
1109
|
|
|
1119
|
-
.direction-text.is-income
|
|
1120
|
-
color: #12805c;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1110
|
+
.direction-text.is-income,
|
|
1123
1111
|
.direction-text.is-expense {
|
|
1124
|
-
color:
|
|
1112
|
+
color: var(--page-blue);
|
|
1125
1113
|
}
|
|
1126
1114
|
|
|
1127
1115
|
.row-actions {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, onBeforeUnmount, onMounted, ref } from 'vue'
|
|
3
|
-
import { ArrowLeft } from '@element-plus/icons-vue'
|
|
4
3
|
import { ElMessage } from 'element-plus'
|
|
5
4
|
import { formatThousands } from '@/utils/formatters'
|
|
6
5
|
import API from './api'
|
|
@@ -24,10 +23,6 @@ const props = defineProps<{
|
|
|
24
23
|
tranDate: string
|
|
25
24
|
}>()
|
|
26
25
|
|
|
27
|
-
const emit = defineEmits<{
|
|
28
|
-
back: []
|
|
29
|
-
}>()
|
|
30
|
-
|
|
31
26
|
/** 标题顺序与主表点击索引 0-41 严格对应。 */
|
|
32
27
|
const detailTitles = [
|
|
33
28
|
'回购(拆借)到期,CD发行、投资及到期收入报备金额明细列表',
|
|
@@ -220,9 +215,7 @@ onBeforeUnmount(() => requestController?.abort())
|
|
|
220
215
|
<template>
|
|
221
216
|
<section class="detail-page">
|
|
222
217
|
<header class="detail-header">
|
|
223
|
-
<el-button :icon="ArrowLeft" @click="emit('back')">返回</el-button>
|
|
224
218
|
<h2 class="detail-title">{{ title }}</h2>
|
|
225
|
-
<span class="header-placeholder" aria-hidden="true"></span>
|
|
226
219
|
</header>
|
|
227
220
|
|
|
228
221
|
<el-table
|
|
@@ -276,10 +269,6 @@ onBeforeUnmount(() => requestController?.abort())
|
|
|
276
269
|
}
|
|
277
270
|
|
|
278
271
|
.detail-header {
|
|
279
|
-
display: grid;
|
|
280
|
-
grid-template-columns: 88px minmax(0, 1fr) 88px;
|
|
281
|
-
align-items: center;
|
|
282
|
-
gap: 12px;
|
|
283
272
|
margin-bottom: 16px;
|
|
284
273
|
}
|
|
285
274
|
|
|
@@ -292,10 +281,6 @@ onBeforeUnmount(() => requestController?.abort())
|
|
|
292
281
|
text-align: center;
|
|
293
282
|
}
|
|
294
283
|
|
|
295
|
-
.header-placeholder {
|
|
296
|
-
width: 88px;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
284
|
.detail-table {
|
|
300
285
|
width: 100%;
|
|
301
286
|
margin-bottom: 20px;
|
|
@@ -320,16 +305,11 @@ onBeforeUnmount(() => requestController?.abort())
|
|
|
320
305
|
}
|
|
321
306
|
|
|
322
307
|
.detail-header {
|
|
323
|
-
|
|
308
|
+
margin-bottom: 12px;
|
|
324
309
|
}
|
|
325
310
|
|
|
326
311
|
.detail-title {
|
|
327
312
|
font-size: 17px;
|
|
328
|
-
text-align: left;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.header-placeholder {
|
|
332
|
-
display: none;
|
|
333
313
|
}
|
|
334
314
|
|
|
335
315
|
.detail-pagination {
|