verce-vue-test 0.0.105 → 0.0.106
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 +3 -3
- package/package.json +1 -1
- package/src/views/rmb-estimation/api.ts +7 -13
- package/src/views/rmb-estimation/assets/styles/index.css +289 -0
- package/src/views/rmb-estimation/components/AmountLedger.vue +53 -0
- package/src/views/rmb-estimation/components/EndOfDayBorrowingEstimation.vue +128 -0
- package/src/views/rmb-estimation/components/ForecastOccurrence.vue +212 -0
- package/src/views/rmb-estimation/components/OpeningReserveEstimation.vue +124 -0
- package/src/views/rmb-estimation/index.vue +7 -97
- package/src/views/rmb-estimation/utils/amount-unit.ts +98 -0
- package/src/views/rmb-estimation/EndOfDayBorrowingEstimation.vue +0 -418
- package/src/views/rmb-estimation/ForecastOccurrence.vue +0 -425
- package/src/views/rmb-estimation/OpeningReserveEstimation.vue +0 -423
|
@@ -1946,7 +1946,7 @@ POST /TAM/0001/140103002
|
|
|
1946
1946
|
> 200 Response
|
|
1947
1947
|
|
|
1948
1948
|
```
|
|
1949
|
-
{"
|
|
1949
|
+
{"head":{"consumerId":"TAM001","tranCode":"/TAM/0001/140103002","versionId":"0001","ctrlBits":"00004000","tranDate":"20260723","consumerSeqNo":"superuser62026072386363402","tranTimestamp":"135923","pageSize":"10","pageIndex":"1","traceId":"","spanId":"","userId":"superuser6","verifyUserId":"","adminUserId":"","apprUserId":"","branchId":"25001","areaCode":"0000","digitalSign":"","fileFlag":"N","filePath":"","isBatch":false,"extra":{},"retStatus":"S","retCode":"00000","retMsg":"交易成功"},"body":{"predAmtIn":"1112256255","predAmtOut":"0","verifyAmtIn":"510122220.47","verifyAmtOut":"0","unverifyAmtIn":"612133032","unverifyAmtOut":"0"}}
|
|
1950
1950
|
```
|
|
1951
1951
|
|
|
1952
1952
|
### 返回结果
|
|
@@ -2012,7 +2012,7 @@ POST /TAM/0001/140103003
|
|
|
2012
2012
|
> 200 Response
|
|
2013
2013
|
|
|
2014
2014
|
```
|
|
2015
|
-
{"
|
|
2015
|
+
{"head":{"consumerId":"TAM001","tranCode":"/TAM/0001/140103003","versionId":"0001","ctrlBits":"00004000","tranDate":"20260723","consumerSeqNo":"superuser62026072386405694","tranTimestamp":"140005","pageSize":"10","pageIndex":"1","traceId":"","spanId":"","userId":"superuser6","verifyUserId":"","adminUserId":"","apprUserId":"","branchId":"25001","areaCode":"0000","digitalSign":"","fileFlag":"N","filePath":"","isBatch":false,"extra":{},"retStatus":"S","retCode":"00000","retMsg":"交易成功"},"body":{"rhAmt":"4850534974337620.00","pdAmt":"8128113891","fzAmt":"143100000001","cjAmt":"4850383746223728.00","rzAmt":"4850534974337620.00","unverifyAmtIn":"0","unverifyAmtOut":"0"}}
|
|
2016
2016
|
```
|
|
2017
2017
|
|
|
2018
2018
|
### 返回结果
|
|
@@ -2078,7 +2078,7 @@ POST /TAM/0001/140103004
|
|
|
2078
2078
|
> 200 Response
|
|
2079
2079
|
|
|
2080
2080
|
```
|
|
2081
|
-
{"
|
|
2081
|
+
{"head":{"consumerId":"TAM001","tranCode":"/TAM/0001/140103004","versionId":"0001","ctrlBits":"00004000","tranDate":"20260723","consumerSeqNo":"superuser62026072386427755","tranTimestamp":"140027","pageSize":"10","pageIndex":"1","traceId":"","spanId":"","userId":"superuser6","verifyUserId":"","adminUserId":"","apprUserId":"","branchId":"25001","areaCode":"0000","digitalSign":"","fileFlag":"N","filePath":"","isBatch":false,"extra":{},"retStatus":"S","retCode":"00000","retMsg":"交易成功"},"body":{"rhAmt":"4850534974337620.00","pdAmt":"8128113891","fzAmt":"143100000001","preAmt":"4850383746223728.00","unverifyAmtIn":"0","unverifyAmtOut":"0"}}
|
|
2082
2082
|
```
|
|
2083
2083
|
|
|
2084
2084
|
### 返回结果
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import baseHttpClient
|
|
1
|
+
import baseHttpClient from '@/utils/baseHttpClient'
|
|
2
2
|
|
|
3
3
|
export type ForecastOccurrenceRequest = {
|
|
4
4
|
/** 业务类型,接口允许为空。 */
|
|
@@ -55,31 +55,25 @@ export type OpeningReserveEstimationResult = {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/** 按业务类型和交易日期查询预报发生情况。 */
|
|
58
|
-
export function queryForecastOccurrence(
|
|
59
|
-
|
|
60
|
-
options?: HttpRequestOptions,
|
|
61
|
-
) {
|
|
62
|
-
return baseHttpClient.post<TamResponse<ForecastOccurrenceResult>>(
|
|
58
|
+
export function queryForecastOccurrence(params: ForecastOccurrenceRequest) {
|
|
59
|
+
return baseHttpClient.post<any>(
|
|
63
60
|
'/TAM/0001/140103002',
|
|
64
61
|
params,
|
|
65
|
-
options,
|
|
66
62
|
)
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
/** 查询日终拆借数匡算结果,接口业务请求体为空。 */
|
|
70
|
-
export function queryEndOfDayBorrowingEstimation(
|
|
71
|
-
return baseHttpClient.post<
|
|
66
|
+
export function queryEndOfDayBorrowingEstimation() {
|
|
67
|
+
return baseHttpClient.post<any>(
|
|
72
68
|
'/TAM/0001/140103003',
|
|
73
69
|
{},
|
|
74
|
-
options,
|
|
75
70
|
)
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
/** 查询日初备款数匡算结果,接口业务请求体为空。 */
|
|
79
|
-
export function queryOpeningReserveEstimation(
|
|
80
|
-
return baseHttpClient.post<
|
|
74
|
+
export function queryOpeningReserveEstimation() {
|
|
75
|
+
return baseHttpClient.post<any>(
|
|
81
76
|
'/TAM/0001/140103004',
|
|
82
77
|
{},
|
|
83
|
-
options,
|
|
84
78
|
)
|
|
85
79
|
}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
.rmb-estimation-page {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-height: 100%;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 20px;
|
|
6
|
+
border-radius: 20px;
|
|
7
|
+
background: #fff;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.rmb-estimation-page .estimation-image-gallery {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
14
|
+
gap: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.rmb-estimation-page .estimation-image-card {
|
|
18
|
+
padding: 0;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
border: 1px solid #e2e8f0;
|
|
21
|
+
border-radius: 12px;
|
|
22
|
+
background: #fff;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
|
|
25
|
+
transition:
|
|
26
|
+
transform 180ms ease,
|
|
27
|
+
border-color 180ms ease,
|
|
28
|
+
box-shadow 180ms ease;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rmb-estimation-page .estimation-image-card:hover {
|
|
32
|
+
border-color: #60a5fa;
|
|
33
|
+
transform: translateY(-6px);
|
|
34
|
+
box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rmb-estimation-page .estimation-image-card:focus-visible {
|
|
38
|
+
outline: 3px solid rgba(59, 130, 246, 0.35);
|
|
39
|
+
outline-offset: 4px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rmb-estimation-page .estimation-image {
|
|
43
|
+
display: block;
|
|
44
|
+
width: 100%;
|
|
45
|
+
aspect-ratio: 4 / 3;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
transition: transform 240ms ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rmb-estimation-page .estimation-image-card:hover .estimation-image {
|
|
51
|
+
transform: scale(1.025);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.rmb-estimation-page .estimation-detail-page {
|
|
55
|
+
min-height: 620px;
|
|
56
|
+
color: #102757;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.rmb-estimation-page .back-row {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
min-height: 48px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.rmb-estimation-page .page-toolbar {
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: 1fr auto 1fr;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 24px;
|
|
70
|
+
min-height: 72px;
|
|
71
|
+
padding: 0 2px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rmb-estimation-page .page-toolbar > :last-child {
|
|
75
|
+
justify-self: end;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rmb-estimation-page .toolbar-actions,
|
|
79
|
+
.rmb-estimation-page .amount-unit-control {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rmb-estimation-page .toolbar-actions {
|
|
85
|
+
gap: 14px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.rmb-estimation-page .amount-unit-control {
|
|
89
|
+
gap: 8px;
|
|
90
|
+
color: #526b91;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rmb-estimation-page .amount-unit-select {
|
|
96
|
+
width: 96px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.rmb-estimation-page .query-button {
|
|
100
|
+
min-height: 42px;
|
|
101
|
+
padding-inline: 20px;
|
|
102
|
+
border-radius: 6px;
|
|
103
|
+
font-size: 15px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rmb-estimation-page .refresh-button {
|
|
107
|
+
min-height: 32px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rmb-estimation-page .back-button {
|
|
111
|
+
min-height: 32px;
|
|
112
|
+
padding-inline: 12px;
|
|
113
|
+
border-radius: 5px;
|
|
114
|
+
font-size: 13px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.rmb-estimation-page .title-wrap {
|
|
118
|
+
text-align: center;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.rmb-estimation-page .page-title {
|
|
122
|
+
margin: 0;
|
|
123
|
+
color: #0d3479;
|
|
124
|
+
font: 700 30px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
125
|
+
letter-spacing: 0.04em;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.rmb-estimation-page .detail-panel {
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
border: 1px solid #d9e4f5;
|
|
131
|
+
border-radius: 6px;
|
|
132
|
+
background: #fff;
|
|
133
|
+
box-shadow: 0 10px 30px rgba(29, 78, 150, 0.08);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.rmb-estimation-page .item-order {
|
|
137
|
+
display: inline-grid;
|
|
138
|
+
width: 28px;
|
|
139
|
+
height: 28px;
|
|
140
|
+
flex: 0 0 28px;
|
|
141
|
+
place-items: center;
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
color: #fff;
|
|
144
|
+
background: #2777df;
|
|
145
|
+
font: 700 13px/1 "DIN Alternate", sans-serif;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.rmb-estimation-page .query-panel {
|
|
149
|
+
margin-bottom: 16px;
|
|
150
|
+
padding: 18px 24px 2px;
|
|
151
|
+
border: 1px solid #d9e4f5;
|
|
152
|
+
border-radius: 6px;
|
|
153
|
+
background: #f1f6fd;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.rmb-estimation-page .query-panel .el-form-item {
|
|
157
|
+
margin-right: 24px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.rmb-estimation-page .query-panel .el-select,
|
|
161
|
+
.rmb-estimation-page .query-panel .el-date-editor {
|
|
162
|
+
width: 220px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rmb-estimation-page .amount-table {
|
|
166
|
+
padding: 0 36px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.rmb-estimation-page .amount-row {
|
|
170
|
+
display: grid;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: 24px;
|
|
173
|
+
min-height: 76px;
|
|
174
|
+
border-top: 1px dashed #dce5f2;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.rmb-estimation-page .amount-table--occurrence .amount-row {
|
|
178
|
+
grid-template-columns:
|
|
179
|
+
minmax(260px, 1.2fr)
|
|
180
|
+
repeat(2, minmax(220px, 0.9fr));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.rmb-estimation-page .amount-table--ledger .amount-row {
|
|
184
|
+
grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.rmb-estimation-page .amount-row--head {
|
|
188
|
+
min-height: 58px;
|
|
189
|
+
border-top-style: solid;
|
|
190
|
+
border-top-color: #cbdaf0;
|
|
191
|
+
border-bottom: 1px solid #cbdaf0;
|
|
192
|
+
color: #183c74;
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
font-weight: 700;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.rmb-estimation-page .amount-row--head > :not(:first-child) {
|
|
198
|
+
text-align: right;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.rmb-estimation-page .amount-name {
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
gap: 16px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.rmb-estimation-page .amount-name strong {
|
|
208
|
+
color: #18345f;
|
|
209
|
+
font-size: 15px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.rmb-estimation-page .amount-value {
|
|
213
|
+
min-width: 0;
|
|
214
|
+
overflow-wrap: anywhere;
|
|
215
|
+
font: 600 20px/1.2 "DIN Alternate", Consolas, monospace;
|
|
216
|
+
text-align: right;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.rmb-estimation-page .amount-value--with-unit {
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: baseline;
|
|
222
|
+
justify-content: flex-end;
|
|
223
|
+
gap: 8px;
|
|
224
|
+
color: #18345f;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.rmb-estimation-page .amount-value--with-unit strong {
|
|
228
|
+
font: inherit;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.rmb-estimation-page .amount-value--with-unit span {
|
|
232
|
+
color: #56729c;
|
|
233
|
+
font: 400 14px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.rmb-estimation-page .amount-value--income {
|
|
237
|
+
color: #07895b;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.rmb-estimation-page .amount-value--expense,
|
|
241
|
+
.rmb-estimation-page .amount-value--negative {
|
|
242
|
+
color: #d92c2c;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@media screen and (max-width: 1080px) {
|
|
246
|
+
.rmb-estimation-page .estimation-image-gallery {
|
|
247
|
+
grid-template-columns: 1fr;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@media screen and (max-width: 980px) {
|
|
252
|
+
.rmb-estimation-page .estimation-detail-page {
|
|
253
|
+
overflow-x: auto;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.rmb-estimation-page .query-panel,
|
|
257
|
+
.rmb-estimation-page .occurrence-panel {
|
|
258
|
+
min-width: 900px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.rmb-estimation-page .ledger-panel {
|
|
262
|
+
min-width: 820px;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@media screen and (max-width: 680px) {
|
|
267
|
+
.rmb-estimation-page .page-toolbar {
|
|
268
|
+
display: flex;
|
|
269
|
+
justify-content: flex-end;
|
|
270
|
+
min-width: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.rmb-estimation-page .toolbar-spacer,
|
|
274
|
+
.rmb-estimation-page .title-wrap {
|
|
275
|
+
display: none;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.rmb-estimation-page .query-button {
|
|
279
|
+
padding-inline: 14px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.rmb-estimation-page .toolbar-actions {
|
|
283
|
+
gap: 8px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.rmb-estimation-page .amount-unit-control > span {
|
|
287
|
+
display: none;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
type LedgerItem = {
|
|
3
|
+
key: string
|
|
4
|
+
label: string
|
|
5
|
+
tone?: 'income' | 'expense'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const props = defineProps<{
|
|
9
|
+
items: readonly LedgerItem[]
|
|
10
|
+
values: object
|
|
11
|
+
amountUnitLabel: string
|
|
12
|
+
formatAmount: (value: unknown) => string
|
|
13
|
+
}>()
|
|
14
|
+
|
|
15
|
+
function getValue(key: string) {
|
|
16
|
+
return (props.values as Record<string, unknown>)[key]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function isNegative(value: unknown) {
|
|
20
|
+
return /^-\d+(?:\.\d+)?$/.test(String(value ?? '').replace(/,/g, '').trim())
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div class="amount-table amount-table--ledger">
|
|
26
|
+
<div class="amount-row amount-row--head">
|
|
27
|
+
<span>项目</span>
|
|
28
|
+
<span>金额({{ amountUnitLabel }})</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div
|
|
32
|
+
v-for="(item, index) in items"
|
|
33
|
+
:key="item.key"
|
|
34
|
+
class="amount-row"
|
|
35
|
+
>
|
|
36
|
+
<div class="amount-name">
|
|
37
|
+
<span class="item-order">{{ index + 1 }}</span>
|
|
38
|
+
<strong>{{ item.label }}</strong>
|
|
39
|
+
</div>
|
|
40
|
+
<div
|
|
41
|
+
class="amount-value amount-value--with-unit"
|
|
42
|
+
:class="{
|
|
43
|
+
'amount-value--income': item.tone === 'income',
|
|
44
|
+
'amount-value--expense': item.tone === 'expense',
|
|
45
|
+
'amount-value--negative': !item.tone && isNegative(getValue(item.key)),
|
|
46
|
+
}"
|
|
47
|
+
>
|
|
48
|
+
<strong>{{ formatAmount(getValue(item.key)) }}</strong>
|
|
49
|
+
<span>{{ amountUnitLabel }}</span>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, ref } from 'vue'
|
|
3
|
+
import { ArrowLeft, RefreshRight } from '@element-plus/icons-vue'
|
|
4
|
+
import { ElMessage } from 'element-plus'
|
|
5
|
+
import {
|
|
6
|
+
queryEndOfDayBorrowingEstimation,
|
|
7
|
+
type EndOfDayBorrowingEstimationResult,
|
|
8
|
+
} from '../api'
|
|
9
|
+
import { useAmountUnit } from '../utils/amount-unit'
|
|
10
|
+
import AmountLedger from './AmountLedger.vue'
|
|
11
|
+
|
|
12
|
+
const emit = defineEmits<{
|
|
13
|
+
back: []
|
|
14
|
+
}>()
|
|
15
|
+
|
|
16
|
+
type LedgerItem = {
|
|
17
|
+
key: keyof EndOfDayBorrowingEstimationResult
|
|
18
|
+
label: string
|
|
19
|
+
tone?: 'income' | 'expense'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const ledgerItems: LedgerItem[] = [
|
|
23
|
+
{
|
|
24
|
+
key: 'rhAmt',
|
|
25
|
+
label: '人行时点头寸',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: 'unverifyAmtOut',
|
|
29
|
+
label: '预报未核销支出',
|
|
30
|
+
tone: 'expense',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: 'unverifyAmtIn',
|
|
34
|
+
label: '预报未核销收入',
|
|
35
|
+
tone: 'income',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 'pdAmt',
|
|
39
|
+
label: '总分行铺底资金之和',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: 'fzAmt',
|
|
43
|
+
label: '法定准备金',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: 'rzAmt',
|
|
47
|
+
label: '日终头寸',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: 'cjAmt',
|
|
51
|
+
label: '日终拆借数',
|
|
52
|
+
},
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const loading = ref(false)
|
|
56
|
+
const result = ref<EndOfDayBorrowingEstimationResult>({})
|
|
57
|
+
const {
|
|
58
|
+
amountUnit,
|
|
59
|
+
amountUnitLabel,
|
|
60
|
+
amountUnitOptions,
|
|
61
|
+
displayAmount,
|
|
62
|
+
} = useAmountUnit()
|
|
63
|
+
|
|
64
|
+
async function loadResult() {
|
|
65
|
+
loading.value = true
|
|
66
|
+
|
|
67
|
+
try {
|
|
68
|
+
const response = await queryEndOfDayBorrowingEstimation()
|
|
69
|
+
result.value = response.body ?? {}
|
|
70
|
+
} catch (error) {
|
|
71
|
+
ElMessage.error(error instanceof Error ? error.message : '日终拆借数匡算查询失败')
|
|
72
|
+
} finally {
|
|
73
|
+
loading.value = false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
onMounted(loadResult)
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<template>
|
|
81
|
+
<section
|
|
82
|
+
v-loading="loading"
|
|
83
|
+
class="estimation-detail-page"
|
|
84
|
+
element-loading-text="正在查询日终拆借数匡算结果…"
|
|
85
|
+
>
|
|
86
|
+
<div class="back-row">
|
|
87
|
+
<el-button class="back-button" :icon="ArrowLeft" @click="emit('back')">返回</el-button>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<header class="page-toolbar">
|
|
91
|
+
<span class="toolbar-spacer" aria-hidden="true"></span>
|
|
92
|
+
<div class="title-wrap">
|
|
93
|
+
<h2 class="page-title">日终拆借数匡算</h2>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="toolbar-actions">
|
|
96
|
+
<div class="amount-unit-control">
|
|
97
|
+
<span>金额单位</span>
|
|
98
|
+
<el-select v-model="amountUnit" class="amount-unit-select">
|
|
99
|
+
<el-option
|
|
100
|
+
v-for="option in amountUnitOptions"
|
|
101
|
+
:key="option.value"
|
|
102
|
+
:label="option.label"
|
|
103
|
+
:value="option.value"
|
|
104
|
+
/>
|
|
105
|
+
</el-select>
|
|
106
|
+
</div>
|
|
107
|
+
<el-button
|
|
108
|
+
class="query-button refresh-button"
|
|
109
|
+
type="primary"
|
|
110
|
+
:icon="RefreshRight"
|
|
111
|
+
:loading="loading"
|
|
112
|
+
@click="loadResult"
|
|
113
|
+
>
|
|
114
|
+
刷新
|
|
115
|
+
</el-button>
|
|
116
|
+
</div>
|
|
117
|
+
</header>
|
|
118
|
+
|
|
119
|
+
<section class="detail-panel ledger-panel">
|
|
120
|
+
<AmountLedger
|
|
121
|
+
:items="ledgerItems"
|
|
122
|
+
:values="result"
|
|
123
|
+
:amount-unit-label="amountUnitLabel"
|
|
124
|
+
:format-amount="displayAmount"
|
|
125
|
+
/>
|
|
126
|
+
</section>
|
|
127
|
+
</section>
|
|
128
|
+
</template>
|