verce-vue-test 0.0.84 → 0.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,937 @@
1
+ <script setup lang="ts">
2
+ import { onBeforeUnmount, onMounted, reactive, ref } from 'vue'
3
+ import { ElMessage, ElMessageBox } from 'element-plus'
4
+ import { useLoginStore } from '@/stores/login'
5
+ import {
6
+ ArrowLeft,
7
+ CircleCheck,
8
+ CircleClose,
9
+ Document,
10
+ RefreshLeft,
11
+ Search,
12
+ } from '@element-plus/icons-vue'
13
+ import API from './api'
14
+ import { toAuthorizationRow } from './adapter'
15
+ import {
16
+ businessChannelOptions,
17
+ businessTypeOptions,
18
+ currencyOptions,
19
+ customerKindOptions,
20
+ idTypeOptions,
21
+ organizationOptions,
22
+ returnFlagOptions,
23
+ type SelectOption,
24
+ yesNoOptions,
25
+ } from './options'
26
+ import {
27
+ createDefaultForeignCurrencyAuthorizationFilter,
28
+ type ForeignCurrencyAuthorizationFilter,
29
+ type ForeignCurrencyAuthorizationRow,
30
+ } from './types'
31
+
32
+ const filterForm = reactive<ForeignCurrencyAuthorizationFilter>(
33
+ createDefaultForeignCurrencyAuthorizationFilter(),
34
+ )
35
+ const loginStore = useLoginStore()
36
+ const appliedFilters = ref<ForeignCurrencyAuthorizationFilter>(cloneFilter(filterForm))
37
+ const records = ref<ForeignCurrencyAuthorizationRow[]>([])
38
+ const totalCount = ref(0)
39
+ const currentPage = ref(1)
40
+ const pageSize = ref(10)
41
+ const isLoading = ref(false)
42
+ const isQuerying = ref(false)
43
+ const pageMode = ref<'list' | 'detail'>('list')
44
+ const detailRecord = ref<ForeignCurrencyAuthorizationRow | null>(null)
45
+ const detailEditForm = reactive({
46
+ nostro: '',
47
+ valueDate: '',
48
+ rejectReason: '',
49
+ })
50
+ const reviewAction = ref<'approve' | 'reject' | null>(null)
51
+
52
+ let activeQueryController: AbortController | null = null
53
+
54
+ function cloneFilter(source: ForeignCurrencyAuthorizationFilter): ForeignCurrencyAuthorizationFilter {
55
+ return { ...source }
56
+ }
57
+
58
+ function getOptionLabel(options: readonly SelectOption[], value: string) {
59
+ return options.find((option) => option.value === value)?.label ?? value ?? '—'
60
+ }
61
+
62
+ function displayValue(value: string) {
63
+ return value || '—'
64
+ }
65
+
66
+ function getCurrentAuthor() {
67
+ return loginStore.username.trim()
68
+ || String(import.meta.env.VITE_TAM_USER_NAME || '').trim()
69
+ || '管理员'
70
+ }
71
+
72
+ function reviewStatusLabel(status: ForeignCurrencyAuthorizationRow['reviewStatus']) {
73
+ if (status === 'approved') return '已通过'
74
+ if (status === 'rejected') return '已驳回'
75
+ return '待审核'
76
+ }
77
+
78
+ function reviewStatusTagType(
79
+ status: ForeignCurrencyAuthorizationRow['reviewStatus'],
80
+ ): 'success' | 'danger' | 'warning' {
81
+ if (status === 'approved') return 'success'
82
+ if (status === 'rejected') return 'danger'
83
+ return 'warning'
84
+ }
85
+
86
+ function formatMoney(value: number) {
87
+ return Number(value || 0).toLocaleString('zh-CN', {
88
+ minimumFractionDigits: 2,
89
+ maximumFractionDigits: 2,
90
+ })
91
+ }
92
+
93
+ function isAbortError(error: unknown) {
94
+ return error instanceof Error && error.name === 'AbortError'
95
+ }
96
+
97
+ async function loadRows() {
98
+ activeQueryController?.abort()
99
+ const controller = new AbortController()
100
+ activeQueryController = controller
101
+ isLoading.value = true
102
+
103
+ try {
104
+ const response = await API.queryAPI(
105
+ {
106
+ ...appliedFilters.value,
107
+ custCode: appliedFilters.value.custCode.trim(),
108
+ },
109
+ {
110
+ signal: controller.signal,
111
+ tamHead: {
112
+ pageIndex: currentPage.value,
113
+ pageSize: pageSize.value,
114
+ },
115
+ },
116
+ )
117
+
118
+ if (controller.signal.aborted || activeQueryController !== controller) return
119
+ const resultList = Array.isArray(response.body.resultList) ? response.body.resultList : []
120
+ const responseTotal = Number(response.body.totalCount)
121
+ records.value = resultList.map(toAuthorizationRow)
122
+ totalCount.value = Number.isInteger(responseTotal) && responseTotal >= 0
123
+ ? responseTotal
124
+ : resultList.length
125
+ } catch (error) {
126
+ if (controller.signal.aborted || isAbortError(error)) return
127
+ ElMessage.error(error instanceof Error ? error.message : '外币授权查询失败')
128
+ } finally {
129
+ if (activeQueryController === controller) {
130
+ activeQueryController = null
131
+ isLoading.value = false
132
+ }
133
+ }
134
+ }
135
+
136
+ async function handleQuery() {
137
+ if (isQuerying.value) return
138
+ isQuerying.value = true
139
+
140
+ try {
141
+ appliedFilters.value = cloneFilter(filterForm)
142
+ currentPage.value = 1
143
+ await loadRows()
144
+ } finally {
145
+ isQuerying.value = false
146
+ }
147
+ }
148
+
149
+ function handleReset() {
150
+ Object.assign(filterForm, createDefaultForeignCurrencyAuthorizationFilter())
151
+ }
152
+
153
+ async function handlePaginationChange(pagination: { page: number; pageSize: number }) {
154
+ currentPage.value = pagination.page
155
+ pageSize.value = pagination.pageSize
156
+ await loadRows()
157
+ }
158
+
159
+ function openDetail(row: ForeignCurrencyAuthorizationRow) {
160
+ detailRecord.value = row
161
+ Object.assign(detailEditForm, {
162
+ nostro: row.nostro,
163
+ valueDate: row.valueDate,
164
+ rejectReason: row.rejectReason,
165
+ })
166
+ pageMode.value = 'detail'
167
+ }
168
+
169
+ function returnToList() {
170
+ pageMode.value = 'list'
171
+ detailRecord.value = null
172
+ }
173
+
174
+ async function handleReview(action: 'approve' | 'reject') {
175
+ const row = detailRecord.value
176
+ if (!row || reviewAction.value) return
177
+
178
+ const nostro = detailEditForm.nostro.trim()
179
+ const rejectReason = detailEditForm.rejectReason.trim()
180
+ if (!nostro) {
181
+ ElMessage.warning('请输入账户行')
182
+ return
183
+ }
184
+ if (!detailEditForm.valueDate) {
185
+ ElMessage.warning('请选择汇款起息日')
186
+ return
187
+ }
188
+ if (action === 'reject' && !rejectReason) {
189
+ ElMessage.warning('驳回时必须填写拒绝原因')
190
+ return
191
+ }
192
+
193
+ const actionText = action === 'approve' ? '通过' : '驳回'
194
+ try {
195
+ await ElMessageBox.confirm(
196
+ `确认${actionText}外币授权记录 ${row.id} 吗?`,
197
+ `${actionText}确认`,
198
+ {
199
+ confirmButtonText: `确认${actionText}`,
200
+ cancelButtonText: '取消',
201
+ type: action === 'approve' ? 'success' : 'warning',
202
+ },
203
+ )
204
+ } catch {
205
+ return
206
+ }
207
+
208
+ reviewAction.value = action
209
+ try {
210
+ const author = getCurrentAuthor()
211
+ const response = await API.reviewAPI({
212
+ author,
213
+ id: row.id,
214
+ nostro,
215
+ oposStausCode: action === 'approve' ? '00' : '99',
216
+ refType: row.refType,
217
+ refuseRemark: action === 'reject' ? rejectReason : '',
218
+ valueDate: detailEditForm.valueDate,
219
+ })
220
+ Object.assign(row, {
221
+ nostro,
222
+ valueDate: detailEditForm.valueDate,
223
+ rejectReason: action === 'reject' ? rejectReason : '',
224
+ reviewStatus: action === 'approve' ? 'approved' : 'rejected',
225
+ author,
226
+ })
227
+ ElMessage.success(
228
+ response.head.retMsg || (action === 'approve' ? '外币授权已通过' : '外币授权已驳回'),
229
+ )
230
+ returnToList()
231
+ await loadRows()
232
+ } catch (error) {
233
+ ElMessage.error(error instanceof Error ? error.message : `外币授权${actionText}失败`)
234
+ } finally {
235
+ reviewAction.value = null
236
+ }
237
+ }
238
+
239
+ onMounted(() => {
240
+ void loadRows()
241
+ })
242
+
243
+ onBeforeUnmount(() => {
244
+ activeQueryController?.abort()
245
+ })
246
+ </script>
247
+
248
+ <template>
249
+ <main class="foreign-authorization-page">
250
+ <template v-if="pageMode === 'list'">
251
+ <section class="query-panel" aria-label="外币授权查询条件">
252
+ <el-form
253
+ :model="filterForm"
254
+ label-position="top"
255
+ size="small"
256
+ class="query-form"
257
+ @keyup.enter="handleQuery"
258
+ >
259
+ <div class="query-grid">
260
+ <el-form-item label="报备日期">
261
+ <el-date-picker
262
+ v-model="filterForm.posDate"
263
+ type="date"
264
+ value-format="YYYY-MM-DD"
265
+ format="YYYY-MM-DD"
266
+ placeholder="请选择报备日期"
267
+ clearable
268
+ />
269
+ </el-form-item>
270
+
271
+ <el-form-item label="计划汇款日期">
272
+ <el-date-picker
273
+ v-model="filterForm.planDate"
274
+ type="date"
275
+ value-format="YYYY-MM-DD"
276
+ format="YYYY-MM-DD"
277
+ placeholder="请选择计划汇款日期"
278
+ clearable
279
+ />
280
+ </el-form-item>
281
+
282
+ <el-form-item label="业务类型">
283
+ <el-select v-model="filterForm.refType" placeholder="请选择业务类型" clearable>
284
+ <el-option
285
+ v-for="option in businessTypeOptions"
286
+ :key="option.value"
287
+ v-bind="option"
288
+ />
289
+ </el-select>
290
+ </el-form-item>
291
+
292
+ <el-form-item label="客户分类">
293
+ <el-select v-model="filterForm.custType" placeholder="请选择客户分类" clearable>
294
+ <el-option
295
+ v-for="option in customerKindOptions"
296
+ :key="option.value"
297
+ v-bind="option"
298
+ />
299
+ </el-select>
300
+ </el-form-item>
301
+
302
+ <el-form-item label="客户号">
303
+ <el-input
304
+ v-model="filterForm.custCode"
305
+ maxlength="32"
306
+ placeholder="请输入客户号/证件号"
307
+ clearable
308
+ />
309
+ </el-form-item>
310
+
311
+ <el-form-item label="归属机构">
312
+ <el-select v-model="filterForm.orgId" placeholder="请选择归属机构" clearable filterable>
313
+ <el-option
314
+ v-for="option in organizationOptions"
315
+ :key="option.value"
316
+ v-bind="option"
317
+ />
318
+ </el-select>
319
+ </el-form-item>
320
+
321
+ <el-form-item label="币种">
322
+ <el-select v-model="filterForm.currency" placeholder="请选择币种" clearable filterable>
323
+ <el-option
324
+ v-for="option in currencyOptions"
325
+ :key="option.value"
326
+ v-bind="option"
327
+ />
328
+ </el-select>
329
+ </el-form-item>
330
+ </div>
331
+
332
+ <div class="query-actions">
333
+ <el-button :icon="RefreshLeft" @click="handleReset">重置</el-button>
334
+ <el-button
335
+ type="primary"
336
+ :icon="Search"
337
+ :loading="isQuerying"
338
+ @click="handleQuery"
339
+ >
340
+ 查询
341
+ </el-button>
342
+ </div>
343
+ </el-form>
344
+ </section>
345
+
346
+ <section class="table-panel" aria-label="外币授权查询结果">
347
+ <ElTablePro
348
+ v-model:page="currentPage"
349
+ v-model:page-size="pageSize"
350
+ v-loading="isLoading"
351
+ :data="records"
352
+ :total="totalCount"
353
+ :page-sizes="[10, 20, 50, 100]"
354
+ table-key="foreign-currency-authorization"
355
+ row-key="id"
356
+ border
357
+ stripe
358
+ height="470"
359
+ empty-text="暂无外币授权记录"
360
+ class="authorization-table"
361
+ col-btn-size="small"
362
+ layout="total, sizes, prev, pager, next, jumper"
363
+ @pagination-change="handlePaginationChange"
364
+ @row-dblclick="openDetail"
365
+ >
366
+ <el-table-column
367
+ type="index"
368
+ column-key="sequence"
369
+ label="序号"
370
+ width="62"
371
+ fixed="left"
372
+ :index="(index: number) => (currentPage - 1) * pageSize + index + 1"
373
+ disabled
374
+ />
375
+ <el-table-column prop="id" label="记录ID" width="160" fixed="left" show-overflow-tooltip />
376
+ <el-table-column prop="forecastDate" label="大额报备日期" width="120" />
377
+ <el-table-column prop="planDate" label="计划汇款日期" width="120" />
378
+ <el-table-column prop="valueDate" label="汇款起息日" width="112" />
379
+ <el-table-column label="业务类型" width="230" show-overflow-tooltip>
380
+ <template #default="{ row }">
381
+ {{ getOptionLabel(businessTypeOptions, row.refType) }}
382
+ </template>
383
+ </el-table-column>
384
+ <el-table-column label="客户分类" width="148">
385
+ <template #default="{ row }">
386
+ {{ getOptionLabel(customerKindOptions, row.custKind) }}
387
+ </template>
388
+ </el-table-column>
389
+ <el-table-column prop="custName" label="客户名称" width="210" show-overflow-tooltip />
390
+ <el-table-column prop="custCode" label="客户号/证件号" width="190" show-overflow-tooltip />
391
+ <el-table-column prop="currency" label="币种" width="78" align="center">
392
+ <template #default="{ row }">
393
+ <strong class="currency-code">{{ row.currency }}</strong>
394
+ </template>
395
+ </el-table-column>
396
+ <el-table-column prop="forecastAmt" label="汇款金额" width="146" align="right">
397
+ <template #default="{ row }">
398
+ <span class="money-cell">{{ formatMoney(row.forecastAmt) }}</span>
399
+ </template>
400
+ </el-table-column>
401
+ <el-table-column prop="pyeBankName" label="收款银行名称" width="250" show-overflow-tooltip />
402
+ <el-table-column prop="pyeaccBic" label="收款银行 SWIFTCODE" width="198" show-overflow-tooltip />
403
+ <el-table-column label="是否退汇" width="90" align="center">
404
+ <template #default="{ row }">
405
+ <el-tag
406
+ :type="row.rtnFlag === '02' ? 'danger' : 'info'"
407
+ size="small"
408
+ effect="plain"
409
+ >
410
+ {{ getOptionLabel(returnFlagOptions, row.rtnFlag) }}
411
+ </el-tag>
412
+ </template>
413
+ </el-table-column>
414
+ <el-table-column prop="linkMan" label="报备人" width="96" />
415
+ <el-table-column prop="supervisor" label="复核人" width="96" />
416
+ <el-table-column prop="author" label="授权人" width="102">
417
+ <template #default="{ row }">
418
+ <span v-if="row.reviewStatus === 'approved'">{{ row.author || '已通过' }}</span>
419
+ <el-tag
420
+ v-else
421
+ :type="reviewStatusTagType(row.reviewStatus)"
422
+ size="small"
423
+ effect="plain"
424
+ >
425
+ {{ reviewStatusLabel(row.reviewStatus) }}
426
+ </el-tag>
427
+ </template>
428
+ </el-table-column>
429
+ <el-table-column prop="bizarc" label="业务渠道" width="102" :visible="false">
430
+ <template #default="{ row }">
431
+ {{ getOptionLabel(businessChannelOptions, row.bizarc) }}
432
+ </template>
433
+ </el-table-column>
434
+ <el-table-column prop="orgName" label="归属机构" width="176" :visible="false" show-overflow-tooltip />
435
+ <el-table-column prop="rdfibic" label="最终收款行 SWIFTCODE" width="204" :visible="false" show-overflow-tooltip />
436
+ <el-table-column prop="oriInnerrefno" label="原汇入汇款业务编号" width="190" :visible="false" show-overflow-tooltip>
437
+ <template #default="{ row }">{{ displayValue(row.oriInnerrefno) }}</template>
438
+ </el-table-column>
439
+ <el-table-column prop="nostro" label="账户行信息" width="260" :visible="false" show-overflow-tooltip />
440
+ <el-table-column prop="pyeBankAgt" label="收款银行开户行" width="190" :visible="false" show-overflow-tooltip />
441
+ <el-table-column prop="linkWay" label="报备人联系电话" width="140" :visible="false" />
442
+ <el-table-column prop="posRemark" label="报备说明" width="230" :visible="false" show-overflow-tooltip>
443
+ <template #default="{ row }">{{ displayValue(row.posRemark) }}</template>
444
+ </el-table-column>
445
+ <el-table-column
446
+ column-key="operations"
447
+ label="操作"
448
+ width="96"
449
+ fixed="right"
450
+ align="center"
451
+ disabled
452
+ >
453
+ <template #default="{ row }">
454
+ <el-button link type="primary" size="small" :icon="Document" @click.stop="openDetail(row)">
455
+ 详情
456
+ </el-button>
457
+ </template>
458
+ </el-table-column>
459
+ </ElTablePro>
460
+ </section>
461
+ </template>
462
+
463
+ <section v-else-if="detailRecord" class="detail-page" aria-label="外币授权详细信息">
464
+ <header class="detail-header">
465
+ <div class="detail-header__main">
466
+ <div class="detail-title">
467
+ <h2>外币授权详细信息</h2>
468
+ <p>{{ detailRecord.id }} · {{ detailRecord.custName }}</p>
469
+ </div>
470
+ </div>
471
+ <el-tag
472
+ :type="reviewStatusTagType(detailRecord.reviewStatus)"
473
+ effect="light"
474
+ round
475
+ >
476
+ {{ reviewStatusLabel(detailRecord.reviewStatus) }}
477
+ </el-tag>
478
+ </header>
479
+
480
+ <div class="detail-content">
481
+ <section class="detail-section">
482
+ <h3>基本信息</h3>
483
+ <el-descriptions :column="3" border size="small" class="detail-descriptions">
484
+ <el-descriptions-item label="记录ID">{{ detailRecord.id }}</el-descriptions-item>
485
+ <el-descriptions-item label="大额报备日期">{{ detailRecord.forecastDate }}</el-descriptions-item>
486
+ <el-descriptions-item label="计划汇款日期">{{ detailRecord.planDate }}</el-descriptions-item>
487
+ <el-descriptions-item label="汇款起息日">
488
+ <el-date-picker
489
+ v-model="detailEditForm.valueDate"
490
+ class="detail-edit-control"
491
+ type="date"
492
+ value-format="YYYY-MM-DD"
493
+ format="YYYY-MM-DD"
494
+ placeholder="请选择汇款起息日"
495
+ size="small"
496
+ clearable
497
+ />
498
+ </el-descriptions-item>
499
+ <el-descriptions-item label="业务类型" :span="2">
500
+ {{ getOptionLabel(businessTypeOptions, detailRecord.refType) }}
501
+ </el-descriptions-item>
502
+ <el-descriptions-item label="业务渠道">
503
+ {{ getOptionLabel(businessChannelOptions, detailRecord.bizarc) }}
504
+ </el-descriptions-item>
505
+ <el-descriptions-item label="币种">{{ detailRecord.currency }}</el-descriptions-item>
506
+ <el-descriptions-item label="汇款金额">
507
+ {{ formatMoney(detailRecord.forecastAmt) }}
508
+ </el-descriptions-item>
509
+ <el-descriptions-item label="归属机构" :span="2">
510
+ {{ detailRecord.orgName }}({{ detailRecord.orgId }})
511
+ </el-descriptions-item>
512
+ <el-descriptions-item label="自贸区标识">
513
+ {{ getOptionLabel(yesNoOptions, detailRecord.ftzFlag) }}
514
+ </el-descriptions-item>
515
+ </el-descriptions>
516
+ </section>
517
+
518
+ <section class="detail-section">
519
+ <h3>客户信息</h3>
520
+ <el-descriptions :column="3" border size="small" class="detail-descriptions">
521
+ <el-descriptions-item label="客户分类">
522
+ {{ getOptionLabel(customerKindOptions, detailRecord.custKind) }}
523
+ </el-descriptions-item>
524
+ <el-descriptions-item label="证件类型">
525
+ {{ getOptionLabel(idTypeOptions, detailRecord.idType) }}
526
+ </el-descriptions-item>
527
+ <el-descriptions-item label="客户号/证件号">
528
+ {{ detailRecord.custCode }}
529
+ </el-descriptions-item>
530
+ <el-descriptions-item label="客户名称" :span="3">
531
+ {{ detailRecord.custName }}
532
+ </el-descriptions-item>
533
+ </el-descriptions>
534
+ </section>
535
+
536
+ <section class="detail-section">
537
+ <h3>汇款信息</h3>
538
+ <el-descriptions :column="3" border size="small" class="detail-descriptions">
539
+ <el-descriptions-item label="收款银行开户行" :span="2">
540
+ {{ detailRecord.pyeBankAgt }}
541
+ </el-descriptions-item>
542
+ <el-descriptions-item label="收款银行 SWIFTCODE">
543
+ {{ detailRecord.pyeaccBic }}
544
+ </el-descriptions-item>
545
+ <el-descriptions-item label="收款银行名称" :span="2">
546
+ {{ detailRecord.pyeBankName }}
547
+ </el-descriptions-item>
548
+ <el-descriptions-item label="最终收款行 SWIFTCODE">
549
+ {{ detailRecord.rdfibic }}
550
+ </el-descriptions-item>
551
+ <el-descriptions-item label="账户行" :span="3">
552
+ <el-input
553
+ v-model="detailEditForm.nostro"
554
+ class="detail-edit-control"
555
+ maxlength="160"
556
+ placeholder="请输入账户行"
557
+ size="small"
558
+ clearable
559
+ />
560
+ </el-descriptions-item>
561
+ <el-descriptions-item label="是否退汇">
562
+ {{ getOptionLabel(returnFlagOptions, detailRecord.rtnFlag) }}
563
+ </el-descriptions-item>
564
+ <el-descriptions-item label="原汇入汇款业务编号" :span="2">
565
+ {{ displayValue(detailRecord.oriInnerrefno) }}
566
+ </el-descriptions-item>
567
+ <el-descriptions-item label="邮件通知服务">
568
+ {{ getOptionLabel(yesNoOptions, detailRecord.isEmail) }}
569
+ </el-descriptions-item>
570
+ <el-descriptions-item label="多币种汇款产品">
571
+ {{ getOptionLabel(yesNoOptions, detailRecord.mulcurflag) }}
572
+ </el-descriptions-item>
573
+ </el-descriptions>
574
+ </section>
575
+
576
+ <section class="detail-section is-last">
577
+ <h3>报备与授权信息</h3>
578
+ <el-descriptions :column="3" border size="small" class="detail-descriptions">
579
+ <el-descriptions-item label="报备人">{{ detailRecord.linkMan }}</el-descriptions-item>
580
+ <el-descriptions-item label="联系电话">{{ detailRecord.linkWay }}</el-descriptions-item>
581
+ <el-descriptions-item label="复核人">{{ detailRecord.supervisor }}</el-descriptions-item>
582
+ <el-descriptions-item label="授权人">
583
+ {{ displayValue(detailRecord.author) }}
584
+ </el-descriptions-item>
585
+ <el-descriptions-item label="报备说明" :span="2">
586
+ {{ displayValue(detailRecord.posRemark) }}
587
+ </el-descriptions-item>
588
+ <el-descriptions-item label="拒绝原因" :span="3">
589
+ <el-input
590
+ v-model="detailEditForm.rejectReason"
591
+ class="detail-edit-control"
592
+ type="textarea"
593
+ :rows="3"
594
+ maxlength="200"
595
+ show-word-limit
596
+ placeholder="驳回时必填,请输入拒绝原因"
597
+ size="small"
598
+ />
599
+ </el-descriptions-item>
600
+ </el-descriptions>
601
+ </section>
602
+ </div>
603
+
604
+ <footer class="detail-actions" aria-label="授权审核操作">
605
+ <span class="detail-actions__hint">账户行与汇款起息日的修改将在审核时一并保存</span>
606
+ <div class="detail-actions__buttons">
607
+ <el-button :icon="ArrowLeft" @click="returnToList">返回</el-button>
608
+ <el-button
609
+ type="primary"
610
+ :icon="CircleCheck"
611
+ :loading="reviewAction === 'approve'"
612
+ :disabled="reviewAction !== null && reviewAction !== 'approve'"
613
+ @click="handleReview('approve')"
614
+ >
615
+ 通过
616
+ </el-button>
617
+ <el-button
618
+ type="danger"
619
+ plain
620
+ :icon="CircleClose"
621
+ :loading="reviewAction === 'reject'"
622
+ :disabled="reviewAction !== null && reviewAction !== 'reject'"
623
+ @click="handleReview('reject')"
624
+ >
625
+ 驳回
626
+ </el-button>
627
+ </div>
628
+ </footer>
629
+ </section>
630
+ </main>
631
+ </template>
632
+
633
+ <style scoped>
634
+ .foreign-authorization-page {
635
+ --page-blue: #1f62d6;
636
+ --page-ink: #172033;
637
+ --page-muted: #667085;
638
+ --page-line: #dce3ec;
639
+ min-width: 0;
640
+ min-height: 100%;
641
+ color: var(--page-ink);
642
+ font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
643
+ }
644
+
645
+ .query-panel,
646
+ .table-panel {
647
+ border: 1px solid var(--page-line);
648
+ border-radius: 7px;
649
+ background: #fff;
650
+ box-shadow: 0 3px 12px rgba(30, 55, 90, 0.045);
651
+ }
652
+
653
+ .query-panel {
654
+ margin-bottom: 10px;
655
+ padding: 12px 16px 10px;
656
+ }
657
+
658
+ .query-grid {
659
+ display: grid;
660
+ grid-template-columns: repeat(6, minmax(0, 1fr));
661
+ gap: 8px 12px;
662
+ }
663
+
664
+ .query-form :deep(.el-form-item) {
665
+ min-width: 0;
666
+ margin-bottom: 0;
667
+ }
668
+
669
+ .query-form :deep(.el-form-item__label) {
670
+ height: 24px;
671
+ padding: 0;
672
+ color: #475467;
673
+ font-size: 12px;
674
+ font-weight: 600;
675
+ line-height: 24px;
676
+ }
677
+
678
+ .query-form :deep(.el-input),
679
+ .query-form :deep(.el-select),
680
+ .query-form :deep(.el-date-editor) {
681
+ width: 100%;
682
+ }
683
+
684
+ .query-form :deep(.el-input__wrapper),
685
+ .query-form :deep(.el-select__wrapper) {
686
+ min-height: var(--el-component-size-small, 24px);
687
+ border-radius: 5px;
688
+ box-shadow: 0 0 0 1px #d6dee9 inset;
689
+ }
690
+
691
+ .query-actions {
692
+ display: flex;
693
+ justify-content: flex-end;
694
+ gap: 8px;
695
+ margin-top: 10px;
696
+ padding-top: 10px;
697
+ border-top: 1px dashed #e2e8f0;
698
+ }
699
+
700
+ .query-actions .el-button {
701
+ min-width: 86px;
702
+ }
703
+
704
+ .table-panel {
705
+ overflow: hidden;
706
+ }
707
+
708
+ .authorization-table {
709
+ width: 100%;
710
+ --el-table-header-bg-color: #f3f6fa;
711
+ --el-table-header-text-color: #344054;
712
+ --el-table-row-hover-bg-color: #f1f6ff;
713
+ --el-table-border-color: #e1e6ed;
714
+ }
715
+
716
+ .table-panel :deep(.el-table-plus__toolbar) {
717
+ flex-wrap: wrap;
718
+ gap: 8px;
719
+ min-height: 42px;
720
+ margin: 0;
721
+ padding: 7px 14px;
722
+ border-bottom: 1px solid #e5eaf1;
723
+ background: #fbfcfe;
724
+ }
725
+
726
+ .table-panel :deep(.el-table-plus__toolbar-left) {
727
+ flex: 1;
728
+ min-width: 0;
729
+ }
730
+
731
+ .table-panel :deep(.el-table-plus__toolbar-right) {
732
+ display: flex;
733
+ flex: 0 0 auto;
734
+ align-items: center;
735
+ gap: 10px;
736
+ }
737
+
738
+ .table-panel :deep(.el-table-plus__pagination) {
739
+ min-height: 52px;
740
+ margin: 0;
741
+ padding: 8px 14px;
742
+ border-top: 1px solid #e5eaf1;
743
+ background: #fff;
744
+ }
745
+
746
+ .authorization-table :deep(.el-table__header th) {
747
+ height: 40px;
748
+ padding: 0;
749
+ font-size: 12px;
750
+ font-weight: 700;
751
+ }
752
+
753
+ .authorization-table :deep(.el-table__cell) {
754
+ padding: 6px 0;
755
+ font-size: 12px;
756
+ }
757
+
758
+ .authorization-table :deep(.el-table__row) {
759
+ height: 42px;
760
+ }
761
+
762
+ .money-cell,
763
+ .currency-code {
764
+ font-variant-numeric: tabular-nums;
765
+ }
766
+
767
+ .money-cell {
768
+ color: #27364f;
769
+ font-weight: 650;
770
+ }
771
+
772
+ .currency-code {
773
+ color: #174ea6;
774
+ letter-spacing: 0.03em;
775
+ }
776
+
777
+ .detail-page {
778
+ position: relative;
779
+ border: 1px solid var(--page-line);
780
+ border-radius: 7px;
781
+ background: #fff;
782
+ box-shadow: 0 3px 12px rgba(30, 55, 90, 0.045);
783
+ }
784
+
785
+ .detail-header {
786
+ display: flex;
787
+ align-items: center;
788
+ justify-content: space-between;
789
+ gap: 20px;
790
+ min-height: 68px;
791
+ padding: 12px 18px;
792
+ border-bottom: 1px solid #e5eaf1;
793
+ background: #fbfcfe;
794
+ }
795
+
796
+ .detail-header__main {
797
+ display: flex;
798
+ align-items: center;
799
+ min-width: 0;
800
+ }
801
+
802
+ .detail-title {
803
+ min-width: 0;
804
+ }
805
+
806
+ .detail-title h2 {
807
+ margin: 0;
808
+ color: #27364f;
809
+ font-size: 17px;
810
+ line-height: 24px;
811
+ }
812
+
813
+ .detail-title p {
814
+ margin: 2px 0 0;
815
+ overflow: hidden;
816
+ color: var(--page-muted);
817
+ font-size: 12px;
818
+ line-height: 18px;
819
+ text-overflow: ellipsis;
820
+ white-space: nowrap;
821
+ }
822
+
823
+ .detail-content {
824
+ padding: 18px 18px 112px;
825
+ }
826
+
827
+ .detail-section {
828
+ margin-bottom: 18px;
829
+ }
830
+
831
+ .detail-section.is-last {
832
+ margin-bottom: 0;
833
+ }
834
+
835
+ .detail-section h3 {
836
+ margin: 0 0 8px;
837
+ color: #27364f;
838
+ font-size: 14px;
839
+ font-weight: 700;
840
+ }
841
+
842
+ .detail-descriptions :deep(.el-descriptions__label) {
843
+ width: 126px;
844
+ color: #667085;
845
+ }
846
+
847
+ .detail-descriptions :deep(.el-descriptions__content) {
848
+ color: #27364f;
849
+ word-break: break-word;
850
+ }
851
+
852
+ .detail-edit-control {
853
+ width: 100%;
854
+ }
855
+
856
+ .detail-descriptions :deep(.detail-edit-control .el-input__wrapper),
857
+ .detail-descriptions :deep(.detail-edit-control .el-textarea__inner) {
858
+ border-radius: 5px;
859
+ box-shadow: 0 0 0 1px #cbd8e8 inset;
860
+ }
861
+
862
+ .detail-descriptions :deep(.detail-edit-control .el-input__wrapper:hover),
863
+ .detail-descriptions :deep(.detail-edit-control .el-textarea__inner:hover) {
864
+ box-shadow: 0 0 0 1px #7ea7e8 inset;
865
+ }
866
+
867
+ .detail-actions {
868
+ position: fixed;
869
+ right: 36px;
870
+ bottom: 24px;
871
+ z-index: 50;
872
+ display: flex;
873
+ align-items: center;
874
+ gap: 24px;
875
+ padding: 12px 14px 12px 18px;
876
+ border: 1px solid #d8e1ed;
877
+ border-radius: 9px;
878
+ background: rgba(255, 255, 255, 0.96);
879
+ box-shadow: 0 12px 30px rgba(30, 55, 90, 0.18);
880
+ backdrop-filter: blur(10px);
881
+ }
882
+
883
+ .detail-actions__hint {
884
+ color: var(--page-muted);
885
+ font-size: 12px;
886
+ white-space: nowrap;
887
+ }
888
+
889
+ .detail-actions__buttons {
890
+ display: flex;
891
+ align-items: center;
892
+ gap: 10px;
893
+ }
894
+
895
+ .detail-actions__buttons .el-button {
896
+ min-width: 96px;
897
+ margin-left: 0;
898
+ }
899
+
900
+ @media (max-width: 1380px) {
901
+ .query-grid {
902
+ grid-template-columns: repeat(4, minmax(0, 1fr));
903
+ }
904
+ }
905
+
906
+ @media (max-width: 900px) {
907
+ .query-grid {
908
+ grid-template-columns: repeat(2, minmax(0, 1fr));
909
+ }
910
+
911
+ .detail-actions {
912
+ right: 20px;
913
+ bottom: 16px;
914
+ }
915
+
916
+ .detail-actions__hint {
917
+ display: none;
918
+ }
919
+ }
920
+
921
+ @media (max-width: 560px) {
922
+ .query-grid {
923
+ grid-template-columns: minmax(0, 1fr);
924
+ }
925
+
926
+ .detail-header {
927
+ align-items: flex-start;
928
+ }
929
+
930
+ .detail-actions {
931
+ right: 16px;
932
+ bottom: 12px;
933
+ left: 16px;
934
+ justify-content: flex-end;
935
+ }
936
+ }
937
+ </style>