verce-vue-test 0.0.120 → 0.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -47,6 +47,11 @@ const verifyStatusOptions = [
|
|
|
47
47
|
{ value: 'VS02', label: '部分核销' },
|
|
48
48
|
{ value: 'VS03', label: '已核销' },
|
|
49
49
|
]
|
|
50
|
+
const matchingStatusOptions = [
|
|
51
|
+
{ value: '1', label: '未核销' },
|
|
52
|
+
{ value: '2', label: '部分核销' },
|
|
53
|
+
{ value: '3', label: '已核销' },
|
|
54
|
+
]
|
|
50
55
|
const forecastWayOptions = [
|
|
51
56
|
{ value: 'PW01', label: '新增预报' },
|
|
52
57
|
{ value: 'PW02', label: '到期预报' },
|
|
@@ -191,17 +196,17 @@ function getLocalDateString() {
|
|
|
191
196
|
return `${year}-${month}-${day}`
|
|
192
197
|
}
|
|
193
198
|
|
|
194
|
-
function createDefaultForeignSettlementFilter(): any {
|
|
199
|
+
function createDefaultForeignSettlementFilter(multipleVerifyStatus = false): any {
|
|
195
200
|
return {
|
|
196
201
|
tradeDate: getLocalDateString(),
|
|
197
202
|
direction: '',
|
|
198
|
-
currency:
|
|
203
|
+
currency: [],
|
|
199
204
|
customerName: '',
|
|
200
205
|
bankCode: '',
|
|
201
206
|
branchCode: '',
|
|
202
207
|
branchName: '',
|
|
203
208
|
amountRange: [null, null],
|
|
204
|
-
verifyStatus: '',
|
|
209
|
+
verifyStatus: multipleVerifyStatus ? [] : '',
|
|
205
210
|
forecastWay: '',
|
|
206
211
|
ftuFilter: '',
|
|
207
212
|
businessType: '',
|
|
@@ -677,7 +682,7 @@ let fullscreenOperationGeneration = 0
|
|
|
677
682
|
* 外币预报信息区域。
|
|
678
683
|
* 筛选、分页、勾选和请求生命周期收敛在当前页面,列配置统一交由 ElTablePro 管理。
|
|
679
684
|
*/
|
|
680
|
-
const forecastFilterForm = reactive(createDefaultForeignSettlementFilter())
|
|
685
|
+
const forecastFilterForm = reactive(createDefaultForeignSettlementFilter(true))
|
|
681
686
|
const forecastPage = ref(1)
|
|
682
687
|
const forecastPageSize = ref(getCardLayoutPageSize(cardLayout.value))
|
|
683
688
|
const forecastLoading = ref(false)
|
|
@@ -688,10 +693,10 @@ const forecastAccountBankOptions = ref<any[]>([])
|
|
|
688
693
|
const forecastAccountBankLoading = ref(false)
|
|
689
694
|
const forecastActiveMoreFilterCount = computed(() => [
|
|
690
695
|
forecastFilterForm.direction,
|
|
691
|
-
forecastFilterForm.currency,
|
|
696
|
+
forecastFilterForm.currency.length ? 'currency' : '',
|
|
692
697
|
forecastFilterForm.businessType,
|
|
693
698
|
forecastFilterForm.forecastWay,
|
|
694
|
-
forecastFilterForm.verifyStatus,
|
|
699
|
+
forecastFilterForm.verifyStatus.length ? 'verifyStatus' : '',
|
|
695
700
|
forecastFilterForm.ftuFilter,
|
|
696
701
|
forecastFilterForm.customerName.trim(),
|
|
697
702
|
forecastFilterForm.bankCode,
|
|
@@ -731,7 +736,7 @@ const forecastQueryParams = computed<any>(() => {
|
|
|
731
736
|
bankCode: forecastFilterForm.bankCode.trim(),
|
|
732
737
|
branchs: forecastFilterForm.branchCode.trim(),
|
|
733
738
|
branchsName: forecastFilterForm.branchName.trim(),
|
|
734
|
-
ccy: forecastFilterForm.currency,
|
|
739
|
+
ccy: [...forecastFilterForm.currency],
|
|
735
740
|
clientName: forecastFilterForm.customerName.trim(),
|
|
736
741
|
endAmt: toForeignSettlementAmountText(endAmount),
|
|
737
742
|
opType: '',
|
|
@@ -740,7 +745,7 @@ const forecastQueryParams = computed<any>(() => {
|
|
|
740
745
|
startAmt: toForeignSettlementAmountText(startAmount),
|
|
741
746
|
tranDate: compactForeignSettlementDate(forecastFilterForm.tradeDate),
|
|
742
747
|
tranType: forecastFilterForm.businessType,
|
|
743
|
-
vrfctnSts: forecastFilterForm.verifyStatus,
|
|
748
|
+
vrfctnSts: [...forecastFilterForm.verifyStatus],
|
|
744
749
|
authorization: '',
|
|
745
750
|
filter: forecastFilterForm.ftuFilter,
|
|
746
751
|
amtOrder: '1',
|
|
@@ -776,12 +781,13 @@ function cancelForecastPendingRequest() {
|
|
|
776
781
|
forecastAccountBankLoading.value = false
|
|
777
782
|
}
|
|
778
783
|
|
|
779
|
-
//
|
|
784
|
+
// 账户行下拉展开时将所选币种用逗号拼接后请求,AbortController 防止旧请求覆盖新结果。
|
|
780
785
|
async function handleForecastAccountBankVisibleChange(visible: boolean) {
|
|
781
786
|
if (!visible) return
|
|
782
787
|
|
|
783
|
-
const
|
|
784
|
-
|
|
788
|
+
const currencies = forecastFilterForm.currency.map((currency: string) => currency.trim()).filter(Boolean)
|
|
789
|
+
const currencyKey = currencies.join(',')
|
|
790
|
+
if (loadedForecastAccountBankCurrency === currencyKey) return
|
|
785
791
|
|
|
786
792
|
forecastAccountBankRequestController?.abort()
|
|
787
793
|
const controller = new AbortController()
|
|
@@ -790,12 +796,12 @@ async function handleForecastAccountBankVisibleChange(visible: boolean) {
|
|
|
790
796
|
|
|
791
797
|
try {
|
|
792
798
|
const response = await API.accountBankQueryApi(
|
|
793
|
-
{ acctType: '', ccy:
|
|
799
|
+
{ acctType: '', ccy: currencyKey, zmqFlag: '' },
|
|
794
800
|
{ signal: controller.signal },
|
|
795
801
|
)
|
|
796
802
|
if (controller.signal.aborted || forecastAccountBankRequestController !== controller) return
|
|
797
803
|
forecastAccountBankOptions.value = getResultInfos(response)
|
|
798
|
-
loadedForecastAccountBankCurrency =
|
|
804
|
+
loadedForecastAccountBankCurrency = currencyKey
|
|
799
805
|
} catch (error) {
|
|
800
806
|
if (controller.signal.aborted) return
|
|
801
807
|
pageMessage.error(error instanceof Error ? error.message : '账户行查询失败')
|
|
@@ -858,7 +864,7 @@ function handleForecastExport() {
|
|
|
858
864
|
}
|
|
859
865
|
|
|
860
866
|
function handleForecastReset() {
|
|
861
|
-
Object.assign(forecastFilterForm, createDefaultForeignSettlementFilter())
|
|
867
|
+
Object.assign(forecastFilterForm, createDefaultForeignSettlementFilter(true))
|
|
862
868
|
forecastPage.value = 1
|
|
863
869
|
resetForecastSelection()
|
|
864
870
|
pageMessage.info('预报筛选条件已重置')
|
|
@@ -1003,7 +1009,7 @@ const flowAccountBankOptions = ref<any[]>([])
|
|
|
1003
1009
|
const flowAccountBankLoading = ref(false)
|
|
1004
1010
|
const flowActiveMoreFilterCount = computed(() => [
|
|
1005
1011
|
flowFilterForm.direction,
|
|
1006
|
-
flowFilterForm.currency,
|
|
1012
|
+
flowFilterForm.currency.length ? 'currency' : '',
|
|
1007
1013
|
flowFilterForm.messageTypes.length ? 'messageTypes' : '',
|
|
1008
1014
|
flowFilterForm.verifyStatus,
|
|
1009
1015
|
flowFilterForm.customerName.trim(),
|
|
@@ -1044,7 +1050,7 @@ function buildFlowQuery(): any {
|
|
|
1044
1050
|
bankCode: flowFilterForm.bankCode.trim(),
|
|
1045
1051
|
branchs: flowFilterForm.branchCode.trim(),
|
|
1046
1052
|
branchsName: flowFilterForm.branchName.trim(),
|
|
1047
|
-
ccy: flowFilterForm.currency,
|
|
1053
|
+
ccy: [...flowFilterForm.currency],
|
|
1048
1054
|
clientName: flowFilterForm.customerName.trim(),
|
|
1049
1055
|
endAmt: toForeignSettlementAmountText(endAmount),
|
|
1050
1056
|
opType: '',
|
|
@@ -1087,12 +1093,13 @@ function cancelFlowPendingRequest() {
|
|
|
1087
1093
|
flowAccountBankLoading.value = false
|
|
1088
1094
|
}
|
|
1089
1095
|
|
|
1090
|
-
//
|
|
1096
|
+
// 流水账户行将所选币种用逗号拼接后请求,并使用独立请求控制器避免影响预报区域。
|
|
1091
1097
|
async function handleFlowAccountBankVisibleChange(visible: boolean) {
|
|
1092
1098
|
if (!visible) return
|
|
1093
1099
|
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1100
|
+
const currencies = flowFilterForm.currency.map((currency: string) => currency.trim()).filter(Boolean)
|
|
1101
|
+
const currencyKey = currencies.join(',')
|
|
1102
|
+
if (loadedFlowAccountBankCurrency === currencyKey) return
|
|
1096
1103
|
|
|
1097
1104
|
flowAccountBankRequestController?.abort()
|
|
1098
1105
|
const controller = new AbortController()
|
|
@@ -1101,12 +1108,12 @@ async function handleFlowAccountBankVisibleChange(visible: boolean) {
|
|
|
1101
1108
|
|
|
1102
1109
|
try {
|
|
1103
1110
|
const response = await API.accountBankQueryApi(
|
|
1104
|
-
{ acctType: '', ccy:
|
|
1111
|
+
{ acctType: '', ccy: currencyKey, zmqFlag: '' },
|
|
1105
1112
|
{ signal: controller.signal },
|
|
1106
1113
|
)
|
|
1107
1114
|
if (controller.signal.aborted || flowAccountBankRequestController !== controller) return
|
|
1108
1115
|
flowAccountBankOptions.value = getResultInfos(response)
|
|
1109
|
-
loadedFlowAccountBankCurrency =
|
|
1116
|
+
loadedFlowAccountBankCurrency = currencyKey
|
|
1110
1117
|
} catch (error) {
|
|
1111
1118
|
if (controller.signal.aborted) return
|
|
1112
1119
|
pageMessage.error(error instanceof Error ? error.message : '账户行查询失败')
|
|
@@ -1359,6 +1366,30 @@ watch(
|
|
|
1359
1366
|
{ flush: 'sync' },
|
|
1360
1367
|
)
|
|
1361
1368
|
|
|
1369
|
+
watch(
|
|
1370
|
+
() => [...forecastFilterForm.currency],
|
|
1371
|
+
() => {
|
|
1372
|
+
forecastFilterForm.bankCode = ''
|
|
1373
|
+
forecastAccountBankOptions.value = []
|
|
1374
|
+
loadedForecastAccountBankCurrency = null
|
|
1375
|
+
forecastAccountBankRequestController?.abort()
|
|
1376
|
+
forecastAccountBankRequestController = null
|
|
1377
|
+
forecastAccountBankLoading.value = false
|
|
1378
|
+
},
|
|
1379
|
+
)
|
|
1380
|
+
|
|
1381
|
+
watch(
|
|
1382
|
+
() => [...flowFilterForm.currency],
|
|
1383
|
+
() => {
|
|
1384
|
+
flowFilterForm.bankCode = ''
|
|
1385
|
+
flowAccountBankOptions.value = []
|
|
1386
|
+
loadedFlowAccountBankCurrency = null
|
|
1387
|
+
flowAccountBankRequestController?.abort()
|
|
1388
|
+
flowAccountBankRequestController = null
|
|
1389
|
+
flowAccountBankLoading.value = false
|
|
1390
|
+
},
|
|
1391
|
+
)
|
|
1392
|
+
|
|
1362
1393
|
watch(listRefreshKey, () => {
|
|
1363
1394
|
if (forecastPanelActive) void loadForecasts()
|
|
1364
1395
|
else forecastPendingOperationRefresh = true
|
|
@@ -1523,6 +1554,8 @@ onBeforeUnmount(() => {
|
|
|
1523
1554
|
filterable
|
|
1524
1555
|
allow-create
|
|
1525
1556
|
default-first-option
|
|
1557
|
+
multiple
|
|
1558
|
+
collapse-tags
|
|
1526
1559
|
clearable
|
|
1527
1560
|
>
|
|
1528
1561
|
<el-option
|
|
@@ -1772,6 +1805,8 @@ onBeforeUnmount(() => {
|
|
|
1772
1805
|
filterable
|
|
1773
1806
|
allow-create
|
|
1774
1807
|
default-first-option
|
|
1808
|
+
multiple
|
|
1809
|
+
collapse-tags
|
|
1775
1810
|
clearable
|
|
1776
1811
|
>
|
|
1777
1812
|
<el-option
|
|
@@ -1826,10 +1861,12 @@ onBeforeUnmount(() => {
|
|
|
1826
1861
|
:teleported="!isFullscreen"
|
|
1827
1862
|
size="small"
|
|
1828
1863
|
placeholder="请选择"
|
|
1864
|
+
multiple
|
|
1865
|
+
collapse-tags
|
|
1829
1866
|
clearable
|
|
1830
1867
|
>
|
|
1831
1868
|
<el-option
|
|
1832
|
-
v-for="option in
|
|
1869
|
+
v-for="option in matchingStatusOptions"
|
|
1833
1870
|
:key="option.value"
|
|
1834
1871
|
:label="option.label"
|
|
1835
1872
|
:value="option.value"
|
|
@@ -1996,6 +2033,8 @@ onBeforeUnmount(() => {
|
|
|
1996
2033
|
filterable
|
|
1997
2034
|
allow-create
|
|
1998
2035
|
default-first-option
|
|
2036
|
+
multiple
|
|
2037
|
+
collapse-tags
|
|
1999
2038
|
clearable
|
|
2000
2039
|
>
|
|
2001
2040
|
<el-option
|
|
@@ -2234,6 +2273,8 @@ onBeforeUnmount(() => {
|
|
|
2234
2273
|
filterable
|
|
2235
2274
|
allow-create
|
|
2236
2275
|
default-first-option
|
|
2276
|
+
multiple
|
|
2277
|
+
collapse-tags
|
|
2237
2278
|
clearable
|
|
2238
2279
|
>
|
|
2239
2280
|
<el-option
|