verce-vue-test 0.0.112 → 0.0.114

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.112",
3
+ "version": "0.0.114",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,267 +1,30 @@
1
1
  import baseHttpClient from '@/utils/baseHttpClient'
2
2
 
3
- /**
4
- * 外币手工核销页面接口。
5
- *
6
- * `baseHttpClient` 负责补充 TAM 公共报文头,当前文件只定义业务请求参数、
7
- * 交易码以及页面需要的响应归一化逻辑。
8
- */
9
-
10
- /** TAM 列表接口返回的单行原始数据,字段名保持后端原样。 */
11
- type ForeignSettlementRow = Record<string, unknown>
12
-
13
- /** 外币预报、流水查询接口的原始响应体。 */
14
- type ForeignSettlementListBody = {
15
- resultInfos?: ForeignSettlementRow[]
16
- totalCount?: number | string | null
17
- totalPage?: number | string | null
18
- }
19
-
20
- /** 页面统一使用的列表查询结果。 */
21
- export type ForeignSettlementListResult = {
22
- /** 当前页数据。 */
23
- resultList: ForeignSettlementRow[]
24
- /** 符合查询条件的数据总数。 */
25
- totalCount: number
26
- /** 总页数;接口未返回有效值时为 0。 */
27
- totalPage: number
28
- }
29
-
30
- /** 外币预报信息查询参数。 */
31
- export type ForeignSettlementForecastQueryParams = {
32
- /** 金额排序方式。 */
33
- amtOrder: string
34
- /** 授权状态。 */
35
- authorization: string
36
- /** 账户行行号。 */
37
- bankCode: string
38
- /** 所属机构代码。 */
39
- branchs: string
40
- /** 所属机构名称。 */
41
- branchsName: string
42
- /** 币种。 */
43
- ccy: string
44
- /** 客户名称。 */
45
- clientName: string
46
- /** 截止金额。 */
47
- endAmt: string
48
- /** 是否过滤 FTU 数据。 */
49
- filter: string
50
- /** 操作类型,列表查询时传空字符串。 */
51
- opType: string
52
- /** 当前页码。 */
53
- pageIndex: number
54
- /** 每页条数。 */
55
- pageSize: number
56
- /** 收支方向。 */
57
- payDirec: string
58
- /** 预报方式。 */
59
- predWay: string
60
- /** 起始金额。 */
61
- startAmt: string
62
- /** 起息日,格式为 YYYYMMDD。 */
63
- tranDate: string
64
- /** 业务类型。 */
65
- tranType: string
66
- /** 核销状态。 */
67
- vrfctnSts: string
68
- }
69
-
70
- /** 外币流水信息查询参数。 */
71
- export type ForeignSettlementFlowQueryParams = {
72
- /** 授权状态。 */
73
- authorization: string
74
- /** 账户行行号。 */
75
- bankCode: string
76
- /** 所属机构代码。 */
77
- branchs: string
78
- /** 所属机构名称。 */
79
- branchsName: string
80
- /** 币种。 */
81
- ccy: string
82
- /** 客户名称。 */
83
- clientName: string
84
- /** 截止金额。 */
85
- endAmt: string
86
- /** 操作类型,列表查询时传空字符串。 */
87
- opType: string
88
- /** 当前页码。 */
89
- pageIndex: number
90
- /** 每页条数。 */
91
- pageSize: number
92
- /** 收支方向。 */
93
- payDirec: string
94
- /** 预报方式;流水查询时传空字符串。 */
95
- predWay: string
96
- /** 起始金额。 */
97
- startAmt: string
98
- /** 交易日期,格式为 YYYYMMDD。 */
99
- tranDate: string
100
- /** 报文类型列表。 */
101
- tranType: string[]
102
- /** 核销状态。 */
103
- vrfctnSts: string
104
- }
105
-
106
- /** 手工核销请求参数;多个值按相同顺序使用英文逗号拼接。 */
107
- export type ForeignSettlementVerifyParams = {
108
- /** 预报流水号集合。 */
109
- predIds: string
110
- /** 预报金额集合。 */
111
- predAmts: string
112
- /** 已核销金额集合。 */
113
- verifyAmts: string
114
- /** 预报核销状态集合。 */
115
- preStatus: string
116
- /** 预报起息日集合。 */
117
- predValueDates: string
118
- /** 流水号集合;未选择流水时不传。 */
119
- tranSeqIds?: string
120
- /** 流水未核销金额集合;未选择流水时不传。 */
121
- tranAmts?: string
122
- /** 流水核销状态集合;未选择流水时不传。 */
123
- seqVerifyStatus?: string
124
- /** 流水起息日集合;未选择流水时不传。 */
125
- tranValueDates?: string
126
- }
127
-
128
- /** 撤销核销请求参数。 */
129
- export type ForeignSettlementCancelVerifyParams = {
130
- /** 预报已核销金额。 */
131
- predAmt: string
132
- /** 预报流水号。 */
133
- predRefNo: string
134
- /** 关联流水号集合,使用英文逗号拼接。 */
135
- tranRefNos: string
136
- }
137
-
138
- /** 自动核销请求参数。 */
139
- export type ForeignSettlementDateParams = {
140
- /** 自动核销日期,格式为 YYYYMMDD。 */
141
- tranDate: string
142
- }
143
-
144
- /** 获取流水请求参数。 */
145
- export type ForeignSettlementQueryDateParams = {
146
- /** 待获取流水的日期,格式为 YYYYMMDD。 */
147
- queryDate: string
148
- }
149
-
150
- /** 将接口返回的数量安全转换为非负数字。 */
151
- function normalizeCount(value: unknown, fallback: number) {
152
- const normalizedValue = String(value ?? '').trim()
153
- if (!normalizedValue) return fallback
154
- const count = Number(normalizedValue)
155
- return Number.isFinite(count) && count >= 0 ? count : fallback
156
- }
157
-
158
- /**
159
- * 将 TAM 的 `resultInfos` 列表结构转换为页面统一使用的分页结构。
160
- * 接口未返回数组时主动抛错,避免页面把异常响应误认为空列表。
161
- */
162
- function normalizeListBody(
163
- body: ForeignSettlementListBody,
164
- errorMessage: string,
165
- ): ForeignSettlementListResult {
166
- if (!Array.isArray(body.resultInfos)) throw new Error(errorMessage)
167
- return {
168
- resultList: body.resultInfos.map((row) => ({ ...row })),
169
- totalCount: normalizeCount(body.totalCount, body.resultInfos.length),
170
- totalPage: normalizeCount(body.totalPage, 0),
171
- }
172
- }
173
-
174
- /**
175
- * 查询外币预报信息。
176
- * @transactionCode 140202001
177
- * @returns 归一化后的预报列表及分页信息。
178
- */
179
- export async function queryForeignSettlementForecasts(
180
- params: ForeignSettlementForecastQueryParams,
181
- ) {
182
- const response = await baseHttpClient.post(
183
- '/TAM/0001/140202001',
184
- params,
185
- ) as any
186
- return normalizeListBody(response.body, '外币预报信息接口返回结构不正确')
187
- }
188
-
189
- /**
190
- * 查询外币流水信息。
191
- * @transactionCode 140202002
192
- * @returns 归一化后的流水列表及分页信息。
193
- */
194
- export async function queryForeignSettlementFlows(
195
- params: ForeignSettlementFlowQueryParams,
196
- ) {
197
- const response = await baseHttpClient.post(
198
- '/TAM/0001/140202002',
199
- params,
200
- ) as any
201
- return normalizeListBody(response.body, '外币流水信息接口返回结构不正确')
202
- }
203
-
204
- /**
205
- * 按指定起息日发起自动核销。
206
- * @transactionCode 120202001
207
- */
208
- export async function autoVerifyForeignSettlements(
209
- params: ForeignSettlementDateParams,
210
- ) {
211
- await baseHttpClient.post(
212
- '/TAM/0001/120202001',
213
- params,
214
- ) as any
215
- }
216
-
217
- /**
218
- * 获取指定日期的外币流水。
219
- * @transactionCode 120202004
220
- */
221
- export async function fetchForeignSettlementFlows(
222
- params: ForeignSettlementQueryDateParams,
223
- ) {
224
- await baseHttpClient.post(
225
- '/TAM/0001/120202004',
226
- params,
227
- ) as any
228
- }
229
-
230
- /**
231
- * 获取指定日期的外币日终流水。
232
- * @transactionCode 120202005
233
- */
234
- export async function fetchForeignSettlementEndOfDayFlows(
235
- params: ForeignSettlementQueryDateParams,
236
- ) {
237
- await baseHttpClient.post(
238
- '/TAM/0001/120202005',
239
- params,
240
- ) as any
241
- }
242
-
243
- /**
244
- * 手动核销所选外币预报及关联流水。
245
- * @transactionCode 120202002
246
- */
247
- export async function verifyForeignSettlements(
248
- params: ForeignSettlementVerifyParams,
249
- ) {
250
- await baseHttpClient.post(
251
- '/TAM/0001/120202002',
252
- params,
253
- ) as any
254
- }
255
-
256
- /**
257
- * 撤销外币预报及关联流水的核销关系。
258
- * @transactionCode 120202003
259
- */
260
- export async function cancelVerifyForeignSettlements(
261
- params: ForeignSettlementCancelVerifyParams,
262
- ) {
263
- await baseHttpClient.post(
264
- '/TAM/0001/120202003',
265
- params,
266
- ) as any
267
- }
3
+ const API = {
4
+ accountBankQueryApi: (params: any, options?: any) => {
5
+ return baseHttpClient.post('/TAM/0001/140206018', params, options)
6
+ },
7
+ forecastQueryApi: (params: any) => {
8
+ return baseHttpClient.post('/TAM/0001/140202001', params)
9
+ },
10
+ flowQueryApi: (params: any) => {
11
+ return baseHttpClient.post('/TAM/0001/140202002', params)
12
+ },
13
+ autoVerifyApi: (params: any) => {
14
+ return baseHttpClient.post('/TAM/0001/120202001', params)
15
+ },
16
+ fetchFlowApi: (params: any) => {
17
+ return baseHttpClient.post('/TAM/0001/120202004', params)
18
+ },
19
+ fetchEndOfDayFlowApi: (params: any) => {
20
+ return baseHttpClient.post('/TAM/0001/120202005', params)
21
+ },
22
+ verifyApi: (params: any) => {
23
+ return baseHttpClient.post('/TAM/0001/120202002', params)
24
+ },
25
+ cancelVerifyApi: (params: any) => {
26
+ return baseHttpClient.post('/TAM/0001/120202003', params)
27
+ },
28
+ }
29
+
30
+ export default API
@@ -31,21 +31,13 @@ import {
31
31
  RefreshLeft,
32
32
  Search,
33
33
  } from '@element-plus/icons-vue'
