verce-vue-test 0.0.144 → 0.0.145

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.144",
3
+ "version": "0.0.145",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -2,49 +2,77 @@ import baseHttpClient from '@/utils/baseHttpClient'
2
2
 
3
3
  /** 城银清手工核销预报信息查询参数。 */
4
4
  export type QueryParamsModel = {
5
+ /** 账号。 */
5
6
  acctNo?: string
7
+ /** 落地机构模糊查询关键字。 */
6
8
  banchPre?: string
9
+ /** 落地机构号列表。 */
7
10
  branchCodeList?: string[]
11
+ /** 业务类型。 */
8
12
  busiType?: string
13
+ /** 客户名称。 */
9
14
  clientName?: string
15
+ /** 交易对手名称。 */
10
16
  competName?: string
17
+ /** 截止交易金额,单位:元。 */
11
18
  endTransAmt?: string
19
+ /** 当前页码。 */
12
20
  pageIndex?: number
21
+ /** 每页记录数。 */
13
22
  pageSize?: number
23
+ /** 支付渠道。 */
14
24
  payChannel?: string
25
+ /** 收付方向。 */
15
26
  payDirec?: string
27
+ /** 起始交易金额,单位:元。 */
16
28
  startTransAmt?: string
29
+ /** 交易日期,格式:yyyyMMdd。 */
17
30
  tranDate: string
31
+ /** 核销状态列表。 */
18
32
  verifyStatusList?: string[]
19
33
  }
20
34
 
21
35
  /** 城银清手工核销流水信息查询参数。 */
22
36
  export type QueryParamsRunModel = {
37
+ /** 客户名称。 */
23
38
  clientName?: string
39
+ /** 交易对手名称。 */
24
40
  competName?: string
41
+ /** 截止交易金额,单位:元。 */
25
42
  endTransAmt?: string
43
+ /** 机构名称。 */
26
44
  orgName?: string
45
+ /** 当前页码。 */
27
46
  pageIndex?: number
47
+ /** 每页记录数。 */
28
48
  pageSize?: number
49
+ /** 收付方向。 */
29
50
  payDirec?: string
51
+ /** 起始交易金额,单位:元。 */
30
52
  startTransAmt?: string
53
+ /** 交易日期,格式:yyyyMMdd。 */
31
54
  tranDate: string
55
+ /** 核销状态。 */
32
56
  verifyStatus?: string
33
57
  }
34
58
 
35
59
  /** 城银清手工核销预报信息修改参数。 */
36
60
  export type EditParamsModel = {
61
+ /** 修改前已核销金额。 */
37
62
  beforeVerifyAmt: string
63
+ /** 预报金额。 */
38
64
  predAmt: string
65
+ /** 预报流水号。 */
39
66
  predRefNo: string
67
+ /** 修改后已核销金额。 */
40
68
  verifyAmt: string
41
69
  }
42
70
 
