verce-vue-test 0.0.98 → 0.0.99
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/views/ForecastInfo/RmbPositionSettlement.vue +1688 -41
- package/src/views/ForecastInfo/api.ts +108 -17
- package/src/views/ForecastInfo/components/FlowInfoPanel.vue +0 -556
- package/src/views/ForecastInfo/components/ForecastInfoPanel.vue +0 -1008
- package/src/views/ForecastInfo/store.ts +0 -758
|
@@ -10,28 +10,463 @@ export default {
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
computed,
|
|
15
|
+
onActivated,
|
|
16
|
+
onBeforeUnmount,
|
|
17
|
+
onDeactivated,
|
|
18
|
+
onMounted,
|
|
19
|
+
reactive,
|
|
20
|
+
ref,
|
|
21
|
+
watch,
|
|
22
|
+
type Component,
|
|
23
|
+
} from 'vue'
|
|
14
24
|
import { onBeforeRouteLeave, useRoute } from 'vue-router'
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
import {
|
|
26
|
+
CircleCheck,
|
|
27
|
+
DataAnalysis,
|
|
28
|
+
EditPen,
|
|
29
|
+
FullScreen,
|
|
30
|
+
Grid,
|
|
31
|
+
Menu,
|
|
32
|
+
Money,
|
|
33
|
+
RefreshLeft,
|
|
34
|
+
Search,
|
|
35
|
+
Tickets,
|
|
36
|
+
WarningFilled,
|
|
37
|
+
} from '@element-plus/icons-vue'
|
|
38
|
+
import type { RangeValue } from '@/components/element-rewrite/NumberRange.vue'
|
|
39
|
+
import { formatThousands } from '@/utils/formatters'
|
|
40
|
+
import forecastInfoApi, {
|
|
41
|
+
type FlowInfoQueryParams,
|
|
42
|
+
type FlowInfoRow,
|
|
43
|
+
type ForecastInfoOperationResult,
|
|
44
|
+
type ForecastInfoQueryParams,
|
|
45
|
+
type ForecastInfoRow,
|
|
46
|
+
type VerificationRequestParams,
|
|
47
|
+
} from './api'
|
|
20
48
|
import { useScopedMessage } from './useScopedMessage'
|
|
21
49
|
import './forecast-info.css'
|
|
22
50
|
|
|
51
|
+
type ForecastInfoCardLayout = 'vertical' | 'horizontal'
|
|
52
|
+
|
|
23
53
|
/**
|
|
24
54
|
* 预报信息页面的布局切换配置。
|
|
25
|
-
*
|
|
55
|
+
* 页面及两个业务卡片共用同一个局部布局状态,点击任一张卡片右上角的图标都会同步切换整体排列。
|
|
26
56
|
*/
|
|
27
57
|
const layoutOptions: Array<{ label: string; value: ForecastInfoCardLayout; icon: Component }> = [
|
|
28
58
|
{ label: '上下卡片', value: 'vertical', icon: Menu },
|
|
29
59
|
{ label: '左右卡片', value: 'horizontal', icon: Grid },
|
|
30
60
|
]
|
|
31
61
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
62
|
+
type ForecastInfoSelectionKey = 'forecastInfo' | 'flowInfo'
|
|
63
|
+
|
|
64
|
+
type TableSelectionState = {
|
|
65
|
+
forecastInfo: ForecastInfoRow[]
|
|
66
|
+
flowInfo: FlowInfoRow[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type ForecastCalculationSummary = {
|
|
70
|
+
forecastAmount: string
|
|
71
|
+
forecastVerifiedAmount: string
|
|
72
|
+
forecastUnverifiedAmount: string
|
|
73
|
+
flowAmount: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function defaultForecastQueryParams(): ForecastInfoQueryParams {
|
|
77
|
+
return {
|
|
78
|
+
busiType: '',
|
|
79
|
+
clientName: '',
|
|
80
|
+
competName: '',
|
|
81
|
+
endTransAmt: '',
|
|
82
|
+
groundBranch: '',
|
|
83
|
+
groundBranchName: '',
|
|
84
|
+
ourAcct: '',
|
|
85
|
+
payChannel: '',
|
|
86
|
+
payDirec: '',
|
|
87
|
+
startTransAmt: '',
|
|
88
|
+
tranDate: '',
|
|
89
|
+
verifyStatus: '',
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function defaultFlowQueryParams(): FlowInfoQueryParams {
|
|
94
|
+
return {
|
|
95
|
+
clientName: '',
|
|
96
|
+
competName: '',
|
|
97
|
+
endTransAmt: '',
|
|
98
|
+
groundBranch: '',
|
|
99
|
+
groundBranchName: '',
|
|
100
|
+
payChannel: '',
|
|
101
|
+
payDirec: '',
|
|
102
|
+
startTransAmt: '',
|
|
103
|
+
tranDate: '',
|
|
104
|
+
verifyStatus: '',
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function createCalculationSummary(): ForecastCalculationSummary {
|
|
109
|
+
return {
|
|
110
|
+
forecastAmount: '0',
|
|
111
|
+
forecastVerifiedAmount: '0',
|
|
112
|
+
forecastUnverifiedAmount: '0',
|
|
113
|
+
flowAmount: '0',
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function parseAmount(value: unknown) {
|
|
118
|
+
const amount = Number(String(value ?? '').trim().replace(/,/g, ''))
|
|
119
|
+
return Number.isFinite(amount) ? amount : 0
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function formatCalculationAmount(value: number) {
|
|
123
|
+
const roundedValue = Math.round((value + Number.EPSILON) * 100) / 100
|
|
124
|
+
if (Object.is(roundedValue, -0)) return '0'
|
|
125
|
+
if (Number.isInteger(roundedValue)) return String(roundedValue)
|
|
126
|
+
return String(roundedValue).replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '')
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function sumAmount<T extends object>(rows: T[], key: keyof T) {
|
|
130
|
+
return rows.reduce((total, row) => total + parseAmount(row[key]), 0)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function normalizeTotalCount<T>(response: { resultList: T[]; totalCount: string | number }) {
|
|
134
|
+
const total = Number(response.totalCount)
|
|
135
|
+
return Number.isFinite(total) ? total : response.resultList.length
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const verificationAllowedStatuses = {
|
|
139
|
+
verify: new Set(['1', '3']),
|
|
140
|
+
cancelVerify: new Set(['2', '3']),
|
|
141
|
+
} satisfies Record<'verify' | 'cancelVerify', Set<string>>
|
|
142
|
+
|
|
143
|
+
function canChangeVerificationStatus(
|
|
144
|
+
row: { verifyStatus?: string },
|
|
145
|
+
action: 'verify' | 'cancelVerify',
|
|
146
|
+
) {
|
|
147
|
+
return verificationAllowedStatuses[action].has(String(row.verifyStatus ?? '').trim())
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function toRequestText(value: unknown) {
|
|
151
|
+
return value === null || value === undefined ? '' : String(value)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* forecast-info 页面专属状态。
|
|
156
|
+
* 三个组件合并后不再需要跨组件容器,改为随路由页面实例创建和销毁的局部状态。
|
|
157
|
+
*/
|
|
158
|
+
function createForecastInfoState() {
|
|
159
|
+
const cardLayout = ref<ForecastInfoCardLayout>('horizontal')
|
|
160
|
+
|
|
161
|
+
const forecastRows = ref<ForecastInfoRow[]>([])
|
|
162
|
+
const forecastTotal = ref(0)
|
|
163
|
+
const forecastPage = ref(1)
|
|
164
|
+
const forecastPageSize = ref(10)
|
|
165
|
+
const forecastLoading = ref(false)
|
|
166
|
+
const forecastQueryParams = ref<ForecastInfoQueryParams>(defaultForecastQueryParams())
|
|
167
|
+
|
|
168
|
+
const flowRows = ref<FlowInfoRow[]>([])
|
|
169
|
+
const flowTotal = ref(0)
|
|
170
|
+
const flowPage = ref(1)
|
|
171
|
+
const flowPageSize = ref(10)
|
|
172
|
+
const flowLoading = ref(false)
|
|
173
|
+
const flowQueryParams = ref<FlowInfoQueryParams>(defaultFlowQueryParams())
|
|
174
|
+
|
|
175
|
+
const tableSelectedRows = ref<TableSelectionState>({
|
|
176
|
+
forecastInfo: [],
|
|
177
|
+
flowInfo: [],
|
|
178
|
+
})
|
|
179
|
+
/** 两张表分别维护重置标识,查询单表时不影响另一张表的勾选。 */
|
|
180
|
+
const forecastSelectionResetKey = ref(0)
|
|
181
|
+
const flowSelectionResetKey = ref(0)
|
|
182
|
+
const forecastSelectedRows = computed(() => tableSelectedRows.value.forecastInfo)
|
|
183
|
+
const flowSelectedRows = computed(() => tableSelectedRows.value.flowInfo)
|
|
184
|
+
const forecastHasSelectedRows = computed(() => forecastSelectedRows.value.length > 0)
|
|
185
|
+
const flowHasSelectedRows = computed(() => flowSelectedRows.value.length > 0)
|
|
186
|
+
const calculationSummary = ref<ForecastCalculationSummary>(createCalculationSummary())
|
|
187
|
+
const calculationDialogVisible = ref(false)
|
|
188
|
+
|
|
189
|
+
/** 两张表各自维护请求代次,避免旧请求交叉覆盖新结果。 */
|
|
190
|
+
let forecastRequestGeneration = 0
|
|
191
|
+
let flowRequestGeneration = 0
|
|
192
|
+
|
|
193
|
+
function setCardLayout(layout: ForecastInfoCardLayout) {
|
|
194
|
+
cardLayout.value = layout
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function setTableSelectedRows(key: 'forecastInfo', rows: ForecastInfoRow[]): void
|
|
198
|
+
function setTableSelectedRows(key: 'flowInfo', rows: FlowInfoRow[]): void
|
|
199
|
+
function setTableSelectedRows(
|
|
200
|
+
key: ForecastInfoSelectionKey,
|
|
201
|
+
rows: ForecastInfoRow[] | FlowInfoRow[],
|
|
202
|
+
) {
|
|
203
|
+
if (key === 'forecastInfo') {
|
|
204
|
+
tableSelectedRows.value.forecastInfo = rows as ForecastInfoRow[]
|
|
205
|
+
return
|
|
206
|
+
}
|
|
207
|
+
tableSelectedRows.value.flowInfo = rows as FlowInfoRow[]
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function clearTableSelectedRows(key: ForecastInfoSelectionKey) {
|
|
211
|
+
if (key === 'forecastInfo') {
|
|
212
|
+
tableSelectedRows.value.forecastInfo = []
|
|
213
|
+
return
|
|
214
|
+
}
|
|
215
|
+
tableSelectedRows.value.flowInfo = []
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function clearAllTableSelectedRows() {
|
|
219
|
+
tableSelectedRows.value.forecastInfo = []
|
|
220
|
+
tableSelectedRows.value.flowInfo = []
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function resetTableSelection(key: ForecastInfoSelectionKey) {
|
|
224
|
+
clearTableSelectedRows(key)
|
|
225
|
+
if (key === 'forecastInfo') {
|
|
226
|
+
forecastSelectionResetKey.value += 1
|
|
227
|
+
return
|
|
228
|
+
}
|
|
229
|
+
flowSelectionResetKey.value += 1
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function resetAllTableSelections() {
|
|
233
|
+
clearAllTableSelectedRows()
|
|
234
|
+
forecastSelectionResetKey.value += 1
|
|
235
|
+
flowSelectionResetKey.value += 1
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function cancelPendingRequests() {
|
|
239
|
+
forecastRequestGeneration += 1
|
|
240
|
+
flowRequestGeneration += 1
|
|
241
|
+
forecastLoading.value = false
|
|
242
|
+
flowLoading.value = false
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function hasTableSelectedRows(key: ForecastInfoSelectionKey) {
|
|
246
|
+
return tableSelectedRows.value[key].length > 0
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function handleForecastSelectionChange(rows: ForecastInfoRow[]) {
|
|
250
|
+
console.log('预报信息 selection-change', rows)
|
|
251
|
+
setTableSelectedRows('forecastInfo', rows)
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function handleFlowSelectionChange(rows: FlowInfoRow[]) {
|
|
255
|
+
console.log('流水信息 selection-change', rows)
|
|
256
|
+
setTableSelectedRows('flowInfo', rows)
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function calculateSelectedSummary(): ForecastInfoOperationResult {
|
|
260
|
+
if (!forecastHasSelectedRows.value) {
|
|
261
|
+
return { success: false, message: '请选择预报信息数据' }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const forecastAmount = sumAmount(forecastSelectedRows.value, 'predAmt')
|
|
265
|
+
const forecastVerifiedAmount = sumAmount(forecastSelectedRows.value, 'verifyAmt')
|
|
266
|
+
const flowAmount = sumAmount(flowSelectedRows.value, 'amt')
|
|
267
|
+
calculationSummary.value = {
|
|
268
|
+
forecastAmount: formatCalculationAmount(forecastAmount),
|
|
269
|
+
forecastVerifiedAmount: formatCalculationAmount(forecastVerifiedAmount),
|
|
270
|
+
forecastUnverifiedAmount: formatCalculationAmount(forecastAmount - forecastVerifiedAmount),
|
|
271
|
+
flowAmount: formatCalculationAmount(flowAmount),
|
|
272
|
+
}
|
|
273
|
+
return { success: true, message: '' }
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function validateVerificationSelection(
|
|
277
|
+
action: 'verify' | 'cancelVerify',
|
|
278
|
+
): ForecastInfoOperationResult {
|
|
279
|
+
const actionLabel = action === 'verify' ? '核销' : '撤销核销'
|
|
280
|
+
|
|
281
|
+
if (!forecastHasSelectedRows.value) {
|
|
282
|
+
if (flowHasSelectedRows.value) {
|
|
283
|
+
return {
|
|
284
|
+
success: false,
|
|
285
|
+
message: `流水信息不能单独${actionLabel},请至少选择一条预报信息数据`,
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return { success: false, message: '请选择预报信息数据' }
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (forecastSelectedRows.value.some((row) => !canChangeVerificationStatus(row, action))) {
|
|
292
|
+
return { success: false, message: `所选预报信息中包含不可${actionLabel}的数据,请重新选择` }
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (flowSelectedRows.value.some((row) => !canChangeVerificationStatus(row, action))) {
|
|
296
|
+
return { success: false, message: `所选流水信息中包含不可${actionLabel}的数据,请重新选择` }
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return { success: true, message: '' }
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function buildVerificationRequestParams(): VerificationRequestParams {
|
|
303
|
+
return {
|
|
304
|
+
predList: forecastSelectedRows.value.map((row) => ({
|
|
305
|
+
predAmt: toRequestText(row.predAmt),
|
|
306
|
+
predRefNo: toRequestText(row.predRefNo),
|
|
307
|
+
verifyAmt: toRequestText(row.verifyAmt),
|
|
308
|
+
verifyStatus: toRequestText(row.verifyStatus),
|
|
309
|
+
})),
|
|
310
|
+
tranList: flowSelectedRows.value.map((row) => ({
|
|
311
|
+
amt: toRequestText(row.amt),
|
|
312
|
+
refNo: toRequestText(row.refNo),
|
|
313
|
+
verifyStatus: toRequestText(row.verifyStatus),
|
|
314
|
+
})),
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function verifySelectedForecastRows() {
|
|
319
|
+
return validateVerificationSelection('verify')
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function cancelVerifySelectedForecastRows() {
|
|
323
|
+
return validateVerificationSelection('cancelVerify')
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function handleCalculationSummary() {
|
|
327
|
+
const result = calculateSelectedSummary()
|
|
328
|
+
if (result.success) calculationDialogVisible.value = true
|
|
329
|
+
return result
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
async function loadForecastInfoList(params: ForecastInfoQueryParams = forecastQueryParams.value) {
|
|
333
|
+
const generation = ++forecastRequestGeneration
|
|
334
|
+
const queryParams = { ...params }
|
|
335
|
+
const pageParams = { pageNum: forecastPage.value, pageSize: forecastPageSize.value }
|
|
336
|
+
forecastLoading.value = true
|
|
337
|
+
forecastQueryParams.value = queryParams
|
|
338
|
+
|
|
339
|
+
try {
|
|
340
|
+
const response = await forecastInfoApi.forecastQueryAPI({ ...queryParams, ...pageParams })
|
|
341
|
+
if (generation !== forecastRequestGeneration) return false
|
|
342
|
+
forecastRows.value = response.resultList.map((item) => ({ ...item }))
|
|
343
|
+
forecastTotal.value = normalizeTotalCount(response)
|
|
344
|
+
resetTableSelection('forecastInfo')
|
|
345
|
+
return true
|
|
346
|
+
} finally {
|
|
347
|
+
if (generation === forecastRequestGeneration) forecastLoading.value = false
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
async function loadFlowInfoList(params: FlowInfoQueryParams = flowQueryParams.value) {
|
|
352
|
+
const generation = ++flowRequestGeneration
|
|
353
|
+
const queryParams = { ...params }
|
|
354
|
+
const pageParams = { pageNum: flowPage.value, pageSize: flowPageSize.value }
|
|
355
|
+
flowLoading.value = true
|
|
356
|
+
flowQueryParams.value = queryParams
|
|
357
|
+
|
|
358
|
+
try {
|
|
359
|
+
const response = await forecastInfoApi.flowQueryAPI({ ...queryParams, ...pageParams })
|
|
360
|
+
if (generation !== flowRequestGeneration) return false
|
|
361
|
+
flowRows.value = response.resultList.map((item) => ({ ...item }))
|
|
362
|
+
flowTotal.value = normalizeTotalCount(response)
|
|
363
|
+
resetTableSelection('flowInfo')
|
|
364
|
+
return true
|
|
365
|
+
} finally {
|
|
366
|
+
if (generation === flowRequestGeneration) flowLoading.value = false
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** 核销完成后固定使用操作发起时的两份查询快照并发刷新。 */
|
|
371
|
+
async function refreshVerificationLists(
|
|
372
|
+
forecastSnapshot: ForecastInfoQueryParams,
|
|
373
|
+
flowSnapshot: FlowInfoQueryParams,
|
|
374
|
+
) {
|
|
375
|
+
const results = await Promise.all([
|
|
376
|
+
loadForecastInfoList(forecastSnapshot),
|
|
377
|
+
loadFlowInfoList(flowSnapshot),
|
|
378
|
+
])
|
|
379
|
+
if (!results.every(Boolean)) return false
|
|
380
|
+
resetAllTableSelections()
|
|
381
|
+
return true
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
async function handleForecastVerify() {
|
|
385
|
+
const validationResult = verifySelectedForecastRows()
|
|
386
|
+
if (!validationResult.success) return validationResult
|
|
387
|
+
const forecastSnapshot = { ...forecastQueryParams.value }
|
|
388
|
+
const flowSnapshot = { ...flowQueryParams.value }
|
|
389
|
+
const response = await forecastInfoApi.verifyAPI(buildVerificationRequestParams())
|
|
390
|
+
if (!(await refreshVerificationLists(forecastSnapshot, flowSnapshot))) return null
|
|
391
|
+
return response
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
async function handleForecastCancelVerify() {
|
|
395
|
+
const validationResult = cancelVerifySelectedForecastRows()
|
|
396
|
+
if (!validationResult.success) return validationResult
|
|
397
|
+
const forecastSnapshot = { ...forecastQueryParams.value }
|
|
398
|
+
const flowSnapshot = { ...flowQueryParams.value }
|
|
399
|
+
const response = await forecastInfoApi.cancelVerifyAPI(buildVerificationRequestParams())
|
|
400
|
+
if (!(await refreshVerificationLists(forecastSnapshot, flowSnapshot))) return null
|
|
401
|
+
return response
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return {
|
|
405
|
+
cardLayout,
|
|
406
|
+
forecastRows,
|
|
407
|
+
forecastTotal,
|
|
408
|
+
forecastPage,
|
|
409
|
+
forecastPageSize,
|
|
410
|
+
forecastLoading,
|
|
411
|
+
forecastQueryParams,
|
|
412
|
+
flowRows,
|
|
413
|
+
flowTotal,
|
|
414
|
+
flowPage,
|
|
415
|
+
flowPageSize,
|
|
416
|
+
flowLoading,
|
|
417
|
+
flowQueryParams,
|
|
418
|
+
tableSelectedRows,
|
|
419
|
+
forecastSelectionResetKey,
|
|
420
|
+
flowSelectionResetKey,
|
|
421
|
+
forecastSelectedRows,
|
|
422
|
+
flowSelectedRows,
|
|
423
|
+
forecastHasSelectedRows,
|
|
424
|
+
flowHasSelectedRows,
|
|
425
|
+
calculationSummary,
|
|
426
|
+
calculationDialogVisible,
|
|
427
|
+
setCardLayout,
|
|
428
|
+
setTableSelectedRows,
|
|
429
|
+
clearTableSelectedRows,
|
|
430
|
+
clearAllTableSelectedRows,
|
|
431
|
+
resetTableSelection,
|
|
432
|
+
resetAllTableSelections,
|
|
433
|
+
cancelPendingRequests,
|
|
434
|
+
hasTableSelectedRows,
|
|
435
|
+
handleForecastSelectionChange,
|
|
436
|
+
handleFlowSelectionChange,
|
|
437
|
+
calculateSelectedSummary,
|
|
438
|
+
buildVerificationRequestParams,
|
|
439
|
+
verifySelectedForecastRows,
|
|
440
|
+
cancelVerifySelectedForecastRows,
|
|
441
|
+
handleCalculationSummary,
|
|
442
|
+
handleForecastVerify,
|
|
443
|
+
handleForecastCancelVerify,
|
|
444
|
+
loadForecastInfoList,
|
|
445
|
+
loadFlowInfoList,
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
const forecastInfoStore = createForecastInfoState()
|
|
450
|
+
const {
|
|
451
|
+
cardLayout,
|
|
452
|
+
forecastRows,
|
|
453
|
+
forecastTotal,
|
|
454
|
+
forecastPage,
|
|
455
|
+
forecastPageSize,
|
|
456
|
+
forecastLoading,
|
|
457
|
+
flowRows,
|
|
458
|
+
flowTotal,
|
|
459
|
+
flowPage,
|
|
460
|
+
flowPageSize,
|
|
461
|
+
flowLoading,
|
|
462
|
+
forecastSelectionResetKey,
|
|
463
|
+
flowSelectionResetKey,
|
|
464
|
+
forecastSelectedRows,
|
|
465
|
+
flowSelectedRows,
|
|
466
|
+
forecastHasSelectedRows,
|
|
467
|
+
calculationSummary,
|
|
468
|
+
calculationDialogVisible,
|
|
469
|
+
} = forecastInfoStore
|
|
35
470
|
|
|
36
471
|
/**
|
|
37
472
|
* 记录创建当前页面实例的路由记录。
|
|
@@ -54,16 +489,459 @@ const pageMessage = useScopedMessage(() => overlayContainer.value)
|
|
|
54
489
|
let isListeningFullscreenChange = false
|
|
55
490
|
let fullscreenOperationGeneration = 0
|
|
56
491
|
|
|
57
|
-
type
|
|
492
|
+
type TableOverlayController = {
|
|
58
493
|
closeTransientOverlays: () => void
|
|
59
494
|
}
|
|
60
495
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
496
|
+
type TableColumn = {
|
|
497
|
+
prop: string
|
|
498
|
+
label: string
|
|
499
|
+
minWidth: number
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const forecastDirectionOptions = [
|
|
503
|
+
{ label: '收入', value: '1' },
|
|
504
|
+
{ label: '支出', value: '2' },
|
|
505
|
+
]
|
|
506
|
+
|
|
507
|
+
const flowDirectionOptions = [
|
|
508
|
+
{ label: '收入', value: '1' },
|
|
509
|
+
{ label: '支出', value: '0' },
|
|
510
|
+
]
|
|
511
|
+
|
|
512
|
+
const forecastStatusOptions = [
|
|
513
|
+
{ label: '待核销', value: '1,3' },
|
|
514
|
+
{ label: '已核销', value: '2' },
|
|
515
|
+
]
|
|
516
|
+
|
|
517
|
+
const flowStatusOptions = [
|
|
518
|
+
{ label: '未核销', value: '1' },
|
|
519
|
+
{ label: '已核销', value: '2' },
|
|
520
|
+
]
|
|
521
|
+
|
|
522
|
+
const businessTypeOptions = [
|
|
523
|
+
{ label: '对公/个人客户收付', value: '1' },
|
|
524
|
+
{ label: '本票签发/兑付', value: '2' },
|
|
525
|
+
{ label: '三省一市汇票签发/兑付', value: '3' },
|
|
526
|
+
{ label: '分行资金调拨', value: '4' },
|
|
527
|
+
{ label: '同业业务', value: '5' },
|
|
528
|
+
{ label: '资金业务', value: '6' },
|
|
529
|
+
{ label: '理财业务', value: '7' },
|
|
530
|
+
{ label: '债券承销业务', value: '8' },
|
|
531
|
+
{ label: '司库业务', value: '9' },
|
|
532
|
+
{ label: '现金出入库', value: '10' },
|
|
533
|
+
{ label: '财政准备金退缴', value: '11' },
|
|
534
|
+
{ label: '同业清算款项收付', value: '12' },
|
|
535
|
+
{ label: '财政零余额业务', value: '13' },
|
|
536
|
+
{ label: '银行承兑汇票', value: '14' },
|
|
537
|
+
{ label: '托管业务', value: '15' },
|
|
538
|
+
{ label: '票据业务', value: '16' },
|
|
539
|
+
]
|
|
540
|
+
|
|
541
|
+
const channelOptions = [
|
|
542
|
+
{ label: '大额支付', value: '1' },
|
|
543
|
+
{ label: '小额支付', value: '2' },
|
|
544
|
+
{ label: '票据交换', value: '3' },
|
|
545
|
+
{ label: '同城支付', value: '4' },
|
|
546
|
+
{ label: '网联支付', value: '7' },
|
|
547
|
+
]
|
|
548
|
+
|
|
549
|
+
const organizationOptions = [
|
|
550
|
+
{ label: '总行营业部', value: 'head-office' },
|
|
551
|
+
{ label: '上海分行', value: 'shanghai' },
|
|
552
|
+
{ label: '深圳分行', value: 'shenzhen' },
|
|
553
|
+
]
|
|
554
|
+
|
|
555
|
+
const groundBranchOptions = [
|
|
556
|
+
{ label: '总行营业部', value: 'head-office' },
|
|
557
|
+
{ label: '上海分行', value: 'shanghai' },
|
|
558
|
+
{ label: '深圳分行', value: 'shenzhen' },
|
|
559
|
+
]
|
|
560
|
+
|
|
561
|
+
const releaseStatusMap: Record<string, string> = {
|
|
562
|
+
'0': '未释放',
|
|
563
|
+
'1': '已释放',
|
|
564
|
+
}
|
|
565
|
+
const flowVerifyStatusMap: Record<string, string> = Object.fromEntries(
|
|
566
|
+
flowStatusOptions.map((option) => [option.value, option.label]),
|
|
567
|
+
)
|
|
568
|
+
const amountColumnProps = new Set(['predAmt', 'verifyAmt'])
|
|
569
|
+
|
|
570
|
+
const forecastColumns: TableColumn[] = [
|
|
571
|
+
{ prop: 'predStatus', label: '预报状态', minWidth: 90 },
|
|
572
|
+
{ prop: 'payDirec', label: '收支方向', minWidth: 90 },
|
|
573
|
+
{ prop: 'predAmt', label: '预报金额', minWidth: 110 },
|
|
574
|
+
{ prop: 'verifyAmt', label: '已核销金额', minWidth: 118 },
|
|
575
|
+
{ prop: 'verifyStatus', label: '核销状态', minWidth: 90 },
|
|
576
|
+
{ prop: 'relsFlag', label: '释放状态', minWidth: 90 },
|
|
577
|
+
{ prop: 'payChannel', label: '支付渠道', minWidth: 96 },
|
|
578
|
+
{ prop: 'clientName', label: '客户名称', minWidth: 100 },
|
|
579
|
+
{ prop: 'clientType', label: '客户类型', minWidth: 96 },
|
|
580
|
+
{ prop: 'competName', label: '交易对手名称', minWidth: 124 },
|
|
581
|
+
{ prop: 'competAcct', label: '交易对手账号', minWidth: 132 },
|
|
582
|
+
{ prop: 'standardName', label: '标准名称', minWidth: 100 },
|
|
583
|
+
{ prop: 'billNo', label: '票号', minWidth: 82 },
|
|
584
|
+
{ prop: 'billDate', label: '出票日期', minWidth: 96 },
|
|
585
|
+
{ prop: 'tranDate', label: '交易日期', minWidth: 96 },
|
|
586
|
+
{ prop: 'busiType', label: '业务类型', minWidth: 96 },
|
|
587
|
+
{ prop: 'predDate', label: '预报日期', minWidth: 96 },
|
|
588
|
+
{ prop: 'predCode', label: '预报人员编号', minWidth: 118 },
|
|
589
|
+
{ prop: 'predRefNo', label: '预报流水号', minWidth: 118 },
|
|
590
|
+
{ prop: 'groundBranch', label: '落地机构', minWidth: 100 },
|
|
591
|
+
{ prop: 'groundBranchCode', label: '机构代码', minWidth: 96 },
|
|
592
|
+
]
|
|
593
|
+
|
|
594
|
+
const flowColumns: TableColumn[] = [
|
|
595
|
+
{ prop: 'amt', label: '金额', minWidth: 96 },
|
|
596
|
+
{ prop: 'billDate', label: '出票日期', minWidth: 96 },
|
|
597
|
+
{ prop: 'billNo', label: '票号', minWidth: 82 },
|
|
598
|
+
{ prop: 'busiType', label: '支付系统业务类型', minWidth: 138 },
|
|
599
|
+
{ prop: 'clientAcct', label: '我方账号', minWidth: 112 },
|
|
600
|
+
{ prop: 'clientName', label: '我方户名', minWidth: 100 },
|
|
601
|
+
{ prop: 'competAcct', label: '对方账号', minWidth: 112 },
|
|
602
|
+
{ prop: 'competName', label: '对方户名', minWidth: 100 },
|
|
603
|
+
{ prop: 'groundBranch', label: '我方机构', minWidth: 100 },
|
|
604
|
+
{ prop: 'payChannel', label: '支付渠道', minWidth: 92 },
|
|
605
|
+
{ prop: 'payDirec', label: '收支方向', minWidth: 90 },
|
|
606
|
+
{ prop: 'refNo', label: '流水号', minWidth: 118 },
|
|
607
|
+
{ prop: 'standardName', label: '标准名称', minWidth: 100 },
|
|
608
|
+
{ prop: 'tranDate', label: '交易日期', minWidth: 96 },
|
|
609
|
+
{ prop: 'tranTimeStamp', label: '清算时间', minWidth: 128 },
|
|
610
|
+
{ prop: 'verifyStatus', label: '核销状态', minWidth: 90 },
|
|
611
|
+
]
|
|
612
|
+
|
|
613
|
+
const defaultForecastForm = () => ({
|
|
614
|
+
tradeDate: '2026-07-07',
|
|
615
|
+
direction: '',
|
|
616
|
+
businessType: '',
|
|
617
|
+
amountRange: [100_000_000, null] as RangeValue,
|
|
618
|
+
channel: '',
|
|
619
|
+
verification: '',
|
|
620
|
+
clientName: '',
|
|
621
|
+
counterpartyName: '',
|
|
622
|
+
ourAccount: '',
|
|
623
|
+
organizationKeyword: '',
|
|
624
|
+
organization: '',
|
|
625
|
+
})
|
|
626
|
+
|
|
627
|
+
const defaultFlowForm = () => ({
|
|
628
|
+
tranDate: '2026-07-07',
|
|
629
|
+
payDirec: '',
|
|
630
|
+
clientName: '',
|
|
631
|
+
competName: '',
|
|
632
|
+
payChannel: '',
|
|
633
|
+
transAmtRange: [100_000_000, null] as RangeValue,
|
|
634
|
+
verifyStatus: '',
|
|
635
|
+
groundBranch: '',
|
|
636
|
+
})
|
|
637
|
+
|
|
638
|
+
const forecastForm = reactive(defaultForecastForm())
|
|
639
|
+
const flowForm = reactive(defaultFlowForm())
|
|
640
|
+
const forecastDrawerVisible = ref(false)
|
|
641
|
+
const flowDrawerVisible = ref(false)
|
|
642
|
+
const modifyDialogVisible = ref(false)
|
|
643
|
+
const modifyWarningVisible = ref(false)
|
|
644
|
+
const modifyWarningMessage = ref('')
|
|
645
|
+
const editingForecastRow = ref<ForecastInfoRow | null>(null)
|
|
646
|
+
const modifyForm = reactive({ tranDate: '', predAmt: '', verifyAmt: '' })
|
|
647
|
+
const forecastTable = ref<TableOverlayController | null>(null)
|
|
648
|
+
const flowTable = ref<TableOverlayController | null>(null)
|
|
649
|
+
const isPageActive = ref(true)
|
|
650
|
+
let forecastQueryGeneration = 0
|
|
651
|
+
let flowQueryGeneration = 0
|
|
652
|
+
let forecastOperationGeneration = 0
|
|
653
|
+
|
|
654
|
+
function toQueryText(value: unknown) {
|
|
655
|
+
if (value === null || value === undefined) return ''
|
|
656
|
+
return String(value).trim()
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
function toBackendDate(value: unknown) {
|
|
660
|
+
return toQueryText(value).replace(/-/g, '')
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function formatSummaryAmount(value: number) {
|
|
664
|
+
return formatThousands(Math.round((value + Number.EPSILON) * 100) / 100, '0')
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const forecastSelectionSummary = computed(() => {
|
|
668
|
+
const summary = forecastSelectedRows.value.reduce(
|
|
669
|
+
(result, row) => {
|
|
670
|
+
const isIncome = row.payDirec === '1'
|
|
671
|
+
const isExpense = row.payDirec === '2'
|
|
672
|
+
if (!isIncome && !isExpense) return result
|
|
673
|
+
|
|
674
|
+
const directionKey = isIncome ? 'income' : 'expense'
|
|
675
|
+
result.pred[directionKey] += parseAmount(row.predAmt)
|
|
676
|
+
result.verified[directionKey] += parseAmount(row.verifyAmt)
|
|
677
|
+
return result
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
pred: { income: 0, expense: 0 },
|
|
681
|
+
verified: { income: 0, expense: 0 },
|
|
682
|
+
},
|
|
683
|
+
)
|
|
684
|
+
|
|
685
|
+
return {
|
|
686
|
+
predIncome: formatSummaryAmount(summary.pred.income),
|
|
687
|
+
predExpense: formatSummaryAmount(summary.pred.expense),
|
|
688
|
+
predNet: formatSummaryAmount(summary.pred.income - summary.pred.expense),
|
|
689
|
+
verifiedIncome: formatSummaryAmount(summary.verified.income),
|
|
690
|
+
verifiedExpense: formatSummaryAmount(summary.verified.expense),
|
|
691
|
+
verifiedNet: formatSummaryAmount(summary.verified.income - summary.verified.expense),
|
|
692
|
+
}
|
|
693
|
+
})
|
|
694
|
+
|
|
695
|
+
const flowNetAmount = computed(() => {
|
|
696
|
+
const amount = flowSelectedRows.value.reduce((total, row) => {
|
|
697
|
+
const normalizedAmount = parseAmount(row.amt)
|
|
698
|
+
if (row.payDirec === '1') return total + normalizedAmount
|
|
699
|
+
if (row.payDirec === '0') return total - normalizedAmount
|
|
700
|
+
return total
|
|
701
|
+
}, 0)
|
|
702
|
+
return formatSummaryAmount(amount)
|
|
703
|
+
})
|
|
704
|
+
|
|
705
|
+
function handleModifyDialogClosed() {
|
|
706
|
+
editingForecastRow.value = null
|
|
707
|
+
modifyForm.tranDate = ''
|
|
708
|
+
modifyForm.predAmt = ''
|
|
709
|
+
modifyForm.verifyAmt = ''
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function closeForecastTransientOverlays() {
|
|
713
|
+
try {
|
|
714
|
+
forecastTable.value?.closeTransientOverlays()
|
|
715
|
+
} catch {
|
|
716
|
+
// 表格浮层清理失败时仍继续关闭其余弹窗。
|
|
717
|
+
}
|
|
718
|
+
forecastDrawerVisible.value = false
|
|
719
|
+
modifyDialogVisible.value = false
|
|
720
|
+
handleModifyDialogClosed()
|
|
721
|
+
modifyWarningVisible.value = false
|
|
722
|
+
modifyWarningMessage.value = ''
|
|
723
|
+
calculationDialogVisible.value = false
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
function closeFlowTransientOverlays() {
|
|
727
|
+
try {
|
|
728
|
+
flowTable.value?.closeTransientOverlays()
|
|
729
|
+
} catch {
|
|
730
|
+
// 表格浮层清理失败时仍继续关闭筛选抽屉。
|
|
731
|
+
}
|
|
732
|
+
flowDrawerVisible.value = false
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
function resetForecastForm() {
|
|
736
|
+
Object.assign(forecastForm, defaultForecastForm())
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
function resetFlowForm() {
|
|
740
|
+
Object.assign(flowForm, defaultFlowForm())
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function buildForecastQueryParams(): ForecastInfoQueryParams {
|
|
744
|
+
const [startTransAmt, endTransAmt] = forecastForm.amountRange
|
|
745
|
+
const selectedOrganization = organizationOptions.find(
|
|
746
|
+
(option) => option.value === forecastForm.organization,
|
|
747
|
+
)
|
|
748
|
+
const organizationName = forecastForm.organizationKeyword || selectedOrganization?.label
|
|
749
|
+
|
|
750
|
+
return {
|
|
751
|
+
busiType: toQueryText(forecastForm.businessType),
|
|
752
|
+
clientName: toQueryText(forecastForm.clientName),
|
|
753
|
+
competName: toQueryText(forecastForm.counterpartyName),
|
|
754
|
+
endTransAmt: toQueryText(endTransAmt),
|
|
755
|
+
groundBranch: toQueryText(forecastForm.organization),
|
|
756
|
+
groundBranchName: toQueryText(organizationName),
|
|
757
|
+
ourAcct: toQueryText(forecastForm.ourAccount),
|
|
758
|
+
payChannel: toQueryText(forecastForm.channel),
|
|
759
|
+
payDirec: toQueryText(forecastForm.direction),
|
|
760
|
+
startTransAmt: toQueryText(startTransAmt),
|
|
761
|
+
tranDate: toBackendDate(forecastForm.tradeDate),
|
|
762
|
+
verifyStatus: toQueryText(forecastForm.verification),
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
function buildFlowQueryParams(): FlowInfoQueryParams {
|
|
767
|
+
const [startTransAmt, endTransAmt] = flowForm.transAmtRange
|
|
768
|
+
const selectedGroundBranch = groundBranchOptions.find(
|
|
769
|
+
(option) => option.value === flowForm.groundBranch,
|
|
770
|
+
)
|
|
771
|
+
|
|
772
|
+
return {
|
|
773
|
+
clientName: toQueryText(flowForm.clientName),
|
|
774
|
+
competName: toQueryText(flowForm.competName),
|
|
775
|
+
endTransAmt: toQueryText(endTransAmt),
|
|
776
|
+
groundBranch: toQueryText(flowForm.groundBranch),
|
|
777
|
+
groundBranchName: toQueryText(selectedGroundBranch?.label),
|
|
778
|
+
payChannel: toQueryText(flowForm.payChannel),
|
|
779
|
+
payDirec: toQueryText(flowForm.payDirec),
|
|
780
|
+
startTransAmt: toQueryText(startTransAmt),
|
|
781
|
+
tranDate: toBackendDate(flowForm.tranDate),
|
|
782
|
+
verifyStatus: toQueryText(flowForm.verifyStatus),
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
async function queryForecastInfo(showSuccessMessage: boolean) {
|
|
787
|
+
const generation = ++forecastQueryGeneration
|
|
788
|
+
forecastPage.value = 1
|
|
789
|
+
forecastInfoStore.resetTableSelection('forecastInfo')
|
|
790
|
+
const params = buildForecastQueryParams()
|
|
791
|
+
console.log('预报信息查询条件', params)
|
|
792
|
+
|
|
793
|
+
try {
|
|
794
|
+
const loaded = await forecastInfoStore.loadForecastInfoList(params)
|
|
795
|
+
if (!loaded || !isPageActive.value || generation !== forecastQueryGeneration) return
|
|
796
|
+
forecastDrawerVisible.value = false
|
|
797
|
+
if (showSuccessMessage) pageMessage.success('已查询预报信息')
|
|
798
|
+
} catch {
|
|
799
|
+
if (isPageActive.value && generation === forecastQueryGeneration) {
|
|
800
|
+
pageMessage.error('预报信息查询失败,请稍后重试')
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
async function queryFlowInfo(showSuccessMessage: boolean) {
|
|
806
|
+
const generation = ++flowQueryGeneration
|
|
807
|
+
flowPage.value = 1
|
|
808
|
+
forecastInfoStore.resetTableSelection('flowInfo')
|
|
809
|
+
const params = buildFlowQueryParams()
|
|
810
|
+
console.log('流水信息查询参数', params)
|
|
811
|
+
|
|
812
|
+
try {
|
|
813
|
+
const loaded = await forecastInfoStore.loadFlowInfoList(params)
|
|
814
|
+
if (!loaded || !isPageActive.value || generation !== flowQueryGeneration) return
|
|
815
|
+
flowDrawerVisible.value = false
|
|
816
|
+
if (showSuccessMessage) pageMessage.success('已查询流水信息')
|
|
817
|
+
} catch {
|
|
818
|
+
if (isPageActive.value && generation === flowQueryGeneration) {
|
|
819
|
+
pageMessage.error('流水信息查询失败,请稍后重试')
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
function handleForecastQuery() {
|
|
825
|
+
return queryForecastInfo(true)
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
function handleFlowQuery() {
|
|
829
|
+
return queryFlowInfo(true)
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function handleForecastReset() {
|
|
833
|
+
resetForecastForm()
|
|
834
|
+
pageMessage.info('预报筛选条件已重置')
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
function handleFlowReset() {
|
|
838
|
+
resetFlowForm()
|
|
839
|
+
pageMessage.info('流水筛选条件已重置')
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/** 已核销且核销金额严格大于预报金额时,才允许修改预报金额。 */
|
|
843
|
+
function canModifyForecast(row: ForecastInfoRow) {
|
|
844
|
+
return (
|
|
845
|
+
toQueryText(row.verifyStatus) === '2'
|
|
846
|
+
&& parseAmount(row.verifyAmt) > parseAmount(row.predAmt)
|
|
847
|
+
)
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
function handleForecastModify(row: ForecastInfoRow) {
|
|
851
|
+
editingForecastRow.value = row
|
|
852
|
+
modifyForm.tranDate = toQueryText(row.tranDate)
|
|
853
|
+
modifyForm.predAmt = toQueryText(row.predAmt)
|
|
854
|
+
modifyForm.verifyAmt = toQueryText(row.verifyAmt)
|
|
855
|
+
modifyDialogVisible.value = true
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function showModifyWarning(message: string) {
|
|
859
|
+
modifyWarningMessage.value = message
|
|
860
|
+
modifyWarningVisible.value = true
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
function handleModifyConfirm() {
|
|
864
|
+
const predAmtText = toQueryText(modifyForm.predAmt).replace(/,/g, '')
|
|
865
|
+
const predAmt = Number(predAmtText)
|
|
866
|
+
const verifyAmt = parseAmount(modifyForm.verifyAmt)
|
|
867
|
+
|
|
868
|
+
if (!predAmtText || !Number.isFinite(predAmt) || predAmt < 0) {
|
|
869
|
+
showModifyWarning('请输入正确的预报金额!')
|
|
870
|
+
return
|
|
871
|
+
}
|
|
872
|
+
if (verifyAmt < predAmt) {
|
|
873
|
+
showModifyWarning('已核销金额不能小于预报金额!')
|
|
874
|
+
return
|
|
875
|
+
}
|
|
876
|
+
if (editingForecastRow.value) editingForecastRow.value.predAmt = predAmtText
|
|
877
|
+
modifyDialogVisible.value = false
|
|
878
|
+
pageMessage.success('预报信息修改成功')
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
function handleModifyDialogVisibilityChange(visible: boolean) {
|
|
882
|
+
if (!visible) handleModifyDialogClosed()
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
function handleCalculationSummary() {
|
|
886
|
+
const result = forecastInfoStore.handleCalculationSummary()
|
|
887
|
+
if (!result.success) pageMessage.warning(result.message)
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
async function handleForecastVerify() {
|
|
891
|
+
const generation = ++forecastOperationGeneration
|
|
892
|
+
try {
|
|
893
|
+
const result = await forecastInfoStore.handleForecastVerify()
|
|
894
|
+
if (!result || !isPageActive.value || generation !== forecastOperationGeneration) return
|
|
895
|
+
pageMessage[result.success ? 'info' : 'warning'](result.message)
|
|
896
|
+
} catch {
|
|
897
|
+
if (isPageActive.value && generation === forecastOperationGeneration) {
|
|
898
|
+
pageMessage.error('预报信息核销失败,请稍后重试')
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
async function handleForecastCancelVerify() {
|
|
904
|
+
const generation = ++forecastOperationGeneration
|
|
905
|
+
try {
|
|
906
|
+
const result = await forecastInfoStore.handleForecastCancelVerify()
|
|
907
|
+
if (!result || !isPageActive.value || generation !== forecastOperationGeneration) return
|
|
908
|
+
pageMessage[result.success ? 'info' : 'warning'](result.message)
|
|
909
|
+
} catch {
|
|
910
|
+
if (isPageActive.value && generation === forecastOperationGeneration) {
|
|
911
|
+
pageMessage.error('撤销核销失败,请稍后重试')
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
function getForecastSequence(index: number) {
|
|
917
|
+
return (forecastPage.value - 1) * forecastPageSize.value + index + 1
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
function getFlowSequence(index: number) {
|
|
921
|
+
return (flowPage.value - 1) * flowPageSize.value + index + 1
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
function handleForecastPaginationChange(_value: { page: number; pageSize: number }) {
|
|
925
|
+
const generation = ++forecastQueryGeneration
|
|
926
|
+
forecastInfoStore.resetTableSelection('forecastInfo')
|
|
927
|
+
void forecastInfoStore.loadForecastInfoList().catch(() => {
|
|
928
|
+
if (isPageActive.value && generation === forecastQueryGeneration) {
|
|
929
|
+
pageMessage.error('预报信息加载失败,请稍后重试')
|
|
930
|
+
}
|
|
931
|
+
})
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/** 流水分页始终从当前 flowForm 重建参数,避免使用过期表单快照。 */
|
|
935
|
+
function handleFlowPaginationChange(_value: { page: number; pageSize: number }) {
|
|
936
|
+
const generation = ++flowQueryGeneration
|
|
937
|
+
forecastInfoStore.resetTableSelection('flowInfo')
|
|
938
|
+
const params = buildFlowQueryParams()
|
|
939
|
+
void forecastInfoStore.loadFlowInfoList(params).catch(() => {
|
|
940
|
+
if (isPageActive.value && generation === flowQueryGeneration) {
|
|
941
|
+
pageMessage.error('流水信息加载失败,请稍后重试')
|
|
942
|
+
}
|
|
943
|
+
})
|
|
944
|
+
}
|
|
67
945
|
|
|
68
946
|
function syncFullscreenState() {
|
|
69
947
|
isFullscreen.value = document.fullscreenElement === pageContainer.value
|
|
@@ -124,11 +1002,14 @@ async function exitPageFullscreen() {
|
|
|
124
1002
|
|
|
125
1003
|
function closePageTransientOverlays() {
|
|
126
1004
|
fullscreenOperationGeneration += 1
|
|
1005
|
+
forecastQueryGeneration += 1
|
|
1006
|
+
flowQueryGeneration += 1
|
|
1007
|
+
forecastOperationGeneration += 1
|
|
127
1008
|
const cleanupTasks = [
|
|
128
1009
|
() => forecastInfoStore.cancelPendingRequests(),
|
|
129
1010
|
() => pageMessage.closeAll(),
|
|
130
|
-
() =>
|
|
131
|
-
() =>
|
|
1011
|
+
() => closeForecastTransientOverlays(),
|
|
1012
|
+
() => closeFlowTransientOverlays(),
|
|
132
1013
|
]
|
|
133
1014
|
|
|
134
1015
|
cleanupTasks.forEach((cleanup) => {
|
|
@@ -151,7 +1032,6 @@ function cleanupBeforeRouteLeave() {
|
|
|
151
1032
|
// 路由离开不能等待浏览器全屏 API,部分 WebView 中该 Promise 可能长期不结束。
|
|
152
1033
|
void exitPageFullscreen().catch(() => undefined)
|
|
153
1034
|
}
|
|
154
|
-
|
|
155
1035
|
}
|
|
156
1036
|
|
|
157
1037
|
/**
|
|
@@ -162,10 +1042,12 @@ watch(
|
|
|
162
1042
|
isCurrentRoute,
|
|
163
1043
|
(active) => {
|
|
164
1044
|
if (active) {
|
|
1045
|
+
isPageActive.value = true
|
|
165
1046
|
startFullscreenListener()
|
|
166
1047
|
return
|
|
167
1048
|
}
|
|
168
1049
|
|
|
1050
|
+
isPageActive.value = false
|
|
169
1051
|
stopFullscreenListener()
|
|
170
1052
|
closePageTransientOverlays()
|
|
171
1053
|
void exitPageFullscreen().catch(() => undefined)
|
|
@@ -173,15 +1055,24 @@ watch(
|
|
|
173
1055
|
{ flush: 'sync' },
|
|
174
1056
|
)
|
|
175
1057
|
|
|
176
|
-
onMounted(
|
|
177
|
-
|
|
1058
|
+
onMounted(() => {
|
|
1059
|
+
startFullscreenListener()
|
|
1060
|
+
void queryForecastInfo(false)
|
|
1061
|
+
void queryFlowInfo(false)
|
|
1062
|
+
})
|
|
1063
|
+
onActivated(() => {
|
|
1064
|
+
isPageActive.value = true
|
|
1065
|
+
startFullscreenListener()
|
|
1066
|
+
})
|
|
178
1067
|
onBeforeRouteLeave(cleanupBeforeRouteLeave)
|
|
179
1068
|
onDeactivated(() => {
|
|
1069
|
+
isPageActive.value = false
|
|
180
1070
|
stopFullscreenListener()
|
|
181
1071
|
closePageTransientOverlays()
|
|
182
1072
|
void exitPageFullscreen().catch(() => undefined)
|
|
183
1073
|
})
|
|
184
1074
|
onBeforeUnmount(() => {
|
|
1075
|
+
isPageActive.value = false
|
|
185
1076
|
stopFullscreenListener()
|
|
186
1077
|
closePageTransientOverlays()
|
|
187
1078
|
void exitPageFullscreen().catch(() => undefined)
|
|
@@ -202,24 +1093,780 @@ onBeforeUnmount(() => {
|
|
|
202
1093
|
>
|
|
203
1094
|
<!-- 固定定位且不参与网格布局,专门承接本页抽屉和弹窗。 -->
|
|
204
1095
|
<div ref="overlayContainer" class="forecast-info-overlay-host"></div>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
1096
|
+
<section class="forecast-info-card" aria-labelledby="forecast-info-title">
|
|
1097
|
+
<!-- 卡片标题与布局切换;两个面板使用相同的切换事件。 -->
|
|
1098
|
+
<header class="forecast-info-card__header">
|
|
1099
|
+
<h2 id="forecast-info-title" class="forecast-info-card__title">预报信息</h2>
|
|
1100
|
+
<div class="forecast-info-header-actions">
|
|
1101
|
+
<el-tooltip
|
|
1102
|
+
:content="isFullscreen ? '退出全屏' : '全屏显示'"
|
|
1103
|
+
placement="top"
|
|
1104
|
+
:show-after="200"
|
|
1105
|
+
:append-to="overlayContainer || undefined"
|
|
1106
|
+
>
|
|
1107
|
+
<button
|
|
1108
|
+
type="button"
|
|
1109
|
+
class="forecast-info-fullscreen-button"
|
|
1110
|
+
:class="{ 'is-active': isFullscreen }"
|
|
1111
|
+
:aria-label="isFullscreen ? '退出全屏' : '全屏显示当前页面'"
|
|
1112
|
+
:aria-pressed="isFullscreen"
|
|
1113
|
+
@click="toggleFullscreen"
|
|
1114
|
+
>
|
|
1115
|
+
<el-icon><FullScreen /></el-icon>
|
|
1116
|
+
</button>
|
|
1117
|
+
</el-tooltip>
|
|
1118
|
+
<div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换预报信息卡片排列方式">
|
|
1119
|
+
<el-tooltip
|
|
1120
|
+
v-for="option in layoutOptions"
|
|
1121
|
+
:key="option.value"
|
|
1122
|
+
:content="option.label"
|
|
1123
|
+
placement="top"
|
|
1124
|
+
:show-after="200"
|
|
1125
|
+
:append-to="overlayContainer || undefined"
|
|
1126
|
+
>
|
|
1127
|
+
<button
|
|
1128
|
+
type="button"
|
|
1129
|
+
class="forecast-info-layout-switch__button"
|
|
1130
|
+
:class="{ 'is-active': cardLayout === option.value }"
|
|
1131
|
+
role="radio"
|
|
1132
|
+
:aria-label="option.label"
|
|
1133
|
+
:aria-checked="cardLayout === option.value"
|
|
1134
|
+
@click="forecastInfoStore.setCardLayout(option.value)"
|
|
1135
|
+
>
|
|
1136
|
+
<el-icon>
|
|
1137
|
+
<component :is="option.icon" />
|
|
1138
|
+
</el-icon>
|
|
1139
|
+
</button>
|
|
1140
|
+
</el-tooltip>
|
|
1141
|
+
</div>
|
|
1142
|
+
</div>
|
|
1143
|
+
</header>
|
|
1144
|
+
|
|
1145
|
+
<!-- 水平布局仅显示交易日期,其他筛选统一放在抽屉;垂直布局额外显示收支方向。 -->
|
|
1146
|
+
<div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
|
|
1147
|
+
<div class="forecast-info-filter__grid">
|
|
1148
|
+
<label class="forecast-info-filter__item">
|
|
1149
|
+
<span>交易日期</span>
|
|
1150
|
+
<el-date-picker
|
|
1151
|
+
v-model="forecastForm.tradeDate"
|
|
1152
|
+
:append-to="overlayContainer || undefined"
|
|
1153
|
+
size="small"
|
|
1154
|
+
type="date"
|
|
1155
|
+
placeholder="请选择日期"
|
|
1156
|
+
format="YYYY-MM-DD"
|
|
1157
|
+
value-format="YYYY-MM-DD"
|
|
1158
|
+
:clearable="false"
|
|
1159
|
+
/>
|
|
1160
|
+
</label>
|
|
1161
|
+
|
|
1162
|
+
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1163
|
+
<span>收支方向</span>
|
|
1164
|
+
<el-select
|
|
1165
|
+
v-model="forecastForm.direction"
|
|
1166
|
+
:append-to="overlayContainer || undefined"
|
|
1167
|
+
:persistent="false"
|
|
1168
|
+
size="small"
|
|
1169
|
+
placeholder="请选择"
|
|
1170
|
+
clearable
|
|
1171
|
+
>
|
|
1172
|
+
<el-option v-for="option in forecastDirectionOptions" :key="option.value" v-bind="option" />
|
|
1173
|
+
</el-select>
|
|
1174
|
+
</label>
|
|
1175
|
+
</div>
|
|
1176
|
+
|
|
1177
|
+
<div class="forecast-info-filter__actions">
|
|
1178
|
+
<el-button type="primary" size="small" :icon="Search" @click="handleForecastQuery">查询</el-button>
|
|
1179
|
+
<el-button size="small" @click="handleForecastReset">重置</el-button>
|
|
1180
|
+
<el-button size="small" @click="forecastDrawerVisible = true">更多筛选</el-button>
|
|
1181
|
+
</div>
|
|
1182
|
+
</div>
|
|
1183
|
+
|
|
1184
|
+
<!-- 表格区域占据卡片剩余高度,ElTablePro 管理分页和工具栏。 -->
|
|
1185
|
+
<section class="forecast-info-table-area" aria-label="预报信息列表">
|
|
1186
|
+
<div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
1187
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1188
|
+
<span>预报收入总金额(元)</span>
|
|
1189
|
+
<strong>{{ forecastSelectionSummary.predIncome }}</strong>
|
|
1190
|
+
</div>
|
|
1191
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1192
|
+
<span>预报支出总金额(元)</span>
|
|
1193
|
+
<strong>{{ forecastSelectionSummary.predExpense }}</strong>
|
|
1194
|
+
</div>
|
|
1195
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1196
|
+
<span>预报轧差金额</span>
|
|
1197
|
+
<strong>{{ forecastSelectionSummary.predNet }}</strong>
|
|
1198
|
+
</div>
|
|
1199
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1200
|
+
<span>核销收入总金额</span>
|
|
1201
|
+
<strong>{{ forecastSelectionSummary.verifiedIncome }}</strong>
|
|
1202
|
+
</div>
|
|
1203
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1204
|
+
<span>核销支出总金额</span>
|
|
1205
|
+
<strong>{{ forecastSelectionSummary.verifiedExpense }}</strong>
|
|
1206
|
+
</div>
|
|
1207
|
+
<div class="forecast-info-forecast-summary__item">
|
|
1208
|
+
<span>核销轧差金额</span>
|
|
1209
|
+
<strong>{{ forecastSelectionSummary.verifiedNet }}</strong>
|
|
1210
|
+
</div>
|
|
1211
|
+
</div>
|
|
1212
|
+
<ElTablePro
|
|
1213
|
+
ref="forecastTable"
|
|
1214
|
+
v-model:page="forecastPage"
|
|
1215
|
+
v-model:page-size="forecastPageSize"
|
|
1216
|
+
:data="forecastRows"
|
|
1217
|
+
:total="forecastTotal"
|
|
1218
|
+
v-loading="forecastLoading"
|
|
1219
|
+
table-key="rmb-position-settlement-forecast-info"
|
|
1220
|
+
:selection-reset-key="forecastSelectionResetKey"
|
|
1221
|
+
:append-to="overlayContainer || undefined"
|
|
1222
|
+
isolate-overlays
|
|
1223
|
+
row-key="predRefNo"
|
|
1224
|
+
border
|
|
1225
|
+
stripe
|
|
1226
|
+
size="small"
|
|
1227
|
+
table-layout="auto"
|
|
1228
|
+
height="100%"
|
|
1229
|
+
class="forecast-info-table forecast-info-table--forecast"
|
|
1230
|
+
pagination-size="small"
|
|
1231
|
+
@selection-change="forecastInfoStore.handleForecastSelectionChange"
|
|
1232
|
+
@pagination-change="handleForecastPaginationChange"
|
|
1233
|
+
>
|
|
1234
|
+
<!-- 批量操作依赖页面局部的跨表多选状态;核销规则由页面状态统一校验。 -->
|
|
1235
|
+
<template #toolbar>
|
|
1236
|
+
<el-button
|
|
1237
|
+
type="primary"
|
|
1238
|
+
plain
|
|
1239
|
+
size="small"
|
|
1240
|
+
:icon="DataAnalysis"
|
|
1241
|
+
:disabled="!forecastHasSelectedRows"
|
|
1242
|
+
@click="handleCalculationSummary"
|
|
1243
|
+
>
|
|
1244
|
+
匡算
|
|
1245
|
+
</el-button>
|
|
1246
|
+
<el-button
|
|
1247
|
+
type="success"
|
|
1248
|
+
plain
|
|
1249
|
+
size="small"
|
|
1250
|
+
:icon="CircleCheck"
|
|
1251
|
+
:disabled="!forecastHasSelectedRows"
|
|
1252
|
+
@click="handleForecastVerify"
|
|
1253
|
+
>
|
|
1254
|
+
核销
|
|
1255
|
+
</el-button>
|
|
1256
|
+
<el-button
|
|
1257
|
+
type="danger"
|
|
1258
|
+
plain
|
|
1259
|
+
size="small"
|
|
1260
|
+
:icon="RefreshLeft"
|
|
1261
|
+
:disabled="!forecastHasSelectedRows"
|
|
1262
|
+
@click="handleForecastCancelVerify"
|
|
1263
|
+
>
|
|
1264
|
+
撤销核销
|
|
1265
|
+
</el-button>
|
|
1266
|
+
</template>
|
|
1267
|
+
|
|
1268
|
+
<!-- 勾选结果通过 selection-change 写入页面局部状态,供匡算与核销跨表复用。 -->
|
|
1269
|
+
<el-table-column
|
|
1270
|
+
type="selection"
|
|
1271
|
+
column-key="selection"
|
|
1272
|
+
width="46"
|
|
1273
|
+
align="center"
|
|
1274
|
+
fixed="left"
|
|
1275
|
+
disabled
|
|
1276
|
+
/>
|
|
1277
|
+
<!-- 序号随分页连续递增,不写入后端行数据。 -->
|
|
1278
|
+
<el-table-column
|
|
1279
|
+
type="index"
|
|
1280
|
+
column-key="sequence"
|
|
1281
|
+
label="序号"
|
|
1282
|
+
width="62"
|
|
1283
|
+
align="center"
|
|
1284
|
+
fixed="left"
|
|
1285
|
+
:index="getForecastSequence"
|
|
1286
|
+
/>
|
|
1287
|
+
<!-- 动态业务列中,金额使用千分位展示且右对齐。 -->
|
|
1288
|
+
<el-table-column
|
|
1289
|
+
v-for="column in forecastColumns"
|
|
1290
|
+
:key="column.prop"
|
|
1291
|
+
:prop="column.prop"
|
|
1292
|
+
:label="column.label"
|
|
1293
|
+
:min-width="column.minWidth"
|
|
1294
|
+
:align="amountColumnProps.has(column.prop) ? 'right' : 'center'"
|
|
1295
|
+
>
|
|
1296
|
+
<template v-if="amountColumnProps.has(column.prop)" #default="{ row }">
|
|
1297
|
+
{{ formatThousands(row[column.prop]) }}
|
|
1298
|
+
</template>
|
|
1299
|
+
<template v-else-if="column.prop === 'relsFlag'" #default="{ row }">
|
|
1300
|
+
{{ releaseStatusMap[String(row.relsFlag)] ?? row.relsFlag ?? '-' }}
|
|
1301
|
+
</template>
|
|
1302
|
+
</el-table-column>
|
|
1303
|
+
<!-- 已核销且核销金额大于预报金额时才展示修改入口。 -->
|
|
1304
|
+
<el-table-column
|
|
1305
|
+
prop="operation"
|
|
1306
|
+
column-key="operation"
|
|
1307
|
+
label="操作"
|
|
1308
|
+
:min-width="72"
|
|
1309
|
+
align="center"
|
|
1310
|
+
fixed="right"
|
|
1311
|
+
>
|
|
1312
|
+
<template #default="{ row }">
|
|
1313
|
+
<div class="forecast-info-row-actions">
|
|
1314
|
+
<el-button
|
|
1315
|
+
v-if="canModifyForecast(row)"
|
|
1316
|
+
type="primary"
|
|
1317
|
+
link
|
|
1318
|
+
size="small"
|
|
1319
|
+
:icon="EditPen"
|
|
1320
|
+
@click="handleForecastModify(row)"
|
|
1321
|
+
>
|
|
1322
|
+
修改
|
|
1323
|
+
</el-button>
|
|
1324
|
+
</div>
|
|
1325
|
+
</template>
|
|
1326
|
+
</el-table-column>
|
|
1327
|
+
<template #empty>
|
|
1328
|
+
<el-empty description="暂无数据" :image-size="54" />
|
|
1329
|
+
</template>
|
|
1330
|
+
</ElTablePro>
|
|
1331
|
+
</section>
|
|
1332
|
+
|
|
1333
|
+
<!-- 匡算结果来自页面局部状态,包含所选预报与流水数据的共享汇总。 -->
|
|
1334
|
+
<el-dialog
|
|
1335
|
+
v-if="calculationDialogVisible"
|
|
1336
|
+
v-model="calculationDialogVisible"
|
|
1337
|
+
width="520px"
|
|
1338
|
+
:append-to="overlayContainer || undefined"
|
|
1339
|
+
destroy-on-close
|
|
1340
|
+
:lock-scroll="false"
|
|
1341
|
+
class="forecast-info-calculation-dialog"
|
|
1342
|
+
>
|
|
1343
|
+
<template #header>
|
|
1344
|
+
<div class="forecast-info-calculation-dialog__title">
|
|
1345
|
+
<span class="forecast-info-calculation-dialog__title-bar"></span>
|
|
1346
|
+
<span>汇总</span>
|
|
1347
|
+
</div>
|
|
1348
|
+
</template>
|
|
1349
|
+
|
|
1350
|
+
<div class="forecast-info-calculation-summary-card">
|
|
1351
|
+
<section class="forecast-info-calculation-section">
|
|
1352
|
+
<h3 class="forecast-info-calculation-section__title">
|
|
1353
|
+
<span class="forecast-info-calculation-section__icon">
|
|
1354
|
+
<el-icon><Tickets /></el-icon>
|
|
1355
|
+
</span>
|
|
1356
|
+
<span>预报信息汇总</span>
|
|
1357
|
+
</h3>
|
|
1358
|
+
|
|
1359
|
+
<div class="forecast-info-calculation-metrics">
|
|
1360
|
+
<div class="forecast-info-calculation-metric">
|
|
1361
|
+
<span class="forecast-info-calculation-metric__label">预报金额</span>
|
|
1362
|
+
<strong class="forecast-info-calculation-metric__value">{{ calculationSummary.forecastAmount }}</strong>
|
|
1363
|
+
<span class="forecast-info-calculation-metric__unit">(元)</span>
|
|
1364
|
+
</div>
|
|
1365
|
+
<div class="forecast-info-calculation-metric">
|
|
1366
|
+
<span class="forecast-info-calculation-metric__label">预报已核销金额</span>
|
|
1367
|
+
<strong class="forecast-info-calculation-metric__value">{{ calculationSummary.forecastVerifiedAmount }}</strong>
|
|
1368
|
+
<span class="forecast-info-calculation-metric__unit">(元)</span>
|
|
1369
|
+
</div>
|
|
1370
|
+
<div class="forecast-info-calculation-metric">
|
|
1371
|
+
<span class="forecast-info-calculation-metric__label">预报未核销金额</span>
|
|
1372
|
+
<strong class="forecast-info-calculation-metric__value">
|
|
1373
|
+
{{ calculationSummary.forecastUnverifiedAmount }}
|
|
1374
|
+
</strong>
|
|
1375
|
+
<span class="forecast-info-calculation-metric__unit">(元)</span>
|
|
1376
|
+
</div>
|
|
1377
|
+
</div>
|
|
1378
|
+
</section>
|
|
1379
|
+
|
|
1380
|
+
<section class="forecast-info-calculation-section">
|
|
1381
|
+
<h3 class="forecast-info-calculation-section__title">
|
|
1382
|
+
<span class="forecast-info-calculation-section__icon">
|
|
1383
|
+
<el-icon><Money /></el-icon>
|
|
1384
|
+
</span>
|
|
1385
|
+
<span>交易信息汇总</span>
|
|
1386
|
+
</h3>
|
|
1387
|
+
|
|
1388
|
+
<div class="forecast-info-calculation-metrics">
|
|
1389
|
+
<div class="forecast-info-calculation-metric">
|
|
1390
|
+
<span class="forecast-info-calculation-metric__label">交易金额</span>
|
|
1391
|
+
<strong class="forecast-info-calculation-metric__value">{{ calculationSummary.flowAmount }}</strong>
|
|
1392
|
+
<span class="forecast-info-calculation-metric__unit">(元)</span>
|
|
1393
|
+
</div>
|
|
1394
|
+
</div>
|
|
1395
|
+
</section>
|
|
1396
|
+
</div>
|
|
1397
|
+
|
|
1398
|
+
<template #footer>
|
|
1399
|
+
<div class="forecast-info-calculation-dialog__footer">
|
|
1400
|
+
<el-button type="primary" size="large" @click="calculationDialogVisible = false">确定</el-button>
|
|
1401
|
+
</div>
|
|
1402
|
+
</template>
|
|
1403
|
+
</el-dialog>
|
|
1404
|
+
|
|
1405
|
+
<!-- 修改弹窗仅编辑预报金额,其他字段作为业务约束的只读依据。 -->
|
|
1406
|
+
<el-dialog
|
|
1407
|
+
v-if="modifyDialogVisible"
|
|
1408
|
+
v-model="modifyDialogVisible"
|
|
1409
|
+
title="修改"
|
|
1410
|
+
width="520px"
|
|
1411
|
+
:append-to="overlayContainer || undefined"
|
|
1412
|
+
destroy-on-close
|
|
1413
|
+
:lock-scroll="false"
|
|
1414
|
+
:close-on-click-modal="false"
|
|
1415
|
+
class="forecast-info-modify-dialog"
|
|
1416
|
+
@update:model-value="handleModifyDialogVisibilityChange"
|
|
1417
|
+
>
|
|
1418
|
+
<div class="forecast-info-modify-dialog__section-title">
|
|
1419
|
+
<el-icon><EditPen /></el-icon>
|
|
1420
|
+
<span>修改记录</span>
|
|
1421
|
+
</div>
|
|
1422
|
+
|
|
1423
|
+
<el-form class="forecast-info-modify-form" label-width="104px" size="small">
|
|
1424
|
+
<el-form-item label="交易日期">
|
|
1425
|
+
<el-input v-model="modifyForm.tranDate" disabled />
|
|
1426
|
+
</el-form-item>
|
|
1427
|
+
<el-form-item label="预报金额">
|
|
1428
|
+
<el-input v-model="modifyForm.predAmt" inputmode="decimal" clearable />
|
|
1429
|
+
</el-form-item>
|
|
1430
|
+
<el-form-item label="已核销金额">
|
|
1431
|
+
<el-input v-model="modifyForm.verifyAmt" disabled />
|
|
1432
|
+
</el-form-item>
|
|
1433
|
+
</el-form>
|
|
1434
|
+
|
|
1435
|
+
<template #footer>
|
|
1436
|
+
<div class="forecast-info-modify-dialog__footer">
|
|
1437
|
+
<el-button type="primary" size="small" @click="handleModifyConfirm">确认</el-button>
|
|
1438
|
+
<el-button size="small" @click="modifyDialogVisible = false">关闭</el-button>
|
|
1439
|
+
</div>
|
|
1440
|
+
</template>
|
|
1441
|
+
</el-dialog>
|
|
1442
|
+
|
|
1443
|
+
<!-- 修改校验提示也挂到本页容器,KeepAlive 停用时可同步销毁。 -->
|
|
1444
|
+
<el-dialog
|
|
1445
|
+
v-if="modifyWarningVisible"
|
|
1446
|
+
v-model="modifyWarningVisible"
|
|
1447
|
+
title="提示"
|
|
1448
|
+
width="420px"
|
|
1449
|
+
:append-to="overlayContainer || undefined"
|
|
1450
|
+
destroy-on-close
|
|
1451
|
+
:lock-scroll="false"
|
|
1452
|
+
class="forecast-info-modify-warning-dialog"
|
|
1453
|
+
>
|
|
1454
|
+
<div class="forecast-info-modify-warning-dialog__content">
|
|
1455
|
+
<el-icon><WarningFilled /></el-icon>
|
|
1456
|
+
<span>{{ modifyWarningMessage }}</span>
|
|
1457
|
+
</div>
|
|
1458
|
+
|
|
1459
|
+
<template #footer>
|
|
1460
|
+
<el-button type="primary" @click="modifyWarningVisible = false">确定</el-button>
|
|
1461
|
+
</template>
|
|
1462
|
+
</el-dialog>
|
|
1463
|
+
|
|
1464
|
+
<!-- 更多筛选抽屉包含完整预报查询条件,提交时仍走同一套参数映射。 -->
|
|
1465
|
+
<el-drawer
|
|
1466
|
+
v-if="forecastDrawerVisible"
|
|
1467
|
+
v-model="forecastDrawerVisible"
|
|
1468
|
+
title="预报更多筛选"
|
|
1469
|
+
size="520px"
|
|
1470
|
+
:append-to="overlayContainer || undefined"
|
|
1471
|
+
destroy-on-close
|
|
1472
|
+
:lock-scroll="false"
|
|
1473
|
+
class="forecast-info-filter-drawer"
|
|
1474
|
+
>
|
|
1475
|
+
<div class="forecast-info-filter__drawer-grid">
|
|
1476
|
+
<label class="forecast-info-filter__item">
|
|
1477
|
+
<span>交易日期</span>
|
|
1478
|
+
<el-date-picker
|
|
1479
|
+
v-model="forecastForm.tradeDate"
|
|
1480
|
+
:append-to="overlayContainer || undefined"
|
|
1481
|
+
size="small"
|
|
1482
|
+
type="date"
|
|
1483
|
+
placeholder="请选择日期"
|
|
1484
|
+
format="YYYY-MM-DD"
|
|
1485
|
+
value-format="YYYY-MM-DD"
|
|
1486
|
+
:clearable="false"
|
|
1487
|
+
/>
|
|
1488
|
+
</label>
|
|
1489
|
+
|
|
1490
|
+
<label class="forecast-info-filter__item">
|
|
1491
|
+
<span>收支方向</span>
|
|
1492
|
+
<el-select
|
|
1493
|
+
v-model="forecastForm.direction"
|
|
1494
|
+
:append-to="overlayContainer || undefined"
|
|
1495
|
+
:persistent="false"
|
|
1496
|
+
size="small"
|
|
1497
|
+
placeholder="请选择"
|
|
1498
|
+
clearable
|
|
1499
|
+
>
|
|
1500
|
+
<el-option v-for="option in forecastDirectionOptions" :key="option.value" v-bind="option" />
|
|
1501
|
+
</el-select>
|
|
1502
|
+
</label>
|
|
1503
|
+
|
|
1504
|
+
<label class="forecast-info-filter__item">
|
|
1505
|
+
<span>业务类型</span>
|
|
1506
|
+
<el-select
|
|
1507
|
+
v-model="forecastForm.businessType"
|
|
1508
|
+
:append-to="overlayContainer || undefined"
|
|
1509
|
+
:persistent="false"
|
|
1510
|
+
size="small"
|
|
1511
|
+
placeholder="请选择"
|
|
1512
|
+
clearable
|
|
1513
|
+
>
|
|
1514
|
+
<el-option v-for="option in businessTypeOptions" :key="option.value" v-bind="option" />
|
|
1515
|
+
</el-select>
|
|
1516
|
+
</label>
|
|
1517
|
+
|
|
1518
|
+
<label class="forecast-info-filter__item forecast-info-filter__item--range">
|
|
1519
|
+
<span>预报金额(万元)</span>
|
|
1520
|
+
<NumberRange
|
|
1521
|
+
v-model="forecastForm.amountRange"
|
|
1522
|
+
class="forecast-info-filter__number-range"
|
|
1523
|
+
separator="至"
|
|
1524
|
+
min-placeholder="最小值"
|
|
1525
|
+
max-placeholder="最大值"
|
|
1526
|
+
:precision="2"
|
|
1527
|
+
size="small"
|
|
1528
|
+
unit="万元"
|
|
1529
|
+
/>
|
|
1530
|
+
</label>
|
|
1531
|
+
|
|
1532
|
+
<label class="forecast-info-filter__item">
|
|
1533
|
+
<span>支付渠道</span>
|
|
1534
|
+
<el-select
|
|
1535
|
+
v-model="forecastForm.channel"
|
|
1536
|
+
:append-to="overlayContainer || undefined"
|
|
1537
|
+
:persistent="false"
|
|
1538
|
+
size="small"
|
|
1539
|
+
placeholder="请选择"
|
|
1540
|
+
clearable
|
|
1541
|
+
>
|
|
1542
|
+
<el-option v-for="option in channelOptions" :key="option.value" v-bind="option" />
|
|
1543
|
+
</el-select>
|
|
1544
|
+
</label>
|
|
1545
|
+
|
|
1546
|
+
<label class="forecast-info-filter__item">
|
|
1547
|
+
<span>核销状态</span>
|
|
1548
|
+
<el-select
|
|
1549
|
+
v-model="forecastForm.verification"
|
|
1550
|
+
:append-to="overlayContainer || undefined"
|
|
1551
|
+
:persistent="false"
|
|
1552
|
+
size="small"
|
|
1553
|
+
placeholder="请选择"
|
|
1554
|
+
clearable
|
|
1555
|
+
>
|
|
1556
|
+
<el-option v-for="option in forecastStatusOptions" :key="option.value" v-bind="option" />
|
|
1557
|
+
</el-select>
|
|
1558
|
+
</label>
|
|
1559
|
+
|
|
1560
|
+
<label class="forecast-info-filter__item">
|
|
1561
|
+
<span>客户名</span>
|
|
1562
|
+
<el-input v-model="forecastForm.clientName" size="small" placeholder="请输入" clearable />
|
|
1563
|
+
</label>
|
|
1564
|
+
|
|
1565
|
+
<label class="forecast-info-filter__item">
|
|
1566
|
+
<span>对手名</span>
|
|
1567
|
+
<el-input v-model="forecastForm.counterpartyName" size="small" placeholder="请输入" clearable />
|
|
1568
|
+
</label>
|
|
1569
|
+
|
|
1570
|
+
<label class="forecast-info-filter__item">
|
|
1571
|
+
<span>我方账号</span>
|
|
1572
|
+
<el-input v-model="forecastForm.ourAccount" size="small" placeholder="请输入" clearable />
|
|
1573
|
+
</label>
|
|
1574
|
+
|
|
1575
|
+
<label class="forecast-info-filter__item">
|
|
1576
|
+
<span>机构关键字</span>
|
|
1577
|
+
<el-input v-model="forecastForm.organizationKeyword" size="small" placeholder="请输入" clearable />
|
|
1578
|
+
</label>
|
|
1579
|
+
|
|
1580
|
+
<label class="forecast-info-filter__item">
|
|
1581
|
+
<span>机构</span>
|
|
1582
|
+
<el-select
|
|
1583
|
+
v-model="forecastForm.organization"
|
|
1584
|
+
:append-to="overlayContainer || undefined"
|
|
1585
|
+
:persistent="false"
|
|
1586
|
+
size="small"
|
|
1587
|
+
placeholder="请选择"
|
|
1588
|
+
clearable
|
|
1589
|
+
>
|
|
1590
|
+
<el-option v-for="option in organizationOptions" :key="option.value" v-bind="option" />
|
|
1591
|
+
</el-select>
|
|
1592
|
+
</label>
|
|
1593
|
+
</div>
|
|
1594
|
+
|
|
1595
|
+
<template #footer>
|
|
1596
|
+
<div class="forecast-info-filter__drawer-actions">
|
|
1597
|
+
<el-button size="small" @click="forecastDrawerVisible = false">取消</el-button>
|
|
1598
|
+
<el-button size="small" @click="handleForecastReset">重置</el-button>
|
|
1599
|
+
<el-button type="primary" size="small" :icon="Search" @click="handleForecastQuery">查询</el-button>
|
|
1600
|
+
</div>
|
|
1601
|
+
</template>
|
|
1602
|
+
</el-drawer>
|
|
1603
|
+
</section>
|
|
1604
|
+
<section class="forecast-info-card" aria-labelledby="flow-info-title">
|
|
1605
|
+
<!-- 卡片标题和页面级布局切换;操作会同步影响预报卡片。 -->
|
|
1606
|
+
<header class="forecast-info-card__header">
|
|
1607
|
+
<h2 id="flow-info-title" class="forecast-info-card__title">流水信息</h2>
|
|
1608
|
+
<div class="forecast-info-header-actions">
|
|
1609
|
+
<el-tooltip
|
|
1610
|
+
:content="isFullscreen ? '退出全屏' : '全屏显示'"
|
|
1611
|
+
placement="top"
|
|
1612
|
+
:show-after="200"
|
|
1613
|
+
:append-to="overlayContainer || undefined"
|
|
1614
|
+
>
|
|
1615
|
+
<button
|
|
1616
|
+
type="button"
|
|
1617
|
+
class="forecast-info-fullscreen-button"
|
|
1618
|
+
:class="{ 'is-active': isFullscreen }"
|
|
1619
|
+
:aria-label="isFullscreen ? '退出全屏' : '全屏显示当前页面'"
|
|
1620
|
+
:aria-pressed="isFullscreen"
|
|
1621
|
+
@click="toggleFullscreen"
|
|
1622
|
+
>
|
|
1623
|
+
<el-icon><FullScreen /></el-icon>
|
|
1624
|
+
</button>
|
|
1625
|
+
</el-tooltip>
|
|
1626
|
+
<div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换流水信息卡片排列方式">
|
|
1627
|
+
<el-tooltip
|
|
1628
|
+
v-for="option in layoutOptions"
|
|
1629
|
+
:key="option.value"
|
|
1630
|
+
:content="option.label"
|
|
1631
|
+
placement="top"
|
|
1632
|
+
:show-after="200"
|
|
1633
|
+
:append-to="overlayContainer || undefined"
|
|
1634
|
+
>
|
|
1635
|
+
<button
|
|
1636
|
+
type="button"
|
|
1637
|
+
class="forecast-info-layout-switch__button"
|
|
1638
|
+
:class="{ 'is-active': cardLayout === option.value }"
|
|
1639
|
+
role="radio"
|
|
1640
|
+
:aria-label="option.label"
|
|
1641
|
+
:aria-checked="cardLayout === option.value"
|
|
1642
|
+
@click="forecastInfoStore.setCardLayout(option.value)"
|
|
1643
|
+
>
|
|
1644
|
+
<el-icon>
|
|
1645
|
+
<component :is="option.icon" />
|
|
1646
|
+
</el-icon>
|
|
1647
|
+
</button>
|
|
1648
|
+
</el-tooltip>
|
|
1649
|
+
</div>
|
|
1650
|
+
</div>
|
|
1651
|
+
</header>
|
|
1652
|
+
|
|
1653
|
+
<!-- 水平布局收敛为一个快速筛选项,完整条件通过抽屉提供。 -->
|
|
1654
|
+
<div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
|
|
1655
|
+
<div class="forecast-info-filter__grid">
|
|
1656
|
+
<label class="forecast-info-filter__item">
|
|
1657
|
+
<span>交易日期</span>
|
|
1658
|
+
<el-date-picker
|
|
1659
|
+
v-model="flowForm.tranDate"
|
|
1660
|
+
:append-to="overlayContainer || undefined"
|
|
1661
|
+
size="small"
|
|
1662
|
+
type="date"
|
|
1663
|
+
placeholder="请选择日期"
|
|
1664
|
+
format="YYYY-MM-DD"
|
|
1665
|
+
value-format="YYYY-MM-DD"
|
|
1666
|
+
:clearable="false"
|
|
1667
|
+
/>
|
|
1668
|
+
</label>
|
|
1669
|
+
|
|
1670
|
+
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1671
|
+
<span>收支方向</span>
|
|
1672
|
+
<el-select
|
|
1673
|
+
v-model="flowForm.payDirec"
|
|
1674
|
+
:append-to="overlayContainer || undefined"
|
|
1675
|
+
:persistent="false"
|
|
1676
|
+
size="small"
|
|
1677
|
+
placeholder="请选择"
|
|
1678
|
+
clearable
|
|
1679
|
+
>
|
|
1680
|
+
<el-option v-for="option in flowDirectionOptions" :key="option.value" v-bind="option" />
|
|
1681
|
+
</el-select>
|
|
1682
|
+
</label>
|
|
1683
|
+
</div>
|
|
1684
|
+
|
|
1685
|
+
<div class="forecast-info-filter__actions">
|
|
1686
|
+
<el-button type="primary" size="small" :icon="Search" @click="handleFlowQuery">查询</el-button>
|
|
1687
|
+
<el-button size="small" @click="handleFlowReset">重置</el-button>
|
|
1688
|
+
<el-button size="small" @click="flowDrawerVisible = true">更多筛选</el-button>
|
|
1689
|
+
</div>
|
|
1690
|
+
</div>
|
|
1691
|
+
|
|
1692
|
+
<!-- 表格填满卡片余高;多选值直接写入页面局部状态,供预报核销与匡算联动读取。 -->
|
|
1693
|
+
<section class="forecast-info-table-area" aria-label="流水信息列表">
|
|
1694
|
+
<ElTablePro
|
|
1695
|
+
ref="flowTable"
|
|
1696
|
+
v-model:page="flowPage"
|
|
1697
|
+
v-model:page-size="flowPageSize"
|
|
1698
|
+
:data="flowRows"
|
|
1699
|
+
:total="flowTotal"
|
|
1700
|
+
v-loading="flowLoading"
|
|
1701
|
+
table-key="rmb-position-settlement-flow-info"
|
|
1702
|
+
:selection-reset-key="flowSelectionResetKey"
|
|
1703
|
+
:append-to="overlayContainer || undefined"
|
|
1704
|
+
isolate-overlays
|
|
1705
|
+
row-key="refNo"
|
|
1706
|
+
border
|
|
1707
|
+
stripe
|
|
1708
|
+
size="small"
|
|
1709
|
+
table-layout="auto"
|
|
1710
|
+
height="100%"
|
|
1711
|
+
class="forecast-info-table forecast-info-table--flow"
|
|
1712
|
+
pagination-size="small"
|
|
1713
|
+
@selection-change="forecastInfoStore.handleFlowSelectionChange"
|
|
1714
|
+
@pagination-change="handleFlowPaginationChange"
|
|
1715
|
+
>
|
|
1716
|
+
<!-- 有选中流水时,在列配置同一行展示实时轧差金额。 -->
|
|
1717
|
+
<template v-if="flowSelectedRows.length" #toolbar>
|
|
1718
|
+
<div class="forecast-info-flow-net-amount" aria-live="polite">
|
|
1719
|
+
<span>轧差金额(元):</span>
|
|
1720
|
+
<strong>{{ flowNetAmount }}</strong>
|
|
1721
|
+
</div>
|
|
1722
|
+
</template>
|
|
1723
|
+
<!-- 分页或查询后不保留旧勾选,事件入口位于页面局部状态。 -->
|
|
1724
|
+
<el-table-column
|
|
1725
|
+
type="selection"
|
|
1726
|
+
column-key="selection"
|
|
1727
|
+
width="46"
|
|
1728
|
+
align="center"
|
|
1729
|
+
fixed="left"
|
|
1730
|
+
disabled
|
|
1731
|
+
/>
|
|
1732
|
+
<!-- 序号按当前页和每页条数连续计算。 -->
|
|
1733
|
+
<el-table-column
|
|
1734
|
+
type="index"
|
|
1735
|
+
column-key="sequence"
|
|
1736
|
+
label="序号"
|
|
1737
|
+
width="62"
|
|
1738
|
+
align="center"
|
|
1739
|
+
fixed="left"
|
|
1740
|
+
:index="getFlowSequence"
|
|
1741
|
+
/>
|
|
1742
|
+
<!-- 金额列使用千分位并靠右,其他字段统一居中便于扫描。 -->
|
|
1743
|
+
<el-table-column
|
|
1744
|
+
v-for="column in flowColumns"
|
|
1745
|
+
:key="column.prop"
|
|
1746
|
+
:prop="column.prop"
|
|
1747
|
+
:label="column.label"
|
|
1748
|
+
:min-width="column.minWidth"
|
|
1749
|
+
:align="column.prop === 'amt' ? 'right' : 'center'"
|
|
1750
|
+
>
|
|
1751
|
+
<template v-if="column.prop === 'amt'" #default="{ row }">
|
|
1752
|
+
{{ formatThousands(row.amt) }}
|
|
1753
|
+
</template>
|
|
1754
|
+
<template v-else-if="column.prop === 'verifyStatus'" #default="{ row }">
|
|
1755
|
+
{{ flowVerifyStatusMap[String(row.verifyStatus)] ?? row.verifyStatus ?? '-' }}
|
|
1756
|
+
</template>
|
|
1757
|
+
</el-table-column>
|
|
1758
|
+
<template #empty>
|
|
1759
|
+
<el-empty description="暂无数据" :image-size="54" />
|
|
1760
|
+
</template>
|
|
1761
|
+
</ElTablePro>
|
|
1762
|
+
</section>
|
|
1763
|
+
|
|
1764
|
+
<!-- 流水完整筛选条件;抽屉内查询仍复用 buildFlowQueryParams。 -->
|
|
1765
|
+
<el-drawer
|
|
1766
|
+
v-if="flowDrawerVisible"
|
|
1767
|
+
v-model="flowDrawerVisible"
|
|
1768
|
+
title="流水更多筛选"
|
|
1769
|
+
size="520px"
|
|
1770
|
+
:append-to="overlayContainer || undefined"
|
|
1771
|
+
destroy-on-close
|
|
1772
|
+
:lock-scroll="false"
|
|
1773
|
+
class="forecast-info-filter-drawer"
|
|
1774
|
+
>
|
|
1775
|
+
<div class="forecast-info-filter__drawer-grid">
|
|
1776
|
+
<label class="forecast-info-filter__item">
|
|
1777
|
+
<span>交易日期</span>
|
|
1778
|
+
<el-date-picker
|
|
1779
|
+
v-model="flowForm.tranDate"
|
|
1780
|
+
:append-to="overlayContainer || undefined"
|
|
1781
|
+
size="small"
|
|
1782
|
+
type="date"
|
|
1783
|
+
placeholder="请选择日期"
|
|
1784
|
+
format="YYYY-MM-DD"
|
|
1785
|
+
value-format="YYYY-MM-DD"
|
|
1786
|
+
:clearable="false"
|
|
1787
|
+
/>
|
|
1788
|
+
</label>
|
|
1789
|
+
|
|
1790
|
+
<label class="forecast-info-filter__item">
|
|
1791
|
+
<span>收支方向</span>
|
|
1792
|
+
<el-select
|
|
1793
|
+
v-model="flowForm.payDirec"
|
|
1794
|
+
:append-to="overlayContainer || undefined"
|
|
1795
|
+
:persistent="false"
|
|
1796
|
+
size="small"
|
|
1797
|
+
placeholder="请选择"
|
|
1798
|
+
clearable
|
|
1799
|
+
>
|
|
1800
|
+
<el-option v-for="option in flowDirectionOptions" :key="option.value" v-bind="option" />
|
|
1801
|
+
</el-select>
|
|
1802
|
+
</label>
|
|
1803
|
+
|
|
1804
|
+
<label class="forecast-info-filter__item">
|
|
1805
|
+
<span>支付渠道</span>
|
|
1806
|
+
<el-input v-model="flowForm.payChannel" size="small" placeholder="请输入" clearable />
|
|
1807
|
+
</label>
|
|
1808
|
+
|
|
1809
|
+
<label class="forecast-info-filter__item forecast-info-filter__item--range">
|
|
1810
|
+
<span>金额范围(万元)</span>
|
|
1811
|
+
<NumberRange
|
|
1812
|
+
v-model="flowForm.transAmtRange"
|
|
1813
|
+
class="forecast-info-filter__number-range"
|
|
1814
|
+
separator="至"
|
|
1815
|
+
min-placeholder="最小值"
|
|
1816
|
+
max-placeholder="最大值"
|
|
1817
|
+
:precision="2"
|
|
1818
|
+
size="small"
|
|
1819
|
+
unit="万元"
|
|
1820
|
+
/>
|
|
1821
|
+
</label>
|
|
1822
|
+
|
|
1823
|
+
<label class="forecast-info-filter__item">
|
|
1824
|
+
<span>核销状态</span>
|
|
1825
|
+
<el-select
|
|
1826
|
+
v-model="flowForm.verifyStatus"
|
|
1827
|
+
:append-to="overlayContainer || undefined"
|
|
1828
|
+
:persistent="false"
|
|
1829
|
+
size="small"
|
|
1830
|
+
placeholder="请选择"
|
|
1831
|
+
clearable
|
|
1832
|
+
>
|
|
1833
|
+
<el-option v-for="option in flowStatusOptions" :key="option.value" v-bind="option" />
|
|
1834
|
+
</el-select>
|
|
1835
|
+
</label>
|
|
1836
|
+
|
|
1837
|
+
<label class="forecast-info-filter__item">
|
|
1838
|
+
<span>我方户名</span>
|
|
1839
|
+
<el-input v-model="flowForm.clientName" size="small" placeholder="请输入" clearable />
|
|
1840
|
+
</label>
|
|
1841
|
+
|
|
1842
|
+
<label class="forecast-info-filter__item">
|
|
1843
|
+
<span>对方户名</span>
|
|
1844
|
+
<el-input v-model="flowForm.competName" size="small" placeholder="请输入" clearable />
|
|
1845
|
+
</label>
|
|
1846
|
+
|
|
1847
|
+
<label class="forecast-info-filter__item">
|
|
1848
|
+
<span>我方机构</span>
|
|
1849
|
+
<el-select
|
|
1850
|
+
v-model="flowForm.groundBranch"
|
|
1851
|
+
:append-to="overlayContainer || undefined"
|
|
1852
|
+
:persistent="false"
|
|
1853
|
+
size="small"
|
|
1854
|
+
placeholder="请选择"
|
|
1855
|
+
clearable
|
|
1856
|
+
>
|
|
1857
|
+
<el-option v-for="option in groundBranchOptions" :key="option.value" v-bind="option" />
|
|
1858
|
+
</el-select>
|
|
1859
|
+
</label>
|
|
1860
|
+
</div>
|
|
1861
|
+
|
|
1862
|
+
<template #footer>
|
|
1863
|
+
<div class="forecast-info-filter__drawer-actions">
|
|
1864
|
+
<el-button size="small" @click="flowDrawerVisible = false">取消</el-button>
|
|
1865
|
+
<el-button size="small" @click="handleFlowReset">重置</el-button>
|
|
1866
|
+
<el-button type="primary" size="small" :icon="Search" @click="handleFlowQuery">查询</el-button>
|
|
1867
|
+
</div>
|
|
1868
|
+
</template>
|
|
1869
|
+
</el-drawer>
|
|
1870
|
+
</section>
|
|
224
1871
|
</div>
|
|
225
1872
|
</template>
|