verce-vue-test 0.0.92 → 0.0.93
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/App.vue +4 -0
- package/src/components/{NumberRange.vue → element-rewrite/NumberRange.vue} +1 -1
- package/src/components/index.ts +2 -2
- package/src/router/index.ts +5 -0
- package/src/views/ForecastInfo/components/FlowInfoPanel.vue +1 -1
- package/src/views/ForecastInfo/components/ForecastInfoPanel.vue +1 -1
- package/src/views/FundCockpitView.vue +344 -101
- package/src/views/NumberRangeView.vue +1 -1
- package/src/views/foreign-currency-authorization/index.vue +48 -4
- package/src/views/foreign-currency-fund-allocation/api.ts +87 -0
- package/src/views/foreign-currency-fund-allocation/index.vue +1100 -0
- package/src/views/foreign-currency-fund-allocation/options.ts +23 -0
- package/src/views/foreign-currency-fund-allocation/types.ts +127 -0
- package/src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue +63 -5
- package/src/views/foreign-currency-settlement/api.ts +10 -60
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +117 -47
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +155 -57
- package/src/views/foreign-currency-settlement/foreign-currency-settlement-base.css +1089 -0
- package/src/views/foreign-currency-settlement/index.vue +17 -20
- package/src/views/foreign-currency-settlement/options.ts +13 -15
- package/src/views/foreign-currency-settlement/store.ts +27 -30
- package/src/views/foreign-currency-settlement/useScopedMessage.ts +3 -9
- package/src/views/foreign-currency-settlement/utils.ts +19 -6
- package/src/views/fund-cockpit/api.ts +199 -0
- package/src/components/business/AccountBankSelect.vue +0 -142
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +0 -100
- package/src/views/foreign-currency-settlement/types.ts +0 -210
|
@@ -9,7 +9,10 @@ import {
|
|
|
9
9
|
RefreshLeft,
|
|
10
10
|
Search,
|
|
11
11
|
} from '@element-plus/icons-vue'
|
|
12
|
-
import
|
|
12
|
+
import {
|
|
13
|
+
queryAccountBanks,
|
|
14
|
+
type AccountBankOption,
|
|
15
|
+
} from '@/api/account-bank'
|
|
13
16
|
import API from './api'
|
|
14
17
|
import { toAuthorizationRow } from './adapter'
|
|
15
18
|
import {
|
|
@@ -48,8 +51,11 @@ const detailEditForm = reactive({
|
|
|
48
51
|
rejectReason: '',
|
|
49
52
|
})
|
|
50
53
|
const reviewAction = ref<'approve' | 'reject' | null>(null)
|
|
54
|
+
const accountBankOptions = ref<AccountBankOption[]>([])
|
|
55
|
+
const accountBankLoading = ref(false)
|
|
51
56
|
|
|
52
57
|
let activeQueryController: AbortController | null = null
|
|
58
|
+
let accountBankRequestController: AbortController | null = null
|
|
53
59
|
|
|
54
60
|
function cloneFilter(source: ForeignCurrencyAuthorizationFilter): ForeignCurrencyAuthorizationFilter {
|
|
55
61
|
return { ...source }
|
|
@@ -166,6 +172,32 @@ function returnToList() {
|
|
|
166
172
|
detailRecord.value = null
|
|
167
173
|
}
|
|
168
174
|
|
|
175
|
+
async function handleAccountBankVisibleChange(visible: boolean) {
|
|
176
|
+
if (!visible || !detailRecord.value) return
|
|
177
|
+
|
|
178
|
+
accountBankRequestController?.abort()
|
|
179
|
+
const controller = new AbortController()
|
|
180
|
+
accountBankRequestController = controller
|
|
181
|
+
accountBankLoading.value = true
|
|
182
|
+
|
|
183
|
+
try {
|
|
184
|
+
const result = await queryAccountBanks(
|
|
185
|
+
{ ccy: detailRecord.value.currency },
|
|
186
|
+
{ signal: controller.signal },
|
|
187
|
+
)
|
|
188
|
+
if (controller.signal.aborted || accountBankRequestController !== controller) return
|
|
189
|
+
accountBankOptions.value = result
|
|
190
|
+
} catch (error) {
|
|
191
|
+
if (controller.signal.aborted) return
|
|
192
|
+
ElMessage.error(error instanceof Error ? error.message : '账户行查询失败')
|
|
193
|
+
} finally {
|
|
194
|
+
if (accountBankRequestController === controller) {
|
|
195
|
+
accountBankRequestController = null
|
|
196
|
+
accountBankLoading.value = false
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
169
201
|
async function handleReview(action: 'approve' | 'reject') {
|
|
170
202
|
const row = detailRecord.value
|
|
171
203
|
if (!row || reviewAction.value) return
|
|
@@ -241,6 +273,7 @@ onMounted(() => {
|
|
|
241
273
|
|
|
242
274
|
onBeforeUnmount(() => {
|
|
243
275
|
activeQueryController?.abort()
|
|
276
|
+
accountBankRequestController?.abort()
|
|
244
277
|
})
|
|
245
278
|
</script>
|
|
246
279
|
|
|
@@ -548,13 +581,24 @@ onBeforeUnmount(() => {
|
|
|
548
581
|
{{ detailRecord.rdfibic }}
|
|
549
582
|
</el-descriptions-item>
|
|
550
583
|
<el-descriptions-item label="账户行" :span="3">
|
|
551
|
-
<
|
|
584
|
+
<el-select
|
|
552
585
|
v-model="detailEditForm.nostro"
|
|
553
586
|
class="detail-edit-control"
|
|
554
|
-
:
|
|
587
|
+
:loading="accountBankLoading"
|
|
555
588
|
placeholder="请选择账户行"
|
|
556
589
|
size="small"
|
|
557
|
-
|
|
590
|
+
filterable
|
|
591
|
+
clearable
|
|
592
|
+
:persistent="false"
|
|
593
|
+
@visible-change="handleAccountBankVisibleChange"
|
|
594
|
+
>
|
|
595
|
+
<el-option
|
|
596
|
+
v-for="option in accountBankOptions"
|
|
597
|
+
:key="`${option.bankAcct}-${option.bankName}`"
|
|
598
|
+
:label="option.bankName"
|
|
599
|
+
:value="option.bankAcct"
|
|
600
|
+
/>
|
|
601
|
+
</el-select>
|
|
558
602
|
</el-descriptions-item>
|
|
559
603
|
<el-descriptions-item label="是否退汇">
|
|
560
604
|
{{ getOptionLabel(returnFlagOptions, detailRecord.rtnFlag) }}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import baseHttpClient, {
|
|
2
|
+
type HttpRequestOptions,
|
|
3
|
+
type TamResponse,
|
|
4
|
+
} from '@/utils/baseHttpClient'
|
|
5
|
+
import type {
|
|
6
|
+
ForeignCurrencyFundAllocationCreateBody,
|
|
7
|
+
ForeignCurrencyFundAllocationCreateResponseBody,
|
|
8
|
+
ForeignCurrencyFundAllocationExportResponseBody,
|
|
9
|
+
ForeignCurrencyFundAllocationFilter,
|
|
10
|
+
ForeignCurrencyFundAllocationResponseBody,
|
|
11
|
+
ForeignCurrencyFundAllocationReviewType,
|
|
12
|
+
ForeignCurrencyFundAllocationUpdateBody,
|
|
13
|
+
} from './types'
|
|
14
|
+
|
|
15
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_QUERY_PATH = '/TAM/0001/140206001'
|
|
16
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_CREATE_PATH = '/TAM/0001/120206001'
|
|
17
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_UPDATE_PATH = '/TAM/0001/120206002'
|
|
18
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_DELETE_PATH = '/TAM/0001/120206003'
|
|
19
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_REVIEW_PATH = '/TAM/0001/120206004'
|
|
20
|
+
export const FOREIGN_CURRENCY_FUND_ALLOCATION_EXPORT_PATH = '/TAM/0001/140206019'
|
|
21
|
+
|
|
22
|
+
export function queryForeignCurrencyFundAllocations(
|
|
23
|
+
params: ForeignCurrencyFundAllocationFilter,
|
|
24
|
+
options?: HttpRequestOptions,
|
|
25
|
+
) {
|
|
26
|
+
return baseHttpClient.post<TamResponse<ForeignCurrencyFundAllocationResponseBody>>(
|
|
27
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_QUERY_PATH,
|
|
28
|
+
params,
|
|
29
|
+
options,
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function createForeignCurrencyFundAllocation(
|
|
34
|
+
params: ForeignCurrencyFundAllocationCreateBody,
|
|
35
|
+
options?: HttpRequestOptions,
|
|
36
|
+
) {
|
|
37
|
+
return baseHttpClient.post<TamResponse<ForeignCurrencyFundAllocationCreateResponseBody>>(
|
|
38
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_CREATE_PATH,
|
|
39
|
+
params,
|
|
40
|
+
options,
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function exportForeignCurrencyFundAllocations(
|
|
45
|
+
params: ForeignCurrencyFundAllocationFilter,
|
|
46
|
+
options?: HttpRequestOptions,
|
|
47
|
+
) {
|
|
48
|
+
return baseHttpClient.post<TamResponse<ForeignCurrencyFundAllocationExportResponseBody>>(
|
|
49
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_EXPORT_PATH,
|
|
50
|
+
params,
|
|
51
|
+
options,
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function updateForeignCurrencyFundAllocation(
|
|
56
|
+
params: ForeignCurrencyFundAllocationUpdateBody,
|
|
57
|
+
options?: HttpRequestOptions,
|
|
58
|
+
) {
|
|
59
|
+
return baseHttpClient.post<TamResponse<Record<string, never>>>(
|
|
60
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_UPDATE_PATH,
|
|
61
|
+
params,
|
|
62
|
+
options,
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function deleteForeignCurrencyFundAllocation(
|
|
67
|
+
refNo: string,
|
|
68
|
+
options?: HttpRequestOptions,
|
|
69
|
+
) {
|
|
70
|
+
return baseHttpClient.post<TamResponse<Record<string, never>>>(
|
|
71
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_DELETE_PATH,
|
|
72
|
+
{ refNos: refNo },
|
|
73
|
+
options,
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function reviewForeignCurrencyFundAllocation(
|
|
78
|
+
refNo: string,
|
|
79
|
+
type: ForeignCurrencyFundAllocationReviewType,
|
|
80
|
+
options?: HttpRequestOptions,
|
|
81
|
+
) {
|
|
82
|
+
return baseHttpClient.post<TamResponse<Record<string, never>>>(
|
|
83
|
+
FOREIGN_CURRENCY_FUND_ALLOCATION_REVIEW_PATH,
|
|
84
|
+
{ refNos: refNo, type },
|
|
85
|
+
options,
|
|
86
|
+
)
|
|
87
|
+
}
|