43
71
  const API = {
44
72
  /**
45
73
  * 预报信息查询
46
- * @param params
47
- * @returns
74
+ * @param params 预报信息筛选及分页参数
75
+ * @returns 预报信息查询请求
48
76
  */
49
77
  queryPreList: (params: QueryParamsModel) => {
50
78
  return baseHttpClient.post('/TAM/0001/140302001', params)
@@ -52,8 +80,8 @@ const API = {
52
80
 
53
81
  /**
54
82
  * 流水信息查询
55
- * @param params
56
- * @returns
83
+ * @param params 流水信息筛选及分页参数
84
+ * @returns 流水信息查询请求
57
85
  */
58
86
  queryRunList: (params: QueryParamsRunModel) => {
59
87
  return baseHttpClient.post('/TAM/0001/140302002', params)
@@ -61,8 +89,8 @@ const API = {
61
89
 
62
90
  /**
63
91
  * 城银清手工核销-预报信息修改
64
- * @param params
65
- * @returns
92
+ * @param params 预报信息修改参数
93
+ * @returns 预报信息修改请求
66
94
  */
67
95
  editApi: (params: EditParamsModel) => {
68
96
  return baseHttpClient.post('/TAM/0001/120302001', params)
@@ -70,8 +98,8 @@ const API = {
70
98
 
71
99
  /**
72
100
  * 城银清手工核销-核销
73
- * @param params
74
- * @returns
101
+ * @param params 所选预报和流水的核销数据
102
+ * @returns 核销请求
75
103
  */
76
104
  verificationApi: (params: any) => {
77
105
  return baseHttpClient.post('/TAM/0001/120302002', params)
@@ -79,8 +107,8 @@ const API = {
79
107
 
80
108
  /**
81
109
  * 城银清手工核销-撤销核销
82
- * @param params
83
- * @returns
110
+ * @param params 所选预报和流水的撤销核销数据
111
+ * @returns 撤销核销请求
84
112
  */
85
113
  cancelVerificationApi: (params: any) => {
86
114
  return baseHttpClient.post('/TAM/0001/120302003', params)
@@ -30,64 +30,106 @@ import {
30
30
  } from '@element-plus/icons-vue'
31
31
  import { formatThousands } from '@/utils/formatters'
32
32
  import API from './api'
33
+ import { getCurrentTradeDate } from './runtime'
33
34
 
35
+ /** 卡片排列方式:上下排列或左右排列。 */
34
36
  type CardLayout = 'vertical' | 'horizontal'
37
+ /** 金额范围,依次为起始金额和截止金额,内部统一以元保存。 */
35
38
  type AmountRange = [number | null, number | null]
39
+ /** 表格原始记录及预先格式化后的展示值。 */
36
40
  type SettlementRow = Record<string, any> & {
41
+ /** 按字段名保存的表格展示文本。 */
37
42
  __displayValues?: Record<string, string>
38
43
  }
39
44
 
45
+ /** 循环渲染 ElTablePro 列时使用的统一列配置。 */
40
46
  type CityTableColumnConfig = {
47
+ /** 列的唯一标识。 */
41
48
  key: string
49
+ /** 列类型:选择列、序号列或业务数据列。 */
42
50
  kind: 'selection' | 'index' | 'data'
51
+ /** 业务数据字段名,非数据列为空。 */
43
52
  prop: string
53
+ /** 透传给 el-table-column 的属性。 */
44
54
  props: Record<string, any>
45
55
  }
46
56
 
57
+ /** 预报信息查询筛选字段。 */
47
58
  type PreFilter = {
59
+ /** 交易日期,页面格式为 YYYY-MM-DD。 */
48
60
  tradeDate: string
61
+ /** 收支方向。 */
49
62
  payDirec: string
63
+ /** 支付渠道。 */
50
64
  payChannel: string
65
+ /** 核销状态。 */
51
66
  verifyStatus: string
67
+ /** 客户名称。 */
52
68
  clientName: string
69
+ /** 交易对手名称。 */
53
70
  competName: string
71
+ /** 我方账号。 */
54
72
  acctNo: string
73
+ /** 机构名称或代码关键字。 */
55
74
  branchKeyword: string
75
+ /** 逗号或空格分隔的机构号列表。 */
56
76
  branchCodeList: string
77
+ /** 业务类型。 */
57
78
  busiType: string
79
+ /** 预报金额范围。 */
58
80
  amountRange: AmountRange
59
81
  }
60
82
 
83
+ /** 流水信息查询筛选字段。 */
61
84
  type FlowFilter = {
85
+ /** 交易日期,页面格式为 YYYY-MM-DD。 */
62
86
  tradeDate: string
87
+ /** 收支方向。 */
63
88
  payDirec: string
89
+ /** 核销状态。 */
64
90
  verifyStatus: string
91
+ /** 我方户名。 */
65
92
  clientName: string
93
+ /** 对方户名。 */
66
94
  competName: string
95
+ /** 我方机构。 */
67
96
  orgName: string
97
+ /** 流水金额范围。 */
68
98
  amountRange: AmountRange
69
99
  }
70
100
 
101
+ /** 核销类操作类型。 */
71
102
  type OperationAction = 'verify' | 'cancelVerify'
72
103
 
104
+ /** NumberRange 展示单位“万”与接口单位“元”的换算倍数。 */
73
105
  const amountUnitMultiplier = 10_000
106
+ /** 金额范围默认起始值:2000 万元。 */
74
107
  const defaultMinAmount = 2000 * amountUnitMultiplier
75
108
 
109
+ /** 预报信息收支方向选项。 */
76
110
  const preDirectionOptions = [
77
111
  { value: '1', label: '收入' },
78
112
  { value: '2', label: '支出' },
79
113
  ]
80
114
 
115
+ /** 流水信息收支方向选项。 */
81
116
  const flowDirectionOptions = [
82
117
  { value: '1', label: '收入' },
83
118
  { value: '0', label: '支出' },
84
119
  ]
85
120
 
121
+ /** 支付渠道选项。 */
86
122
  const payChannelOptions = [
87
- { value: 'HVPS', label: '大额支付' },
88
- { value: 'BEPS', label: '小额支付' },
123
+ { value: '1', label: '大额支付' },
124
+ { value: '2', label: '小额支付' },
125
+ { value: '3', label: '票据交换' },
126
+ { value: '4', label: '同城支付' },
127
+ { value: '5', label: '城银清算' },
128
+ { value: '6', label: '跨境人民币' },
129
+ { value: '7', label: '网联支付' },
89
130
  ]
90
131
 
132
+ /** 业务类型选项。 */
91
133
  const businessTypeOptions = [
92
134
  { value: '1', label: '对公/个人客户收付' },
93
135
  { value: '5', label: '同业业务' },
@@ -95,42 +137,63 @@ const businessTypeOptions = [
95
137
  { value: '21', label: '其他' },
96
138
  ]
97
139
 
140
+ /** 预报信息核销状态选项。 */
98
141
  const preVerifyStatusOptions = [
99
142
  { value: 'pending', label: '待核销' },
100
143
  { value: '2', label: '已核销' },
101
144
  ]
102
145
 
146
+ /** 流水信息核销状态选项。 */
103
147
  const flowVerifyStatusOptions = [
104
148
  { value: '1', label: '未核销' },
105
149
  { value: '2', label: '已核销' },
106
150
  ]
107
151
 
152
+ /** 预报核销状态代码对应的展示文本。 */
108
153
  const preStatusMap: Record<string, string> = {
109
154
  '1': '未核销',
110
155
  '2': '已核销',
111
156
  '3': '部分核销',
112
157
  }
113
158
 
159
+ /** 流水核销状态代码对应的展示文本。 */
114
160
  const flowStatusMap: Record<string, string> = {
115
161
  '1': '未核销',
116
162
  '2': '已核销',
117
163
  }
118
164
 
165
+ /** 预报收支方向代码对应的展示文本。 */
119
166
  const preDirectionMap: Record<string, string> = {
120
167
  '1': '收入',
121
168
  '2': '支出',
122
169
  }
123
170
 
171
+ /** 流水收支方向代码对应的展示文本。 */
124
172
  const flowDirectionMap: Record<string, string> = {
125
173
  '1': '收入',
126
174
  '0': '支出',
127
175
  }
128
176
 
177
+ /** 支付渠道代码对应的展示文本。 */
129
178
  const payChannelMap: Record<string, string> = {
130
- HVPS: '大额支付',
131
- BEPS: '小额支付',
179
+ '1': '大额支付',
180
+ '2': '小额支付',
181
+ '3': '票据交换',
182
+ '4': '同城支付',
183
+ '5': '城银清算',
184
+ '6': '跨境人民币',
185
+ '7': '网联支付',
132
186
  }
133
187
 
188
+ /** 业务类型代码对应的展示文本。 */
189
+ const businessTypeMap: Record<string, string> = {
190
+ '1': '对公/个人客户收付',
191
+ '5': '同业业务',
192
+ '20': '托管业务',
193
+ '21': '其他',
194
+ }
195
+
196
+ /** 预报状态代码对应的展示文本。 */
134
197
  const preStatusDescriptionMap: Record<string, string> = {
135
198
  '1': '正常预报',
136
199
  '2': '延迟预报',
@@ -139,6 +202,7 @@ const preStatusDescriptionMap: Record<string, string> = {
139
202
  '5': '延迟预报延时删除',
140
203
  }
141
204
 
205
+ /** 预报信息业务列配置,预报流水号默认隐藏。 */
142
206
  const forecastColumns = [
143
207
  { prop: 'predRefNo', label: '预报流水号', minWidth: 150, defaultVisible: false },
144
208
  { prop: 'verifyStatus', label: '核销状态', minWidth: 100, format: 'preVerifyStatus', defaultVisible: true },
@@ -155,11 +219,12 @@ const forecastColumns = [
155
219
  { prop: 'billSignDate', label: '出票日', minWidth: 108, format: 'date', defaultVisible: true },
156
220
  { prop: 'payChannel', label: '支付渠道', minWidth: 108, format: 'payChannel', defaultVisible: true },
157
221
  { prop: 'tranDate', label: '交易日期', minWidth: 108, format: 'date', defaultVisible: true },
158
- { prop: 'busiType', label: '业务类型', minWidth: 110, defaultVisible: true },
222
+ { prop: 'busiType', label: '业务类型', minWidth: 110, format: 'businessType', defaultVisible: true },
159
223
  { prop: 'predStatus', label: '预报状态', minWidth: 170, format: 'predStatus', defaultVisible: true },
160
224
  { prop: 'edusFlag', label: '释放状态', minWidth: 100, defaultVisible: true },
161
225
  ]
162
226
 
227
+ /** 流水信息业务列配置。 */
163
228
  const flowColumns = [
164
229
  { prop: 'refNo', label: '交易参考号', minWidth: 154, defaultVisible: true },
165
230
  { prop: 'verifyStatus', label: '核销状态', minWidth: 100, format: 'flowVerifyStatus', defaultVisible: true },
@@ -176,25 +241,19 @@ const flowColumns = [
176
241
  { prop: 'payChannel', label: '支付渠道', minWidth: 108, format: 'payChannel', defaultVisible: true },
177
242
  { prop: 'tranDate', label: '交易日期', minWidth: 108, format: 'dateTime', defaultVisible: true },
178
243
  { prop: 'settleDate', label: '清算时间', minWidth: 126, format: 'dateTime', defaultVisible: true },
179
- { prop: 'busiType', label: '支付系统业务类型', minWidth: 164, defaultVisible: true },
244
+ { prop: 'busiType', label: '支付系统业务类型', minWidth: 164, format: 'businessType', defaultVisible: true },
180
245
  ]
181
246
 
247
+ /** 卡片布局切换选项。 */
182
248
  const layoutOptions = [
183
249
  { label: '上下卡片', value: 'vertical' as const, icon: Menu },
184
250
  { label: '左右卡片', value: 'horizontal' as const, icon: Grid },
185
251
  ]
186
252
 
187
- function getLocalDateString() {
188
- const now = new Date()
189
- const year = now.getFullYear()
190
- const month = String(now.getMonth() + 1).padStart(2, '0')
191
- const day = String(now.getDate()).padStart(2, '0')
192
- return year + '-' + month + '-' + day
193
- }
194
-
253
+ /** 创建预报信息默认筛选条件。 */
195
254
  function createPreFilter(): PreFilter {
196
255
  return {
197
- tradeDate: getLocalDateString(),
256
+ tradeDate: getCurrentTradeDate(),
198
257
  payDirec: '',
199
258
  payChannel: '',
200
259
  verifyStatus: '',
@@ -209,9 +268,10 @@ function createPreFilter(): PreFilter {
209
268
  }
210
269
  }
211
270
 
271
+ /** 创建流水信息默认筛选条件。 */
212
272
  function createFlowFilter(): FlowFilter {
213
273
  return {
214
- tradeDate: getLocalDateString(),
274
+ tradeDate: getCurrentTradeDate(),
215
275
  payDirec: '',
216
276
  verifyStatus: '',
217
277
  clientName: '',
@@ -222,24 +282,29 @@ function createFlowFilter(): FlowFilter {
222
282
  }
223
283
  }
224
284
 
285
+ /** 将页面日期转换为 TAM 接口要求的 YYYYMMDD。 */
225
286
  function compactDate(value: string) {
226
287
  return String(value ?? '').replaceAll('-', '')
227
288
  }
228
289
 
290
+ /** 将金额文本安全转换为可计算数字。 */
229
291
  function parseAmount(value: unknown) {
230
292
  const amount = Number(String(value ?? '').replaceAll(',', '').trim())
231
293
  return Number.isFinite(amount) ? amount : 0
232
294
  }
233
295
 
296
+ /** 移除金额中的千分位并返回接口可用文本。 */
234
297
  function cleanAmount(value: unknown) {
235
298
  return String(value ?? '').replaceAll(',', '').trim()
236
299
  }
237
300
 
301
+ /** 将金额格式化为带千分位的展示文本。 */
238
302
  function formatAmount(value: unknown) {
239
303
  const text = cleanAmount(value)
240
304
  return text ? formatThousands(text, '-') : '-'
241
305
  }
242
306
 
307
+ /** 格式化日期或日期时间字段。 */
243
308
  function formatDate(value: unknown, includeTime = false) {
244
309
  const text = String(value ?? '').trim().replace('T', ' ')
245
310
  if (!text) return '-'
@@ -249,6 +314,7 @@ function formatDate(value: unknown, includeTime = false) {
249
314
  return includeTime ? text.replace(/\.\d+(Z)?$/, '').replace(/Z$/, '') : text.slice(0, 10)
250
315
  }
251
316
 
317
+ /** 兼容 VS01、VS1 和数字状态值,统一返回数字状态代码。 */
252
318
  function normalizeStatus(value: unknown) {
253
319
  const text = String(value ?? '').trim().toUpperCase()
254
320
  if (/^VS0[1-3]$/.test(text)) return text.slice(-1)
@@ -256,9 +322,10 @@ function normalizeStatus(value: unknown) {
256
322
  return text
257
323
  }
258
324
 
325
+ /** 根据列配置格式化单元格展示文本。 */
259
326
  function formatCell(value: unknown, format = '') {
260
327
  const text = String(value ?? '').trim()
261
- if (!text) return '-'
328
+ if (!text) return ''
262
329
  if (format === 'amount') return formatAmount(text)
263
330
  if (format === 'date') return formatDate(text)
264
331
  if (format === 'dateTime') return formatDate(text, true)
@@ -267,10 +334,12 @@ function formatCell(value: unknown, format = '') {
267
334
  if (format === 'preDirection') return preDirectionMap[text] ?? text
268
335
  if (format === 'flowDirection') return flowDirectionMap[text] ?? text
269
336
  if (format === 'payChannel') return payChannelMap[text] ?? text
337
+ if (format === 'businessType') return businessTypeMap[text] ?? text
270
338
  if (format === 'predStatus') return preStatusDescriptionMap[text] ?? text
271
339
  return text
272
340
  }
273
341
 
342
+ /** 补充预报未核销金额并生成各字段展示值。 */
274
343
  function preparePreRows(rows: any[]) {
275
344
  return rows.map((row) => {
276
345
  const unverifyAmt = parseAmount(row.predAmt) - parseAmount(row.verifyAmt)
@@ -287,6 +356,7 @@ function preparePreRows(rows: any[]) {
287
356
  })
288
357
  }
289
358
 
359
+ /** 为流水记录生成各字段展示值。 */
290
360
  function prepareFlowRows(rows: any[]) {
291
361
  return rows.map((row) => {
292
362
  const displayValues: Record<string, string> = {}
@@ -300,19 +370,23 @@ function prepareFlowRows(rows: any[]) {
300
370
  })
301
371
  }
302
372
 
373
+ /** 从 TAM 响应中安全获取列表数据。 */
303
374
  function getResultList(response: any) {
304
375
  return Array.isArray(response?.body?.resultList) ? response.body.resultList : []
305
376
  }
306
377
 
378
+ /** 从 TAM 响应中获取总记录数,缺失时使用当前列表长度。 */
307
379
  function getTotalCount(response: any, fallback: number) {
308
380
  const count = Number(response?.body?.totalCount)
309
381
  return Number.isFinite(count) && count >= 0 ? count : fallback
310
382
  }
311
383
 
384
+ /** 将可空金额转换为查询接口使用的字符串。 */
312
385
  function toQueryAmount(value: number | null) {
313
386
  return value === null ? '' : String(Math.round(value))
314
387
  }
315
388
 
389
+ /** 将机构号输入拆分为机构号数组。 */
316
390
  function splitBranchCodes(value: string) {
317
391
  return value
318
392
  .split(/[,\s,]+/)
@@ -320,22 +394,33 @@ function splitBranchCodes(value: string) {
320
394
  .filter(Boolean)
321
395
  }
322
396
 
397
+ /** 将页面预报核销状态转换为接口状态列表。 */
323
398
  function getPreVerifyStatusList(value: string) {
324
399
  if (value === 'pending') return ['1', '3']
325
400
  if (value === '2') return ['2']
326
401
  return []
327
402
  }
328
403
 
404
+ /** 当前页面路由。 */
329
405
  const route = useRoute()
406
+ /** 当前页面所属的路由记录。 */
330
407
  const ownerRouteRecord = route.matched[route.matched.length - 1]
408
+ /** 当前路由是否仍包含本页面,用于避免缓存页面误更新。 */
331
409
  const isCurrentRoute = computed(() => !ownerRouteRecord || route.matched.includes(ownerRouteRecord))
410
+ /** 页面全屏容器。 */
332
411
  const pageContainer = ref<HTMLElement | null>(null)
412
+ /** 消息、弹窗等浮层的挂载容器。 */
333
413
  const overlayContainer = ref<HTMLElement | null>(null)
414
+ /** 页面是否处于全屏状态。 */
334
415
  const isFullscreen = ref(false)
416
+ /** 页面实例唯一标识。 */
335
417
  const pageScopeId = 'city-bank-clearing-settlement-page-' + (getCurrentInstance()?.uid ?? 0)
418
+ /** 全屏时分页下拉层的挂载目标。 */
336
419
  const paginationAppendTo = computed(() => (isFullscreen.value ? '#' + pageScopeId : undefined))
337
420
 
421
+ /** 当前卡片排列方式。 */
338
422
  const cardLayout = ref<CardLayout>('horizontal')
423
+ /** 卡片排列方式的本地存储键。 */
339
424
  const cardLayoutStorageKey = 'city-bank-clearing-settlement:card-layout'
340
425
  if (typeof window !== 'undefined') {
341
426
  try {
@@ -346,7 +431,10 @@ if (typeof window !== 'undefined') {
346
431
  }
347
432
  }
348
433
 
434
+ /** 当前页面创建的消息实例集合。 */
349
435
  const messageHandles = new Set<any>()
436
+
437
+ /** 在页面浮层容器中显示消息提示。 */
350
438
  function notify(type: 'success' | 'warning' | 'info' | 'error', message: string) {
351
439
  let handle: any
352
440
  handle = ElMessage({
@@ -360,6 +448,7 @@ function notify(type: 'success' | 'warning' | 'info' | 'error', message: string)
360
448
  messageHandles.add(handle)
361
449
  }
362
450
 
451
+ /** 关闭并清理当前页面创建的全部消息提示。 */
363
452
  function closeMessages() {
364
453
  messageHandles.forEach((handle) => {
365
454
  try {
@@ -371,32 +460,54 @@ function closeMessages() {
371
460
  messageHandles.clear()
372
461
  }
373
462
 
463
+ /** 预报信息筛选表单。 */
374
464
  const preFilterForm = reactive(createPreFilter())
465
+ /** 流水信息筛选表单。 */
375
466
  const flowFilterForm = reactive(createFlowFilter())
467
+ /** 预报更多筛选抽屉是否显示。 */
376
468
  const preFilterDrawerVisible = ref(false)
469
+ /** 流水更多筛选抽屉是否显示。 */
377
470
  const flowFilterDrawerVisible = ref(false)
471
+ /** 预报信息当前页码。 */
378
472
  const prePage = ref(1)
473
+ /** 流水信息当前页码。 */
379
474
  const flowPage = ref(1)
475
+ /** 预报信息每页条数。 */
380
476
  const prePageSize = ref(cardLayout.value === 'vertical' ? 10 : 20)
477
+ /** 流水信息每页条数。 */
381
478
  const flowPageSize = ref(cardLayout.value === 'vertical' ? 10 : 20)
479
+ /** 预报信息查询加载状态。 */
382
480
  const preLoading = ref(false)
481
+ /** 流水信息查询加载状态。 */
383
482
  const flowLoading = ref(false)
483
+ /** 预报信息总记录数。 */
384
484
  const preTotal = ref(0)
485
+ /** 流水信息总记录数。 */
385
486
  const flowTotal = ref(0)
487
+ /** 预报信息表格数据。 */
386
488
  const preRows = shallowRef<SettlementRow[]>([])
489
+ /** 流水信息表格数据。 */
387
490
  const flowRows = shallowRef<SettlementRow[]>([])
491
+ /** 已选择的预报信息。 */
388
492
  const preSelectedRows = shallowRef<SettlementRow[]>([])
493
+ /** 已选择的流水信息。 */
389
494
  const flowSelectedRows = shallowRef<SettlementRow[]>([])
495
+ /** 预报表格选择状态重置标识。 */
390
496
  const preSelectionResetKey = ref(0)
497
+ /** 流水表格选择状态重置标识。 */
391
498
  const flowSelectionResetKey = ref(0)
392
- const preTable = ref<any>(null)
393
- const flowTable = ref<any>(null)
499
+ /** 当前正在执行的业务操作。 */
394
500
  const activeOperation = ref<OperationAction | 'edit' | null>(null)
501
+ /** 页面是否正在提交业务操作。 */
395
502
  const operationLoading = computed(() => activeOperation.value !== null)
503
+ /** 最新预报查询请求序号,用于忽略过期响应。 */
396
504
  let preRequestSerial = 0
505
+ /** 最新流水查询请求序号,用于忽略过期响应。 */
397
506
  let flowRequestSerial = 0
398
507
 
508
+ /** 预报更多筛选中已填写的条件数量。 */
399
509
  const preActiveMoreFilterCount = computed(() => [
510
+ cardLayout.value === 'horizontal' ? preFilterForm.payChannel : '',
400
511
  preFilterForm.clientName.trim(),
401
512
  preFilterForm.competName.trim(),
402
513
  preFilterForm.acctNo.trim(),
@@ -406,6 +517,7 @@ const preActiveMoreFilterCount = computed(() => [
406
517
  preFilterForm.amountRange.some((value) => value !== null) ? 'amountRange' : '',
407
518
  ].filter(Boolean).length)
408
519
 
520
+ /** 流水更多筛选中已填写的条件数量。 */
409
521
  const flowActiveMoreFilterCount = computed(() => [
410
522
  flowFilterForm.clientName.trim(),
411
523
  flowFilterForm.competName.trim(),
@@ -413,29 +525,35 @@ const flowActiveMoreFilterCount = computed(() => [
413
525
  flowFilterForm.amountRange.some((value) => value !== null) ? 'amountRange' : '',
414
526
  ].filter(Boolean).length)
415
527
 
528
+ /** 清空预报表格选择状态。 */
416
529
  function resetPreSelection() {
417
530
  preSelectedRows.value = []
418
531
  preSelectionResetKey.value += 1
419
532
  }
420
533
 
534
+ /** 清空流水表格选择状态。 */
421
535
  function resetFlowSelection() {
422
536
  flowSelectedRows.value = []
423
537
  flowSelectionResetKey.value += 1
424
538
  }
425
539
 
540
+ /** 清空两个表格的选择状态。 */
426
541
  function resetAllSelections() {
427
542
  resetPreSelection()
428
543
  resetFlowSelection()
429
544
  }
430
545
 
546
+ /** 更新已选择的预报记录。 */
431
547
  function setPreSelection(rows: SettlementRow[]) {
432
548
  preSelectedRows.value = rows
433
549
  }
434
550
 
551
+ /** 更新已选择的流水记录。 */
435
552
  function setFlowSelection(rows: SettlementRow[]) {
436
553
  flowSelectedRows.value = rows
437
554
  }
438
555
 
556
+ /** 根据预报筛选表单生成接口查询参数。 */
439
557
  function buildPreQuery() {
440
558
  const [startAmount, endAmount] = preFilterForm.amountRange
441
559
  return {
@@ -454,6 +572,7 @@ function buildPreQuery() {
454
572
  }
455
573
  }
456
574
 
575
+ /** 根据流水筛选表单生成接口查询参数。 */
457
576
  function buildFlowQuery() {
458
577
  const [startAmount, endAmount] = flowFilterForm.amountRange
459
578
  return {
@@ -468,6 +587,7 @@ function buildFlowQuery() {
468
587
  }
469
588
  }
470
589
 
590
+ /** 校验金额范围是否合法。 */
471
591
  function validateAmountRange(range: AmountRange) {
472
592
  const [startAmount, endAmount] = range
473
593
  if ((startAmount !== null && startAmount < 0) || (endAmount !== null && endAmount < 0)) {
@@ -481,6 +601,7 @@ function validateAmountRange(range: AmountRange) {
481
601
  return true
482
602
  }
483
603
 
604
+ /** 查询预报信息并更新表格数据。 */
484
605
  async function loadPreList(showSuccessMessage = false) {
485
606
  const serial = ++preRequestSerial
486
607
  preLoading.value = true
@@ -506,6 +627,7 @@ async function loadPreList(showSuccessMessage = false) {
506
627
  }
507
628
  }
508
629
 
630
+ /** 查询流水信息并更新表格数据。 */
509
631
  async function loadFlowList(showSuccessMessage = false) {
510
632
  const serial = ++flowRequestSerial
511
633
  flowLoading.value = true
@@ -531,6 +653,7 @@ async function loadFlowList(showSuccessMessage = false) {
531
653
  }
532
654
  }
533
655
 
656
+ /** 执行预报信息筛选查询。 */
534
657
  function handlePreQuery() {
535
658
  if (!validateAmountRange(preFilterForm.amountRange) || preLoading.value) return
536
659
  prePage.value = 1
@@ -538,6 +661,7 @@ function handlePreQuery() {
538
661
  void loadPreList(true)
539
662
  }
540
663
 
664
+ /** 执行流水信息筛选查询。 */
541
665
  function handleFlowQuery() {
542
666
  if (!validateAmountRange(flowFilterForm.amountRange) || flowLoading.value) return
543
667
  flowPage.value = 1
@@ -545,6 +669,7 @@ function handleFlowQuery() {
545
669
  void loadFlowList(true)
546
670
  }
547
671
 
672
+ /** 重置预报信息筛选条件。 */
548
673
  function handlePreReset() {
549
674
  Object.assign(preFilterForm, createPreFilter())
550
675
  prePage.value = 1
@@ -552,6 +677,7 @@ function handlePreReset() {
552
677
  notify('info', '预报筛选条件已重置')
553
678
  }
554
679
 
680
+ /** 重置流水信息筛选条件。 */
555
681
  function handleFlowReset() {
556
682
  Object.assign(flowFilterForm, createFlowFilter())
557
683
  flowPage.value = 1
@@ -559,26 +685,31 @@ function handleFlowReset() {
559
685
  notify('info', '流水筛选条件已重置')
560
686
  }
561
687
 
688
+ /** 处理预报信息分页变化。 */
562
689
  function handlePrePaginationChange(pagination: { page: number; pageSize: number }) {
563
690
  prePage.value = pagination.page
564
691
  prePageSize.value = pagination.pageSize
565
692
  void loadPreList()
566
693
  }
567
694
 
695
+ /** 处理流水信息分页变化。 */
568
696
  function handleFlowPaginationChange(pagination: { page: number; pageSize: number }) {
569
697
  flowPage.value = pagination.page
570
698
  flowPageSize.value = pagination.pageSize
571
699
  void loadFlowList()
572
700
  }
573
701
 
702
+ /** 计算预报记录在全部数据中的序号。 */
574
703
  function getPreSequence(index: number) {
575
704
  return (prePage.value - 1) * prePageSize.value + index + 1
576
705
  }
577
706
 
707
+ /** 计算流水记录在全部数据中的序号。 */
578
708
  function getFlowSequence(index: number) {
579
709
  return (flowPage.value - 1) * flowPageSize.value + index + 1
580
710
  }
581
711
 
712
+ /** 将业务字段配置转换为 ElTablePro 数据列配置。 */
582
713
  function createDataColumnConfig(column: {
583
714
  prop: string
584
715
  label: string
@@ -601,6 +732,7 @@ function createDataColumnConfig(column: {
601
732
  }
602
733
  }
603
734
 
735
+ /** 预报信息表格列配置。 */
604
736
  const forecastTableColumns: CityTableColumnConfig[] = [
605
737
  {
606
738
  key: 'selection',
@@ -617,6 +749,7 @@ const forecastTableColumns: CityTableColumnConfig[] = [
617
749
  ...forecastColumns.map(createDataColumnConfig),
618
750
  ]
619
751
 
752
+ /** 流水信息表格列配置。 */
620
753
  const flowTableColumns: CityTableColumnConfig[] = [
621
754
  {
622
755
  key: 'selection',
@@ -633,15 +766,18 @@ const flowTableColumns: CityTableColumnConfig[] = [
633
766
  ...flowColumns.map(createDataColumnConfig),
634
767
  ]
635
768
 
769
+ /** 将选中记录的金额字段转换为数值。 */
636
770
  function getSelectionAmount(value: unknown) {
637
771
  return parseAmount(value)
638
772
  }
639
773
 
774
+ /** 格式化选中记录汇总金额。 */
640
775
  function formatSummaryAmount(value: number) {
641
776
  const roundedValue = Math.round((value + Number.EPSILON) * 100) / 100
642
777
  return formatThousands(Object.is(roundedValue, -0) ? 0 : roundedValue, '0')
643
778
  }
644
779
 
780
+ /** 按收付方向汇总选中记录的收入、支出和轧差金额。 */
645
781
  function buildSummary(rows: SettlementRow[], directionField: string, totalField: string, verifiedField?: string) {
646
782
  const totalIncome = rows
647
783
  .filter((row) => String(row[directionField] ?? '') === '1')
@@ -669,6 +805,7 @@ function buildSummary(rows: SettlementRow[], directionField: string, totalField:
669
805
  }
670
806
  }
671
807
 
808
+ /** 已选择预报记录的金额汇总。 */
672
809
  const preSelectionSummary = computed(() => buildSummary(
673
810
  preSelectedRows.value,
674
811
  'payDirec',
@@ -676,16 +813,19 @@ const preSelectionSummary = computed(() => buildSummary(
676
813
  'verifyAmt',
677
814
  ))
678
815
 
816
+ /** 已选择流水记录的金额汇总。 */
679
817
  const flowSelectionSummary = computed(() => buildSummary(
680
818
  flowSelectedRows.value,
681
819
  'payDirec',
682
820
  'tranAmt',
683
821
  ))
684
822
 
823
+ /** 判断接口必填字段是否包含有效文本。 */
685
824
  function hasText(value: unknown) {
686
825
  return String(value ?? '').trim().length > 0
687
826
  }
688
827
 
828
+ /** 校验核销或撤销核销所选记录是否符合操作条件。 */
689
829
  function validateOperation(action: OperationAction) {
690
830
  if (preSelectedRows.value.length === 0) {
691
831
  return {
@@ -737,12 +877,14 @@ function validateOperation(action: OperationAction) {
737
877
  return { success: true, message: '' }
738
878
  }
739
879
 
880
+ /** 按预报流水号排序预报记录。 */
740
881
  function sortPreRows(rows: SettlementRow[]) {
741
882
  return [...rows].sort((left, right) => (
742
883
  String(left.predRefNo ?? '').localeCompare(String(right.predRefNo ?? ''))
743
884
  ))
744
885
  }
745
886
 
887
+ /** 生成核销与撤销核销接口请求数据。 */
746
888
  function buildOperationRequest() {
747
889
  return {
748
890
  predList: sortPreRows(preSelectedRows.value).map((row) => ({
@@ -759,6 +901,7 @@ function buildOperationRequest() {
759
901
  }
760
902
  }
761
903
 
904
+ /** 提交核销或撤销核销操作并刷新表格。 */
762
905
  async function runOperation(action: OperationAction) {
763
906
  if (operationLoading.value) return
764
907
  const validation = validateOperation(action)
@@ -782,6 +925,7 @@ async function runOperation(action: OperationAction) {
782
925
  }
783
926
  }
784
927
 
928
+ /** 确认后执行核销操作。 */
785
929
  async function handleVerify() {
786
930
  const validation = validateOperation('verify')
787
931
  if (!validation.success) {
@@ -805,6 +949,7 @@ async function handleVerify() {
805
949
  await runOperation('verify')
806
950
  }
807
951
 
952
+ /** 确认后执行撤销核销操作。 */
808
953
  async function handleCancelVerify() {
809
954
  const validation = validateOperation('cancelVerify')
810
955
  if (!validation.success) {
@@ -828,16 +973,25 @@ async function handleCancelVerify() {
828
973
  await runOperation('cancelVerify')
829
974
  }
830
975
 
976
+ /** 修改已核销金额弹窗是否显示。 */
831
977
  const editDialogVisible = ref(false)
978
+ /** 当前待修改的预报记录。 */
832
979
  const editTarget = ref<SettlementRow | null>(null)
980
+ /** 已核销金额修改表单。 */
833
981
  const editForm = reactive({
982
+ /** 预报流水号。 */
834
983
  predRefNo: '',
984
+ /** 交易日期。 */
835
985
  tranDate: '',
986
+ /** 预报金额。 */
836
987
  predAmt: '',
988
+ /** 修改前已核销金额。 */
837
989
  beforeVerifyAmt: '',
990
+ /** 修改后已核销金额。 */
838
991
  verifyAmt: '',
839
992
  })
840
993
 
994
+ /** 校验所选预报记录并打开修改弹窗。 */
841
995
  function openEditDialog() {
842
996
  if (preSelectedRows.value.length === 0) {
843
997
  notify('warning', '请选择一条预报记录!')
@@ -847,7 +1001,7 @@ function openEditDialog() {
847
1001
  notify('warning', '不能选择多行!')
848
1002
  return
849
1003
  }
850
- const row = preSelectedRows.value[0]
1004
+ const row = preSelectedRows.value[0] as any
851
1005
  if (normalizeStatus(row.verifyStatus) !== '2') {
852
1006
  notify('warning', '该记录不为已核销状态!')
853
1007
  return
@@ -865,6 +1019,7 @@ function openEditDialog() {
865
1019
  editDialogVisible.value = true
866
1020
  }
867
1021
 
1022
+ /** 校验并提交已核销金额修改。 */
868
1023
  async function confirmEdit() {
869
1024
  const nextVerifyAmtText = cleanAmount(editForm.verifyAmt)
870
1025
  const nextVerifyAmt = Number(nextVerifyAmtText)
@@ -903,12 +1058,15 @@ async function confirmEdit() {
903
1058
  }
904
1059
  }
905
1060
 
1061
+ /** 是否已监听浏览器全屏变化事件。 */
906
1062
  let isListeningFullscreenChange = false
907
1063
 
1064
+ /** 同步浏览器全屏状态到页面状态。 */
908
1065
  function syncFullscreenState() {
909
1066
  isFullscreen.value = document.fullscreenElement === pageContainer.value
910
1067
  }
911
1068
 
1069
+ /** 注册浏览器全屏变化监听。 */
912
1070
  function startFullscreenListener() {
913
1071
  if (isListeningFullscreenChange) return
914
1072
  document.addEventListener('fullscreenchange', syncFullscreenState)
@@ -916,12 +1074,14 @@ function startFullscreenListener() {
916
1074
  syncFullscreenState()
917
1075
  }
918
1076
 
1077
+ /** 移除浏览器全屏变化监听。 */
919
1078
  function stopFullscreenListener() {
920
1079
  if (!isListeningFullscreenChange) return
921
1080
  document.removeEventListener('fullscreenchange', syncFullscreenState)
922
1081
  isListeningFullscreenChange = false
923
1082
  }
924
1083
 
1084
+ /** 退出当前页面全屏状态。 */
925
1085
  async function exitPageFullscreen() {
926
1086
  if (document.fullscreenElement !== pageContainer.value) return
927
1087
  try {
@@ -933,6 +1093,7 @@ async function exitPageFullscreen() {
933
1093
  }
934
1094
  }
935
1095
 
1096
+ /** 切换当前页面的全屏状态。 */
936
1097
  async function toggleFullscreen() {
937
1098
  const container = pageContainer.value
938
1099
  if (!container) return
@@ -951,6 +1112,7 @@ async function toggleFullscreen() {
951
1112
  }
952
1113
  }
953
1114
 
1115
+ /** 切换卡片排列方式并重新加载表格数据。 */
954
1116
  function setCardLayout(layout: CardLayout) {
955
1117
  if (cardLayout.value === layout) return
956
1118
  cardLayout.value = layout
@@ -968,6 +1130,7 @@ function setCardLayout(layout: CardLayout) {
968
1130
  void Promise.all([loadPreList(), loadFlowList()])
969
1131
  }
970
1132
 
1133
+ /** 页面离开或销毁时清理请求、浮层和选择状态。 */
971
1134
  function cleanupPage() {
972
1135
  preRequestSerial += 1
973
1136
  flowRequestSerial += 1
@@ -1082,7 +1245,7 @@ onBeforeUnmount(cleanupPage)
1082
1245
  <el-option v-for="option in preDirectionOptions" :key="option.value" :label="option.label" :value="option.value" />
1083
1246
  </el-select>
1084
1247
  </label>
1085
- <label class="city-bank-clearing-settlement-filter__item">
1248
+ <label v-if="cardLayout === 'vertical'" class="city-bank-clearing-settlement-filter__item">
1086
1249
  <span>支付渠道</span>
1087
1250
  <el-select v-model="preFilterForm.payChannel" :teleported="!isFullscreen" size="small" clearable placeholder="请选择">
1088
1251
  <el-option v-for="option in payChannelOptions" :key="option.value" :label="option.label" :value="option.value" />
@@ -1130,7 +1293,6 @@ onBeforeUnmount(cleanupPage)
1130
1293
  </div>
1131
1294
 
1132
1295
  <ElTablePro
1133
- ref="preTable"
1134
1296
  v-model:page="prePage"
1135
1297
  v-model:page-size="prePageSize"
1136
1298
  v-loading="preLoading"
@@ -1153,9 +1315,36 @@ onBeforeUnmount(cleanupPage)
1153
1315
  @pagination-change="handlePrePaginationChange"
1154
1316
  >
1155
1317
  <template #toolbar>
1156
- <el-button type="primary" plain size="small" :icon="EditPen" :disabled="operationLoading" @click="openEditDialog">修改</el-button>
1157
- <el-button type="primary" plain size="small" :icon="CircleCheck" :loading="activeOperation === 'verify'" :disabled="operationLoading" @click="handleVerify">核销</el-button>
1158
- <el-button type="primary" plain size="small" :icon="RefreshLeft" :loading="activeOperation === 'cancelVerify'" :disabled="operationLoading" @click="handleCancelVerify">撤销核销</el-button>
1318
+ <el-tooltip
1319
+ :content="preSelectedRows.length ? '当前有操作正在处理' : '请先选择预报记录'"
1320
+ :disabled="preSelectedRows.length > 0 && !operationLoading"
1321
+ placement="top"
1322
+ :append-to="overlayContainer || undefined"
1323
+ >
1324
+ <span class="city-bank-clearing-settlement-toolbar-button-tooltip-target">
1325
+ <el-button type="primary" plain size="small" :icon="EditPen" :disabled="!preSelectedRows.length || operationLoading" @click="openEditDialog">修改</el-button>
1326
+ </span>
1327
+ </el-tooltip>
1328
+ <el-tooltip
1329
+ :content="preSelectedRows.length ? '当前有操作正在处理' : '请先选择预报记录'"
1330
+ :disabled="preSelectedRows.length > 0 && !operationLoading"
1331
+ placement="top"
1332
+ :append-to="overlayContainer || undefined"
1333
+ >
1334
+ <span class="city-bank-clearing-settlement-toolbar-button-tooltip-target">
1335
+ <el-button type="primary" plain size="small" :icon="CircleCheck" :loading="activeOperation === 'verify'" :disabled="!preSelectedRows.length || operationLoading" @click="handleVerify">核销</el-button>
1336
+ </span>
1337
+ </el-tooltip>
1338
+ <el-tooltip
1339
+ :content="preSelectedRows.length ? '当前有操作正在处理' : '请先选择预报记录'"
1340
+ :disabled="preSelectedRows.length > 0 && !operationLoading"
1341
+ placement="top"
1342
+ :append-to="overlayContainer || undefined"
1343
+ >
1344
+ <span class="city-bank-clearing-settlement-toolbar-button-tooltip-target">
1345
+ <el-button type="primary" plain size="small" :icon="RefreshLeft" :loading="activeOperation === 'cancelVerify'" :disabled="!preSelectedRows.length || operationLoading" @click="handleCancelVerify">撤销核销</el-button>
1346
+ </span>
1347
+ </el-tooltip>
1159
1348
  <span v-if="preSelectedRows.length" class="city-bank-clearing-settlement-selection-count">已选 {{ preSelectedRows.length }} 笔</span>
1160
1349
  </template>
1161
1350
  <template v-for="column in forecastTableColumns" :key="column.key">
@@ -1326,7 +1515,7 @@ onBeforeUnmount(cleanupPage)
1326
1515
  <el-option v-for="option in flowDirectionOptions" :key="option.value" :label="option.label" :value="option.value" />
1327
1516
  </el-select>
1328
1517
  </label>
1329
- <label class="city-bank-clearing-settlement-filter__item city-bank-clearing-settlement-filter__item--range">
1518
+ <label v-if="cardLayout === 'vertical'" class="city-bank-clearing-settlement-filter__item city-bank-clearing-settlement-filter__item--range">
1330
1519
  <span>金额范围(万)</span>
1331
1520
  <NumberRange
1332
1521
  v-model="flowFilterForm.amountRange"
@@ -1366,7 +1555,6 @@ onBeforeUnmount(cleanupPage)
1366
1555
 
1367
1556
  <section class="city-bank-clearing-settlement-table-area" aria-label="城银清流水信息列表">
1368
1557
  <ElTablePro
1369
- ref="flowTable"
1370
1558
  v-model:page="flowPage"
1371
1559
  v-model:page-size="flowPageSize"
1372
1560
  v-loading="flowLoading"
@@ -1519,19 +1707,20 @@ onBeforeUnmount(cleanupPage)
1519
1707
 
1520
1708
  <style scoped>
1521
1709
  .city-bank-clearing-settlement-page {
1710
+ --app-header-height: 60px;
1711
+ --app-footer-height: 0px;
1522
1712
  --city-clearing-ink: #1f2937;
1523
- --city-clearing-muted: #4a5668;
1524
1713
  --city-clearing-border: #e0e7f1;
1525
1714
  --city-clearing-blue: #1668ff;
1526
1715
  --city-clearing-blue-soft: #e8f1ff;
1527
1716
  --city-clearing-bg: #f3f7fc;
1528
1717
  box-sizing: border-box;
1529
1718
  display: grid;
1530
- height: calc(100vh - 60px);
1719
+ height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
1531
1720
  min-width: 0;
1532
1721
  min-height: 0;
1533
1722
  grid-template-rows: repeat(2, minmax(0, 1fr));
1534
- gap: 12px;
1723
+ gap: 2px;
1535
1724
  margin: -20px;
1536
1725
  padding: 10px 14px 14px;
1537
1726
  overflow: hidden;
@@ -1544,12 +1733,14 @@ onBeforeUnmount(cleanupPage)
1544
1733
  grid-template-columns: repeat(2, minmax(0, 1fr));
1545
1734
  grid-template-rows: minmax(0, 1fr);
1546
1735
  align-items: stretch;
1736
+ gap: 12px;
1547
1737
  }
1548
1738
 
1549
1739
  .city-bank-clearing-settlement-page:not(.city-bank-clearing-settlement-page--horizontal) {
1550
1740
  grid-template-columns: minmax(0, 1fr);
1551
1741
  }
1552
1742
 
1743
+ .city-bank-clearing-settlement-page:fullscreen,
1553
1744
  .city-bank-clearing-settlement-page--fullscreen {
1554
1745
  width: 100vw;
1555
1746
  height: 100vh;
@@ -1560,6 +1751,14 @@ onBeforeUnmount(cleanupPage)
1560
1751
  background: var(--city-clearing-bg);
1561
1752
  }
1562
1753
 
1754
+ .city-bank-clearing-settlement-page--horizontal:fullscreen,
1755
+ .city-bank-clearing-settlement-page--horizontal.city-bank-clearing-settlement-page--fullscreen {
1756
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1757
+ grid-template-rows: minmax(0, 1fr);
1758
+ align-items: stretch;
1759
+ gap: 12px;
1760
+ }
1761
+
1563
1762
  .city-bank-clearing-settlement-overlay-host {
1564
1763
  position: fixed;
1565
1764
  top: 0;
@@ -1571,6 +1770,7 @@ onBeforeUnmount(cleanupPage)
1571
1770
  }
1572
1771
 
1573
1772
  .city-bank-clearing-settlement-card {
1773
+ box-sizing: border-box;
1574
1774
  display: flex;
1575
1775
  min-width: 0;
1576
1776
  min-height: 0;
@@ -1583,6 +1783,10 @@ onBeforeUnmount(cleanupPage)
1583
1783
  box-shadow: 0 4px 16px rgba(20, 39, 72, .08);
1584
1784
  }
1585
1785
 
1786
+ .city-bank-clearing-settlement-page--horizontal .city-bank-clearing-settlement-card {
1787
+ height: 100%;
1788
+ }
1789
+
1586
1790
  .city-bank-clearing-settlement-card__header {
1587
1791
  display: flex;
1588
1792
  min-height: 18px;
@@ -1810,7 +2014,7 @@ onBeforeUnmount(cleanupPage)
1810
2014
 
1811
2015
  .city-bank-clearing-settlement-filter--horizontal .city-bank-clearing-settlement-filter__grid {
1812
2016
  min-width: 0;
1813
- grid-template-columns: repeat(4, minmax(0, 1fr));
2017
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1814
2018
  column-gap: 8px;
1815
2019
  row-gap: 8px;
1816
2020
  }
@@ -1901,10 +2105,6 @@ onBeforeUnmount(cleanupPage)
1901
2105
  grid-template-columns: repeat(3, minmax(0, 1fr));
1902
2106
  }
1903
2107
 
1904
- .city-bank-clearing-settlement-summary--flow {
1905
- grid-template-columns: repeat(3, minmax(0, 1fr));
1906
- }
1907
-
1908
2108
  .city-bank-clearing-settlement-summary > div {
1909
2109
  display: flex;
1910
2110
  min-width: 0;
@@ -1973,6 +2173,12 @@ onBeforeUnmount(cleanupPage)
1973
2173
  flex-direction: column;
1974
2174
  }
1975
2175
 
2176
+ .city-bank-clearing-settlement-table-shell :deep(.el-table) {
2177
+ flex: 1 1 auto;
2178
+ min-height: 0;
2179
+ width: 100%;
2180
+ }
2181
+
1976
2182
  .city-bank-clearing-settlement-table-area > .city-bank-clearing-settlement-table-shell {
1977
2183
  width: 100%;
1978
2184
  }
@@ -2018,8 +2224,8 @@ onBeforeUnmount(cleanupPage)
2018
2224
  }
2019
2225
 
2020
2226
  .city-bank-clearing-settlement-table :deep(.el-table__cell .cell) {
2021
- overflow: visible;
2022
- text-overflow: clip;
2227
+ overflow: hidden;
2228
+ text-overflow: ellipsis;
2023
2229
  white-space: nowrap;
2024
2230
  word-break: normal;
2025
2231
  }
@@ -2053,6 +2259,10 @@ onBeforeUnmount(cleanupPage)
2053
2259
  white-space: nowrap;
2054
2260
  }
2055
2261
 
2262
+ .city-bank-clearing-settlement-toolbar-button-tooltip-target {
2263
+ display: inline-flex;
2264
+ }
2265
+
2056
2266
  .city-bank-clearing-settlement-toolbar-hint {
2057
2267
  color: #93a2b6;
2058
2268
  }
@@ -2068,9 +2278,15 @@ onBeforeUnmount(cleanupPage)
2068
2278
  }
2069
2279
 
2070
2280
  .city-bank-clearing-settlement-drawer-grid .city-bank-clearing-settlement-filter__item--range .city-bank-clearing-settlement-filter__number-range {
2281
+ width: 300px;
2071
2282
  min-width: 300px;
2072
2283
  }
2073
2284
 
2285
+ .city-bank-clearing-settlement-drawer-grid .city-bank-clearing-settlement-filter__item--range .city-bank-clearing-settlement-filter__number-range :deep(.number-range__input) {
2286
+ width: 130px;
2287
+ flex: 0 0 130px;
2288
+ }
2289
+
2074
2290
  .city-bank-clearing-settlement-filter-drawer :deep(.el-drawer__header) {
2075
2291
  margin-bottom: 12px;
2076
2292
  padding-bottom: 12px;
@@ -2122,7 +2338,7 @@ onBeforeUnmount(cleanupPage)
2122
2338
  padding: 10px;
2123
2339
  }
2124
2340
 
2125
- .city-bank-clearing-settlement-page--horizontal {
2341
+ .city-bank-clearing-settlement-page--horizontal:not(.city-bank-clearing-settlement-page--fullscreen):not(:fullscreen) {
2126
2342
  grid-template-columns: minmax(0, 1fr);
2127
2343
  grid-template-rows: repeat(2, minmax(0, 1fr));
2128
2344
  }
@@ -2163,7 +2379,7 @@ onBeforeUnmount(cleanupPage)
2163
2379
  }
2164
2380
 
2165
2381
  .city-bank-clearing-settlement-filter--horizontal .city-bank-clearing-settlement-filter__grid {
2166
- grid-template-columns: repeat(4, minmax(0, 1fr));
2382
+ grid-template-columns: repeat(3, minmax(0, 1fr));
2167
2383
  }
2168
2384
 
2169
2385
  .city-bank-clearing-settlement-filter--horizontal .city-bank-clearing-settlement-filter__actions {
@@ -2188,10 +2404,13 @@ onBeforeUnmount(cleanupPage)
2188
2404
  @media (max-width: 640px) {
2189
2405
  .city-bank-clearing-settlement-page,
2190
2406
  .city-bank-clearing-settlement-page--fullscreen {
2191
- gap: 10px;
2192
2407
  padding: 10px;
2193
2408
  }
2194
2409
 
2410
+ .city-bank-clearing-settlement-page--horizontal:not(.city-bank-clearing-settlement-page--fullscreen):not(:fullscreen) {
2411
+ gap: 10px;
2412
+ }
2413
+
2195
2414
  .city-bank-clearing-settlement-card {
2196
2415
  padding: 14px 10px 10px;
2197
2416
  }
@@ -2204,8 +2423,7 @@ onBeforeUnmount(cleanupPage)
2204
2423
  grid-template-columns: 56px minmax(0, 1fr);
2205
2424
  }
2206
2425
 
2207
- .city-bank-clearing-settlement-summary,
2208
- .city-bank-clearing-settlement-summary--flow {
2426
+ .city-bank-clearing-settlement-summary {
2209
2427
  grid-template-columns: repeat(2, minmax(0, 1fr));
2210
2428
  }
2211
2429
 
@@ -0,0 +1,14 @@
1
+ /** 将日期数字补齐为两位文本。 */
2
+ function padDatePart(value: number) {
3
+ return String(value).padStart(2, '0')
4
+ }
5
+
6
+ /** 获取当前本地交易日期,格式为 YYYY-MM-DD。 */
7
+ export function getCurrentTradeDate() {
8
+ const date = new Date()
9
+ return [
10
+ date.getFullYear(),
11
+ padDatePart(date.getMonth() + 1),
12
+ padDatePart(date.getDate()),
13
+ ].join('-')
14
+ }