verce-vue-test 0.0.125 → 0.0.126
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
|
@@ -35,6 +35,8 @@ export type ForeignPositionForecastSort = {
|
|
|
35
35
|
timeOrder: '' | '1' | '2'
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export type ForeignPositionForecastSearchParams = ForeignPositionForecastQuery & ForeignPositionForecastSort
|
|
39
|
+
|
|
38
40
|
type TamResultInfo = {
|
|
39
41
|
predRefNo?: string
|
|
40
42
|
predWay?: string
|
|
@@ -359,36 +361,31 @@ export async function updateForeignPositionForecastAuthorization(
|
|
|
359
361
|
|
|
360
362
|
/** 按筛选、排序和分页条件查询外币头寸预报。 */
|
|
361
363
|
export async function queryForeignPositionForecasts(
|
|
362
|
-
|
|
364
|
+
searchParams: ForeignPositionForecastSearchParams,
|
|
363
365
|
pageIndex: number,
|
|
364
366
|
pageSize: number,
|
|
365
|
-
sort: ForeignPositionForecastSort = {
|
|
366
|
-
amtOrder: '1',
|
|
367
|
-
predOrder: '',
|
|
368
|
-
timeOrder: '',
|
|
369
|
-
},
|
|
370
367
|
signal?: AbortSignal,
|
|
371
368
|
): Promise<ForeignPositionForecastQueryResult> {
|
|
372
369
|
const payload = await baseHttpClient.post<TamResponse>(
|
|
373
370
|
'/TAM/0001/140201001',
|
|
374
371
|
{
|
|
375
|
-
orgName:
|
|
376
|
-
clientName:
|
|
377
|
-
tranType:
|
|
378
|
-
ccy:
|
|
379
|
-
tranDate:
|
|
380
|
-
payDirec:
|
|
381
|
-
predStatus: toProtocolStatusList(
|
|
382
|
-
originalForeign:
|
|
383
|
-
predWay:
|
|
384
|
-
verifyStatus: toProtocolStatusList(
|
|
385
|
-
startAmt:
|
|
386
|
-
endAmt:
|
|
387
|
-
filter:
|
|
388
|
-
authorization:
|
|
389
|
-
amtOrder:
|
|
390
|
-
predOrder:
|
|
391
|
-
timeOrder:
|
|
372
|
+
orgName: searchParams.organizationName.trim(),
|
|
373
|
+
clientName: searchParams.clientName.trim(),
|
|
374
|
+
tranType: searchParams.businessType,
|
|
375
|
+
ccy: searchParams.currencies.join(','),
|
|
376
|
+
tranDate: searchParams.valueDate,
|
|
377
|
+
payDirec: searchParams.payDirection,
|
|
378
|
+
predStatus: toProtocolStatusList(searchParams.forecastStatuses, 'PS'),
|
|
379
|
+
originalForeign: searchParams.foreignExchangeType,
|
|
380
|
+
predWay: searchParams.forecastWay,
|
|
381
|
+
verifyStatus: toProtocolStatusList(searchParams.verifyStatuses, 'VS'),
|
|
382
|
+
startAmt: searchParams.minAmount === null ? '' : String(searchParams.minAmount),
|
|
383
|
+
endAmt: searchParams.maxAmount === null ? '' : String(searchParams.maxAmount),
|
|
384
|
+
filter: searchParams.ftuFilter,
|
|
385
|
+
authorization: searchParams.authirization,
|
|
386
|
+
amtOrder: searchParams.amtOrder,
|
|
387
|
+
predOrder: searchParams.predOrder,
|
|
388
|
+
timeOrder: searchParams.timeOrder,
|
|
392
389
|
},
|
|
393
390
|
{
|
|
394
391
|
signal,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
deleteForeignPositionForecast,
|
|
32
32
|
getForeignPositionForecast,
|
|
33
33
|
queryForeignPositionForecasts,
|
|
34
|
+
type ForeignPositionForecastSearchParams,
|
|
34
35
|
type ForeignPositionForecastSort,
|
|
35
36
|
updateForeignPositionForecast,
|
|
36
37
|
updateForeignPositionForecastAuthorization,
|
|
@@ -90,6 +91,10 @@ const forecastSort = ref<ForeignPositionForecastSort>({
|
|
|
90
91
|
predOrder: '',
|
|
91
92
|
timeOrder: '',
|
|
92
93
|
})
|
|
94
|
+
const sharedSearchParams = computed<ForeignPositionForecastSearchParams>(() => ({
|
|
95
|
+
...cloneFilters(appliedFilters.value),
|
|
96
|
+
...forecastSort.value,
|
|
97
|
+
}))
|
|
93
98
|
const tableDefaultSort = computed<{
|
|
94
99
|
prop: 'predAmount' | 'forecastTime' | 'approvalTime'
|
|
95
100
|
order: 'ascending' | 'descending'
|
|
@@ -166,10 +171,9 @@ async function loadForecastRows() {
|
|
|
166
171
|
|
|
167
172
|
try {
|
|
168
173
|
const response = await queryForeignPositionForecasts(
|
|
169
|
-
|
|
174
|
+
sharedSearchParams.value,
|
|
170
175
|
currentPage.value,
|
|
171
176
|
pageSize.value,
|
|
172
|
-
forecastSort.value,
|
|
173
177
|
controller.signal,
|
|
174
178
|
)
|
|
175
179
|
|
|
@@ -218,6 +222,10 @@ function handleReset() {
|
|
|
218
222
|
clearTableSelection()
|
|
219
223
|
}
|
|
220
224
|
|
|
225
|
+
function handleExport() {
|
|
226
|
+
console.log('外币头寸预报导出参数:', sharedSearchParams.value)
|
|
227
|
+
}
|
|
228
|
+
|
|
221
229
|
function handleSelectionChange(rows: ForeignPositionForecast[]) {
|
|
222
230
|
selectedRows.value = rows
|
|
223
231
|
}
|
|
@@ -710,7 +718,7 @@ onBeforeUnmount(() => {
|
|
|
710
718
|
>
|
|
711
719
|
审批拒绝
|
|
712
720
|
</el-button>
|
|
713
|
-
<el-button size="small" :icon="Download">导出</el-button>
|
|
721
|
+
<el-button size="small" :icon="Download" @click="handleExport">导出</el-button>
|
|
714
722
|
</div>
|
|
715
723
|
</template>
|
|
716
724
|
|