verce-vue-test 0.0.85 → 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.
- package/package.json +1 -1
- package/src/components/element-rewrite/ElTablePro.vue +13 -0
- package/src/views/foreign-currency-authorization/adapter.ts +70 -0
- package/src/views/foreign-currency-authorization/api.ts +26 -37
- package/src/views/foreign-currency-authorization/index.vue +264 -61
- package/src/views/foreign-currency-authorization/types.ts +32 -3
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +90 -176
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +103 -191
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +0 -233
- package/src/views/foreign-currency-settlement/index.vue +0 -72
- package/src/views/foreign-currency-settlement/options.ts +1 -156
- package/src/views/foreign-currency-settlement/types.ts +0 -12
- package/src/views/foreign-currency-authorization/mock.ts +0 -116
- package/src/views/foreign-currency-settlement/components/ForeignSettlementDetailView.vue +0 -121
package/package.json
CHANGED
|
@@ -36,6 +36,8 @@ const props = withDefaults(
|
|
|
36
36
|
tableKey?: string
|
|
37
37
|
// 完全自定义缓存 key,优先级最高
|
|
38
38
|
columnStorageKey?: string
|
|
39
|
+
// 列配置弹窗挂载节点,用于页面级浮层隔离
|
|
40
|
+
appendTo?: string | HTMLElement
|
|
39
41
|
// 是否开启列配置功能
|
|
40
42
|
columnConfig?: boolean
|
|
41
43
|
// 是否持久化列配置到本地存储
|
|
@@ -467,6 +469,13 @@ const cancelColumnConfig = () => {
|
|
|
467
469
|
dialogVisible.value = false
|
|
468
470
|
}
|
|
469
471
|
|
|
472
|
+
/** 供路由页在离开、停用或卸载前关闭组件内部的列配置弹窗。 */
|
|
473
|
+
const closeTransientOverlays = () => {
|
|
474
|
+
cancelColumnConfig()
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
defineExpose({ closeTransientOverlays })
|
|
478
|
+
|
|
470
479
|
/**
|
|
471
480
|
* 初始化列配置
|
|
472
481
|
*/
|
|
@@ -563,6 +572,9 @@ initColumns()
|
|
|
563
572
|
v-for="column in visibleColumns"
|
|
564
573
|
:key="column.key"
|
|
565
574
|
/>
|
|
575
|
+
<template v-if="slots.empty" #empty>
|
|
576
|
+
<slot name="empty" />
|
|
577
|
+
</template>
|
|
566
578
|
</el-table>
|
|
567
579
|
|
|
568
580
|
<!-- 分页组件 -->
|
|
@@ -583,6 +595,7 @@ initColumns()
|
|
|
583
595
|
v-model="dialogVisible"
|
|
584
596
|
title="表格列配置"
|
|
585
597
|
width="min(640px, calc(100vw - 32px))"
|
|
598
|
+
:append-to="appendTo || undefined"
|
|
586
599
|
:close-on-click-modal="false"
|
|
587
600
|
@closed="resetColumnDragState"
|
|
588
601
|
>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ForeignAuthorizationBusinessChannel,
|
|
3
|
+
ForeignAuthorizationBusinessType,
|
|
4
|
+
ForeignAuthorizationCustomerKind,
|
|
5
|
+
ForeignAuthorizationIdType,
|
|
6
|
+
ForeignAuthorizationReturnFlag,
|
|
7
|
+
ForeignAuthorizationYesNo,
|
|
8
|
+
ForeignCurrencyAuthorizationApiRow,
|
|
9
|
+
ForeignCurrencyAuthorizationRow,
|
|
10
|
+
} from './types'
|
|
11
|
+
|
|
12
|
+
function enumValue<T extends string>(value: unknown, values: readonly T[], fallback: T): T {
|
|
13
|
+
const normalized = String(value ?? '') as T
|
|
14
|
+
return values.includes(normalized) ? normalized : fallback
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function reviewStatus(row: ForeignCurrencyAuthorizationApiRow) {
|
|
18
|
+
if (row.oposStausCode === '00') return 'approved' as const
|
|
19
|
+
if (row.oposStausCode === '99') return 'rejected' as const
|
|
20
|
+
return row.author ? 'approved' as const : 'pending' as const
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** 将 140207001 原始协议行整理为页面表格行。 */
|
|
24
|
+
export function toAuthorizationRow(
|
|
25
|
+
row: ForeignCurrencyAuthorizationApiRow,
|
|
26
|
+
): ForeignCurrencyAuthorizationRow {
|
|
27
|
+
const amount = Number(String(row.forecastAmt ?? '').replaceAll(',', ''))
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
id: String(row.id ?? ''),
|
|
31
|
+
custKind: enumValue<ForeignAuthorizationCustomerKind>(row.custKind, ['01', '02', '03'], '01'),
|
|
32
|
+
refType: enumValue<ForeignAuthorizationBusinessType>(
|
|
33
|
+
row.refType,
|
|
34
|
+
['01', '02', '03', '04', '05', '06', '07'],
|
|
35
|
+
'01',
|
|
36
|
+
),
|
|
37
|
+
bizarc: enumValue<ForeignAuthorizationBusinessChannel>(row.bizarc, ['10', '50', '70'], '10'),
|
|
38
|
+
rdfibic: String(row.rdfibic ?? ''),
|
|
39
|
+
rtnFlag: enumValue<ForeignAuthorizationReturnFlag>(row.rtnFlag, ['01', '02'], '01'),
|
|
40
|
+
oriInnerrefno: String(row.oriInnerrefno ?? ''),
|
|
41
|
+
currency: String(row.currency ?? ''),
|
|
42
|
+
nostro: String(row.nostro ?? ''),
|
|
43
|
+
forecastAmt: Number.isFinite(amount) ? amount : 0,
|
|
44
|
+
valueDate: String(row.valueDate ?? ''),
|
|
45
|
+
planDate: String(row.planDate ?? ''),
|
|
46
|
+
forecastDate: String(row.forecastDate ?? ''),
|
|
47
|
+
idType: enumValue<ForeignAuthorizationIdType>(
|
|
48
|
+
row.idType,
|
|
49
|
+
['0', '1', '2', '3', '4', '5', '6', '7'],
|
|
50
|
+
'0',
|
|
51
|
+
),
|
|
52
|
+
custCode: String(row.custCode ?? ''),
|
|
53
|
+
custName: String(row.custName ?? ''),
|
|
54
|
+
orgId: String(row.orgId ?? ''),
|
|
55
|
+
orgName: String(row.orgName ?? row.orgId ?? ''),
|
|
56
|
+
pyeBankAgt: String(row.pyeBankAgt ?? ''),
|
|
57
|
+
pyeaccBic: String(row.pyeaccBic ?? ''),
|
|
58
|
+
pyeBankName: String(row.pyeBankName ?? ''),
|
|
59
|
+
isEmail: enumValue<ForeignAuthorizationYesNo>(row.isEmail, ['0', '1'], '0'),
|
|
60
|
+
mulcurflag: enumValue<ForeignAuthorizationYesNo>(row.mulcurflag, ['0', '1'], '0'),
|
|
61
|
+
ftzFlag: enumValue<ForeignAuthorizationYesNo>(row.ftzFlag, ['0', '1'], '0'),
|
|
62
|
+
linkMan: String(row.linkMan ?? ''),
|
|
63
|
+
linkWay: String(row.linkWay ?? ''),
|
|
64
|
+
supervisor: String(row.supervisor ?? ''),
|
|
65
|
+
author: String(row.author ?? ''),
|
|
66
|
+
reviewStatus: reviewStatus(row),
|
|
67
|
+
rejectReason: String(row.refuseRemark ?? ''),
|
|
68
|
+
posRemark: String(row.posRemark ?? ''),
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,43 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import baseHttpClient, {
|
|
2
|
+
type HttpRequestOptions,
|
|
3
|
+
type TamResponse,
|
|
4
|
+
} from '@/utils/baseHttpClient'
|
|
2
5
|
import type {
|
|
3
6
|
ForeignCurrencyAuthorizationFilter,
|
|
4
|
-
|
|
7
|
+
ForeignCurrencyAuthorizationQueryResponseBody,
|
|
8
|
+
ForeignCurrencyAuthorizationReviewRequestBody,
|
|
5
9
|
} from './types'
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
page: number,
|
|
18
|
-
pageSize: number,
|
|
19
|
-
signal?: AbortSignal,
|
|
20
|
-
): Promise<ForeignCurrencyAuthorizationListResult> {
|
|
21
|
-
if (signal?.aborted) throw new DOMException('查询已取消', 'AbortError')
|
|
22
|
-
|
|
23
|
-
const customerCode = filter.custCode.trim()
|
|
24
|
-
const result = mockForeignCurrencyAuthorizationRows
|
|
25
|
-
.filter((row) => !filter.posDate || row.forecastDate === filter.posDate)
|
|
26
|
-
.filter((row) => !filter.planDate || row.planDate === filter.planDate)
|
|
27
|
-
.filter((row) => !filter.refType || row.refType === filter.refType)
|
|
28
|
-
.filter((row) => !filter.custType || row.custKind === filter.custType)
|
|
29
|
-
.filter((row) => !customerCode || includesKeyword(row.custCode, customerCode))
|
|
30
|
-
.filter((row) => !filter.orgId || row.orgId === filter.orgId)
|
|
31
|
-
.filter((row) => !filter.currency || row.currency === filter.currency)
|
|
32
|
-
.sort((left, right) => (
|
|
33
|
-
right.forecastDate.localeCompare(left.forecastDate) || right.id.localeCompare(left.id)
|
|
34
|
-
))
|
|
11
|
+
/** 外币授权页面接口入口;TAM 公共报文头由 baseHttpClient 自动补齐。 */
|
|
12
|
+
const API = {
|
|
13
|
+
queryAPI: (
|
|
14
|
+
params: ForeignCurrencyAuthorizationFilter,
|
|
15
|
+
options?: HttpRequestOptions,
|
|
16
|
+
) => baseHttpClient.post<TamResponse<ForeignCurrencyAuthorizationQueryResponseBody>>(
|
|
17
|
+
'/TAM/0001/140207001',
|
|
18
|
+
params,
|
|
19
|
+
options,
|
|
20
|
+
),
|
|
35
21
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
reviewAPI: (
|
|
23
|
+
params: ForeignCurrencyAuthorizationReviewRequestBody,
|
|
24
|
+
options?: HttpRequestOptions,
|
|
25
|
+
) => baseHttpClient.post<TamResponse<Record<string, unknown>>>(
|
|
26
|
+
'/TAM/0001/120207001',
|
|
27
|
+
params,
|
|
28
|
+
options,
|
|
29
|
+
),
|
|
43
30
|
}
|
|
31
|
+
|
|
32
|
+
export default API
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onBeforeUnmount, onMounted, reactive, ref } from 'vue'
|
|
3
|
-
import { ElMessage } from 'element-plus'
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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'
|
|
6
15
|
import {
|
|
7
16
|
businessChannelOptions,
|
|
8
17
|
businessTypeOptions,
|
|
@@ -23,6 +32,7 @@ import {
|
|
|
23
32
|
const filterForm = reactive<ForeignCurrencyAuthorizationFilter>(
|
|
24
33
|
createDefaultForeignCurrencyAuthorizationFilter(),
|
|
25
34
|
)
|
|
35
|
+
const loginStore = useLoginStore()
|
|
26
36
|
const appliedFilters = ref<ForeignCurrencyAuthorizationFilter>(cloneFilter(filterForm))
|
|
27
37
|
const records = ref<ForeignCurrencyAuthorizationRow[]>([])
|
|
28
38
|
const totalCount = ref(0)
|
|
@@ -32,6 +42,12 @@ const isLoading = ref(false)
|
|
|
32
42
|
const isQuerying = ref(false)
|
|
33
43
|
const pageMode = ref<'list' | 'detail'>('list')
|
|
34
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)
|
|
35
51
|
|
|
36
52
|
let activeQueryController: AbortController | null = null
|
|
37
53
|
|
|
@@ -47,6 +63,26 @@ function displayValue(value: string) {
|
|
|
47
63
|
return value || '—'
|
|
48
64
|
}
|
|
49
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
|
+
|
|
50
86
|
function formatMoney(value: number) {
|
|
51
87
|
return Number(value || 0).toLocaleString('zh-CN', {
|
|
52
88
|
minimumFractionDigits: 2,
|
|
@@ -65,16 +101,27 @@ async function loadRows() {
|
|
|
65
101
|
isLoading.value = true
|
|
66
102
|
|
|
67
103
|
try {
|
|
68
|
-
const response = await
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
+
},
|
|
73
116
|
)
|
|
74
117
|
|
|
75
118
|
if (controller.signal.aborted || activeQueryController !== controller) return
|
|
76
|
-
|
|
77
|
-
|
|
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
|
|
78
125
|
} catch (error) {
|
|
79
126
|
if (controller.signal.aborted || isAbortError(error)) return
|
|
80
127
|
ElMessage.error(error instanceof Error ? error.message : '外币授权查询失败')
|
|
@@ -111,6 +158,11 @@ async function handlePaginationChange(pagination: { page: number; pageSize: numb
|
|
|
111
158
|
|
|
112
159
|
function openDetail(row: ForeignCurrencyAuthorizationRow) {
|
|
113
160
|
detailRecord.value = row
|
|
161
|
+
Object.assign(detailEditForm, {
|
|
162
|
+
nostro: row.nostro,
|
|
163
|
+
valueDate: row.valueDate,
|
|
164
|
+
rejectReason: row.rejectReason,
|
|
165
|
+
})
|
|
114
166
|
pageMode.value = 'detail'
|
|
115
167
|
}
|
|
116
168
|
|
|
@@ -119,6 +171,71 @@ function returnToList() {
|
|
|
119
171
|
detailRecord.value = null
|
|
120
172
|
}
|
|
121
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
|
+
|
|
122
239
|
onMounted(() => {
|
|
123
240
|
void loadRows()
|
|
124
241
|
})
|
|
@@ -246,17 +363,6 @@ onBeforeUnmount(() => {
|
|
|
246
363
|
@pagination-change="handlePaginationChange"
|
|
247
364
|
@row-dblclick="openDetail"
|
|
248
365
|
>
|
|
249
|
-
<template #toolbar>
|
|
250
|
-
<div class="result-heading">
|
|
251
|
-
<strong>外币授权记录</strong>
|
|
252
|
-
<span>共 {{ totalCount }} 条</span>
|
|
253
|
-
</div>
|
|
254
|
-
</template>
|
|
255
|
-
|
|
256
|
-
<template #toolbar-right>
|
|
257
|
-
<span class="table-tip">双击记录可查看完整信息</span>
|
|
258
|
-
</template>
|
|
259
|
-
|
|
260
366
|
<el-table-column
|
|
261
367
|
type="index"
|
|
262
368
|
column-key="sequence"
|
|
@@ -309,8 +415,15 @@ onBeforeUnmount(() => {
|
|
|
309
415
|
<el-table-column prop="supervisor" label="复核人" width="96" />
|
|
310
416
|
<el-table-column prop="author" label="授权人" width="102">
|
|
311
417
|
<template #default="{ row }">
|
|
312
|
-
<span v-if="row.
|
|
313
|
-
<el-tag
|
|
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>
|
|
314
427
|
</template>
|
|
315
428
|
</el-table-column>
|
|
316
429
|
<el-table-column prop="bizarc" label="业务渠道" width="102" :visible="false">
|
|
@@ -350,19 +463,17 @@ onBeforeUnmount(() => {
|
|
|
350
463
|
<section v-else-if="detailRecord" class="detail-page" aria-label="外币授权详细信息">
|
|
351
464
|
<header class="detail-header">
|
|
352
465
|
<div class="detail-header__main">
|
|
353
|
-
<el-button class="back-button" :icon="ArrowLeft" @click="returnToList">返回</el-button>
|
|
354
|
-
<span class="detail-header__divider" aria-hidden="true"></span>
|
|
355
466
|
<div class="detail-title">
|
|
356
467
|
<h2>外币授权详细信息</h2>
|
|
357
468
|
<p>{{ detailRecord.id }} · {{ detailRecord.custName }}</p>
|
|
358
469
|
</div>
|
|
359
470
|
</div>
|
|
360
471
|
<el-tag
|
|
361
|
-
:type="detailRecord.
|
|
472
|
+
:type="reviewStatusTagType(detailRecord.reviewStatus)"
|
|
362
473
|
effect="light"
|
|
363
474
|
round
|
|
364
475
|
>
|
|
365
|
-
{{ detailRecord.
|
|
476
|
+
{{ reviewStatusLabel(detailRecord.reviewStatus) }}
|
|
366
477
|
</el-tag>
|
|
367
478
|
</header>
|
|
368
479
|
|
|
@@ -373,7 +484,18 @@ onBeforeUnmount(() => {
|
|
|
373
484
|
<el-descriptions-item label="记录ID">{{ detailRecord.id }}</el-descriptions-item>
|
|
374
485
|
<el-descriptions-item label="大额报备日期">{{ detailRecord.forecastDate }}</el-descriptions-item>
|
|
375
486
|
<el-descriptions-item label="计划汇款日期">{{ detailRecord.planDate }}</el-descriptions-item>
|
|
376
|
-
<el-descriptions-item label="汇款起息日">
|
|
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>
|
|
377
499
|
<el-descriptions-item label="业务类型" :span="2">
|
|
378
500
|
{{ getOptionLabel(businessTypeOptions, detailRecord.refType) }}
|
|
379
501
|
</el-descriptions-item>
|
|
@@ -426,8 +548,15 @@ onBeforeUnmount(() => {
|
|
|
426
548
|
<el-descriptions-item label="最终收款行 SWIFTCODE">
|
|
427
549
|
{{ detailRecord.rdfibic }}
|
|
428
550
|
</el-descriptions-item>
|
|
429
|
-
<el-descriptions-item label="
|
|
430
|
-
|
|
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
|
+
/>
|
|
431
560
|
</el-descriptions-item>
|
|
432
561
|
<el-descriptions-item label="是否退汇">
|
|
433
562
|
{{ getOptionLabel(returnFlagOptions, detailRecord.rtnFlag) }}
|
|
@@ -456,9 +585,47 @@ onBeforeUnmount(() => {
|
|
|
456
585
|
<el-descriptions-item label="报备说明" :span="2">
|
|
457
586
|
{{ displayValue(detailRecord.posRemark) }}
|
|
458
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>
|
|
459
600
|
</el-descriptions>
|
|
460
601
|
</section>
|
|
461
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>
|
|
462
629
|
</section>
|
|
463
630
|
</main>
|
|
464
631
|
</template>
|
|
@@ -576,23 +743,6 @@ onBeforeUnmount(() => {
|
|
|
576
743
|
background: #fff;
|
|
577
744
|
}
|
|
578
745
|
|
|
579
|
-
.result-heading {
|
|
580
|
-
display: flex;
|
|
581
|
-
align-items: center;
|
|
582
|
-
gap: 10px;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.result-heading strong {
|
|
586
|
-
color: #27364f;
|
|
587
|
-
font-size: 14px;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.result-heading span,
|
|
591
|
-
.table-tip {
|
|
592
|
-
color: var(--page-muted);
|
|
593
|
-
font-size: 12px;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
746
|
.authorization-table :deep(.el-table__header th) {
|
|
597
747
|
height: 40px;
|
|
598
748
|
padding: 0;
|
|
@@ -625,7 +775,7 @@ onBeforeUnmount(() => {
|
|
|
625
775
|
}
|
|
626
776
|
|
|
627
777
|
.detail-page {
|
|
628
|
-
|
|
778
|
+
position: relative;
|
|
629
779
|
border: 1px solid var(--page-line);
|
|
630
780
|
border-radius: 7px;
|
|
631
781
|
background: #fff;
|
|
@@ -649,17 +799,6 @@ onBeforeUnmount(() => {
|
|
|
649
799
|
min-width: 0;
|
|
650
800
|
}
|
|
651
801
|
|
|
652
|
-
.back-button {
|
|
653
|
-
flex: 0 0 auto;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
.detail-header__divider {
|
|
657
|
-
width: 1px;
|
|
658
|
-
height: 32px;
|
|
659
|
-
margin: 0 16px;
|
|
660
|
-
background: #d9e1eb;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
802
|
.detail-title {
|
|
664
803
|
min-width: 0;
|
|
665
804
|
}
|
|
@@ -682,7 +821,7 @@ onBeforeUnmount(() => {
|
|
|
682
821
|
}
|
|
683
822
|
|
|
684
823
|
.detail-content {
|
|
685
|
-
padding: 18px;
|
|
824
|
+
padding: 18px 18px 112px;
|
|
686
825
|
}
|
|
687
826
|
|
|
688
827
|
.detail-section {
|
|
@@ -710,6 +849,54 @@ onBeforeUnmount(() => {
|
|
|
710
849
|
word-break: break-word;
|
|
711
850
|
}
|
|
712
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
|
+
|
|
713
900
|
@media (max-width: 1380px) {
|
|
714
901
|
.query-grid {
|
|
715
902
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
@@ -721,7 +908,12 @@ onBeforeUnmount(() => {
|
|
|
721
908
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
722
909
|
}
|
|
723
910
|
|
|
724
|
-
.
|
|
911
|
+
.detail-actions {
|
|
912
|
+
right: 20px;
|
|
913
|
+
bottom: 16px;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.detail-actions__hint {
|
|
725
917
|
display: none;
|
|
726
918
|
}
|
|
727
919
|
}
|
|
@@ -730,5 +922,16 @@ onBeforeUnmount(() => {
|
|
|
730
922
|
.query-grid {
|
|
731
923
|
grid-template-columns: minmax(0, 1fr);
|
|
732
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
|
+
}
|
|
733
936
|
}
|
|
734
937
|
</style>
|