34
- import { queryAccountBanks } from '@/api/account-bank'
35
34
  import { formatThousands } from '@/utils/formatters'
36
- import {
37
- autoVerifyForeignSettlements,
38
- cancelVerifyForeignSettlements,
39
- fetchForeignSettlementEndOfDayFlows,
40
- fetchForeignSettlementFlows,
41
- queryForeignSettlementFlows,
42
- queryForeignSettlementForecasts,
43
- verifyForeignSettlements,
44
- } from './api'
35
+ import API from './api'
45
36
  import './foreign-currency-settlement-base.css'
46
37
 
47
38
  type CardLayout = 'vertical' | 'horizontal'
48
39
 
40
+ // 页面筛选项使用的静态选项,值保持 TAM 接口约定。
49
41
  const payDirectionOptions = [
50
42
  { value: 'I', label: '收入' },
51
43
  { value: 'O', label: '支出' },
@@ -99,6 +91,7 @@ const paymentRouteMap: Record<string, string> = {
99
91
  '03': '内部划转',
100
92
  }
101
93
 
94
+ // 两张表的字段、默认显隐和格式化方式统一由列配置维护。
102
95
  const forecastColumns = [
103
96
  { prop: 'predRefNo', label: '预报流水号', minWidth: 146, defaultVisible: true },
104
97
  { prop: 'tranDate', label: '起息日期', minWidth: 108, format: 'date', defaultVisible: true },
@@ -189,6 +182,7 @@ const optionMaps = {
189
182
  forecastWay: Object.fromEntries(forecastWayOptions.map((option) => [option.value, option.label])),
190
183
  }
191
184
 
185
+ // 创建预报和流水共用的默认筛选条件。
192
186
  function getLocalDateString() {
193
187
  const now = new Date()
194
188
  const year = now.getFullYear()
@@ -284,6 +278,16 @@ function prepareForeignSettlementRows(rows: any[], columns: any[]) {
284
278
  })
285
279
  }
286
280
 
281
+ // baseHttpClient 返回完整 TAM 报文,页面只读取 body 中的列表和总数。
282
+ function getResultInfos(response: any) {
283
+ return Array.isArray(response?.body?.resultInfos) ? response.body.resultInfos : []
284
+ }
285
+
286
+ function getTotalCount(response: any, fallback: number) {
287
+ const totalCount = Number(response?.body?.totalCount)
288
+ return Number.isFinite(totalCount) && totalCount >= 0 ? totalCount : fallback
289
+ }
290
+
287
291
  function compactForeignSettlementDate(value: string) {
288
292
  return value.replaceAll('-', '')
289
293
  }
@@ -296,6 +300,7 @@ function isForeignSettlementAbortError(error: unknown) {
296
300
  return error instanceof Error && error.name === 'AbortError'
297
301
  }
298
302
 
303
+ // 消息挂载到当前页面浮层容器,避免 KeepAlive 页面切换后残留到其他路由。
299
304
  function useScopedMessage(resolveAppendTo: () => HTMLElement | null) {
300
305
  const activeHandles = new Set<any>()
301
306
 
@@ -514,6 +519,7 @@ function resetAllTableSelections() {
514
519
  resetFlowSelectionState()
515
520
  }
516
521
 
522
+ // 核销和撤销核销共用前置校验,接口调用前保证勾选数据完整且业务口径一致。
517
523
  function validateSelection(action: 'verify' | 'cancelVerify'): any {
518
524
  if (forecastSelectedRows.value.length === 0) {
519
525
  return {
@@ -601,6 +607,7 @@ function validateSelection(action: 'verify' | 'cancelVerify'): any {
601
607
  return { success: true, message: '' }
602
608
  }
603
609
 
610
+ // 将多选记录按接口要求转换为逗号分隔字段。
604
611
  function buildVerifyRequest(): any {
605
612
  const forecasts = sortForecastRows(forecastSelectedRows.value)
606
613
  const flows = flowSelectedRows.value
@@ -641,6 +648,7 @@ function refreshOperationLists() {
641
648
  listRefreshKey.value += 1
642
649
  }
643
650
 
651
+ // 核销操作统一控制并发状态,并在成功后刷新预报、流水两张表。
644
652
  async function runOperation(action: 'verify' | 'cancelVerify'): Promise<any> {
645
653
  if (operationLoading.value) {
646
654
  return { success: false, message: '核销操作正在处理中,请稍候' }
@@ -650,8 +658,8 @@ async function runOperation(action: 'verify' | 'cancelVerify'): Promise<any> {
650
658
 
651
659
  activeOperation.value = action
652
660
  try {
653
- if (action === 'verify') await verifyForeignSettlements(buildVerifyRequest())
654
- else await cancelVerifyForeignSettlements(buildCancelVerifyRequest())
661
+ if (action === 'verify') await API.verifyApi(buildVerifyRequest())
662
+ else await API.cancelVerifyApi(buildCancelVerifyRequest())
655
663
  refreshOperationLists()
656
664
  return {
657
665
  success: true,
@@ -715,6 +723,7 @@ function deactivateForecastPanel() {
715
723
  closeForecastTransientOverlays()
716
724
  }
717
725
 
726
+ // 列表查询和导出共用同一组预报筛选参数,调用时再补充分页或 opType。
718
727
  const forecastQueryParams = computed<any>(() => {
719
728
  const [startAmount, endAmount] = forecastFilterForm.amountRange
720
729
 
@@ -767,6 +776,7 @@ function cancelForecastPendingRequest() {
767
776
  forecastAccountBankLoading.value = false
768
777
  }
769
778
 
779
+ // 账户行下拉展开时按当前币种请求,AbortController 防止旧请求覆盖新结果。
770
780
  async function handleForecastAccountBankVisibleChange(visible: boolean) {
771
781
  if (!visible) return
772
782
 
@@ -779,12 +789,12 @@ async function handleForecastAccountBankVisibleChange(visible: boolean) {
779
789
  forecastAccountBankLoading.value = true
780
790
 
781
791
  try {
782
- const result = await queryAccountBanks(
783
- { ccy: currency },
792
+ const response = await API.accountBankQueryApi(
793
+ { acctType: '', ccy: currency, zmqFlag: '' },
784
794
  { signal: controller.signal },
785
795
  )
786
796
  if (controller.signal.aborted || forecastAccountBankRequestController !== controller) return
787
- forecastAccountBankOptions.value = result
797
+ forecastAccountBankOptions.value = getResultInfos(response)
788
798
  loadedForecastAccountBankCurrency = currency
789
799
  } catch (error) {
790
800
  if (controller.signal.aborted) return
@@ -797,6 +807,7 @@ async function handleForecastAccountBankVisibleChange(visible: boolean) {
797
807
  }
798
808
  }
799
809
 
810
+ // 查询预报列表时只接收最后一次有效请求,并在刷新后清空原选择。
800
811
  async function loadForecasts(showSuccessMessage = false) {
801
812
  forecastRequestController?.abort()
802
813
  const controller = new AbortController()
@@ -804,7 +815,7 @@ async function loadForecasts(showSuccessMessage = false) {
804
815
  forecastLoading.value = true
805
816
 
806
817
  try {
807
- const result = await queryForeignSettlementForecasts({
818
+ const response = await API.forecastQueryApi({
808
819
  ...forecastQueryParams.value,
809
820
  pageIndex: forecastPage.value,
810
821
  pageSize: forecastPageSize.value,
@@ -813,8 +824,9 @@ async function loadForecasts(showSuccessMessage = false) {
813
824
  if (!forecastPanelActive || controller.signal.aborted || forecastRequestController !== controller) return false
814
825
 
815
826
  resetForecastSelection()
816
- forecastRows.value = prepareForeignSettlementRows(result.resultList, forecastColumns)
817
- forecastTotal.value = result.totalCount
827
+ const resultInfos = getResultInfos(response)
828
+ forecastRows.value = prepareForeignSettlementRows(resultInfos, forecastColumns)
829
+ forecastTotal.value = getTotalCount(response, resultInfos.length)
818
830
  if (showSuccessMessage) pageMessage.success('已查询预报信息')
819
831
  return true
820
832
  } catch (error) {
@@ -879,7 +891,7 @@ async function handleForecastAutoVerify() {
879
891
 
880
892
  activeOperation.value = 'autoVerify'
881
893
  try {
882
- await autoVerifyForeignSettlements({
894
+ await API.autoVerifyApi({
883
895
  tranDate: compactForeignSettlementDate(forecastFilterForm.tradeDate),
884
896
  })
885
897
  refreshOperationLists()
@@ -1024,6 +1036,7 @@ function deactivateFlowPanel() {
1024
1036
  closeFlowTransientOverlays()
1025
1037
  }
1026
1038
 
1039
+ // 流水查询参数与预报区域独立维护,避免两个卡片的筛选状态互相污染。
1027
1040
  function buildFlowQuery(): any {
1028
1041
  const [startAmount, endAmount] = flowFilterForm.amountRange
1029
1042
 
@@ -1074,6 +1087,7 @@ function cancelFlowPendingRequest() {
1074
1087
  flowAccountBankLoading.value = false
1075
1088
  }
1076
1089
 
1090
+ // 流水账户行使用独立请求控制器,切换币种时不会影响预报区域。
1077
1091
  async function handleFlowAccountBankVisibleChange(visible: boolean) {
1078
1092
  if (!visible) return
1079
1093
 
@@ -1086,12 +1100,12 @@ async function handleFlowAccountBankVisibleChange(visible: boolean) {
1086
1100
  flowAccountBankLoading.value = true
1087
1101
 
1088
1102
  try {
1089
- const result = await queryAccountBanks(
1090
- { ccy: currency },
1103
+ const response = await API.accountBankQueryApi(
1104
+ { acctType: '', ccy: currency, zmqFlag: '' },
1091
1105
  { signal: controller.signal },
1092
1106
  )
1093
1107
  if (controller.signal.aborted || flowAccountBankRequestController !== controller) return
1094
- flowAccountBankOptions.value = result
1108
+ flowAccountBankOptions.value = getResultInfos(response)
1095
1109
  loadedFlowAccountBankCurrency = currency
1096
1110
  } catch (error) {
1097
1111
  if (controller.signal.aborted) return
@@ -1104,6 +1118,7 @@ async function handleFlowAccountBankVisibleChange(visible: boolean) {
1104
1118
  }
1105
1119
  }
1106
1120
 
1121
+ // 查询流水列表时保留当前分页,并对过期请求结果进行丢弃。
1107
1122
  async function loadFlows(showSuccessMessage = false) {
1108
1123
  flowRequestController?.abort()
1109
1124
  const controller = new AbortController()
@@ -1111,7 +1126,7 @@ async function loadFlows(showSuccessMessage = false) {
1111
1126
  flowLoading.value = true
1112
1127
 
1113
1128
  try {
1114
- const result = await queryForeignSettlementFlows({
1129
+ const response = await API.flowQueryApi({
1115
1130
  ...buildFlowQuery(),
1116
1131
  pageIndex: flowPage.value,
1117
1132
  pageSize: flowPageSize.value,
@@ -1120,8 +1135,9 @@ async function loadFlows(showSuccessMessage = false) {
1120
1135
  if (!flowPanelActive || controller.signal.aborted || flowRequestController !== controller) return false
1121
1136
 
1122
1137
  resetFlowSelection()
1123
- flowRows.value = prepareForeignSettlementRows(result.resultList, flowColumns)
1124
- flowTotal.value = result.totalCount
1138
+ const resultInfos = getResultInfos(response)
1139
+ flowRows.value = prepareForeignSettlementRows(resultInfos, flowColumns)
1140
+ flowTotal.value = getTotalCount(response, resultInfos.length)
1125
1141
  if (showSuccessMessage) pageMessage.success('已查询流水信息')
1126
1142
  return true
1127
1143
  } catch (error) {
@@ -1145,6 +1161,13 @@ function handleFlowQuery() {
1145
1161
  void loadFlows(true)
1146
1162
  }
1147
1163
 
1164
+ function handleFlowExport() {
1165
+ console.log('外币流水信息导出参数:', {
1166
+ ...buildFlowQuery(),
1167
+ opType: 'export',
1168
+ })
1169
+ }
1170
+
1148
1171
  function handleFlowReset() {
1149
1172
  Object.assign(flowFilterForm, createDefaultForeignSettlementFilter())
1150
1173
  flowPage.value = 1
@@ -1184,8 +1207,8 @@ async function handleFlowFetch(action: 'fetchFlow' | 'fetchEndOfDayFlow') {
1184
1207
  const params = {
1185
1208
  queryDate: compactForeignSettlementDate(flowFilterForm.tradeDate),
1186
1209
  }
1187
- if (isEndOfDay) await fetchForeignSettlementEndOfDayFlows(params)
1188
- else await fetchForeignSettlementFlows(params)
1210
+ if (isEndOfDay) await API.fetchEndOfDayFlowApi(params)
1211
+ else await API.fetchFlowApi(params)
1189
1212
 
1190
1213
  flowPage.value = 1
1191
1214
  resetFlowSelection()
@@ -1223,6 +1246,7 @@ function syncFullscreenState() {
1223
1246
  isFullscreen.value = document.fullscreenElement === pageContainer.value
1224
1247
  }
1225
1248
 
1249
+ // 全屏监听只绑定一次,路由缓存停用或页面卸载时统一移除。
1226
1250
  function startFullscreenListener() {
1227
1251
  if (isListeningFullscreenChange) return
1228
1252
  document.addEventListener('fullscreenchange', syncFullscreenState)
@@ -1377,12 +1401,14 @@ onBeforeUnmount(() => {
1377
1401
  'forecast-info-page--fullscreen': isFullscreen,
1378
1402
  }"
1379
1403
  >
1404
+ <!-- 页面级浮层统一挂载点,用于全屏、KeepAlive 场景下的弹窗和消息。 -->
1380
1405
  <div
1381
1406
  id="foreign-currency-settlement-overlay-host"
1382
1407
  ref="overlayContainer"
1383
1408
  class="forecast-info-overlay-host"
1384
1409
  ></div>
1385
1410
 
1411
+ <!-- 预报信息:筛选、核销操作、汇总和列表。 -->
1386
1412
  <section
1387
1413
  class="forecast-info-card forecast-info-card--forecast"
1388
1414
  aria-labelledby="foreign-currency-forecast-info-title"
@@ -1455,7 +1481,7 @@ onBeforeUnmount(() => {
1455
1481
  <span>筛选FTU</span>
1456
1482
  <el-select
1457
1483
  v-model="forecastFilterForm.ftuFilter"
1458
- :append-to="overlayContainer || undefined"
1484
+ :teleported="!isFullscreen"
1459
1485
  size="small"
1460
1486
  placeholder="请选择"
1461
1487
  clearable
@@ -1473,7 +1499,7 @@ onBeforeUnmount(() => {
1473
1499
  <span>收支方向</span>
1474
1500
  <el-select
1475
1501
  v-model="forecastFilterForm.direction"
1476
- :append-to="overlayContainer || undefined"
1502
+ :teleported="!isFullscreen"
1477
1503
  size="small"
1478
1504
  placeholder="请选择"
1479
1505
  clearable
@@ -1491,7 +1517,7 @@ onBeforeUnmount(() => {
1491
1517
  <span>币种</span>
1492
1518
  <el-select
1493
1519
  v-model="forecastFilterForm.currency"
1494
- :append-to="overlayContainer || undefined"
1520
+ :teleported="!isFullscreen"
1495
1521
  size="small"
1496
1522
  placeholder="请选择"
1497
1523
  filterable
@@ -1673,6 +1699,7 @@ onBeforeUnmount(() => {
1673
1699
  </ElTablePro>
1674
1700
  </section>
1675
1701
 
1702
+ <!-- 预报更多筛选与顶部快捷筛选共用同一份表单。 -->
1676
1703
  <el-drawer
1677
1704
  v-if="forecastFilterDrawerVisible"
1678
1705
  :model-value="forecastFilterDrawerVisible"
@@ -1703,7 +1730,7 @@ onBeforeUnmount(() => {
1703
1730
  <span>筛选FTU</span>
1704
1731
  <el-select
1705
1732
  v-model="forecastFilterForm.ftuFilter"
1706
- :append-to="overlayContainer || undefined"
1733
+ :teleported="!isFullscreen"
1707
1734
  size="small"
1708
1735
  placeholder="请选择"
1709
1736
  clearable
@@ -1721,7 +1748,7 @@ onBeforeUnmount(() => {
1721
1748
  <span>收支方向</span>
1722
1749
  <el-select
1723
1750
  v-model="forecastFilterForm.direction"
1724
- :append-to="overlayContainer || undefined"
1751
+ :teleported="!isFullscreen"
1725
1752
  size="small"
1726
1753
  placeholder="请选择"
1727
1754
  clearable
@@ -1739,7 +1766,7 @@ onBeforeUnmount(() => {
1739
1766
  <span>币种</span>
1740
1767
  <el-select
1741
1768
  v-model="forecastFilterForm.currency"
1742
- :append-to="overlayContainer || undefined"
1769
+ :teleported="!isFullscreen"
1743
1770
  size="small"
1744
1771
  placeholder="请选择"
1745
1772
  filterable
@@ -1760,7 +1787,7 @@ onBeforeUnmount(() => {
1760
1787
  <span>业务类型</span>
1761
1788
  <el-select
1762
1789
  v-model="forecastFilterForm.businessType"
1763
- :append-to="overlayContainer || undefined"
1790
+ :teleported="!isFullscreen"
1764
1791
  size="small"
1765
1792
  placeholder="请选择"
1766
1793
  clearable
@@ -1778,7 +1805,7 @@ onBeforeUnmount(() => {
1778
1805
  <span>预报方式</span>
1779
1806
  <el-select
1780
1807
  v-model="forecastFilterForm.forecastWay"
1781
- :append-to="overlayContainer || undefined"
1808
+ :teleported="!isFullscreen"
1782
1809
  size="small"
1783
1810
  placeholder="请选择"
1784
1811
  clearable
@@ -1796,7 +1823,7 @@ onBeforeUnmount(() => {
1796
1823
  <span>勾兑状态</span>
1797
1824
  <el-select
1798
1825
  v-model="forecastFilterForm.verifyStatus"
1799
- :append-to="overlayContainer || undefined"
1826
+ :teleported="!isFullscreen"
1800
1827
  size="small"
1801
1828
  placeholder="请选择"
1802
1829
  clearable
@@ -1819,7 +1846,7 @@ onBeforeUnmount(() => {
1819
1846
  <span>账户行</span>
1820
1847
  <el-select
1821
1848
  v-model="forecastFilterForm.bankCode"
1822
- :append-to="overlayContainer || undefined"
1849
+ :teleported="!isFullscreen"
1823
1850
  :loading="forecastAccountBankLoading"
1824
1851
  size="small"
1825
1852
  placeholder="请选择账户行"
@@ -1872,6 +1899,7 @@ onBeforeUnmount(() => {
1872
1899
  </template>
1873
1900
  </el-drawer>
1874
1901
  </section>
1902
+ <!-- 流水信息:流水获取、筛选、汇总和列表。 -->
1875
1903
  <section
1876
1904
  class="forecast-info-card forecast-info-card--flow"
1877
1905
  aria-labelledby="foreign-currency-flow-info-title"
@@ -1944,7 +1972,7 @@ onBeforeUnmount(() => {
1944
1972
  <span>收支方向</span>
1945
1973
  <el-select
1946
1974
  v-model="flowFilterForm.direction"
1947
- :append-to="overlayContainer || undefined"
1975
+ :teleported="!isFullscreen"
1948
1976
  size="small"
1949
1977
  placeholder="请选择"
1950
1978
  clearable
@@ -1962,7 +1990,7 @@ onBeforeUnmount(() => {
1962
1990
  <span>币种</span>
1963
1991
  <el-select
1964
1992
  v-model="flowFilterForm.currency"
1965
- :append-to="overlayContainer || undefined"
1993
+ :teleported="!isFullscreen"
1966
1994
  size="small"
1967
1995
  placeholder="请选择"
1968
1996
  filterable
@@ -1983,7 +2011,7 @@ onBeforeUnmount(() => {
1983
2011
  <span>核销状态</span>
1984
2012
  <el-select
1985
2013
  v-model="flowFilterForm.verifyStatus"
1986
- :append-to="overlayContainer || undefined"
2014
+ :teleported="!isFullscreen"
1987
2015
  size="small"
1988
2016
  placeholder="请选择"
1989
2017
  clearable
@@ -2093,7 +2121,9 @@ onBeforeUnmount(() => {
2093
2121
  </template>
2094
2122
 
2095
2123
  <template #toolbar-right>
2096
- <el-button type="primary" plain size="small" :icon="Download">导出</el-button>
2124
+ <el-button type="primary" plain size="small" :icon="Download" @click="handleFlowExport">
2125
+ 导出
2126
+ </el-button>
2097
2127
  </template>
2098
2128
 
2099
2129
  <el-table-column
@@ -2149,6 +2179,7 @@ onBeforeUnmount(() => {
2149
2179
  </ElTablePro>
2150
2180
  </section>
2151
2181
 
2182
+ <!-- 流水更多筛选独立维护,不影响预报查询条件。 -->
2152
2183
  <el-drawer
2153
2184
  v-if="flowFilterDrawerVisible"
2154
2185
  :model-value="flowFilterDrawerVisible"
@@ -2179,7 +2210,7 @@ onBeforeUnmount(() => {
2179
2210
  <span>收支方向</span>
2180
2211
  <el-select
2181
2212
  v-model="flowFilterForm.direction"
2182
- :append-to="overlayContainer || undefined"
2213
+ :teleported="!isFullscreen"
2183
2214
  size="small"
2184
2215
  placeholder="请选择"
2185
2216
  clearable
@@ -2197,7 +2228,7 @@ onBeforeUnmount(() => {
2197
2228
  <span>币种</span>
2198
2229
  <el-select
2199
2230
  v-model="flowFilterForm.currency"
2200
- :append-to="overlayContainer || undefined"
2231
+ :teleported="!isFullscreen"
2201
2232
  size="small"
2202
2233
  placeholder="请选择"
2203
2234
  filterable
@@ -2218,7 +2249,7 @@ onBeforeUnmount(() => {
2218
2249
  <span>报文类型</span>
2219
2250
  <el-select
2220
2251
  v-model="flowFilterForm.messageTypes"
2221
- :append-to="overlayContainer || undefined"
2252
+ :teleported="!isFullscreen"
2222
2253
  size="small"
2223
2254
  placeholder="请选择或输入代码"
2224
2255
  multiple
@@ -2242,7 +2273,7 @@ onBeforeUnmount(() => {
2242
2273
  <span>核销状态</span>
2243
2274
  <el-select
2244
2275
  v-model="flowFilterForm.verifyStatus"
2245
- :append-to="overlayContainer || undefined"
2276
+ :teleported="!isFullscreen"
2246
2277
  size="small"
2247
2278
  placeholder="请选择"
2248
2279
  clearable
@@ -2265,7 +2296,7 @@ onBeforeUnmount(() => {
2265
2296
  <span>账户行</span>
2266
2297
  <el-select
2267
2298
  v-model="flowFilterForm.bankCode"
2268
- :append-to="overlayContainer || undefined"
2299
+ :teleported="!isFullscreen"
2269
2300
  :loading="flowAccountBankLoading"
2270
2301
  size="small"
2271
2302
  placeholder="请选择账户行"
@@ -821,6 +821,26 @@ td {
821
821
  .shibor-section th:nth-child(5) { width: 16%; }
822
822
  .shibor-section th:nth-child(6) { width: 16%; }
823
823
 
824
+ .shibor-section thead {
825
+ position: relative;
826
+ z-index: 1;
827
+ }
828
+
829
+ .shibor-section tbody.is-looping {
830
+ animation: shibor-table-loop var(--shibor-scroll-duration) linear infinite;
831
+ will-change: transform;
832
+ }
833
+
834
+ .shibor-section .table-shell:hover tbody.is-looping {
835
+ animation-play-state: paused;
836
+ }
837
+
838
+ @keyframes shibor-table-loop {
839
+ to {
840
+ transform: translate3d(0, -50%, 0);
841
+ }
842
+ }
843
+
824
844
  .monitor-section th:nth-child(1) { width: 38%; }
825
845
  .monitor-section th:nth-child(2) { width: 36%; }
826
846
  .monitor-section th:nth-child(3) { width: 26%; }
@@ -334,7 +334,7 @@ const gaugeCards = computed<GaugeCard[]>(() => [
334
334
  ])
335
335
 
336
336
  const shiborRows = computed<ShiborRow[]>(() =>
337
- shiborRecords.value.slice(0, 4).map((item) => {
337
+ shiborRecords.value.map((item) => {
338
338
  const useAssetFtp = Boolean(String(item.zcFtp ?? '').trim())
339
339
  return {
340
340
  date: displayText(item.dateDt),
@@ -347,6 +347,17 @@ const shiborRows = computed<ShiborRow[]>(() =>
347
347
  }),
348
348
  )
349
349
 
350
+ const isShiborLooping = computed(() => shiborRows.value.length > 4)
351
+ const shiborDisplayRows = computed(() =>
352
+ isShiborLooping.value ? [...shiborRows.value, ...shiborRows.value] : shiborRows.value,
353
+ )
354
+ const shiborScrollStyle = computed<Record<string, string> | undefined>(() => {
355
+ if (!isShiborLooping.value) return undefined
356
+ return {
357
+ '--shibor-scroll-duration': `${Math.max(shiborRows.value.length * 2.5, 12)}s`,
358
+ }
359
+ })
360
+
350
361
  const projectMetricRows = computed<ProjectMetricRow[]>(() => [
351
362
  { project: '同业负债占比', dataTime: displayText(interbankRecord.value.tyfzzbTime), current: displayText(interbankRecord.value.tyfzzb) },
352
363
  { project: '同业活期存款余额', dataTime: displayText(interbankRecord.value.tyhqckyeTime), current: displayText(interbankRecord.value.tyhqckye) },
@@ -1244,8 +1255,14 @@ onUnmounted(() => {
1244
1255
  <th>比上日(BP)</th>
1245
1256
  </tr>
1246
1257
  </thead>
1247
- <tbody>
1248
- <tr v-for="row in shiborRows" :key="`${row.date}-${row.term}`">
1258
+ <tbody
1259
+ :class="{ 'is-looping': isShiborLooping }"
1260
+ :style="shiborScrollStyle"
1261
+ >
1262
+ <tr
1263
+ v-for="(row, index) in shiborDisplayRows"
1264
+ :key="`${row.date}-${row.term}-${index}`"
1265
+ >
1249
1266
  <td>{{ row.date }}</td>
1250
1267
  <td>{{ row.term }}</td>
1251
1268
  <td>{{ row.shibor }}</td>