verce-vue-test 0.0.96 → 0.0.98
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/env.d.ts +3 -1
- package/package.json +1 -1
- package/src/components/business/Public/TokenTag.vue +16 -12
- package/src/components/element-rewrite/DateRange.vue +368 -0
- package/src/components/element-rewrite/ElInputThousandth.vue +7 -7
- package/src/components/index.ts +8 -0
- package/src/router/index.ts +1 -1
- package/src/utils/formatters.ts +1 -1
- package/src/views/EmployeeView.vue +1 -1
- package/src/views/foreign-currency-fund-allocation/api.ts +0 -12
- package/src/views/foreign-currency-fund-allocation/index.vue +165 -131
- package/src/views/foreign-currency-fund-allocation/types.ts +0 -13
- package/src/views/foreign-currency-settlement/api.ts +1 -1
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +14 -3
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +15 -4
- package/src/views/foreign-currency-settlement/foreign-currency-settlement-base.css +201 -0
- package/src/views/fund-cockpit/api.ts +48 -41
- package/src/views/fund-cockpit/index.css +1053 -0
- package/src/views/{FundCockpitView.vue → fund-cockpit/index.vue} +535 -705
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed, nextTick,
|
|
2
|
+
import { computed, nextTick, onMounted, reactive, ref } from 'vue'
|
|
3
3
|
import {
|
|
4
4
|
ElMessage,
|
|
5
5
|
ElMessageBox,
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
} from './api'
|
|
33
33
|
import { allocationStatusOptions, allocationTypeOptions, currencyOptions } from './options'
|
|
34
34
|
import {
|
|
35
|
-
createDefaultFundAllocationFilter,
|
|
36
35
|
normalizeFundAllocationRow,
|
|
37
36
|
type ForeignCurrencyFundAllocationCreateBody,
|
|
38
37
|
type ForeignCurrencyFundAllocationFilter,
|
|
@@ -63,9 +62,68 @@ const accountTypeOptions = [
|
|
|
63
62
|
{ value: '02', label: '分支行账户' },
|
|
64
63
|
]
|
|
65
64
|
|
|
65
|
+
function localDateText(date = new Date()) {
|
|
66
|
+
const pad = (value: number) => String(value).padStart(2, '0')
|
|
67
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function resolveSystemWorkDate(value: unknown) {
|
|
71
|
+
const match = String(value ?? '').trim().match(/^(\d{4})-?(\d{2})-?(\d{2})$/)
|
|
72
|
+
if (!match) return compactDate(localDateText())
|
|
73
|
+
|
|
74
|
+
const [, yearText, monthText, dayText] = match
|
|
75
|
+
const year = Number(yearText)
|
|
76
|
+
const month = Number(monthText)
|
|
77
|
+
const day = Number(dayText)
|
|
78
|
+
const date = new Date(year, month - 1, day)
|
|
79
|
+
const isValidDate = date.getFullYear() === year
|
|
80
|
+
&& date.getMonth() === month - 1
|
|
81
|
+
&& date.getDate() === day
|
|
82
|
+
return compactDate(isValidDate ? localDateText(date) : localDateText())
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** 系统工作日期注入点,日期模型统一使用 YYYYMMDD。 */
|
|
86
|
+
const systemWorkDate = ref(resolveSystemWorkDate(import.meta.env.VITE_SYSTEM_WORK_DATE))
|
|
87
|
+
|
|
88
|
+
function disabledBeforeSystemWorkDate(date: Date) {
|
|
89
|
+
return compactDate(localDateText(date)) < systemWorkDate.value
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function createDefaultFundAllocationFilter(): ForeignCurrencyFundAllocationFilter {
|
|
93
|
+
return {
|
|
94
|
+
ccy: '',
|
|
95
|
+
startAmt: '',
|
|
96
|
+
endAmt: '',
|
|
97
|
+
startValueDate: systemWorkDate.value,
|
|
98
|
+
endValueDate: systemWorkDate.value,
|
|
99
|
+
status: '',
|
|
100
|
+
tranDate: systemWorkDate.value,
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
66
104
|
const filterForm = reactive<ForeignCurrencyFundAllocationFilter>(
|
|
67
105
|
createDefaultFundAllocationFilter(),
|
|
68
106
|
)
|
|
107
|
+
const filterAmountRange = computed<[number | null, number | null]>({
|
|
108
|
+
get: (): [number | null, number | null] => [
|
|
109
|
+
parseFilterAmount(filterForm.startAmt),
|
|
110
|
+
parseFilterAmount(filterForm.endAmt),
|
|
111
|
+
],
|
|
112
|
+
set: ([startAmt, endAmt]: [number | null, number | null]) => {
|
|
113
|
+
filterForm.startAmt = startAmt === null ? '' : String(startAmt)
|
|
114
|
+
filterForm.endAmt = endAmt === null ? '' : String(endAmt)
|
|
115
|
+
},
|
|
116
|
+
})
|
|
117
|
+
const filterValueDateRange = computed<[string | null, string | null]>({
|
|
118
|
+
get: (): [string | null, string | null] => [
|
|
119
|
+
filterForm.startValueDate || null,
|
|
120
|
+
filterForm.endValueDate || null,
|
|
121
|
+
],
|
|
122
|
+
set: ([startValueDate, endValueDate]: [string | null, string | null]) => {
|
|
123
|
+
filterForm.startValueDate = startValueDate || ''
|
|
124
|
+
filterForm.endValueDate = endValueDate || ''
|
|
125
|
+
},
|
|
126
|
+
})
|
|
69
127
|
const appliedFilters = ref<ForeignCurrencyFundAllocationFilter>({ ...filterForm })
|
|
70
128
|
const sharedQueryParams = computed<ForeignCurrencyFundAllocationFilter>(() => (
|
|
71
129
|
cloneFilter(appliedFilters.value)
|
|
@@ -125,8 +183,14 @@ const columnComponentMap: Record<string, string> = {
|
|
|
125
183
|
ccy: 'TokenTag',
|
|
126
184
|
}
|
|
127
185
|
|
|
128
|
-
let
|
|
129
|
-
let
|
|
186
|
+
let activeQueryRequestId = 0
|
|
187
|
+
let accountBankRequestId = 0
|
|
188
|
+
|
|
189
|
+
function parseFilterAmount(value: string) {
|
|
190
|
+
if (!value) return null
|
|
191
|
+
const amount = Number(value.replaceAll(',', ''))
|
|
192
|
+
return Number.isFinite(amount) ? amount : null
|
|
193
|
+
}
|
|
130
194
|
|
|
131
195
|
function sanitizeAmountInput(value: string) {
|
|
132
196
|
const numericValue = String(value ?? '').replace(/[^\d.]/g, '')
|
|
@@ -179,7 +243,7 @@ function validateDifferentAccount(mode: AllocationFormMode) {
|
|
|
179
243
|
}
|
|
180
244
|
}
|
|
181
245
|
|
|
182
|
-
const createFormRules: FormRules
|
|
246
|
+
const createFormRules: FormRules = {
|
|
183
247
|
alocDate: [{ required: true, message: '请选择调拨日期', trigger: 'change' }],
|
|
184
248
|
alocType: [{ required: true, message: '请选择调拨类型', trigger: 'change' }],
|
|
185
249
|
ccy: [{ required: true, message: '请选择币种', trigger: 'change' }],
|
|
@@ -192,7 +256,7 @@ const createFormRules: FormRules<ForeignCurrencyFundAllocationCreateBody> = {
|
|
|
192
256
|
],
|
|
193
257
|
}
|
|
194
258
|
|
|
195
|
-
const editFormRules: FormRules
|
|
259
|
+
const editFormRules: FormRules = {
|
|
196
260
|
alocTypeEdit: [{ required: true, message: '请选择调拨类型', trigger: 'change' }],
|
|
197
261
|
ccyEdit: [{ required: true, message: '请选择币种', trigger: 'change' }],
|
|
198
262
|
amtEdit: [{ validator: validateAmount, trigger: 'blur' }],
|
|
@@ -204,16 +268,10 @@ const editFormRules: FormRules<ForeignCurrencyFundAllocationUpdateBody> = {
|
|
|
204
268
|
],
|
|
205
269
|
}
|
|
206
270
|
|
|
207
|
-
function localDateText() {
|
|
208
|
-
const now = new Date()
|
|
209
|
-
const pad = (value: number) => String(value).padStart(2, '0')
|
|
210
|
-
return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`
|
|
211
|
-
}
|
|
212
|
-
|
|
213
271
|
function createDefaultAllocationForm(): ForeignCurrencyFundAllocationCreateBody {
|
|
214
272
|
return {
|
|
215
273
|
acctType: injectedAccountType.value,
|
|
216
|
-
alocDate:
|
|
274
|
+
alocDate: systemWorkDate.value,
|
|
217
275
|
alocType: injectedAccountType.value,
|
|
218
276
|
amt: '',
|
|
219
277
|
ccy: '',
|
|
@@ -226,7 +284,7 @@ function createDefaultAllocationForm(): ForeignCurrencyFundAllocationCreateBody
|
|
|
226
284
|
outAcctNo: '',
|
|
227
285
|
remark: '',
|
|
228
286
|
status: 'C',
|
|
229
|
-
valueDate:
|
|
287
|
+
valueDate: systemWorkDate.value,
|
|
230
288
|
zmqFlag: 'N',
|
|
231
289
|
}
|
|
232
290
|
}
|
|
@@ -257,13 +315,15 @@ function cloneFilter(source: ForeignCurrencyFundAllocationFilter) {
|
|
|
257
315
|
return { ...source }
|
|
258
316
|
}
|
|
259
317
|
|
|
260
|
-
|
|
261
|
-
|
|
318
|
+
/** 后端日期字段统一使用 YYYYMMDD。 */
|
|
319
|
+
function compactDate(value: string) {
|
|
320
|
+
const compact = String(value || '').replaceAll('-', '').slice(0, 8)
|
|
321
|
+
return /^\d{8}$/.test(compact) ? compact : ''
|
|
262
322
|
}
|
|
263
323
|
|
|
264
324
|
function formatDate(value: string) {
|
|
265
|
-
const compact = value
|
|
266
|
-
if (
|
|
325
|
+
const compact = compactDate(value)
|
|
326
|
+
if (!compact) return value || '—'
|
|
267
327
|
return `${compact.slice(0, 4)}-${compact.slice(4, 6)}-${compact.slice(6, 8)}`
|
|
268
328
|
}
|
|
269
329
|
|
|
@@ -276,7 +336,7 @@ function formatDecimal(value: string) {
|
|
|
276
336
|
}
|
|
277
337
|
|
|
278
338
|
function statusCode(status: string) {
|
|
279
|
-
return String(status || '').trim().split('-')[0]
|
|
339
|
+
return String(status || '').trim().split('-')[0]?.toUpperCase() || ''
|
|
280
340
|
}
|
|
281
341
|
|
|
282
342
|
function statusLabel(status: string) {
|
|
@@ -349,23 +409,12 @@ function allocationTypeLabel(value: string) {
|
|
|
349
409
|
}
|
|
350
410
|
|
|
351
411
|
async function loadRows() {
|
|
352
|
-
|
|
353
|
-
const controller = new AbortController()
|
|
354
|
-
activeQueryController = controller
|
|
412
|
+
const requestId = ++activeQueryRequestId
|
|
355
413
|
loading.value = true
|
|
356
414
|
|
|
357
415
|
try {
|
|
358
|
-
const response = await queryForeignCurrencyFundAllocations(
|
|
359
|
-
|
|
360
|
-
{
|
|
361
|
-
signal: controller.signal,
|
|
362
|
-
tamHead: {
|
|
363
|
-
pageIndex: currentPage.value,
|
|
364
|
-
pageSize: pageSize.value,
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
)
|
|
368
|
-
if (controller.signal.aborted || activeQueryController !== controller) return
|
|
416
|
+
const response = await queryForeignCurrencyFundAllocations(sharedQueryParams.value) as any
|
|
417
|
+
if (requestId !== activeQueryRequestId) return
|
|
369
418
|
|
|
370
419
|
const resultInfos = Array.isArray(response.body.resultInfos) ? response.body.resultInfos : []
|
|
371
420
|
const responseTotal = Number(response.body.totalCount)
|
|
@@ -374,13 +423,10 @@ async function loadRows() {
|
|
|
374
423
|
? responseTotal
|
|
375
424
|
: resultInfos.length
|
|
376
425
|
} catch (error) {
|
|
377
|
-
if (
|
|
426
|
+
if (requestId !== activeQueryRequestId) return
|
|
378
427
|
ElMessage.error(error instanceof Error ? error.message : '外币资金调拨查询失败')
|
|
379
428
|
} finally {
|
|
380
|
-
if (
|
|
381
|
-
activeQueryController = null
|
|
382
|
-
loading.value = false
|
|
383
|
-
}
|
|
429
|
+
if (requestId === activeQueryRequestId) loading.value = false
|
|
384
430
|
}
|
|
385
431
|
}
|
|
386
432
|
|
|
@@ -434,29 +480,25 @@ function getAccountQuery(mode: AllocationFormMode) {
|
|
|
434
480
|
}
|
|
435
481
|
|
|
436
482
|
async function loadAccountBankOptions(mode: AllocationFormMode) {
|
|
483
|
+
const requestId = ++accountBankRequestId
|
|
437
484
|
const params = getAccountQuery(mode)
|
|
438
485
|
if (!params.ccy) {
|
|
439
486
|
accountBankOptions.value = []
|
|
487
|
+
accountBankLoading.value = false
|
|
440
488
|
return
|
|
441
489
|
}
|
|
442
490
|
|
|
443
|
-
accountBankRequestController?.abort()
|
|
444
|
-
const controller = new AbortController()
|
|
445
|
-
accountBankRequestController = controller
|
|
446
491
|
accountBankLoading.value = true
|
|
447
492
|
|
|
448
493
|
try {
|
|
449
|
-
const result = await queryAccountBanks(params
|
|
450
|
-
if (
|
|
494
|
+
const result = await queryAccountBanks(params) as any
|
|
495
|
+
if (requestId !== accountBankRequestId) return
|
|
451
496
|
accountBankOptions.value = result
|
|
452
497
|
} catch (error) {
|
|
453
|
-
if (
|
|
498
|
+
if (requestId !== accountBankRequestId) return
|
|
454
499
|
ElMessage.error(error instanceof Error ? error.message : '账户行查询失败')
|
|
455
500
|
} finally {
|
|
456
|
-
if (
|
|
457
|
-
accountBankRequestController = null
|
|
458
|
-
accountBankLoading.value = false
|
|
459
|
-
}
|
|
501
|
+
if (requestId === accountBankRequestId) accountBankLoading.value = false
|
|
460
502
|
}
|
|
461
503
|
}
|
|
462
504
|
|
|
@@ -492,8 +534,9 @@ function openEdit(row: ForeignCurrencyFundAllocationRow) {
|
|
|
492
534
|
ElMessage.warning('只有审批未通过或草稿状态的调拨记录才能修改')
|
|
493
535
|
return
|
|
494
536
|
}
|
|
495
|
-
|
|
537
|
+
accountBankRequestId += 1
|
|
496
538
|
accountBankOptions.value = []
|
|
539
|
+
accountBankLoading.value = false
|
|
497
540
|
editRejectReason.value = row.approveRjctReason
|
|
498
541
|
const rowAllocationType = allocationTypeCode(row.alocType)
|
|
499
542
|
Object.assign(editForm, {
|
|
@@ -512,7 +555,7 @@ function openEdit(row: ForeignCurrencyFundAllocationRow) {
|
|
|
512
555
|
remarkEdit: row.remark,
|
|
513
556
|
status: row.status,
|
|
514
557
|
updateUser: String(import.meta.env.VITE_TAM_USER_ID || 'HQ00601'),
|
|
515
|
-
valueDateEdit:
|
|
558
|
+
valueDateEdit: compactDate(row.valueDate),
|
|
516
559
|
zmqFlagEdit: row.zmqFlag || 'N',
|
|
517
560
|
})
|
|
518
561
|
editVisible.value = true
|
|
@@ -523,7 +566,7 @@ function openEdit(row: ForeignCurrencyFundAllocationRow) {
|
|
|
523
566
|
}
|
|
524
567
|
|
|
525
568
|
function openCreate() {
|
|
526
|
-
|
|
569
|
+
accountBankRequestId += 1
|
|
527
570
|
accountBankOptions.value = []
|
|
528
571
|
accountBankLoading.value = false
|
|
529
572
|
createSubmittingAction.value = null
|
|
@@ -543,7 +586,7 @@ async function handleCreateSubmit(action: CreateAction) {
|
|
|
543
586
|
createSubmitting.value = true
|
|
544
587
|
createSubmittingAction.value = action
|
|
545
588
|
try {
|
|
546
|
-
const response = await createForeignCurrencyFundAllocation(createAllocationRequestBody(status))
|
|
589
|
+
const response = await createForeignCurrencyFundAllocation(createAllocationRequestBody(status)) as any
|
|
547
590
|
createVisible.value = false
|
|
548
591
|
ElMessage.success(`${actionText}成功,调拨单号:${response.body.transFerInstruct}`)
|
|
549
592
|
currentPage.value = 1
|
|
@@ -581,7 +624,7 @@ async function handleEditSubmit(action: EditAction) {
|
|
|
581
624
|
outAcctNoEdit: editForm.outAcctNoEdit.trim(),
|
|
582
625
|
remarkEdit: editForm.remarkEdit.trim(),
|
|
583
626
|
status,
|
|
584
|
-
})
|
|
627
|
+
}) as any
|
|
585
628
|
editVisible.value = false
|
|
586
629
|
ElMessage.success(response.head.retMsg || `${actionText}成功`)
|
|
587
630
|
await loadRows()
|
|
@@ -616,7 +659,7 @@ async function handleDelete(row: ForeignCurrencyFundAllocationRow) {
|
|
|
616
659
|
|
|
617
660
|
activeRowAction.value = { refNo: row.refNo, action: 'delete' }
|
|
618
661
|
try {
|
|
619
|
-
const response = await deleteForeignCurrencyFundAllocation(row.refNo)
|
|
662
|
+
const response = await deleteForeignCurrencyFundAllocation(row.refNo) as any
|
|
620
663
|
if (detailRecord.value?.refNo === row.refNo) {
|
|
621
664
|
detailVisible.value = false
|
|
622
665
|
detailRecord.value = null
|
|
@@ -677,7 +720,7 @@ async function handleReview(
|
|
|
677
720
|
const action: RowAction = approved ? 'approve' : 'reject'
|
|
678
721
|
activeRowAction.value = { refNo: row.refNo, action }
|
|
679
722
|
try {
|
|
680
|
-
const response = await reviewForeignCurrencyFundAllocation(row.refNo, type, approveRjctReason)
|
|
723
|
+
const response = await reviewForeignCurrencyFundAllocation(row.refNo, type, approveRjctReason) as any
|
|
681
724
|
ElMessage.success(response.head.retMsg || `${actionText}成功`)
|
|
682
725
|
await loadRows()
|
|
683
726
|
const refreshedRecord = records.value.find((item) => item.refNo === row.refNo)
|
|
@@ -694,11 +737,6 @@ async function handleReview(
|
|
|
694
737
|
onMounted(() => {
|
|
695
738
|
void loadRows()
|
|
696
739
|
})
|
|
697
|
-
|
|
698
|
-
onBeforeUnmount(() => {
|
|
699
|
-
activeQueryController?.abort()
|
|
700
|
-
accountBankRequestController?.abort()
|
|
701
|
-
})
|
|
702
740
|
</script>
|
|
703
741
|
|
|
704
742
|
<template>
|
|
@@ -736,7 +774,7 @@ onBeforeUnmount(() => {
|
|
|
736
774
|
v-model="filterForm.tranDate"
|
|
737
775
|
type="date"
|
|
738
776
|
format="YYYY-MM-DD"
|
|
739
|
-
value-format="
|
|
777
|
+
value-format="YYYYMMDD"
|
|
740
778
|
placeholder="请选择调拨日期"
|
|
741
779
|
clearable
|
|
742
780
|
/>
|
|
@@ -758,44 +796,28 @@ onBeforeUnmount(() => {
|
|
|
758
796
|
<el-option v-for="option in allocationStatusOptions" :key="option.value" v-bind="option" />
|
|
759
797
|
</el-select>
|
|
760
798
|
</el-form-item>
|
|
761
|
-
<
|
|
762
|
-
<el-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
format="YYYY-MM-DD"
|
|
784
|
-
value-format="YYYY-MM-DD"
|
|
785
|
-
placeholder="请选择开始日期"
|
|
786
|
-
clearable
|
|
787
|
-
/>
|
|
788
|
-
</el-form-item>
|
|
789
|
-
<el-form-item label="截止起息日期">
|
|
790
|
-
<el-date-picker
|
|
791
|
-
v-model="filterForm.endValueDate"
|
|
792
|
-
type="date"
|
|
793
|
-
format="YYYY-MM-DD"
|
|
794
|
-
value-format="YYYY-MM-DD"
|
|
795
|
-
placeholder="请选择结束日期"
|
|
796
|
-
clearable
|
|
797
|
-
/>
|
|
798
|
-
</el-form-item>
|
|
799
|
+
<div class="query-range-group">
|
|
800
|
+
<el-form-item label="调拨金额(mio)">
|
|
801
|
+
<NumberRange
|
|
802
|
+
v-model="filterAmountRange"
|
|
803
|
+
min-placeholder="请输入最低金额"
|
|
804
|
+
max-placeholder="请输入最高金额"
|
|
805
|
+
:precision="2"
|
|
806
|
+
error-message="起始调拨金额不能大于截止调拨金额"
|
|
807
|
+
size="small"
|
|
808
|
+
/>
|
|
809
|
+
</el-form-item>
|
|
810
|
+
<el-form-item label="起息日">
|
|
811
|
+
<DateRange
|
|
812
|
+
v-model="filterValueDateRange"
|
|
813
|
+
start-placeholder="请选择开始日期"
|
|
814
|
+
end-placeholder="请选择结束日期"
|
|
815
|
+
value-format="YYYYMMDD"
|
|
816
|
+
display-format="YYYY-MM-DD"
|
|
817
|
+
size="small"
|
|
818
|
+
/>
|
|
819
|
+
</el-form-item>
|
|
820
|
+
</div>
|
|
799
821
|
</div>
|
|
800
822
|
|
|
801
823
|
<div class="query-actions">
|
|
@@ -849,6 +871,8 @@ onBeforeUnmount(() => {
|
|
|
849
871
|
label="序号"
|
|
850
872
|
width="62"
|
|
851
873
|
fixed="left"
|
|
874
|
+
align="center"
|
|
875
|
+
header-align="center"
|
|
852
876
|
:index="(index: number) => (currentPage - 1) * pageSize + index + 1"
|
|
853
877
|
disabled
|
|
854
878
|
/>
|
|
@@ -864,7 +888,7 @@ onBeforeUnmount(() => {
|
|
|
864
888
|
<component :is="columnComponentMap.ccy" :value="row.ccy" />
|
|
865
889
|
</template>
|
|
866
890
|
</el-table-column>
|
|
867
|
-
<el-table-column prop="amt" label="
|
|
891
|
+
<el-table-column prop="amt" label="调拨金额(mio)" width="184" align="right">
|
|
868
892
|
<template #default="{ row }"><span class="money-cell">{{ formatDecimal(row.amt) }}</span></template>
|
|
869
893
|
</el-table-column>
|
|
870
894
|
<el-table-column prop="valueDate" label="起息日" width="112">
|
|
@@ -980,7 +1004,6 @@ onBeforeUnmount(() => {
|
|
|
980
1004
|
<div class="dialog-heading">
|
|
981
1005
|
<span class="dialog-heading__icon"><el-icon><Plus /></el-icon></span>
|
|
982
1006
|
<div>
|
|
983
|
-
<small>FOREIGN CURRENCY TRANSFER</small>
|
|
984
1007
|
<h2>新增外币资金调拨</h2>
|
|
985
1008
|
</div>
|
|
986
1009
|
</div>
|
|
@@ -1006,8 +1029,9 @@ onBeforeUnmount(() => {
|
|
|
1006
1029
|
v-model="createForm.alocDate"
|
|
1007
1030
|
type="date"
|
|
1008
1031
|
format="YYYY-MM-DD"
|
|
1009
|
-
value-format="
|
|
1032
|
+
value-format="YYYYMMDD"
|
|
1010
1033
|
placeholder="请选择调拨日期"
|
|
1034
|
+
:disabled-date="disabledBeforeSystemWorkDate"
|
|
1011
1035
|
/>
|
|
1012
1036
|
</el-form-item>
|
|
1013
1037
|
<el-form-item label="起息日" prop="valueDate">
|
|
@@ -1015,8 +1039,9 @@ onBeforeUnmount(() => {
|
|
|
1015
1039
|
v-model="createForm.valueDate"
|
|
1016
1040
|
type="date"
|
|
1017
1041
|
format="YYYY-MM-DD"
|
|
1018
|
-
value-format="
|
|
1042
|
+
value-format="YYYYMMDD"
|
|
1019
1043
|
placeholder="请选择起息日"
|
|
1044
|
+
:disabled-date="disabledBeforeSystemWorkDate"
|
|
1020
1045
|
/>
|
|
1021
1046
|
</el-form-item>
|
|
1022
1047
|
<el-form-item label="调拨类型" prop="alocType">
|
|
@@ -1041,7 +1066,7 @@ onBeforeUnmount(() => {
|
|
|
1041
1066
|
/>
|
|
1042
1067
|
</el-select>
|
|
1043
1068
|
</el-form-item>
|
|
1044
|
-
<el-form-item label="
|
|
1069
|
+
<el-form-item label="调拨金额(mio)" prop="amt">
|
|
1045
1070
|
<el-input
|
|
1046
1071
|
v-model="createAmountInput"
|
|
1047
1072
|
inputmode="decimal"
|
|
@@ -1053,8 +1078,8 @@ onBeforeUnmount(() => {
|
|
|
1053
1078
|
</el-form-item>
|
|
1054
1079
|
<el-form-item label="是否资金运营中心" prop="fundOpeCent">
|
|
1055
1080
|
<el-radio-group v-model="createForm.fundOpeCent" class="choice-cards">
|
|
1056
|
-
<el-radio-button value="Y">是</el-radio-button>
|
|
1057
|
-
<el-radio-button value="N">否</el-radio-button>
|
|
1081
|
+
<el-radio-button label="Y" value="Y">是</el-radio-button>
|
|
1082
|
+
<el-radio-button label="N" value="N">否</el-radio-button>
|
|
1058
1083
|
</el-radio-group>
|
|
1059
1084
|
</el-form-item>
|
|
1060
1085
|
</div>
|
|
@@ -1082,14 +1107,14 @@ onBeforeUnmount(() => {
|
|
|
1082
1107
|
class="choice-cards"
|
|
1083
1108
|
@change="handleAccountDependencyChange('create')"
|
|
1084
1109
|
>
|
|
1085
|
-
<el-radio-button value="Y">是</el-radio-button>
|
|
1086
|
-
<el-radio-button value="N">否</el-radio-button>
|
|
1110
|
+
<el-radio-button label="Y" value="Y">是</el-radio-button>
|
|
1111
|
+
<el-radio-button label="N" value="N">否</el-radio-button>
|
|
1087
1112
|
</el-radio-group>
|
|
1088
1113
|
</el-form-item>
|
|
1089
1114
|
</div>
|
|
1090
1115
|
<div class="account-editor-route">
|
|
1091
1116
|
<div class="account-editor-node account-editor-node--out">
|
|
1092
|
-
<span class="account-editor-node__badge"
|
|
1117
|
+
<span class="account-editor-node__badge">调出</span>
|
|
1093
1118
|
<el-form-item label="调出账户" prop="outAcctNo">
|
|
1094
1119
|
<el-select
|
|
1095
1120
|
v-model="createForm.outAcctNo"
|
|
@@ -1116,7 +1141,7 @@ onBeforeUnmount(() => {
|
|
|
1116
1141
|
</div>
|
|
1117
1142
|
<span class="account-editor-route__arrow"><el-icon><ArrowRight /></el-icon></span>
|
|
1118
1143
|
<div class="account-editor-node account-editor-node--in">
|
|
1119
|
-
<span class="account-editor-node__badge"
|
|
1144
|
+
<span class="account-editor-node__badge">调入</span>
|
|
1120
1145
|
<el-form-item label="调入账户" prop="inAcctNo">
|
|
1121
1146
|
<el-select
|
|
1122
1147
|
v-model="createForm.inAcctNo"
|
|
@@ -1216,7 +1241,7 @@ onBeforeUnmount(() => {
|
|
|
1216
1241
|
<div class="dialog-heading">
|
|
1217
1242
|
<span class="dialog-heading__icon"><el-icon><EditPen /></el-icon></span>
|
|
1218
1243
|
<div>
|
|
1219
|
-
<small
|
|
1244
|
+
<small>调拨单号:{{ editForm.refNoEdit }}</small>
|
|
1220
1245
|
<h2>修改外币资金调拨</h2>
|
|
1221
1246
|
</div>
|
|
1222
1247
|
<el-tag
|
|
@@ -1279,11 +1304,11 @@ onBeforeUnmount(() => {
|
|
|
1279
1304
|
v-model="editForm.valueDateEdit"
|
|
1280
1305
|
type="date"
|
|
1281
1306
|
format="YYYY-MM-DD"
|
|
1282
|
-
value-format="
|
|
1307
|
+
value-format="YYYYMMDD"
|
|
1283
1308
|
placeholder="请选择起息日"
|
|
1284
1309
|
/>
|
|
1285
1310
|
</el-form-item>
|
|
1286
|
-
<el-form-item label="
|
|
1311
|
+
<el-form-item label="调拨金额(mio)" prop="amtEdit">
|
|
1287
1312
|
<el-input
|
|
1288
1313
|
v-model="editAmountInput"
|
|
1289
1314
|
inputmode="decimal"
|
|
@@ -1295,8 +1320,8 @@ onBeforeUnmount(() => {
|
|
|
1295
1320
|
</el-form-item>
|
|
1296
1321
|
<el-form-item label="是否资金运营中心" prop="fundOpeCentStoreEdit">
|
|
1297
1322
|
<el-radio-group v-model="editForm.fundOpeCentStoreEdit" class="choice-cards">
|
|
1298
|
-
<el-radio-button value="Y">是</el-radio-button>
|
|
1299
|
-
<el-radio-button value="N">否</el-radio-button>
|
|
1323
|
+
<el-radio-button label="Y" value="Y">是</el-radio-button>
|
|
1324
|
+
<el-radio-button label="N" value="N">否</el-radio-button>
|
|
1300
1325
|
</el-radio-group>
|
|
1301
1326
|
</el-form-item>
|
|
1302
1327
|
</div>
|
|
@@ -1324,14 +1349,14 @@ onBeforeUnmount(() => {
|
|
|
1324
1349
|
class="choice-cards"
|
|
1325
1350
|
@change="handleAccountDependencyChange('edit')"
|
|
1326
1351
|
>
|
|
1327
|
-
<el-radio-button value="Y">是</el-radio-button>
|
|
1328
|
-
<el-radio-button value="N">否</el-radio-button>
|
|
1352
|
+
<el-radio-button label="Y" value="Y">是</el-radio-button>
|
|
1353
|
+
<el-radio-button label="N" value="N">否</el-radio-button>
|
|
1329
1354
|
</el-radio-group>
|
|
1330
1355
|
</el-form-item>
|
|
1331
1356
|
</div>
|
|
1332
1357
|
<div class="account-editor-route">
|
|
1333
1358
|
<div class="account-editor-node account-editor-node--out">
|
|
1334
|
-
<span class="account-editor-node__badge"
|
|
1359
|
+
<span class="account-editor-node__badge">调出</span>
|
|
1335
1360
|
<el-form-item label="调出账号" prop="outAcctNoEdit">
|
|
1336
1361
|
<el-select
|
|
1337
1362
|
v-model="editForm.outAcctNoEdit"
|
|
@@ -1358,7 +1383,7 @@ onBeforeUnmount(() => {
|
|
|
1358
1383
|
</div>
|
|
1359
1384
|
<span class="account-editor-route__arrow"><el-icon><ArrowRight /></el-icon></span>
|
|
1360
1385
|
<div class="account-editor-node account-editor-node--in">
|
|
1361
|
-
<span class="account-editor-node__badge"
|
|
1386
|
+
<span class="account-editor-node__badge">调入</span>
|
|
1362
1387
|
<el-form-item label="调入账号" prop="inAcctNoEdit">
|
|
1363
1388
|
<el-select
|
|
1364
1389
|
v-model="editForm.inAcctNoEdit"
|
|
@@ -1468,7 +1493,7 @@ onBeforeUnmount(() => {
|
|
|
1468
1493
|
<el-descriptions-item label="币种">
|
|
1469
1494
|
<component :is="columnComponentMap.ccy" :value="detailRecord.ccy" />
|
|
1470
1495
|
</el-descriptions-item>
|
|
1471
|
-
<el-descriptions-item label="
|
|
1496
|
+
<el-descriptions-item label="调拨金额(mio)">{{ formatDecimal(detailRecord.amt) }}</el-descriptions-item>
|
|
1472
1497
|
<el-descriptions-item label="等值美元金额">{{ formatDecimal(detailRecord.amtUsd) }}</el-descriptions-item>
|
|
1473
1498
|
<el-descriptions-item label="调拨日期">{{ formatDate(detailRecord.alocDate) }}</el-descriptions-item>
|
|
1474
1499
|
<el-descriptions-item label="起息日">{{ formatDate(detailRecord.valueDate) }}</el-descriptions-item>
|
|
@@ -1592,6 +1617,13 @@ onBeforeUnmount(() => {
|
|
|
1592
1617
|
.query-form :deep(.el-input),
|
|
1593
1618
|
.query-form :deep(.el-select),
|
|
1594
1619
|
.query-form :deep(.el-date-editor) { width: 100%; }
|
|
1620
|
+
.query-range-group {
|
|
1621
|
+
display: grid;
|
|
1622
|
+
grid-column: span 4;
|
|
1623
|
+
grid-template-columns: repeat(2, 360px);
|
|
1624
|
+
gap: 12px;
|
|
1625
|
+
min-width: 0;
|
|
1626
|
+
}
|
|
1595
1627
|
.query-form :deep(.el-input__wrapper),
|
|
1596
1628
|
.query-form :deep(.el-select__wrapper) { border-radius: 5px; box-shadow: 0 0 0 1px #d6dee9 inset; }
|
|
1597
1629
|
.query-actions {
|
|
@@ -1667,11 +1699,11 @@ onBeforeUnmount(() => {
|
|
|
1667
1699
|
|
|
1668
1700
|
:deep(.allocation-edit-dialog .el-dialog__header) {
|
|
1669
1701
|
margin-right: 0;
|
|
1670
|
-
padding:
|
|
1702
|
+
padding: 10px 18px;
|
|
1671
1703
|
border-bottom: 1px solid #e4eaf1;
|
|
1672
1704
|
background: linear-gradient(110deg, #f7faff 0%, #fff 58%, #f5f9ff 100%);
|
|
1673
1705
|
}
|
|
1674
|
-
:deep(.allocation-edit-dialog .el-dialog__headerbtn) { top:
|
|
1706
|
+
:deep(.allocation-edit-dialog .el-dialog__headerbtn) { top: 4px; right: 12px; }
|
|
1675
1707
|
:deep(.allocation-edit-dialog .el-dialog__body) {
|
|
1676
1708
|
max-height: min(68vh, 720px);
|
|
1677
1709
|
overflow-y: auto;
|
|
@@ -1686,22 +1718,22 @@ onBeforeUnmount(() => {
|
|
|
1686
1718
|
.dialog-heading {
|
|
1687
1719
|
display: flex;
|
|
1688
1720
|
align-items: center;
|
|
1689
|
-
gap:
|
|
1721
|
+
gap: 10px;
|
|
1690
1722
|
padding-right: 42px;
|
|
1691
1723
|
}
|
|
1692
1724
|
.dialog-heading__icon {
|
|
1693
1725
|
display: grid;
|
|
1694
|
-
width:
|
|
1695
|
-
height:
|
|
1696
|
-
flex: 0 0
|
|
1726
|
+
width: 32px;
|
|
1727
|
+
height: 32px;
|
|
1728
|
+
flex: 0 0 32px;
|
|
1697
1729
|
place-items: center;
|
|
1698
1730
|
border: 1px solid #c8dcff;
|
|
1699
|
-
border-radius:
|
|
1731
|
+
border-radius: 8px;
|
|
1700
1732
|
color: #175cd3;
|
|
1701
1733
|
background: #eaf2ff;
|
|
1702
|
-
box-shadow: inset 0 0 0
|
|
1734
|
+
box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65);
|
|
1703
1735
|
}
|
|
1704
|
-
.dialog-heading__icon .el-icon { font-size:
|
|
1736
|
+
.dialog-heading__icon .el-icon { font-size: 16px; }
|
|
1705
1737
|
.dialog-heading > div { min-width: 0; }
|
|
1706
1738
|
.dialog-heading small {
|
|
1707
1739
|
display: block;
|
|
@@ -1710,9 +1742,9 @@ onBeforeUnmount(() => {
|
|
|
1710
1742
|
font-size: 9px;
|
|
1711
1743
|
font-weight: 700;
|
|
1712
1744
|
letter-spacing: .12em;
|
|
1713
|
-
line-height:
|
|
1745
|
+
line-height: 12px;
|
|
1714
1746
|
}
|
|
1715
|
-
.dialog-heading h2 { margin: 0; color: #172b4d; font-size:
|
|
1747
|
+
.dialog-heading h2 { margin: 0; color: #172b4d; font-size: 16px; line-height: 22px; }
|
|
1716
1748
|
.dialog-heading .el-tag { margin-left: auto; margin-right: 2px; }
|
|
1717
1749
|
.edit-form__content { display: grid; gap: 10px; padding: 14px; }
|
|
1718
1750
|
.edit-section {
|
|
@@ -1884,11 +1916,13 @@ onBeforeUnmount(() => {
|
|
|
1884
1916
|
|
|
1885
1917
|
@media (max-width: 900px) {
|
|
1886
1918
|
.query-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1919
|
+
.query-range-group { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 360px)); }
|
|
1887
1920
|
.edit-form__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1888
1921
|
}
|
|
1889
1922
|
|
|
1890
1923
|
@media (max-width: 560px) {
|
|
1891
1924
|
.query-grid { grid-template-columns: 1fr; }
|
|
1925
|
+
.query-range-group { grid-column: auto; grid-template-columns: 1fr; }
|
|
1892
1926
|
.edit-form__grid { grid-template-columns: 1fr; }
|
|
1893
1927
|
.edit-form__full { grid-column: auto; }
|
|
1894
1928
|
.dialog-heading small { display: none; }
|
|
@@ -94,19 +94,6 @@ export type ForeignCurrencyFundAllocationUpdateBody = {
|
|
|
94
94
|
zmqFlagEdit: string
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
/** 创建空白的列表查询条件。 */
|
|
98
|
-
export function createDefaultFundAllocationFilter(): ForeignCurrencyFundAllocationFilter {
|
|
99
|
-
return {
|
|
100
|
-
ccy: '',
|
|
101
|
-
startAmt: '',
|
|
102
|
-
endAmt: '',
|
|
103
|
-
startValueDate: '',
|
|
104
|
-
endValueDate: '',
|
|
105
|
-
status: '',
|
|
106
|
-
tranDate: '',
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
97
|
/** 将接口返回的可选字段统一转换为页面可直接使用的字符串字段。 */
|
|
111
98
|
export function normalizeFundAllocationRow(
|
|
112
99
|
source: Partial<ForeignCurrencyFundAllocationRow>,
|
|
@@ -14,7 +14,7 @@ function normalizeListBody(body: any, errorMessage: string): any {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
return {
|
|
17
|
-
resultList: body.resultInfos.map((row) => ({ ...row })),
|
|
17
|
+
resultList: body.resultInfos.map((row: any) => ({ ...row })),
|
|
18
18
|
totalCount: normalizeCount(body.totalCount, body.resultInfos.length),
|
|
19
19
|
totalPage: normalizeCount(body.totalPage, 0),
|
|
20
20
|
}
|