verce-vue-test 0.0.108 → 0.0.109
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verce-vue-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.109",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"echarts": "^6.1.0",
|
|
28
|
-
"element-plus": "
|
|
29
|
-
"pinia": "
|
|
30
|
-
"
|
|
31
|
-
"vue
|
|
28
|
+
"element-plus": "2.2.27",
|
|
29
|
+
"pinia": "2.1.7",
|
|
30
|
+
"pinia-plugin-persist": "^1.0.0",
|
|
31
|
+
"vue": "3.4.33",
|
|
32
|
+
"vue-router": "4.4.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -285,10 +285,10 @@
|
|
|
285
285
|
box-shadow: 0 4px 10px rgba(22, 104, 255, .24);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
/*
|
|
288
|
+
/* 左右卡片状态下保留两个快速筛选项,并与操作按钮保持同一行。 */
|
|
289
289
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal {
|
|
290
290
|
display: grid;
|
|
291
|
-
grid-template-columns: minmax(
|
|
291
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
292
292
|
align-items: center;
|
|
293
293
|
column-gap: 8px;
|
|
294
294
|
justify-content: space-between;
|
|
@@ -297,8 +297,8 @@
|
|
|
297
297
|
|
|
298
298
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
|
|
299
299
|
min-width: 0;
|
|
300
|
-
grid-template-columns: minmax(0, 1fr);
|
|
301
|
-
column-gap:
|
|
300
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
301
|
+
column-gap: 8px;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__item {
|
|
@@ -314,6 +314,18 @@ async function queryForeignSettlementFlows(params: any) {
|
|
|
314
314
|
return normalizeListBody(response.body, '外币流水信息接口返回结构不正确')
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
async function autoVerifyForeignSettlements(params: any) {
|
|
318
|
+
await baseHttpClient.post<any>('/TAM/0001/120202001', params)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
async function fetchForeignSettlementFlows(params: any) {
|
|
322
|
+
await baseHttpClient.post<any>('/TAM/0001/120202004', params)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
async function fetchForeignSettlementEndOfDayFlows(params: any) {
|
|
326
|
+
await baseHttpClient.post<any>('/TAM/0001/120202005', params)
|
|
327
|
+
}
|
|
328
|
+
|
|
317
329
|
async function verifyForeignSettlements(params: any) {
|
|
318
330
|
await baseHttpClient.post<any>('/TAM/0001/120202002', params)
|
|
319
331
|
}
|
|
@@ -384,6 +396,10 @@ function restoreCardLayout(): CardLayout {
|
|
|
384
396
|
return DEFAULT_CARD_LAYOUT
|
|
385
397
|
}
|
|
386
398
|
|
|
399
|
+
function getCardLayoutPageSize(layout: CardLayout) {
|
|
400
|
+
return layout === 'vertical' ? 10 : 20
|
|
401
|
+
}
|
|
402
|
+
|
|
387
403
|
const cardLayout = ref<CardLayout>(restoreCardLayout())
|
|
388
404
|
const route = useRoute()
|
|
389
405
|
const ownerRouteRecord = route.matched[route.matched.length - 1]
|
|
@@ -404,6 +420,64 @@ const activeOperation = ref<any>(null)
|
|
|
404
420
|
const operationLoading = computed(() => activeOperation.value !== null)
|
|
405
421
|
const cancelVerifyForecastStatuses = new Set(['VS02', 'VS03'])
|
|
406
422
|
|
|
423
|
+
// 勾选汇总统一按“收入 - 支出”计算轧差金额。
|
|
424
|
+
function parseSelectionSummaryAmount(value: unknown) {
|
|
425
|
+
const amount = Number(String(value ?? '').trim().replaceAll(',', ''))
|
|
426
|
+
return Number.isFinite(amount) ? amount : 0
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
function formatSelectionSummaryAmount(value: number) {
|
|
430
|
+
const roundedValue = Math.round((value + Number.EPSILON) * 100) / 100
|
|
431
|
+
return formatThousands(Object.is(roundedValue, -0) ? 0 : roundedValue, '0')
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function buildSelectionSummary(
|
|
435
|
+
rows: any[],
|
|
436
|
+
directionField: string,
|
|
437
|
+
totalAmountField: string,
|
|
438
|
+
unverifiedAmountField: string,
|
|
439
|
+
) {
|
|
440
|
+
const summary = rows.reduce(
|
|
441
|
+
(result, row) => {
|
|
442
|
+
const direction = String(row[directionField] ?? '').trim().toUpperCase()
|
|
443
|
+
if (direction !== 'I' && direction !== 'O') return result
|
|
444
|
+
|
|
445
|
+
const directionKey = direction === 'I' ? 'income' : 'expense'
|
|
446
|
+
result.total[directionKey] += parseSelectionSummaryAmount(row[totalAmountField])
|
|
447
|
+
result.unverified[directionKey] += parseSelectionSummaryAmount(row[unverifiedAmountField])
|
|
448
|
+
return result
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
total: { income: 0, expense: 0 },
|
|
452
|
+
unverified: { income: 0, expense: 0 },
|
|
453
|
+
},
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
return {
|
|
457
|
+
totalIncome: formatSelectionSummaryAmount(summary.total.income),
|
|
458
|
+
totalExpense: formatSelectionSummaryAmount(summary.total.expense),
|
|
459
|
+
totalNet: formatSelectionSummaryAmount(summary.total.income - summary.total.expense),
|
|
460
|
+
unverifiedIncome: formatSelectionSummaryAmount(summary.unverified.income),
|
|
461
|
+
unverifiedExpense: formatSelectionSummaryAmount(summary.unverified.expense),
|
|
462
|
+
unverifiedNet: formatSelectionSummaryAmount(
|
|
463
|
+
summary.unverified.income - summary.unverified.expense,
|
|
464
|
+
),
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
const forecastSelectionSummary = computed(() => buildSelectionSummary(
|
|
469
|
+
forecastSelectedRows.value,
|
|
470
|
+
'payDirec',
|
|
471
|
+
'predAmt',
|
|
472
|
+
'unverifyAmt',
|
|
473
|
+
))
|
|
474
|
+
const flowSelectionSummary = computed(() => buildSelectionSummary(
|
|
475
|
+
flowSelectedRows.value,
|
|
476
|
+
'direction',
|
|
477
|
+
'tranAmt',
|
|
478
|
+
'notVerifyAmt',
|
|
479
|
+
))
|
|
480
|
+
|
|
407
481
|
function hasText(value: unknown) {
|
|
408
482
|
return String(value ?? '').trim().length > 0
|
|
409
483
|
}
|
|
@@ -496,6 +570,9 @@ function validateSelection(action: 'verify' | 'cancelVerify'): any {
|
|
|
496
570
|
if (action === 'cancelVerify' && forecastSelectedRows.value.length !== 1) {
|
|
497
571
|
return { success: false, message: '不能选择多行预报!' }
|
|
498
572
|
}
|
|
573
|
+
if (action === 'cancelVerify' && flowSelectedRows.value.length === 0) {
|
|
574
|
+
return { success: false, message: '撤销核销必须至少勾选一条流水!' }
|
|
575
|
+
}
|
|
499
576
|
if (
|
|
500
577
|
action === 'verify'
|
|
501
578
|
&& flowSelectedRows.value.some((row) => normalizeVerifyStatus(row.verifyStatus) === 'VS03')
|
|
@@ -632,7 +709,7 @@ let fullscreenOperationGeneration = 0
|
|
|
632
709
|
*/
|
|
633
710
|
const forecastFilterForm = reactive(createDefaultForeignSettlementFilter())
|
|
634
711
|
const forecastPage = ref(1)
|
|
635
|
-
const forecastPageSize = ref(
|
|
712
|
+
const forecastPageSize = ref(getCardLayoutPageSize(cardLayout.value))
|
|
636
713
|
const forecastLoading = ref(false)
|
|
637
714
|
const forecastTotal = ref(0)
|
|
638
715
|
const forecastRows = shallowRef<any[]>([])
|
|
@@ -823,6 +900,38 @@ function handleForecastSelectionChange(selection: any[]) {
|
|
|
823
900
|
setForecastSelectedRows(selection)
|
|
824
901
|
}
|
|
825
902
|
|
|
903
|
+
async function handleForecastAutoVerify() {
|
|
904
|
+
if (operationLoading.value) return
|
|
905
|
+
|
|
906
|
+
// 用户确认后再按当前起息日发起自动核销。
|
|
907
|
+
try {
|
|
908
|
+
await ElMessageBox.confirm('您是否确定自动核销', '自动核销', {
|
|
909
|
+
appendTo: overlayContainer.value || undefined,
|
|
910
|
+
confirmButtonText: '确定',
|
|
911
|
+
cancelButtonText: '取消',
|
|
912
|
+
type: 'warning',
|
|
913
|
+
})
|
|
914
|
+
} catch {
|
|
915
|
+
return
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
activeOperation.value = 'autoVerify'
|
|
919
|
+
try {
|
|
920
|
+
await autoVerifyForeignSettlements({
|
|
921
|
+
tranDate: compactForeignSettlementDate(forecastFilterForm.tradeDate),
|
|
922
|
+
})
|
|
923
|
+
refreshOperationLists()
|
|
924
|
+
if (forecastPanelActive) pageMessage.success('自动核销成功!')
|
|
925
|
+
} catch (error) {
|
|
926
|
+
refreshOperationLists()
|
|
927
|
+
if (forecastPanelActive) {
|
|
928
|
+
pageMessage.error(error instanceof Error ? error.message : '自动核销失败,请稍后重试')
|
|
929
|
+
}
|
|
930
|
+
} finally {
|
|
931
|
+
activeOperation.value = null
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
826
935
|
async function handleForecastVerify() {
|
|
827
936
|
const validation = validateSelection('verify')
|
|
828
937
|
if (!validation.success) {
|
|
@@ -831,10 +940,7 @@ async function handleForecastVerify() {
|
|
|
831
940
|
}
|
|
832
941
|
|
|
833
942
|
try {
|
|
834
|
-
const
|
|
835
|
-
const confirmMessage = flowCount
|
|
836
|
-
? `将核销 ${forecastSelectedRows.value.length} 笔预报,并匹配 ${flowCount} 笔流水。是否继续?`
|
|
837
|
-
: `将直接核销 ${forecastSelectedRows.value.length} 笔预报,当前未选择流水。是否继续?`
|
|
943
|
+
const confirmMessage = `将核销 ${forecastSelectedRows.value.length} 笔预报。是否继续?`
|
|
838
944
|
await ElMessageBox.confirm(confirmMessage, '确认核销', {
|
|
839
945
|
appendTo: overlayContainer.value || undefined,
|
|
840
946
|
confirmButtonText: '确认核销',
|
|
@@ -866,9 +972,7 @@ async function handleForecastCancelVerify() {
|
|
|
866
972
|
|
|
867
973
|
try {
|
|
868
974
|
const flowCount = flowSelectedRows.value.length
|
|
869
|
-
const confirmMessage = flowCount
|
|
870
|
-
? `将撤销 1 笔预报与 ${flowCount} 笔流水的核销关系。是否继续?`
|
|
871
|
-
: '将按所选预报撤销其当前核销关系,当前未选择流水。是否继续?'
|
|
975
|
+
const confirmMessage = `将撤销 1 笔预报与 ${flowCount} 笔流水的核销关系。是否继续?`
|
|
872
976
|
await ElMessageBox.confirm(
|
|
873
977
|
confirmMessage,
|
|
874
978
|
'确认撤销核销',
|
|
@@ -916,7 +1020,7 @@ function closeForecastTransientOverlays() {
|
|
|
916
1020
|
*/
|
|
917
1021
|
const flowFilterForm = reactive(createDefaultForeignSettlementFilter())
|
|
918
1022
|
const flowPage = ref(1)
|
|
919
|
-
const flowPageSize = ref(
|
|
1023
|
+
const flowPageSize = ref(getCardLayoutPageSize(cardLayout.value))
|
|
920
1024
|
const flowLoading = ref(false)
|
|
921
1025
|
const flowTotal = ref(0)
|
|
922
1026
|
const flowRows = shallowRef<any[]>([])
|
|
@@ -1096,6 +1200,49 @@ function handleFlowSelectionChange(selection: any[]) {
|
|
|
1096
1200
|
setFlowSelectedRows(selection)
|
|
1097
1201
|
}
|
|
1098
1202
|
|
|
1203
|
+
async function handleFlowFetch(action: 'fetchFlow' | 'fetchEndOfDayFlow') {
|
|
1204
|
+
if (operationLoading.value) return
|
|
1205
|
+
|
|
1206
|
+
const isEndOfDay = action === 'fetchEndOfDayFlow'
|
|
1207
|
+
const operationLabel = isEndOfDay ? '获取日终流水' : '获取流水'
|
|
1208
|
+
// 两种流水获取操作都需要用户二次确认。
|
|
1209
|
+
try {
|
|
1210
|
+
await ElMessageBox.confirm(`您是否确定${operationLabel}`, operationLabel, {
|
|
1211
|
+
appendTo: overlayContainer.value || undefined,
|
|
1212
|
+
confirmButtonText: '确定',
|
|
1213
|
+
cancelButtonText: '取消',
|
|
1214
|
+
type: 'warning',
|
|
1215
|
+
})
|
|
1216
|
+
} catch {
|
|
1217
|
+
return
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
activeOperation.value = action
|
|
1221
|
+
try {
|
|
1222
|
+
const params = {
|
|
1223
|
+
queryDate: compactForeignSettlementDate(flowFilterForm.tradeDate),
|
|
1224
|
+
}
|
|
1225
|
+
if (isEndOfDay) await fetchForeignSettlementEndOfDayFlows(params)
|
|
1226
|
+
else await fetchForeignSettlementFlows(params)
|
|
1227
|
+
|
|
1228
|
+
flowPage.value = 1
|
|
1229
|
+
resetFlowSelection()
|
|
1230
|
+
if (flowPanelActive) {
|
|
1231
|
+
const refreshed = await loadFlows()
|
|
1232
|
+
if (refreshed) pageMessage.success(`${operationLabel}成功!`)
|
|
1233
|
+
} else {
|
|
1234
|
+
flowPendingOperationRefresh = true
|
|
1235
|
+
}
|
|
1236
|
+
} catch (error) {
|
|
1237
|
+
if (flowPanelActive) {
|
|
1238
|
+
const fallbackMessage = `${operationLabel}失败,请稍后重试`
|
|
1239
|
+
pageMessage.error(error instanceof Error ? error.message : fallbackMessage)
|
|
1240
|
+
}
|
|
1241
|
+
} finally {
|
|
1242
|
+
activeOperation.value = null
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1099
1246
|
function getFlowSequence(index: number) {
|
|
1100
1247
|
return (flowPage.value - 1) * flowPageSize.value + index + 1
|
|
1101
1248
|
}
|
|
@@ -1164,12 +1311,23 @@ async function toggleFullscreen() {
|
|
|
1164
1311
|
}
|
|
1165
1312
|
|
|
1166
1313
|
function setCardLayout(layout: CardLayout) {
|
|
1314
|
+
if (cardLayout.value === layout) return
|
|
1315
|
+
|
|
1167
1316
|
cardLayout.value = layout
|
|
1317
|
+
// 上下布局每页 10 条,左右布局每页 20 条,并同步刷新两张表。
|
|
1318
|
+
const pageSize = getCardLayoutPageSize(layout)
|
|
1319
|
+
forecastPage.value = 1
|
|
1320
|
+
forecastPageSize.value = pageSize
|
|
1321
|
+
flowPage.value = 1
|
|
1322
|
+
flowPageSize.value = pageSize
|
|
1323
|
+
|
|
1168
1324
|
try {
|
|
1169
1325
|
window.localStorage.setItem(CARD_LAYOUT_STORAGE_KEY, layout)
|
|
1170
1326
|
} catch {
|
|
1171
1327
|
// 本地存储不可用时仅保留本次页面状态。
|
|
1172
1328
|
}
|
|
1329
|
+
|
|
1330
|
+
refreshOperationLists()
|
|
1173
1331
|
}
|
|
1174
1332
|
|
|
1175
1333
|
function closePageTransientOverlays() {
|
|
@@ -1331,48 +1489,63 @@ onBeforeUnmount(() => {
|
|
|
1331
1489
|
/>
|
|
1332
1490
|
</label>
|
|
1333
1491
|
|
|
1334
|
-
<label
|
|
1335
|
-
<span
|
|
1492
|
+
<label class="forecast-info-filter__item">
|
|
1493
|
+
<span>筛选FTU</span>
|
|
1336
1494
|
<el-select
|
|
1337
|
-
v-model="forecastFilterForm.
|
|
1495
|
+
v-model="forecastFilterForm.ftuFilter"
|
|
1338
1496
|
:append-to="overlayContainer || undefined"
|
|
1339
1497
|
:persistent="false"
|
|
1340
1498
|
size="small"
|
|
1341
1499
|
placeholder="请选择"
|
|
1342
1500
|
clearable
|
|
1343
1501
|
>
|
|
1344
|
-
<el-option
|
|
1502
|
+
<el-option
|
|
1503
|
+
v-for="option in ftuFilterOptions"
|
|
1504
|
+
:key="option.value"
|
|
1505
|
+
:label="option.label"
|
|
1506
|
+
:value="option.value"
|
|
1507
|
+
/>
|
|
1345
1508
|
</el-select>
|
|
1346
1509
|
</label>
|
|
1347
1510
|
|
|
1348
1511
|
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1349
|
-
<span
|
|
1512
|
+
<span>收支方向</span>
|
|
1350
1513
|
<el-select
|
|
1351
|
-
v-model="forecastFilterForm.
|
|
1514
|
+
v-model="forecastFilterForm.direction"
|
|
1352
1515
|
:append-to="overlayContainer || undefined"
|
|
1353
1516
|
:persistent="false"
|
|
1354
1517
|
size="small"
|
|
1355
1518
|
placeholder="请选择"
|
|
1356
|
-
filterable
|
|
1357
|
-
allow-create
|
|
1358
|
-
default-first-option
|
|
1359
1519
|
clearable
|
|
1360
1520
|
>
|
|
1361
|
-
<el-option
|
|
1521
|
+
<el-option
|
|
1522
|
+
v-for="option in payDirectionOptions"
|
|
1523
|
+
:key="option.value"
|
|
1524
|
+
:label="option.label"
|
|
1525
|
+
:value="option.value"
|
|
1526
|
+
/>
|
|
1362
1527
|
</el-select>
|
|
1363
1528
|
</label>
|
|
1364
1529
|
|
|
1365
1530
|
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1366
|
-
<span
|
|
1531
|
+
<span>币种</span>
|
|
1367
1532
|
<el-select
|
|
1368
|
-
v-model="forecastFilterForm.
|
|
1533
|
+
v-model="forecastFilterForm.currency"
|
|
1369
1534
|
:append-to="overlayContainer || undefined"
|
|
1370
1535
|
:persistent="false"
|
|
1371
1536
|
size="small"
|
|
1372
1537
|
placeholder="请选择"
|
|
1538
|
+
filterable
|
|
1539
|
+
allow-create
|
|
1540
|
+
default-first-option
|
|
1373
1541
|
clearable
|
|
1374
1542
|
>
|
|
1375
|
-
<el-option
|
|
1543
|
+
<el-option
|
|
1544
|
+
v-for="option in currencyOptions"
|
|
1545
|
+
:key="option.value"
|
|
1546
|
+
:label="option.label"
|
|
1547
|
+
:value="option.value"
|
|
1548
|
+
/>
|
|
1376
1549
|
</el-select>
|
|
1377
1550
|
</label>
|
|
1378
1551
|
</div>
|
|
@@ -1392,6 +1565,33 @@ onBeforeUnmount(() => {
|
|
|
1392
1565
|
</div>
|
|
1393
1566
|
|
|
1394
1567
|
<section class="forecast-info-table-area" aria-label="外币预报信息列表">
|
|
1568
|
+
<div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
1569
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1570
|
+
<span>预报收入总金额(元)</span>
|
|
1571
|
+
<strong>{{ forecastSelectionSummary.totalIncome }}</strong>
|
|
1572
|
+
</div>
|
|
1573
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1574
|
+
<span>预报支出总金额(元)</span>
|
|
1575
|
+
<strong>{{ forecastSelectionSummary.totalExpense }}</strong>
|
|
1576
|
+
</div>
|
|
1577
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1578
|
+
<span>预报轧差金额(元)</span>
|
|
1579
|
+
<strong>{{ forecastSelectionSummary.totalNet }}</strong>
|
|
1580
|
+
</div>
|
|
1581
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1582
|
+
<span>未核销收入总金额(元)</span>
|
|
1583
|
+
<strong>{{ forecastSelectionSummary.unverifiedIncome }}</strong>
|
|
1584
|
+
</div>
|
|
1585
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1586
|
+
<span>未核销支出总金额(元)</span>
|
|
1587
|
+
<strong>{{ forecastSelectionSummary.unverifiedExpense }}</strong>
|
|
1588
|
+
</div>
|
|
1589
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1590
|
+
<span>未核销轧差金额(元)</span>
|
|
1591
|
+
<strong>{{ forecastSelectionSummary.unverifiedNet }}</strong>
|
|
1592
|
+
</div>
|
|
1593
|
+
</div>
|
|
1594
|
+
|
|
1395
1595
|
<ElTablePro
|
|
1396
1596
|
ref="forecastTable"
|
|
1397
1597
|
v-model:page="forecastPage"
|
|
@@ -1416,6 +1616,17 @@ onBeforeUnmount(() => {
|
|
|
1416
1616
|
@pagination-change="handleForecastPaginationChange"
|
|
1417
1617
|
>
|
|
1418
1618
|
<template #toolbar>
|
|
1619
|
+
<el-button
|
|
1620
|
+
type="primary"
|
|
1621
|
+
plain
|
|
1622
|
+
size="small"
|
|
1623
|
+
:icon="CircleCheck"
|
|
1624
|
+
:loading="activeOperation === 'autoVerify'"
|
|
1625
|
+
:disabled="operationLoading"
|
|
1626
|
+
@click="handleForecastAutoVerify"
|
|
1627
|
+
>
|
|
1628
|
+
自动核销
|
|
1629
|
+
</el-button>
|
|
1419
1630
|
<el-button
|
|
1420
1631
|
type="success"
|
|
1421
1632
|
plain
|
|
@@ -1529,6 +1740,25 @@ onBeforeUnmount(() => {
|
|
|
1529
1740
|
/>
|
|
1530
1741
|
</label>
|
|
1531
1742
|
|
|
1743
|
+
<label class="forecast-info-filter__item">
|
|
1744
|
+
<span>筛选FTU</span>
|
|
1745
|
+
<el-select
|
|
1746
|
+
v-model="forecastFilterForm.ftuFilter"
|
|
1747
|
+
:append-to="overlayContainer || undefined"
|
|
1748
|
+
:persistent="false"
|
|
1749
|
+
size="small"
|
|
1750
|
+
placeholder="请选择"
|
|
1751
|
+
clearable
|
|
1752
|
+
>
|
|
1753
|
+
<el-option
|
|
1754
|
+
v-for="option in ftuFilterOptions"
|
|
1755
|
+
:key="option.value"
|
|
1756
|
+
:label="option.label"
|
|
1757
|
+
:value="option.value"
|
|
1758
|
+
/>
|
|
1759
|
+
</el-select>
|
|
1760
|
+
</label>
|
|
1761
|
+
|
|
1532
1762
|
<label class="forecast-info-filter__item">
|
|
1533
1763
|
<span>收支方向</span>
|
|
1534
1764
|
<el-select
|
|
@@ -1539,7 +1769,12 @@ onBeforeUnmount(() => {
|
|
|
1539
1769
|
placeholder="请选择"
|
|
1540
1770
|
clearable
|
|
1541
1771
|
>
|
|
1542
|
-
<el-option
|
|
1772
|
+
<el-option
|
|
1773
|
+
v-for="option in payDirectionOptions"
|
|
1774
|
+
:key="option.value"
|
|
1775
|
+
:label="option.label"
|
|
1776
|
+
:value="option.value"
|
|
1777
|
+
/>
|
|
1543
1778
|
</el-select>
|
|
1544
1779
|
</label>
|
|
1545
1780
|
|
|
@@ -1556,7 +1791,12 @@ onBeforeUnmount(() => {
|
|
|
1556
1791
|
default-first-option
|
|
1557
1792
|
clearable
|
|
1558
1793
|
>
|
|
1559
|
-
<el-option
|
|
1794
|
+
<el-option
|
|
1795
|
+
v-for="option in currencyOptions"
|
|
1796
|
+
:key="option.value"
|
|
1797
|
+
:label="option.label"
|
|
1798
|
+
:value="option.value"
|
|
1799
|
+
/>
|
|
1560
1800
|
</el-select>
|
|
1561
1801
|
</label>
|
|
1562
1802
|
|
|
@@ -1570,7 +1810,12 @@ onBeforeUnmount(() => {
|
|
|
1570
1810
|
placeholder="请选择"
|
|
1571
1811
|
clearable
|
|
1572
1812
|
>
|
|
1573
|
-
<el-option
|
|
1813
|
+
<el-option
|
|
1814
|
+
v-for="option in businessTypeOptions"
|
|
1815
|
+
:key="option.value"
|
|
1816
|
+
:label="option.label"
|
|
1817
|
+
:value="option.value"
|
|
1818
|
+
/>
|
|
1574
1819
|
</el-select>
|
|
1575
1820
|
</label>
|
|
1576
1821
|
|
|
@@ -1584,7 +1829,12 @@ onBeforeUnmount(() => {
|
|
|
1584
1829
|
placeholder="请选择"
|
|
1585
1830
|
clearable
|
|
1586
1831
|
>
|
|
1587
|
-
<el-option
|
|
1832
|
+
<el-option
|
|
1833
|
+
v-for="option in forecastWayOptions"
|
|
1834
|
+
:key="option.value"
|
|
1835
|
+
:label="option.label"
|
|
1836
|
+
:value="option.value"
|
|
1837
|
+
/>
|
|
1588
1838
|
</el-select>
|
|
1589
1839
|
</label>
|
|
1590
1840
|
|
|
@@ -1598,21 +1848,12 @@ onBeforeUnmount(() => {
|
|
|
1598
1848
|
placeholder="请选择"
|
|
1599
1849
|
clearable
|
|
1600
1850
|
>
|
|
1601
|
-
<el-option
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
<el-select
|
|
1608
|
-
v-model="forecastFilterForm.ftuFilter"
|
|
1609
|
-
:append-to="overlayContainer || undefined"
|
|
1610
|
-
:persistent="false"
|
|
1611
|
-
size="small"
|
|
1612
|
-
placeholder="请选择"
|
|
1613
|
-
clearable
|
|
1614
|
-
>
|
|
1615
|
-
<el-option v-for="option in ftuFilterOptions" :key="option.value" v-bind="option" />
|
|
1851
|
+
<el-option
|
|
1852
|
+
v-for="option in verifyStatusOptions"
|
|
1853
|
+
:key="option.value"
|
|
1854
|
+
:label="option.label"
|
|
1855
|
+
:value="option.value"
|
|
1856
|
+
/>
|
|
1616
1857
|
</el-select>
|
|
1617
1858
|
</label>
|
|
1618
1859
|
|
|
@@ -1747,7 +1988,7 @@ onBeforeUnmount(() => {
|
|
|
1747
1988
|
/>
|
|
1748
1989
|
</label>
|
|
1749
1990
|
|
|
1750
|
-
<label
|
|
1991
|
+
<label class="forecast-info-filter__item">
|
|
1751
1992
|
<span>收支方向</span>
|
|
1752
1993
|
<el-select
|
|
1753
1994
|
v-model="flowFilterForm.direction"
|
|
@@ -1757,7 +1998,12 @@ onBeforeUnmount(() => {
|
|
|
1757
1998
|
placeholder="请选择"
|
|
1758
1999
|
clearable
|
|
1759
2000
|
>
|
|
1760
|
-
<el-option
|
|
2001
|
+
<el-option
|
|
2002
|
+
v-for="option in payDirectionOptions"
|
|
2003
|
+
:key="option.value"
|
|
2004
|
+
:label="option.label"
|
|
2005
|
+
:value="option.value"
|
|
2006
|
+
/>
|
|
1761
2007
|
</el-select>
|
|
1762
2008
|
</label>
|
|
1763
2009
|
|
|
@@ -1774,7 +2020,12 @@ onBeforeUnmount(() => {
|
|
|
1774
2020
|
default-first-option
|
|
1775
2021
|
clearable
|
|
1776
2022
|
>
|
|
1777
|
-
<el-option
|
|
2023
|
+
<el-option
|
|
2024
|
+
v-for="option in currencyOptions"
|
|
2025
|
+
:key="option.value"
|
|
2026
|
+
:label="option.label"
|
|
2027
|
+
:value="option.value"
|
|
2028
|
+
/>
|
|
1778
2029
|
</el-select>
|
|
1779
2030
|
</label>
|
|
1780
2031
|
|
|
@@ -1788,7 +2039,12 @@ onBeforeUnmount(() => {
|
|
|
1788
2039
|
placeholder="请选择"
|
|
1789
2040
|
clearable
|
|
1790
2041
|
>
|
|
1791
|
-
<el-option
|
|
2042
|
+
<el-option
|
|
2043
|
+
v-for="option in verifyStatusOptions"
|
|
2044
|
+
:key="option.value"
|
|
2045
|
+
:label="option.label"
|
|
2046
|
+
:value="option.value"
|
|
2047
|
+
/>
|
|
1792
2048
|
</el-select>
|
|
1793
2049
|
</label>
|
|
1794
2050
|
</div>
|
|
@@ -1808,6 +2064,33 @@ onBeforeUnmount(() => {
|
|
|
1808
2064
|
</div>
|
|
1809
2065
|
|
|
1810
2066
|
<section class="forecast-info-table-area" aria-label="外币流水信息列表">
|
|
2067
|
+
<div v-if="flowSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
2068
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2069
|
+
<span>流水收入总金额(元)</span>
|
|
2070
|
+
<strong>{{ flowSelectionSummary.totalIncome }}</strong>
|
|
2071
|
+
</div>
|
|
2072
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2073
|
+
<span>流水支出总金额(元)</span>
|
|
2074
|
+
<strong>{{ flowSelectionSummary.totalExpense }}</strong>
|
|
2075
|
+
</div>
|
|
2076
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2077
|
+
<span>流水轧差金额(元)</span>
|
|
2078
|
+
<strong>{{ flowSelectionSummary.totalNet }}</strong>
|
|
2079
|
+
</div>
|
|
2080
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2081
|
+
<span>未核销收入总金额(元)</span>
|
|
2082
|
+
<strong>{{ flowSelectionSummary.unverifiedIncome }}</strong>
|
|
2083
|
+
</div>
|
|
2084
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2085
|
+
<span>未核销支出总金额(元)</span>
|
|
2086
|
+
<strong>{{ flowSelectionSummary.unverifiedExpense }}</strong>
|
|
2087
|
+
</div>
|
|
2088
|
+
<div class="forecast-info-forecast-summary__item">
|
|
2089
|
+
<span>未核销轧差金额(元)</span>
|
|
2090
|
+
<strong>{{ flowSelectionSummary.unverifiedNet }}</strong>
|
|
2091
|
+
</div>
|
|
2092
|
+
</div>
|
|
2093
|
+
|
|
1811
2094
|
<ElTablePro
|
|
1812
2095
|
ref="flowTable"
|
|
1813
2096
|
v-model:page="flowPage"
|
|
@@ -1832,8 +2115,28 @@ onBeforeUnmount(() => {
|
|
|
1832
2115
|
@pagination-change="handleFlowPaginationChange"
|
|
1833
2116
|
>
|
|
1834
2117
|
<template #toolbar>
|
|
1835
|
-
<el-button
|
|
1836
|
-
|
|
2118
|
+
<el-button
|
|
2119
|
+
type="primary"
|
|
2120
|
+
plain
|
|
2121
|
+
size="small"
|
|
2122
|
+
:icon="Refresh"
|
|
2123
|
+
:loading="activeOperation === 'fetchFlow'"
|
|
2124
|
+
:disabled="operationLoading"
|
|
2125
|
+
@click="handleFlowFetch('fetchFlow')"
|
|
2126
|
+
>
|
|
2127
|
+
获取流水
|
|
2128
|
+
</el-button>
|
|
2129
|
+
<el-button
|
|
2130
|
+
type="primary"
|
|
2131
|
+
plain
|
|
2132
|
+
size="small"
|
|
2133
|
+
:icon="Calendar"
|
|
2134
|
+
:loading="activeOperation === 'fetchEndOfDayFlow'"
|
|
2135
|
+
:disabled="operationLoading"
|
|
2136
|
+
@click="handleFlowFetch('fetchEndOfDayFlow')"
|
|
2137
|
+
>
|
|
2138
|
+
获取日终流水
|
|
2139
|
+
</el-button>
|
|
1837
2140
|
|
|
1838
2141
|
<span v-if="flowSelectedRows.length" class="foreign-currency-settlement-selection-count">
|
|
1839
2142
|
已选 {{ flowSelectedRows.length }} 笔
|
|
@@ -1933,7 +2236,12 @@ onBeforeUnmount(() => {
|
|
|
1933
2236
|
placeholder="请选择"
|
|
1934
2237
|
clearable
|
|
1935
2238
|
>
|
|
1936
|
-
<el-option
|
|
2239
|
+
<el-option
|
|
2240
|
+
v-for="option in payDirectionOptions"
|
|
2241
|
+
:key="option.value"
|
|
2242
|
+
:label="option.label"
|
|
2243
|
+
:value="option.value"
|
|
2244
|
+
/>
|
|
1937
2245
|
</el-select>
|
|
1938
2246
|
</label>
|
|
1939
2247
|
|
|
@@ -1950,7 +2258,12 @@ onBeforeUnmount(() => {
|
|
|
1950
2258
|
default-first-option
|
|
1951
2259
|
clearable
|
|
1952
2260
|
>
|
|
1953
|
-
<el-option
|
|
2261
|
+
<el-option
|
|
2262
|
+
v-for="option in currencyOptions"
|
|
2263
|
+
:key="option.value"
|
|
2264
|
+
:label="option.label"
|
|
2265
|
+
:value="option.value"
|
|
2266
|
+
/>
|
|
1954
2267
|
</el-select>
|
|
1955
2268
|
</label>
|
|
1956
2269
|
|
|
@@ -1970,7 +2283,12 @@ onBeforeUnmount(() => {
|
|
|
1970
2283
|
collapse-tags-tooltip
|
|
1971
2284
|
clearable
|
|
1972
2285
|
>
|
|
1973
|
-
<el-option
|
|
2286
|
+
<el-option
|
|
2287
|
+
v-for="option in messageTypeOptions"
|
|
2288
|
+
:key="option.value"
|
|
2289
|
+
:label="option.label"
|
|
2290
|
+
:value="option.value"
|
|
2291
|
+
/>
|
|
1974
2292
|
</el-select>
|
|
1975
2293
|
</label>
|
|
1976
2294
|
|
|
@@ -1984,7 +2302,12 @@ onBeforeUnmount(() => {
|
|
|
1984
2302
|
placeholder="请选择"
|
|
1985
2303
|
clearable
|
|
1986
2304
|
>
|
|
1987
|
-
<el-option
|
|
2305
|
+
<el-option
|
|
2306
|
+
v-for="option in verifyStatusOptions"
|
|
2307
|
+
:key="option.value"
|
|
2308
|
+
:label="option.label"
|
|
2309
|
+
:value="option.value"
|
|
2310
|
+
/>
|
|
1988
2311
|
</el-select>
|
|
1989
2312
|
</label>
|
|
1990
2313
|
|