verce-vue-test 0.0.111 → 0.0.113
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 +12 -1
- package/src/api/announcement.ts +153 -0
- package/src/router/index.ts +15 -0
- package/src/views/foreign-currency-position-forecast/index.vue +22 -3
- package/src/views/foreign-currency-settlement/api.ts +28 -265
- package/src/views/foreign-currency-settlement/index.vue +77 -46
- package/src/views/notice-management/api.ts +33 -0
- package/src/views/notice-management/components/NoticeRichTextEditor.vue +310 -0
- package/src/views/notice-management/edit.vue +403 -0
- package/src/views/notice-management/index.vue +299 -0
- package/src/views/notice-management/types.ts +43 -0
|
@@ -31,21 +31,13 @@ import {
|
|
|
31
31
|
RefreshLeft,
|
|
32
32
|
Search,
|
|
33
33
|
} from '@element-plus/icons-vue'
|
|
34
|
-
import { queryAccountBanks } from '@/api/account-bank'
|
|
35
34
|
import { formatThousands } from '@/utils/formatters'
|
|
36
|
-
import
|
|
37
|
-
autoVerifyForeignSettlements,
|
|
38
|
-
cancelVerifyForeignSettlements,
|
|
39
|
-
fetchForeignSettlementEndOfDayFlows,
|
|
40
|
-
fetchForeignSettlementFlows,
|
|
41
|
-
queryForeignSettlementFlows,
|
|
42
|
-
queryForeignSettlementForecasts,
|
|
43
|
-
verifyForeignSettlements,
|
|
44
|
-
} from './api'
|
|
35
|
+
import API from './api'
|
|
45
36
|
import './foreign-currency-settlement-base.css'
|
|
46
37
|
|
|
47
38
|
type CardLayout = 'vertical' | 'horizontal'
|
|
48
39
|
|
|
40
|
+
// 页面筛选项使用的静态选项,值保持 TAM 接口约定。
|
|
49
41
|
const payDirectionOptions = [
|
|
50
42
|
{ value: 'I', label: '收入' },
|
|
51
43
|
{ value: 'O', label: '支出' },
|
|
@@ -99,6 +91,7 @@ const paymentRouteMap: Record<string, string> = {
|
|
|
99
91
|
'03': '内部划转',
|
|
100
92
|
}
|
|
101
93
|
|
|
94
|
+
// 两张表的字段、默认显隐和格式化方式统一由列配置维护。
|
|
102
95
|
const forecastColumns = [
|
|
103
96
|
{ prop: 'predRefNo', label: '预报流水号', minWidth: 146, defaultVisible: true },
|
|
104
97
|
{ prop: 'tranDate', label: '起息日期', minWidth: 108, format: 'date', defaultVisible: true },
|
|
@@ -189,6 +182,7 @@ const optionMaps = {
|
|
|
189
182
|
forecastWay: Object.fromEntries(forecastWayOptions.map((option) => [option.value, option.label])),
|
|
190
183
|
}
|
|
191
184
|
|
|
185
|
+
// 创建预报和流水共用的默认筛选条件。
|
|
192
186
|
function getLocalDateString() {
|
|
193
187
|
const now = new Date()
|
|
194
188
|
const year = now.getFullYear()
|
|
@@ -284,6 +278,16 @@ function prepareForeignSettlementRows(rows: any[], columns: any[]) {
|
|
|
284
278
|
})
|
|
285
279
|
}
|
|
286
280
|
|
|
281
|
+
// baseHttpClient 返回完整 TAM 报文,页面只读取 body 中的列表和总数。
|
|
282
|
+
function getResultInfos(response: any) {
|
|
283
|
+
return Array.isArray(response?.body?.resultInfos) ? response.body.resultInfos : []
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
function getTotalCount(response: any, fallback: number) {
|
|
287
|
+
const totalCount = Number(response?.body?.totalCount)
|
|
288
|
+
return Number.isFinite(totalCount) && totalCount >= 0 ? totalCount : fallback
|
|
289
|
+
}
|
|
290
|
+
|
|
287
291
|
function compactForeignSettlementDate(value: string) {
|
|
288
292
|
return value.replaceAll('-', '')
|
|
289
293
|
}
|
|
@@ -296,6 +300,7 @@ function isForeignSettlementAbortError(error: unknown) {
|
|
|
296
300
|
return error instanceof Error && error.name === 'AbortError'
|
|
297
301
|
}
|
|
298
302
|
|
|
303
|
+
// 消息挂载到当前页面浮层容器,避免 KeepAlive 页面切换后残留到其他路由。
|
|
299
304
|
function useScopedMessage(resolveAppendTo: () => HTMLElement | null) {
|
|
300
305
|
const activeHandles = new Set<any>()
|
|
301
306
|
|
|
@@ -514,6 +519,7 @@ function resetAllTableSelections() {
|
|
|
514
519
|
resetFlowSelectionState()
|
|
515
520
|
}
|
|
516
521
|
|
|
522
|
+
// 核销和撤销核销共用前置校验,接口调用前保证勾选数据完整且业务口径一致。
|
|
517
523
|
function validateSelection(action: 'verify' | 'cancelVerify'): any {
|
|
518
524
|
if (forecastSelectedRows.value.length === 0) {
|
|
519
525
|
return {
|
|
@@ -601,6 +607,7 @@ function validateSelection(action: 'verify' | 'cancelVerify'): any {
|
|
|
601
607
|
return { success: true, message: '' }
|
|
602
608
|
}
|
|
603
609
|
|
|
610
|
+
// 将多选记录按接口要求转换为逗号分隔字段。
|
|
604
611
|
function buildVerifyRequest(): any {
|
|
605
612
|
const forecasts = sortForecastRows(forecastSelectedRows.value)
|
|
606
613
|
const flows = flowSelectedRows.value
|
|
@@ -641,6 +648,7 @@ function refreshOperationLists() {
|
|
|
641
648
|
listRefreshKey.value += 1
|
|
642
649
|
}
|
|
643
650
|
|
|
651
|
+
// 核销操作统一控制并发状态,并在成功后刷新预报、流水两张表。
|
|
644
652
|
async function runOperation(action: 'verify' | 'cancelVerify'): Promise<any> {
|
|
645
653
|
if (operationLoading.value) {
|
|
646
654
|
return { success: false, message: '核销操作正在处理中,请稍候' }
|
|
@@ -650,8 +658,8 @@ async function runOperation(action: 'verify' | 'cancelVerify'): Promise<any> {
|
|
|
650
658
|
|
|
651
659
|
activeOperation.value = action
|
|
652
660
|
try {
|
|
653
|
-
if (action === 'verify') await
|
|
654
|
-
else await
|
|
661
|
+
if (action === 'verify') await API.verifyApi(buildVerifyRequest())
|
|
662
|
+
else await API.cancelVerifyApi(buildCancelVerifyRequest())
|
|
655
663
|
refreshOperationLists()
|
|
656
664
|
return {
|
|
657
665
|
success: true,
|
|
@@ -715,6 +723,7 @@ function deactivateForecastPanel() {
|
|
|
715
723
|
closeForecastTransientOverlays()
|
|
716
724
|
}
|
|
717
725
|
|
|
726
|
+
// 列表查询和导出共用同一组预报筛选参数,调用时再补充分页或 opType。
|
|
718
727
|
const forecastQueryParams = computed<any>(() => {
|
|
719
728
|
const [startAmount, endAmount] = forecastFilterForm.amountRange
|
|
720
729
|
|
|
@@ -767,6 +776,7 @@ function cancelForecastPendingRequest() {
|
|
|
767
776
|
forecastAccountBankLoading.value = false
|
|
768
777
|
}
|
|
769
778
|
|
|
779
|
+
// 账户行下拉展开时按当前币种请求,AbortController 防止旧请求覆盖新结果。
|
|
770
780
|
async function handleForecastAccountBankVisibleChange(visible: boolean) {
|
|
771
781
|
if (!visible) return
|
|
772
782
|
|
|
@@ -779,12 +789,12 @@ async function handleForecastAccountBankVisibleChange(visible: boolean) {
|
|
|
779
789
|
forecastAccountBankLoading.value = true
|
|
780
790
|
|
|
781
791
|
try {
|
|
782
|
-
const
|
|
783
|
-
{ ccy: currency },
|
|
792
|
+
const response = await API.accountBankQueryApi(
|
|
793
|
+
{ acctType: '', ccy: currency, zmqFlag: '' },
|
|
784
794
|
{ signal: controller.signal },
|
|
785
795
|
)
|
|
786
796
|
if (controller.signal.aborted || forecastAccountBankRequestController !== controller) return
|
|
787
|
-
forecastAccountBankOptions.value =
|
|
797
|
+
forecastAccountBankOptions.value = getResultInfos(response)
|
|
788
798
|
loadedForecastAccountBankCurrency = currency
|
|
789
799
|
} catch (error) {
|
|
790
800
|
if (controller.signal.aborted) return
|
|
@@ -797,6 +807,7 @@ async function handleForecastAccountBankVisibleChange(visible: boolean) {
|
|
|
797
807
|
}
|
|
798
808
|
}
|
|
799
809
|
|
|
810
|
+
// 查询预报列表时只接收最后一次有效请求,并在刷新后清空原选择。
|
|
800
811
|
async function loadForecasts(showSuccessMessage = false) {
|
|
801
812
|
forecastRequestController?.abort()
|
|
802
813
|
const controller = new AbortController()
|
|
@@ -804,7 +815,7 @@ async function loadForecasts(showSuccessMessage = false) {
|
|
|
804
815
|
forecastLoading.value = true
|
|
805
816
|
|
|
806
817
|
try {
|
|
807
|
-
const
|
|
818
|
+
const response = await API.forecastQueryApi({
|
|
808
819
|
...forecastQueryParams.value,
|
|
809
820
|
pageIndex: forecastPage.value,
|
|
810
821
|
pageSize: forecastPageSize.value,
|
|
@@ -813,8 +824,9 @@ async function loadForecasts(showSuccessMessage = false) {
|
|
|
813
824
|
if (!forecastPanelActive || controller.signal.aborted || forecastRequestController !== controller) return false
|
|
814
825
|
|
|
815
826
|
resetForecastSelection()
|
|
816
|
-
|
|
817
|
-
|
|
827
|
+
const resultInfos = getResultInfos(response)
|
|
828
|
+
forecastRows.value = prepareForeignSettlementRows(resultInfos, forecastColumns)
|
|
829
|
+
forecastTotal.value = getTotalCount(response, resultInfos.length)
|
|
818
830
|
if (showSuccessMessage) pageMessage.success('已查询预报信息')
|
|
819
831
|
return true
|
|
820
832
|
} catch (error) {
|
|
@@ -879,7 +891,7 @@ async function handleForecastAutoVerify() {
|
|
|
879
891
|
|
|
880
892
|
activeOperation.value = 'autoVerify'
|
|
881
893
|
try {
|
|
882
|
-
await
|
|
894
|
+
await API.autoVerifyApi({
|
|
883
895
|
tranDate: compactForeignSettlementDate(forecastFilterForm.tradeDate),
|
|
884
896
|
})
|
|
885
897
|
refreshOperationLists()
|
|
@@ -1024,6 +1036,7 @@ function deactivateFlowPanel() {
|
|
|
1024
1036
|
closeFlowTransientOverlays()
|
|
1025
1037
|
}
|
|
1026
1038
|
|
|
1039
|
+
// 流水查询参数与预报区域独立维护,避免两个卡片的筛选状态互相污染。
|
|
1027
1040
|
function buildFlowQuery(): any {
|
|
1028
1041
|
const [startAmount, endAmount] = flowFilterForm.amountRange
|
|
1029
1042
|
|
|
@@ -1074,6 +1087,7 @@ function cancelFlowPendingRequest() {
|
|
|
1074
1087
|
flowAccountBankLoading.value = false
|
|
1075
1088
|
}
|
|
1076
1089
|
|
|
1090
|
+
// 流水账户行使用独立请求控制器,切换币种时不会影响预报区域。
|
|
1077
1091
|
async function handleFlowAccountBankVisibleChange(visible: boolean) {
|
|
1078
1092
|
if (!visible) return
|
|
1079
1093
|
|
|
@@ -1086,12 +1100,12 @@ async function handleFlowAccountBankVisibleChange(visible: boolean) {
|
|
|
1086
1100
|
flowAccountBankLoading.value = true
|
|
1087
1101
|
|
|
1088
1102
|
try {
|
|
1089
|
-
const
|
|
1090
|
-
{ ccy: currency },
|
|
1103
|
+
const response = await API.accountBankQueryApi(
|
|
1104
|
+
{ acctType: '', ccy: currency, zmqFlag: '' },
|
|
1091
1105
|
{ signal: controller.signal },
|
|
1092
1106
|
)
|
|
1093
1107
|
if (controller.signal.aborted || flowAccountBankRequestController !== controller) return
|
|
1094
|
-
flowAccountBankOptions.value =
|
|
1108
|
+
flowAccountBankOptions.value = getResultInfos(response)
|
|
1095
1109
|
loadedFlowAccountBankCurrency = currency
|
|
1096
1110
|
} catch (error) {
|
|
1097
1111
|
if (controller.signal.aborted) return
|
|
@@ -1104,6 +1118,7 @@ async function handleFlowAccountBankVisibleChange(visible: boolean) {
|
|
|
1104
1118
|
}
|
|
1105
1119
|
}
|
|
1106
1120
|
|
|
1121
|
+
// 查询流水列表时保留当前分页,并对过期请求结果进行丢弃。
|
|
1107
1122
|
async function loadFlows(showSuccessMessage = false) {
|
|
1108
1123
|
flowRequestController?.abort()
|
|
1109
1124
|
const controller = new AbortController()
|
|
@@ -1111,7 +1126,7 @@ async function loadFlows(showSuccessMessage = false) {
|
|
|
1111
1126
|
flowLoading.value = true
|
|
1112
1127
|
|
|
1113
1128
|
try {
|
|
1114
|
-
const
|
|
1129
|
+
const response = await API.flowQueryApi({
|
|
1115
1130
|
...buildFlowQuery(),
|
|
1116
1131
|
pageIndex: flowPage.value,
|
|
1117
1132
|
pageSize: flowPageSize.value,
|
|
@@ -1120,8 +1135,9 @@ async function loadFlows(showSuccessMessage = false) {
|
|
|
1120
1135
|
if (!flowPanelActive || controller.signal.aborted || flowRequestController !== controller) return false
|
|
1121
1136
|
|
|
1122
1137
|
resetFlowSelection()
|
|
1123
|
-
|
|
1124
|
-
|
|
1138
|
+
const resultInfos = getResultInfos(response)
|
|
1139
|
+
flowRows.value = prepareForeignSettlementRows(resultInfos, flowColumns)
|
|
1140
|
+
flowTotal.value = getTotalCount(response, resultInfos.length)
|
|
1125
1141
|
if (showSuccessMessage) pageMessage.success('已查询流水信息')
|
|
1126
1142
|
return true
|
|
1127
1143
|
} catch (error) {
|
|
@@ -1145,6 +1161,13 @@ function handleFlowQuery() {
|
|
|
1145
1161
|
void loadFlows(true)
|
|
1146
1162
|
}
|
|
1147
1163
|
|
|
1164
|
+
function handleFlowExport() {
|
|
1165
|
+
console.log('外币流水信息导出参数:', {
|
|
1166
|
+
...buildFlowQuery(),
|
|
1167
|
+
opType: 'export',
|
|
1168
|
+
})
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1148
1171
|
function handleFlowReset() {
|
|
1149
1172
|
Object.assign(flowFilterForm, createDefaultForeignSettlementFilter())
|
|
1150
1173
|
flowPage.value = 1
|
|
@@ -1184,8 +1207,8 @@ async function handleFlowFetch(action: 'fetchFlow' | 'fetchEndOfDayFlow') {
|
|
|
1184
1207
|
const params = {
|
|
1185
1208
|
queryDate: compactForeignSettlementDate(flowFilterForm.tradeDate),
|
|
1186
1209
|
}
|
|
1187
|
-
if (isEndOfDay) await
|
|
1188
|
-
else await
|
|
1210
|
+
if (isEndOfDay) await API.fetchEndOfDayFlowApi(params)
|
|
1211
|
+
else await API.fetchFlowApi(params)
|
|
1189
1212
|
|
|
1190
1213
|
flowPage.value = 1
|
|
1191
1214
|
resetFlowSelection()
|
|
@@ -1223,6 +1246,7 @@ function syncFullscreenState() {
|
|
|
1223
1246
|
isFullscreen.value = document.fullscreenElement === pageContainer.value
|
|
1224
1247
|
}
|
|
1225
1248
|
|
|
1249
|
+
// 全屏监听只绑定一次,路由缓存停用或页面卸载时统一移除。
|
|
1226
1250
|
function startFullscreenListener() {
|
|
1227
1251
|
if (isListeningFullscreenChange) return
|
|
1228
1252
|
document.addEventListener('fullscreenchange', syncFullscreenState)
|
|
@@ -1377,12 +1401,14 @@ onBeforeUnmount(() => {
|
|
|
1377
1401
|
'forecast-info-page--fullscreen': isFullscreen,
|
|
1378
1402
|
}"
|
|
1379
1403
|
>
|
|
1404
|
+
<!-- 页面级浮层统一挂载点,用于全屏、KeepAlive 场景下的弹窗和消息。 -->
|
|
1380
1405
|
<div
|
|
1381
1406
|
id="foreign-currency-settlement-overlay-host"
|
|
1382
1407
|
ref="overlayContainer"
|
|
1383
1408
|
class="forecast-info-overlay-host"
|
|
1384
1409
|
></div>
|
|
1385
1410
|
|
|
1411
|
+
<!-- 预报信息:筛选、核销操作、汇总和列表。 -->
|
|
1386
1412
|
<section
|
|
1387
1413
|
class="forecast-info-card forecast-info-card--forecast"
|
|
1388
1414
|
aria-labelledby="foreign-currency-forecast-info-title"
|
|
@@ -1455,7 +1481,7 @@ onBeforeUnmount(() => {
|
|
|
1455
1481
|
<span>筛选FTU</span>
|
|
1456
1482
|
<el-select
|
|
1457
1483
|
v-model="forecastFilterForm.ftuFilter"
|
|
1458
|
-
:
|
|
1484
|
+
:teleported="!isFullscreen"
|
|
1459
1485
|
size="small"
|
|
1460
1486
|
placeholder="请选择"
|
|
1461
1487
|
clearable
|
|
@@ -1473,7 +1499,7 @@ onBeforeUnmount(() => {
|
|
|
1473
1499
|
<span>收支方向</span>
|
|
1474
1500
|
<el-select
|
|
1475
1501
|
v-model="forecastFilterForm.direction"
|
|
1476
|
-
:
|
|
1502
|
+
:teleported="!isFullscreen"
|
|
1477
1503
|
size="small"
|
|
1478
1504
|
placeholder="请选择"
|
|
1479
1505
|
clearable
|
|
@@ -1491,7 +1517,7 @@ onBeforeUnmount(() => {
|
|
|
1491
1517
|
<span>币种</span>
|
|
1492
1518
|
<el-select
|
|
1493
1519
|
v-model="forecastFilterForm.currency"
|
|
1494
|
-
:
|
|
1520
|
+
:teleported="!isFullscreen"
|
|
1495
1521
|
size="small"
|
|
1496
1522
|
placeholder="请选择"
|
|
1497
1523
|
filterable
|
|
@@ -1673,6 +1699,7 @@ onBeforeUnmount(() => {
|
|
|
1673
1699
|
</ElTablePro>
|
|
1674
1700
|
</section>
|
|
1675
1701
|
|
|
1702
|
+
<!-- 预报更多筛选与顶部快捷筛选共用同一份表单。 -->
|
|
1676
1703
|
<el-drawer
|
|
1677
1704
|
v-if="forecastFilterDrawerVisible"
|
|
1678
1705
|
:model-value="forecastFilterDrawerVisible"
|
|
@@ -1703,7 +1730,7 @@ onBeforeUnmount(() => {
|
|
|
1703
1730
|
<span>筛选FTU</span>
|
|
1704
1731
|
<el-select
|
|
1705
1732
|
v-model="forecastFilterForm.ftuFilter"
|
|
1706
|
-
:
|
|
1733
|
+
:teleported="!isFullscreen"
|
|
1707
1734
|
size="small"
|
|
1708
1735
|
placeholder="请选择"
|
|
1709
1736
|
clearable
|
|
@@ -1721,7 +1748,7 @@ onBeforeUnmount(() => {
|
|
|
1721
1748
|
<span>收支方向</span>
|
|
1722
1749
|
<el-select
|
|
1723
1750
|
v-model="forecastFilterForm.direction"
|
|
1724
|
-
:
|
|
1751
|
+
:teleported="!isFullscreen"
|
|
1725
1752
|
size="small"
|
|
1726
1753
|
placeholder="请选择"
|
|
1727
1754
|
clearable
|
|
@@ -1739,7 +1766,7 @@ onBeforeUnmount(() => {
|
|
|
1739
1766
|
<span>币种</span>
|
|
1740
1767
|
<el-select
|
|
1741
1768
|
v-model="forecastFilterForm.currency"
|
|
1742
|
-
:
|
|
1769
|
+
:teleported="!isFullscreen"
|
|
1743
1770
|
size="small"
|
|
1744
1771
|
placeholder="请选择"
|
|
1745
1772
|
filterable
|
|
@@ -1760,7 +1787,7 @@ onBeforeUnmount(() => {
|
|
|
1760
1787
|
<span>业务类型</span>
|
|
1761
1788
|
<el-select
|
|
1762
1789
|
v-model="forecastFilterForm.businessType"
|
|
1763
|
-
:
|
|
1790
|
+
:teleported="!isFullscreen"
|
|
1764
1791
|
size="small"
|
|
1765
1792
|
placeholder="请选择"
|
|
1766
1793
|
clearable
|
|
@@ -1778,7 +1805,7 @@ onBeforeUnmount(() => {
|
|
|
1778
1805
|
<span>预报方式</span>
|
|
1779
1806
|
<el-select
|
|
1780
1807
|
v-model="forecastFilterForm.forecastWay"
|
|
1781
|
-
:
|
|
1808
|
+
:teleported="!isFullscreen"
|
|
1782
1809
|
size="small"
|
|
1783
1810
|
placeholder="请选择"
|
|
1784
1811
|
clearable
|
|
@@ -1796,7 +1823,7 @@ onBeforeUnmount(() => {
|
|
|
1796
1823
|
<span>勾兑状态</span>
|
|
1797
1824
|
<el-select
|
|
1798
1825
|
v-model="forecastFilterForm.verifyStatus"
|
|
1799
|
-
:
|
|
1826
|
+
:teleported="!isFullscreen"
|
|
1800
1827
|
size="small"
|
|
1801
1828
|
placeholder="请选择"
|
|
1802
1829
|
clearable
|
|
@@ -1819,7 +1846,7 @@ onBeforeUnmount(() => {
|
|
|
1819
1846
|
<span>账户行</span>
|
|
1820
1847
|
<el-select
|
|
1821
1848
|
v-model="forecastFilterForm.bankCode"
|
|
1822
|
-
:
|
|
1849
|
+
:teleported="!isFullscreen"
|
|
1823
1850
|
:loading="forecastAccountBankLoading"
|
|
1824
1851
|
size="small"
|
|
1825
1852
|
placeholder="请选择账户行"
|
|
@@ -1872,6 +1899,7 @@ onBeforeUnmount(() => {
|
|
|
1872
1899
|
</template>
|
|
1873
1900
|
</el-drawer>
|
|
1874
1901
|
</section>
|
|
1902
|
+
<!-- 流水信息:流水获取、筛选、汇总和列表。 -->
|
|
1875
1903
|
<section
|
|
1876
1904
|
class="forecast-info-card forecast-info-card--flow"
|
|
1877
1905
|
aria-labelledby="foreign-currency-flow-info-title"
|
|
@@ -1944,7 +1972,7 @@ onBeforeUnmount(() => {
|
|
|
1944
1972
|
<span>收支方向</span>
|
|
1945
1973
|
<el-select
|
|
1946
1974
|
v-model="flowFilterForm.direction"
|
|
1947
|
-
:
|
|
1975
|
+
:teleported="!isFullscreen"
|
|
1948
1976
|
size="small"
|
|
1949
1977
|
placeholder="请选择"
|
|
1950
1978
|
clearable
|
|
@@ -1962,7 +1990,7 @@ onBeforeUnmount(() => {
|
|
|
1962
1990
|
<span>币种</span>
|
|
1963
1991
|
<el-select
|
|
1964
1992
|
v-model="flowFilterForm.currency"
|
|
1965
|
-
:
|
|
1993
|
+
:teleported="!isFullscreen"
|
|
1966
1994
|
size="small"
|
|
1967
1995
|
placeholder="请选择"
|
|
1968
1996
|
filterable
|
|
@@ -1983,7 +2011,7 @@ onBeforeUnmount(() => {
|
|
|
1983
2011
|
<span>核销状态</span>
|
|
1984
2012
|
<el-select
|
|
1985
2013
|
v-model="flowFilterForm.verifyStatus"
|
|
1986
|
-
:
|
|
2014
|
+
:teleported="!isFullscreen"
|
|
1987
2015
|
size="small"
|
|
1988
2016
|
placeholder="请选择"
|
|
1989
2017
|
clearable
|
|
@@ -2093,7 +2121,9 @@ onBeforeUnmount(() => {
|
|
|
2093
2121
|
</template>
|
|
2094
2122
|
|
|
2095
2123
|
<template #toolbar-right>
|
|
2096
|
-
<el-button type="primary" plain size="small" :icon="Download"
|
|
2124
|
+
<el-button type="primary" plain size="small" :icon="Download" @click="handleFlowExport">
|
|
2125
|
+
导出
|
|
2126
|
+
</el-button>
|
|
2097
2127
|
</template>
|
|
2098
2128
|
|
|
2099
2129
|
<el-table-column
|
|
@@ -2149,6 +2179,7 @@ onBeforeUnmount(() => {
|
|
|
2149
2179
|
</ElTablePro>
|
|
2150
2180
|
</section>
|
|
2151
2181
|
|
|
2182
|
+
<!-- 流水更多筛选独立维护,不影响预报查询条件。 -->
|
|
2152
2183
|
<el-drawer
|
|
2153
2184
|
v-if="flowFilterDrawerVisible"
|
|
2154
2185
|
:model-value="flowFilterDrawerVisible"
|
|
@@ -2179,7 +2210,7 @@ onBeforeUnmount(() => {
|
|
|
2179
2210
|
<span>收支方向</span>
|
|
2180
2211
|
<el-select
|
|
2181
2212
|
v-model="flowFilterForm.direction"
|
|
2182
|
-
:
|
|
2213
|
+
:teleported="!isFullscreen"
|
|
2183
2214
|
size="small"
|
|
2184
2215
|
placeholder="请选择"
|
|
2185
2216
|
clearable
|
|
@@ -2197,7 +2228,7 @@ onBeforeUnmount(() => {
|
|
|
2197
2228
|
<span>币种</span>
|
|
2198
2229
|
<el-select
|
|
2199
2230
|
v-model="flowFilterForm.currency"
|
|
2200
|
-
:
|
|
2231
|
+
:teleported="!isFullscreen"
|
|
2201
2232
|
size="small"
|
|
2202
2233
|
placeholder="请选择"
|
|
2203
2234
|
filterable
|
|
@@ -2218,7 +2249,7 @@ onBeforeUnmount(() => {
|
|
|
2218
2249
|
<span>报文类型</span>
|
|
2219
2250
|
<el-select
|
|
2220
2251
|
v-model="flowFilterForm.messageTypes"
|
|
2221
|
-
:
|
|
2252
|
+
:teleported="!isFullscreen"
|
|
2222
2253
|
size="small"
|
|
2223
2254
|
placeholder="请选择或输入代码"
|
|
2224
2255
|
multiple
|
|
@@ -2242,7 +2273,7 @@ onBeforeUnmount(() => {
|
|
|
2242
2273
|
<span>核销状态</span>
|
|
2243
2274
|
<el-select
|
|
2244
2275
|
v-model="flowFilterForm.verifyStatus"
|
|
2245
|
-
:
|
|
2276
|
+
:teleported="!isFullscreen"
|
|
2246
2277
|
size="small"
|
|
2247
2278
|
placeholder="请选择"
|
|
2248
2279
|
clearable
|
|
@@ -2265,7 +2296,7 @@ onBeforeUnmount(() => {
|
|
|
2265
2296
|
<span>账户行</span>
|
|
2266
2297
|
<el-select
|
|
2267
2298
|
v-model="flowFilterForm.bankCode"
|
|
2268
|
-
:
|
|
2299
|
+
:teleported="!isFullscreen"
|
|
2269
2300
|
:loading="flowAccountBankLoading"
|
|
2270
2301
|
size="small"
|
|
2271
2302
|
placeholder="请选择账户行"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import baseHttpClient from '@/utils/baseHttpClient'
|
|
2
|
+
import { queryAnnouncementDetail, queryAnnouncements } from '@/api/announcement'
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
NoticeDetail,
|
|
6
|
+
NoticeListQuery,
|
|
7
|
+
NoticeListResponse,
|
|
8
|
+
NoticePayload,
|
|
9
|
+
} from './types'
|
|
10
|
+
|
|
11
|
+
export async function getNoticeList(query: NoticeListQuery): Promise<NoticeListResponse> {
|
|
12
|
+
const response = await queryAnnouncements(query.currentPage, query.pageSize)
|
|
13
|
+
return {
|
|
14
|
+
resultList: response.list,
|
|
15
|
+
totalCount: response.total,
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function getNoticeDetail(id: number | string) {
|
|
20
|
+
return queryAnnouncementDetail(String(id))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function createNotice(payload: NoticePayload) {
|
|
24
|
+
return baseHttpClient.post<NoticeDetail>('/notices', payload)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function updateNotice(id: number | string, payload: NoticePayload) {
|
|
28
|
+
return baseHttpClient.put<NoticeDetail>(`/notices/${id}`, payload)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function deleteNotice(id: number | string) {
|
|
32
|
+
return baseHttpClient.delete<{ success: boolean; message: string }>(`/notices/${id}`)
|
|
33
|
+
}
|