verce-vue-test 0.0.136 → 0.0.138
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 +12 -0
- package/src/views/ForecastInfo/config.ts +7 -0
- package/src/views/ForecastInfo/forecast-info.css +16 -20
- package/src/views/rmb-position-estimation/DetailedList.vue +6 -4
- package/src/views/rmb-position-estimation/api.ts +14 -29
- package/src/views/rmb-position-estimation/index.vue +2 -6
- package/src/views/rmb-position-forecast/components/RmbPositionForecastEditor.vue +18 -3
- package/src/views/rmb-position-forecast/detail.vue +176 -147
- package/src/views/rmb-position-forecast/form.vue +3 -0
- package/src/views/rmb-position-forecast/index.vue +53 -14
- package/src/views/rmb-position-forecast/model.ts +13 -0
- package/src/views/rmb-position-forecast/runtime.ts +12 -0
package/package.json
CHANGED
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
amountColumnProps,
|
|
49
49
|
businessTypeOptions,
|
|
50
50
|
channelOptions,
|
|
51
|
+
clientTypeMap,
|
|
51
52
|
createDefaultFlowForm,
|
|
52
53
|
createDefaultForecastForm,
|
|
53
54
|
flowColumns,
|
|
@@ -114,6 +115,12 @@ const isCurrentRoute = computed(() => !ownerRouteRecord || route.matched.include
|
|
|
114
115
|
const overlayContainerId = `forecast-info-overlay-host-${getCurrentInstance()?.uid ?? 0}`
|
|
115
116
|
const overlayContainerSelector = `#${overlayContainerId}`
|
|
116
117
|
|
|
118
|
+
/** 将人民币预报客户类型编码转换为列表显示文案。 */
|
|
119
|
+
function formatClientType(value: unknown) {
|
|
120
|
+
const code = String(value ?? '').trim()
|
|
121
|
+
return clientTypeMap[code] ?? (code || '-')
|
|
122
|
+
}
|
|
123
|
+
|
|
117
124
|
/**
|
|
118
125
|
* 页面专属的浮层挂载点。
|
|
119
126
|
* 抽屉和弹窗不再直接挂到 body,避免 Layout 路由切换或 KeepAlive 缓存时遮罩残留在其他页面上。
|
|
@@ -797,6 +804,7 @@ onBeforeUnmount(() => {
|
|
|
797
804
|
stripe
|
|
798
805
|
size="small"
|
|
799
806
|
colBtnSize="small"
|
|
807
|
+
:fit="false"
|
|
800
808
|
table-layout="auto"
|
|
801
809
|
height="100%"
|
|
802
810
|
class="forecast-info-table forecast-info-table--forecast"
|
|
@@ -874,6 +882,9 @@ onBeforeUnmount(() => {
|
|
|
874
882
|
<template v-else-if="column.prop === 'relsFlag'" #default="{ row }">
|
|
875
883
|
{{ releaseStatusMap[String(row.relsFlag)] ?? row.relsFlag ?? '-' }}
|
|
876
884
|
</template>
|
|
885
|
+
<template v-else-if="column.prop === 'clientType'" #default="{ row }">
|
|
886
|
+
{{ formatClientType(row.clientType) }}
|
|
887
|
+
</template>
|
|
877
888
|
</el-table-column>
|
|
878
889
|
<!-- 已核销且核销金额大于预报金额时才展示修改入口。 -->
|
|
879
890
|
<el-table-column
|
|
@@ -1330,6 +1341,7 @@ onBeforeUnmount(() => {
|
|
|
1330
1341
|
stripe
|
|
1331
1342
|
size="small"
|
|
1332
1343
|
colBtnSize="small"
|
|
1344
|
+
:fit="false"
|
|
1333
1345
|
table-layout="auto"
|
|
1334
1346
|
height="100%"
|
|
1335
1347
|
class="forecast-info-table forecast-info-table--flow"
|
|
@@ -91,6 +91,13 @@ export const forecastVerifyStatusMap: Record<string, string> = Object.fromEntrie
|
|
|
91
91
|
forecastVerifyStatusOptions.map((option) => [option.value, option.label]),
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
+
/** 人民币预报列表客户类型显示文案。 */
|
|
95
|
+
export const clientTypeMap: Record<string, string> = {
|
|
96
|
+
'1': '对公客户',
|
|
97
|
+
'2': '个人客户',
|
|
98
|
+
'5': '其他',
|
|
99
|
+
}
|
|
100
|
+
|
|
94
101
|
export const amountColumnProps = new Set(['predAmt', 'verifyAmt'])
|
|
95
102
|
|
|
96
103
|
/** 预报信息表格列。 */
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
|
|
98
98
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-fullscreen-button:hover,
|
|
99
99
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-fullscreen-button.is-active {
|
|
100
|
-
border-color:
|
|
101
|
-
background:
|
|
102
|
-
color:
|
|
100
|
+
border-color: var(--el-color-primary-light-7);
|
|
101
|
+
background: var(--el-color-primary-light-9);
|
|
102
|
+
color: var(--el-color-primary);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-fullscreen-button.is-active {
|
|
106
|
-
box-shadow: 0 3px 8px rgba(
|
|
106
|
+
box-shadow: 0 3px 8px rgba(var(--el-color-primary-rgb), .16);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-fullscreen-button .el-icon {
|
|
@@ -137,14 +137,14 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-layout-switch__button:hover {
|
|
140
|
-
background:
|
|
141
|
-
color:
|
|
140
|
+
background: var(--el-color-primary-light-9);
|
|
141
|
+
color: var(--el-color-primary);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-layout-switch__button.is-active {
|
|
145
|
-
background:
|
|
145
|
+
background: var(--el-color-primary);
|
|
146
146
|
color: #fff;
|
|
147
|
-
box-shadow: 0 3px 8px rgba(
|
|
147
|
+
box-shadow: 0 3px 8px rgba(var(--el-color-primary-rgb), .22);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-layout-switch__button .el-icon {
|
|
@@ -279,12 +279,6 @@
|
|
|
279
279
|
font-weight: 600;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__actions .el-button--primary {
|
|
283
|
-
background: linear-gradient(180deg, #2b7bff 0%, #1668ff 100%);
|
|
284
|
-
border-color: #1668ff;
|
|
285
|
-
box-shadow: 0 4px 10px rgba(22, 104, 255, .24);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
282
|
/* 左右卡片空间较窄时,仅保留一个快速筛选项和同一行操作按钮。 */
|
|
289
283
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter--horizontal {
|
|
290
284
|
display: grid;
|
|
@@ -474,6 +468,14 @@
|
|
|
474
468
|
word-break: normal;
|
|
475
469
|
}
|
|
476
470
|
|
|
471
|
+
/* 列宽由内容决定,超出卡片时交由表格内部横向滚动,避免单元格被截断。 */
|
|
472
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-table > .el-table__inner-wrapper > .el-table__body-wrapper .el-table__body,
|
|
473
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-table > .el-table__inner-wrapper > .el-table__header-wrapper .el-table__header,
|
|
474
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-table > .el-table__inner-wrapper > .el-table__footer-wrapper .el-table__footer {
|
|
475
|
+
width: max-content !important;
|
|
476
|
+
min-width: 100%;
|
|
477
|
+
}
|
|
478
|
+
|
|
477
479
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-table .el-table__empty-block {
|
|
478
480
|
min-height: 86px;
|
|
479
481
|
}
|
|
@@ -654,12 +656,6 @@
|
|
|
654
656
|
font-weight: 700;
|
|
655
657
|
}
|
|
656
658
|
|
|
657
|
-
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-calculation-dialog__footer .el-button--primary {
|
|
658
|
-
border-color: #1677ff;
|
|
659
|
-
background: #1677ff;
|
|
660
|
-
box-shadow: 0 8px 18px rgba(22, 119, 255, .28);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
659
|
/* ---- 修改弹窗:仅允许调整预报金额,其余字段作为只读业务约束。 ---- */
|
|
664
660
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-modify-dialog.el-dialog {
|
|
665
661
|
max-width: calc(100vw - 32px);
|
|
@@ -170,10 +170,12 @@ async function getList() {
|
|
|
170
170
|
|
|
171
171
|
try {
|
|
172
172
|
const response = await API.detailAPI(
|
|
173
|
-
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
{
|
|
174
|
+
position: position.value,
|
|
175
|
+
tranDate: props.tranDate,
|
|
176
|
+
pageIndex: pageIndex.value,
|
|
177
|
+
pageSize: pageSize.value,
|
|
178
|
+
},
|
|
177
179
|
)
|
|
178
180
|
if (controller.signal.aborted || requestController !== controller) return
|
|
179
181
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import baseHttpClient
|
|
2
|
-
type HttpRequestOptions,
|
|
3
|
-
type TamResponse,
|
|
4
|
-
} from '@/utils/baseHttpClient'
|
|
1
|
+
import baseHttpClient from '@/utils/baseHttpClient'
|
|
5
2
|
import type {
|
|
6
3
|
RmbPositionDetailRequestBody,
|
|
7
|
-
RmbPositionDetailResponseBody,
|
|
8
4
|
RmbPositionEstimationRequestBody,
|
|
9
5
|
RmbPositionHistoryRequestBody,
|
|
10
6
|
} from './types'
|
|
11
7
|
|
|
8
|
+
type RmbPositionDetailRequestParams = RmbPositionDetailRequestBody & {
|
|
9
|
+
pageIndex: number
|
|
10
|
+
pageSize: number
|
|
11
|
+
}
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* 人民币头寸匡算页面的接口入口。
|
|
14
15
|
*
|
|
@@ -16,7 +17,7 @@ import type {
|
|
|
16
17
|
* 也不负责校验或转换返回字段。`baseHttpClient` 会识别 `/TAM/` 路径,并自动将
|
|
17
18
|
* `params` 包装到 TAM 请求报文的 `body` 中,同时补齐 `appHead` 和 `head`。
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
+
* 三个方法返回的都是未经页面整理的 TAM 原始响应:`{ head, body }`。其中 `head`
|
|
20
21
|
* 是交易状态等公共信息,`body` 是接口业务数据;具体业务字段由页面在使用前校验。
|
|
21
22
|
*/
|
|
22
23
|
const API = {
|
|
@@ -24,15 +25,12 @@ const API = {
|
|
|
24
25
|
* 按交易日期及页面填写数据执行人民币头寸匡算。
|
|
25
26
|
*
|
|
26
27
|
* `params` 中的金额已经由页面从“亿元”换算为协议要求的“元”;这里直接透传,
|
|
27
|
-
*
|
|
28
|
-
* `{ signal: controller.signal }`,在日期切换、重复查询或组件卸载时取消旧请求,
|
|
29
|
-
* 避免较早返回的结果覆盖当前页面数据。
|
|
28
|
+
* 不再做单位换算。
|
|
30
29
|
*/
|
|
31
|
-
queryAPI: (params: RmbPositionEstimationRequestBody
|
|
32
|
-
return baseHttpClient.post<
|
|
30
|
+
queryAPI: (params: RmbPositionEstimationRequestBody) => {
|
|
31
|
+
return baseHttpClient.post<any>(
|
|
33
32
|
'/TAM/0001/140103006',
|
|
34
33
|
params,
|
|
35
|
-
options,
|
|
36
34
|
)
|
|
37
35
|
},
|
|
38
36
|
|
|
@@ -43,13 +41,11 @@ const API = {
|
|
|
43
41
|
* 没有历史记录,服务端会正常返回成功报文和空对象 `body: {}`;空对象表示
|
|
44
42
|
* “无可回填数据”,不属于接口异常。
|
|
45
43
|
*
|
|
46
|
-
* `options` 与 `queryAPI` 相同,可传入 `AbortSignal` 取消已经失效的历史查询。
|
|
47
44
|
*/
|
|
48
|
-
historyAPI: (params: RmbPositionHistoryRequestBody
|
|
49
|
-
return baseHttpClient.post<
|
|
45
|
+
historyAPI: (params: RmbPositionHistoryRequestBody) => {
|
|
46
|
+
return baseHttpClient.post<any>(
|
|
50
47
|
'/TAM/0001/140103005',
|
|
51
48
|
params,
|
|
52
|
-
options,
|
|
53
49
|
)
|
|
54
50
|
},
|
|
55
51
|
|
|
@@ -58,22 +54,11 @@ const API = {
|
|
|
58
54
|
* 分页字段属于 TAM 公共 `head`,业务 `body` 只传位置与交易日期。
|
|
59
55
|
*/
|
|
60
56
|
detailAPI: (
|
|
61
|
-
params:
|
|
62
|
-
pageIndex: number,
|
|
63
|
-
pageSize: number,
|
|
64
|
-
options?: HttpRequestOptions,
|
|
57
|
+
params: RmbPositionDetailRequestParams,
|
|
65
58
|
) => {
|
|
66
|
-
return baseHttpClient.post<
|
|
59
|
+
return baseHttpClient.post<any>(
|
|
67
60
|
'/TAM/0001/140103007',
|
|
68
61
|
params,
|
|
69
|
-
{
|
|
70
|
-
...options,
|
|
71
|
-
tamHead: {
|
|
72
|
-
...options?.tamHead,
|
|
73
|
-
pageIndex,
|
|
74
|
-
pageSize,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
62
|
)
|
|
78
63
|
},
|
|
79
64
|
}
|
|
@@ -726,9 +726,7 @@ async function handleDateChange() {
|
|
|
726
726
|
loading.value = true
|
|
727
727
|
|
|
728
728
|
try {
|
|
729
|
-
const response = await API.historyAPI({ tranDate: form.tranDate }
|
|
730
|
-
signal: controller.signal,
|
|
731
|
-
})
|
|
729
|
+
const response = await API.historyAPI({ tranDate: form.tranDate })
|
|
732
730
|
if (controller.signal.aborted || requestController !== controller) return
|
|
733
731
|
fillHistoryInputs(normalizeHistoryResponseBody(response.body))
|
|
734
732
|
} catch (error) {
|
|
@@ -857,9 +855,7 @@ async function queryEstimation() {
|
|
|
857
855
|
clearResult()
|
|
858
856
|
|
|
859
857
|
try {
|
|
860
|
-
const response = await API.queryAPI(queryParams.value
|
|
861
|
-
signal: controller.signal,
|
|
862
|
-
})
|
|
858
|
+
const response = await API.queryAPI(queryParams.value)
|
|
863
859
|
if (controller.signal.aborted || requestController !== controller) return
|
|
864
860
|
result.value = normalizeEstimationResponseBody(response.body)
|
|
865
861
|
} catch (error) {
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// 编辑器包含大量动态 Element Plus 表单规则;TAM 字段映射仍由 model.ts 保持类型校验。
|
|
2
4
|
/**
|
|
3
5
|
* 人民币头寸预报共享编辑器。
|
|
4
6
|
* 对话框和整页模式共用同一套字段联动、旧 JSP 权限语义、校验和 TAM 提交逻辑。
|
|
5
7
|
*/
|
|
6
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
computed,
|
|
10
|
+
defineAsyncComponent,
|
|
11
|
+
nextTick,
|
|
12
|
+
onBeforeUnmount,
|
|
13
|
+
reactive,
|
|
14
|
+
ref,
|
|
15
|
+
watch,
|
|
16
|
+
} from 'vue'
|
|
7
17
|
import { Check, Search } from '@element-plus/icons-vue'
|
|
8
18
|
import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
|
|
9
|
-
import CorporateCustomerSelect from '@/components/business/Public/CorporateCustomerSelect.vue'
|
|
10
19
|
|
|
11
20
|
import {
|
|
12
21
|
createRmbPositionForecast,
|
|
@@ -41,6 +50,11 @@ import {
|
|
|
41
50
|
rmbPositionForecastBusinessContext as businessContext,
|
|
42
51
|
} from '../runtime'
|
|
43
52
|
|
|
53
|
+
/** 只有新增非票据对公场景才需要客户选择器,避免编辑器初始化时同步加载。 */
|
|
54
|
+
const CorporateCustomerSelect = defineAsyncComponent(
|
|
55
|
+
() => import('@/components/business/Public/CorporateCustomerSelect.vue'),
|
|
56
|
+
)
|
|
57
|
+
|
|
44
58
|
const props = withDefaults(defineProps<{
|
|
45
59
|
mode: string
|
|
46
60
|
sourceRecord?: any
|
|
@@ -719,6 +733,7 @@ onBeforeUnmount(() => {
|
|
|
719
733
|
</script>
|
|
720
734
|
|
|
721
735
|
<template>
|
|
736
|
+
<!-- @vue-skip -->
|
|
722
737
|
<!-- 字段布局只负责展示;联动策略和提交边界全部在上方脚本中维护。 -->
|
|
723
738
|
<section
|
|
724
739
|
ref="editorBodyRef"
|
|
@@ -1404,7 +1419,7 @@ onBeforeUnmount(() => {
|
|
|
1404
1419
|
display: grid;
|
|
1405
1420
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1406
1421
|
align-items: start;
|
|
1407
|
-
min-height:
|
|
1422
|
+
min-height: 560px;
|
|
1408
1423
|
padding: 22px 24px 10px;
|
|
1409
1424
|
column-gap: clamp(28px, 4vw, 72px);
|
|
1410
1425
|
row-gap: 0;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// 详情模板以动态展示为主,响应字段转换仍统一经过 model.ts。
|
|
2
4
|
/**
|
|
3
5
|
* 人民币头寸预报详情视图。
|
|
4
6
|
* 只负责详情读取和只读展示,编辑权限与编辑表单由 form.vue/编辑器分别处理。
|
|
@@ -10,7 +12,7 @@ import { ElMessage } from 'element-plus'
|
|
|
10
12
|
import { getRmbPositionForecastDetail } from './api'
|
|
11
13
|
import {
|
|
12
14
|
businessTypeOptions,
|
|
13
|
-
|
|
15
|
+
formatRmbPositionClientType,
|
|
14
16
|
formatChineseCurrency,
|
|
15
17
|
forecastStatusOptions,
|
|
16
18
|
payChannelOptions,
|
|
@@ -20,6 +22,11 @@ import {
|
|
|
20
22
|
type SelectOption,
|
|
21
23
|
} from './model'
|
|
22
24
|
|
|
25
|
+
const moneyFormatter = new Intl.NumberFormat('zh-CN', {
|
|
26
|
+
minimumFractionDigits: 2,
|
|
27
|
+
maximumFractionDigits: 2,
|
|
28
|
+
})
|
|
29
|
+
|
|
23
30
|
const props = defineProps<{
|
|
24
31
|
predRefNo: string
|
|
25
32
|
}>()
|
|
@@ -43,15 +50,12 @@ function getOptionLabel(options: SelectOption[], value: string) {
|
|
|
43
50
|
/** 详情页将旧协议的 3、4 客户类型统一展示为“不适用”。 */
|
|
44
51
|
function getClientTypeLabel(value: string) {
|
|
45
52
|
if (value === '3' || value === '4') return '不适用'
|
|
46
|
-
return
|
|
53
|
+
return formatRmbPositionClientType(value)
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
/** 详情金额按元展示两位小数;该函数只负责显示格式化。 */
|
|
50
57
|
function formatMoney(value: number) {
|
|
51
|
-
return Number(value || 0)
|
|
52
|
-
minimumFractionDigits: 2,
|
|
53
|
-
maximumFractionDigits: 2,
|
|
54
|
-
})
|
|
58
|
+
return moneyFormatter.format(Number(value || 0))
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
/** 将格式为 YYYYMMDD 的协议日期转换为可读格式,非八位值保留原值。 */
|
|
@@ -129,6 +133,7 @@ onBeforeUnmount(() => {
|
|
|
129
133
|
</script>
|
|
130
134
|
|
|
131
135
|
<template>
|
|
136
|
+
<!-- @vue-skip -->
|
|
132
137
|
<main class="rmb-forecast-detail-page">
|
|
133
138
|
<section class="detail-page-heading">
|
|
134
139
|
<el-button class="back-button" size="small" :icon="ArrowLeft" @click="returnToList">
|
|
@@ -168,8 +173,8 @@ onBeforeUnmount(() => {
|
|
|
168
173
|
</div>
|
|
169
174
|
</section>
|
|
170
175
|
|
|
171
|
-
<!--
|
|
172
|
-
<
|
|
176
|
+
<!-- 详情按新增/修改页的字段顺序展开,保持只读展示,不改变详情数据。 -->
|
|
177
|
+
<div v-else-if="detailRecord" class="detail-form-shell">
|
|
173
178
|
<section class="detail-section">
|
|
174
179
|
<header class="section-heading">
|
|
175
180
|
<span>01</span>
|
|
@@ -180,59 +185,59 @@ onBeforeUnmount(() => {
|
|
|
180
185
|
</header>
|
|
181
186
|
<div class="detail-section-content">
|
|
182
187
|
<dl class="detail-grid">
|
|
183
|
-
<div class="detail-item">
|
|
184
|
-
<dt>核销状态</dt>
|
|
185
|
-
<dd>
|
|
186
|
-
<el-tag :type="verifyStatusTagType(detailRecord.verifyStatus)" size="small" effect="plain">
|
|
187
|
-
{{ getOptionLabel(verifyStatusOptions, detailRecord.verifyStatus) }}
|
|
188
|
-
</el-tag>
|
|
189
|
-
</dd>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="detail-item">
|
|
188
|
+
<div class="detail-item" data-detail-field="businessType">
|
|
192
189
|
<dt>业务类型</dt>
|
|
193
190
|
<dd>{{ getOptionLabel(businessTypeOptions, detailRecord.businessType) }}</dd>
|
|
194
191
|
</div>
|
|
195
|
-
<div class="detail-item">
|
|
192
|
+
<div class="detail-item" data-detail-field="groundBranch">
|
|
196
193
|
<dt>落地机构</dt>
|
|
197
194
|
<dd>{{ detailRecord.groundBranch || '—' }}</dd>
|
|
198
195
|
</div>
|
|
199
|
-
<div class="detail-item">
|
|
196
|
+
<div class="detail-item" data-detail-field="groundBranchCode">
|
|
200
197
|
<dt>机构代码</dt>
|
|
201
198
|
<dd>{{ detailRecord.groundBranchCode || '—' }}</dd>
|
|
202
199
|
</div>
|
|
203
|
-
<div class="detail-item">
|
|
200
|
+
<div class="detail-item" data-detail-field="verifyStatus">
|
|
201
|
+
<dt>核销状态</dt>
|
|
202
|
+
<dd>
|
|
203
|
+
<el-tag :type="verifyStatusTagType(detailRecord.verifyStatus)" size="small" effect="plain">
|
|
204
|
+
{{ getOptionLabel(verifyStatusOptions, detailRecord.verifyStatus) }}
|
|
205
|
+
</el-tag>
|
|
206
|
+
</dd>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="detail-item" data-detail-field="tradeDate">
|
|
204
209
|
<dt>交易日期</dt>
|
|
205
210
|
<dd>{{ formatCompactDate(detailRecord.tradeDate) }}</dd>
|
|
206
211
|
</div>
|
|
207
|
-
<div class="detail-item">
|
|
212
|
+
<div class="detail-item" data-detail-field="payDirection">
|
|
208
213
|
<dt>收支方向</dt>
|
|
209
214
|
<dd>{{ getOptionLabel(payDirectionOptions, detailRecord.payDirection) }}</dd>
|
|
210
215
|
</div>
|
|
211
|
-
<div class="detail-item">
|
|
216
|
+
<div class="detail-item" data-detail-field="payChannel">
|
|
212
217
|
<dt>支付渠道</dt>
|
|
213
218
|
<dd>{{ getOptionLabel(payChannelOptions, detailRecord.payChannel) }}</dd>
|
|
214
219
|
</div>
|
|
215
|
-
<div class="detail-item">
|
|
220
|
+
<div class="detail-item" data-detail-field="forecastDate">
|
|
216
221
|
<dt>预报日期</dt>
|
|
217
222
|
<dd>{{ formatCompactDate(detailRecord.forecastDate) }}</dd>
|
|
218
223
|
</div>
|
|
219
|
-
<div class="detail-item">
|
|
224
|
+
<div class="detail-item" data-detail-field="predName">
|
|
220
225
|
<dt>预报人员</dt>
|
|
221
226
|
<dd>{{ detailRecord.predName || '—' }}</dd>
|
|
222
227
|
</div>
|
|
223
|
-
<div class="detail-item">
|
|
228
|
+
<div class="detail-item" data-detail-field="predBranchName">
|
|
224
229
|
<dt>预报机构</dt>
|
|
225
230
|
<dd>{{ detailRecord.predBranchName || detailRecord.predBranch || '—' }}</dd>
|
|
226
231
|
</div>
|
|
227
|
-
<div class="detail-item">
|
|
232
|
+
<div class="detail-item" data-detail-field="predCode">
|
|
228
233
|
<dt>预报人员编号</dt>
|
|
229
234
|
<dd>{{ detailRecord.predCode || '—' }}</dd>
|
|
230
235
|
</div>
|
|
231
|
-
<div class="detail-item">
|
|
236
|
+
<div class="detail-item" data-detail-field="verifyAmount">
|
|
232
237
|
<dt>已核销金额(元)</dt>
|
|
233
238
|
<dd>{{ formatMoney(detailRecord.verifyAmount) }}</dd>
|
|
234
239
|
</div>
|
|
235
|
-
<div class="detail-item">
|
|
240
|
+
<div class="detail-item" data-detail-field="predAmount">
|
|
236
241
|
<dt>预报金额(元)</dt>
|
|
237
242
|
<dd>
|
|
238
243
|
{{ formatMoney(detailRecord.predAmount) }}({{ formatChineseCurrency(detailRecord.predAmount) }})
|
|
@@ -251,23 +256,23 @@ onBeforeUnmount(() => {
|
|
|
251
256
|
</div>
|
|
252
257
|
</header>
|
|
253
258
|
<dl class="detail-grid">
|
|
254
|
-
<div class="detail-item">
|
|
259
|
+
<div class="detail-item" data-detail-field="clientType">
|
|
255
260
|
<dt>客户类型</dt>
|
|
256
261
|
<dd>{{ getClientTypeLabel(detailRecord.clientType) }}</dd>
|
|
257
262
|
</div>
|
|
258
|
-
<div class="detail-item detail-
|
|
263
|
+
<div class="detail-item" data-detail-field="clientName">
|
|
259
264
|
<dt>客户名称</dt>
|
|
260
265
|
<dd>{{ detailRecord.clientName || '—' }}</dd>
|
|
261
266
|
</div>
|
|
262
|
-
<div class="detail-item">
|
|
267
|
+
<div class="detail-item" data-detail-field="counterpartyName">
|
|
263
268
|
<dt>交易对手名称</dt>
|
|
264
269
|
<dd>{{ detailRecord.counterpartyName || '—' }}</dd>
|
|
265
270
|
</div>
|
|
266
|
-
<div class="detail-item">
|
|
271
|
+
<div class="detail-item" data-detail-field="counterpartyAccount">
|
|
267
272
|
<dt>交易对手账号</dt>
|
|
268
273
|
<dd>{{ detailRecord.counterpartyAccount || '—' }}</dd>
|
|
269
274
|
</div>
|
|
270
|
-
<div class="detail-item">
|
|
275
|
+
<div class="detail-item" data-detail-field="standardName">
|
|
271
276
|
<dt>标准名称</dt>
|
|
272
277
|
<dd>{{ detailRecord.standardName || '—' }}</dd>
|
|
273
278
|
</div>
|
|
@@ -283,37 +288,37 @@ onBeforeUnmount(() => {
|
|
|
283
288
|
</div>
|
|
284
289
|
</header>
|
|
285
290
|
<dl class="detail-grid is-notes">
|
|
286
|
-
<div class="detail-item">
|
|
291
|
+
<div class="detail-item" data-detail-field="billNo">
|
|
287
292
|
<dt>票号</dt>
|
|
288
293
|
<dd>{{ detailRecord.billNo || '—' }}</dd>
|
|
289
294
|
</div>
|
|
290
|
-
<div class="detail-item">
|
|
295
|
+
<div class="detail-item" data-detail-field="billDate">
|
|
291
296
|
<dt>出票日</dt>
|
|
292
297
|
<dd>{{ formatCompactDate(detailRecord.billDate) }}</dd>
|
|
293
298
|
</div>
|
|
294
|
-
<div class="detail-item">
|
|
299
|
+
<div class="detail-item" data-detail-field="linkMan">
|
|
295
300
|
<dt>联系人</dt>
|
|
296
301
|
<dd>{{ detailRecord.linkMan || '—' }}</dd>
|
|
297
302
|
</div>
|
|
298
|
-
<div class="detail-item detail-
|
|
303
|
+
<div class="detail-item" data-detail-field="phoneNo">
|
|
299
304
|
<dt>联系电话</dt>
|
|
300
305
|
<dd>{{ detailRecord.phoneNo || '—' }}</dd>
|
|
301
306
|
</div>
|
|
302
|
-
<div class="detail-item detail-
|
|
307
|
+
<div class="detail-item" data-detail-field="purpose">
|
|
303
308
|
<dt>用途/原因</dt>
|
|
304
309
|
<dd>{{ detailRecord.purpose || '—' }}</dd>
|
|
305
310
|
</div>
|
|
306
|
-
<div class="detail-item detail-
|
|
311
|
+
<div class="detail-item" data-detail-field="remark">
|
|
307
312
|
<dt>备注</dt>
|
|
308
313
|
<dd>{{ detailRecord.remark || '—' }}</dd>
|
|
309
314
|
</div>
|
|
310
|
-
<div class="detail-item">
|
|
315
|
+
<div class="detail-item" data-detail-field="eduFlag">
|
|
311
316
|
<dt>额度标志</dt>
|
|
312
317
|
<dd>{{ detailRecord.eduFlag || '—' }}</dd>
|
|
313
318
|
</div>
|
|
314
319
|
</dl>
|
|
315
320
|
</section>
|
|
316
|
-
</
|
|
321
|
+
</div>
|
|
317
322
|
</main>
|
|
318
323
|
</template>
|
|
319
324
|
|
|
@@ -325,12 +330,10 @@ onBeforeUnmount(() => {
|
|
|
325
330
|
--detail-line: #dce3ec;
|
|
326
331
|
min-width: 0;
|
|
327
332
|
min-height: 100%;
|
|
328
|
-
padding:
|
|
333
|
+
padding: 0;
|
|
329
334
|
color: var(--detail-ink);
|
|
330
335
|
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
331
|
-
background:
|
|
332
|
-
linear-gradient(135deg, rgba(31, 98, 214, .045), transparent 34%),
|
|
333
|
-
#f4f6f9;
|
|
336
|
+
background: #f3f6fb;
|
|
334
337
|
}
|
|
335
338
|
|
|
336
339
|
.detail-page-heading {
|
|
@@ -339,7 +342,8 @@ onBeforeUnmount(() => {
|
|
|
339
342
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
340
343
|
align-items: center;
|
|
341
344
|
gap: 10px;
|
|
342
|
-
|
|
345
|
+
max-width: 1440px;
|
|
346
|
+
margin: 0 auto 8px;
|
|
343
347
|
padding: 8px 12px;
|
|
344
348
|
overflow: hidden;
|
|
345
349
|
border: 1px solid var(--detail-line);
|
|
@@ -409,7 +413,9 @@ onBeforeUnmount(() => {
|
|
|
409
413
|
display: flex;
|
|
410
414
|
align-items: center;
|
|
411
415
|
justify-content: center;
|
|
416
|
+
max-width: 1440px;
|
|
412
417
|
min-height: 360px;
|
|
418
|
+
margin: 0 auto;
|
|
413
419
|
padding: 32px;
|
|
414
420
|
border: 1px solid var(--detail-line);
|
|
415
421
|
border-radius: 8px;
|
|
@@ -439,116 +445,152 @@ onBeforeUnmount(() => {
|
|
|
439
445
|
gap: 8px;
|
|
440
446
|
}
|
|
441
447
|
|
|
442
|
-
.detail-
|
|
443
|
-
border: 1px solid var(--detail-line);
|
|
444
|
-
border-radius: 8px;
|
|
445
|
-
background: #fff;
|
|
446
|
-
box-shadow: 0 3px 12px rgba(30, 55, 90, .045);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.detail-section {
|
|
448
|
+
.detail-form-shell {
|
|
450
449
|
display: grid;
|
|
451
|
-
grid-template-columns:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
450
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
451
|
+
align-items: start;
|
|
452
|
+
min-height: 560px;
|
|
453
|
+
max-width: 1440px;
|
|
454
|
+
margin: 0 auto;
|
|
455
|
+
padding: 22px 24px 10px;
|
|
456
|
+
column-gap: clamp(28px, 4vw, 72px);
|
|
457
|
+
row-gap: 0;
|
|
458
|
+
border: 1px solid #eaf0f6;
|
|
459
|
+
border-radius: 10px;
|
|
460
|
+
background: #fff;
|
|
461
|
+
box-shadow: 0 8px 24px rgba(46, 72, 105, .07);
|
|
459
462
|
}
|
|
460
463
|
|
|
461
|
-
.detail-section
|
|
462
|
-
|
|
464
|
+
.detail-section,
|
|
465
|
+
.detail-section-content,
|
|
466
|
+
.detail-grid {
|
|
467
|
+
display: contents;
|
|
463
468
|
}
|
|
464
469
|
|
|
465
470
|
.section-heading {
|
|
466
|
-
|
|
467
|
-
border-right: 1px solid #e8edf4;
|
|
468
|
-
background: #f8fafc;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.section-heading > span {
|
|
472
|
-
display: block;
|
|
473
|
-
margin-bottom: 24px;
|
|
474
|
-
color: #9bb7e5;
|
|
475
|
-
font-size: 28px;
|
|
476
|
-
font-weight: 800;
|
|
477
|
-
line-height: 1;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.section-heading h2 {
|
|
481
|
-
margin: 0;
|
|
482
|
-
color: #27364f;
|
|
483
|
-
font-size: 15px;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.section-heading p {
|
|
487
|
-
margin: 7px 0 0;
|
|
488
|
-
color: var(--detail-muted);
|
|
489
|
-
font-size: 11px;
|
|
490
|
-
line-height: 1.6;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.detail-grid {
|
|
494
|
-
display: grid;
|
|
495
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
496
|
-
margin: 0;
|
|
497
|
-
padding: 8px 20px 18px;
|
|
471
|
+
display: none;
|
|
498
472
|
}
|
|
499
473
|
|
|
500
474
|
.detail-item {
|
|
501
475
|
display: grid;
|
|
502
|
-
grid-template-columns:
|
|
476
|
+
grid-template-columns: 112px minmax(0, 1fr);
|
|
503
477
|
align-items: start;
|
|
504
|
-
column-gap: 8px;
|
|
505
478
|
min-width: 0;
|
|
506
|
-
margin: 0;
|
|
507
|
-
padding:
|
|
508
|
-
border
|
|
479
|
+
margin: 0 0 12px;
|
|
480
|
+
padding: 0;
|
|
481
|
+
border: 0;
|
|
509
482
|
}
|
|
510
483
|
|
|
511
484
|
.detail-item dt {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
485
|
+
box-sizing: border-box;
|
|
486
|
+
min-width: 0;
|
|
487
|
+
height: var(--el-component-size-small, 24px);
|
|
488
|
+
padding: 0 10px 0 0;
|
|
489
|
+
color: #344054;
|
|
490
|
+
font-size: 13px;
|
|
491
|
+
font-weight: 600;
|
|
492
|
+
line-height: var(--el-component-size-small, 24px);
|
|
493
|
+
text-align: right;
|
|
516
494
|
white-space: nowrap;
|
|
517
495
|
}
|
|
518
496
|
|
|
519
497
|
.detail-item dd {
|
|
520
|
-
|
|
498
|
+
display: flex;
|
|
499
|
+
align-items: center;
|
|
500
|
+
box-sizing: border-box;
|
|
501
|
+
min-width: 0;
|
|
502
|
+
min-height: var(--el-component-size-small, 24px);
|
|
521
503
|
margin: 0;
|
|
504
|
+
padding: 3px 8px;
|
|
522
505
|
overflow-wrap: anywhere;
|
|
523
|
-
|
|
506
|
+
border: 1px solid #dce3ec;
|
|
507
|
+
border-radius: 5px;
|
|
508
|
+
background: #f7f9fc;
|
|
509
|
+
color: #27364d;
|
|
524
510
|
font-size: 13px;
|
|
525
511
|
font-weight: 600;
|
|
526
|
-
line-height:
|
|
512
|
+
line-height: 18px;
|
|
527
513
|
}
|
|
528
514
|
|
|
529
|
-
.detail-
|
|
530
|
-
|
|
515
|
+
.detail-item dd :deep(.el-tag) {
|
|
516
|
+
margin: 0;
|
|
531
517
|
}
|
|
532
518
|
|
|
533
|
-
|
|
534
|
-
|
|
519
|
+
[data-detail-field="businessType"] { grid-column: 1; grid-row: 1; }
|
|
520
|
+
[data-detail-field="groundBranch"] { grid-column: 2; grid-row: 1; }
|
|
521
|
+
[data-detail-field="groundBranchCode"] { grid-column: 3; grid-row: 1; }
|
|
522
|
+
[data-detail-field="clientType"] { grid-column: 1; grid-row: 2; }
|
|
523
|
+
[data-detail-field="verifyStatus"] { grid-column: 3; grid-row: 2; }
|
|
524
|
+
[data-detail-field="clientName"] { grid-column: 1; grid-row: 3; }
|
|
525
|
+
[data-detail-field="counterpartyName"] { grid-column: 1; grid-row: 4; }
|
|
526
|
+
[data-detail-field="standardName"] { grid-column: 3; grid-row: 4; }
|
|
527
|
+
[data-detail-field="counterpartyAccount"] { grid-column: 1; grid-row: 5; }
|
|
528
|
+
[data-detail-field="predCode"] { grid-column: 3; grid-row: 5; }
|
|
529
|
+
[data-detail-field="billNo"] { grid-column: 1; grid-row: 6; }
|
|
530
|
+
[data-detail-field="billDate"] { grid-column: 2; grid-row: 6; }
|
|
531
|
+
[data-detail-field="payDirection"] { grid-column: 1; grid-row: 7; }
|
|
532
|
+
[data-detail-field="predAmount"] { grid-column: 2; grid-row: 7; }
|
|
533
|
+
[data-detail-field="verifyAmount"] { grid-column: 3; grid-row: 7; }
|
|
534
|
+
[data-detail-field="tradeDate"] { grid-column: 1; grid-row: 8; }
|
|
535
|
+
[data-detail-field="payChannel"] { grid-column: 2; grid-row: 8; }
|
|
536
|
+
[data-detail-field="eduFlag"] { grid-column: 3; grid-row: 8; }
|
|
537
|
+
[data-detail-field="forecastDate"] { grid-column: 1; grid-row: 9; }
|
|
538
|
+
[data-detail-field="predName"] { grid-column: 2; grid-row: 9; }
|
|
539
|
+
[data-detail-field="predBranchName"] { grid-column: 3; grid-row: 9; }
|
|
540
|
+
[data-detail-field="linkMan"] { grid-column: 1; grid-row: 10; }
|
|
541
|
+
[data-detail-field="phoneNo"] { grid-column: 2; grid-row: 10; }
|
|
542
|
+
[data-detail-field="purpose"] {
|
|
543
|
+
grid-column: 1 / span 2;
|
|
544
|
+
grid-row: 11;
|
|
545
|
+
width: min(100%, 760px);
|
|
546
|
+
}
|
|
547
|
+
[data-detail-field="remark"] {
|
|
548
|
+
grid-column: 1 / span 2;
|
|
549
|
+
grid-row: 12;
|
|
550
|
+
width: min(100%, 760px);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
[data-detail-field="purpose"] dd {
|
|
554
|
+
white-space: pre-wrap;
|
|
535
555
|
}
|
|
536
556
|
|
|
537
|
-
|
|
538
|
-
min-height:
|
|
557
|
+
[data-detail-field="remark"] dd {
|
|
558
|
+
min-height: 74px;
|
|
559
|
+
align-items: flex-start;
|
|
560
|
+
padding-top: 7px;
|
|
561
|
+
padding-bottom: 18px;
|
|
539
562
|
font-weight: 400;
|
|
540
563
|
white-space: pre-wrap;
|
|
541
564
|
}
|
|
542
565
|
|
|
543
|
-
|
|
544
|
-
|
|
566
|
+
[data-detail-field="predAmount"] dd {
|
|
567
|
+
align-items: flex-start;
|
|
568
|
+
white-space: normal;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
@media (max-width: 1040px) {
|
|
572
|
+
.detail-form-shell {
|
|
545
573
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
574
|
+
padding: 16px 18px 4px;
|
|
575
|
+
column-gap: 24px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.detail-form-shell .detail-item {
|
|
579
|
+
grid-column: auto;
|
|
580
|
+
grid-row: auto;
|
|
581
|
+
width: auto;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.detail-form-shell [data-detail-field="purpose"],
|
|
585
|
+
.detail-form-shell [data-detail-field="remark"] {
|
|
586
|
+
grid-column: 1 / -1;
|
|
587
|
+
width: 100%;
|
|
546
588
|
}
|
|
547
589
|
}
|
|
548
590
|
|
|
549
591
|
@media (max-width: 760px) {
|
|
550
|
-
|
|
551
|
-
padding:
|
|
592
|
+
.rmb-forecast-detail-page {
|
|
593
|
+
padding: 0;
|
|
552
594
|
}
|
|
553
595
|
|
|
554
596
|
.detail-page-heading {
|
|
@@ -567,43 +609,30 @@ onBeforeUnmount(() => {
|
|
|
567
609
|
border-left: 0;
|
|
568
610
|
}
|
|
569
611
|
|
|
570
|
-
.detail-
|
|
571
|
-
grid-template-columns: minmax(0, 1fr);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.detail-section {
|
|
612
|
+
.detail-form-shell {
|
|
575
613
|
grid-template-columns: minmax(0, 1fr);
|
|
614
|
+
min-height: 0;
|
|
615
|
+
padding: 14px 12px 4px;
|
|
576
616
|
}
|
|
577
617
|
|
|
578
|
-
.
|
|
618
|
+
.detail-form-shell .detail-item {
|
|
579
619
|
display: flex;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.section-heading > span {
|
|
588
|
-
margin-bottom: 0;
|
|
589
|
-
font-size: 22px;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.detail-section-content {
|
|
593
|
-
padding: 14px 16px;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.detail-grid {
|
|
597
|
-
padding: 4px 16px 14px;
|
|
620
|
+
flex-direction: column;
|
|
621
|
+
align-items: stretch;
|
|
622
|
+
grid-column: auto;
|
|
623
|
+
grid-row: auto;
|
|
624
|
+
margin-bottom: 14px;
|
|
598
625
|
}
|
|
599
626
|
|
|
600
|
-
.detail-
|
|
601
|
-
|
|
627
|
+
.detail-item dt {
|
|
628
|
+
height: 26px;
|
|
629
|
+
padding: 0;
|
|
630
|
+
line-height: 26px;
|
|
631
|
+
text-align: left;
|
|
602
632
|
}
|
|
603
633
|
|
|
604
|
-
.detail-
|
|
605
|
-
|
|
606
|
-
grid-column: auto;
|
|
634
|
+
.detail-item dd {
|
|
635
|
+
width: 100%;
|
|
607
636
|
}
|
|
608
637
|
}
|
|
609
638
|
</style>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// 页面容器保留运行时状态管理,接口模型和业务规则继续由 model.ts/runtime.ts 校验。
|
|
2
4
|
/**
|
|
3
5
|
* 新增、修改、复制页面容器。
|
|
4
6
|
* 本组件负责详情加载、权限前置校验和页面状态,具体字段联动与提交由编辑器组件负责。
|
|
@@ -152,6 +154,7 @@ onBeforeUnmount(() => {
|
|
|
152
154
|
</script>
|
|
153
155
|
|
|
154
156
|
<template>
|
|
157
|
+
<!-- @vue-skip -->
|
|
155
158
|
<main class="rmb-forecast-form-page">
|
|
156
159
|
<section class="form-page-heading">
|
|
157
160
|
<el-button
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// 页面使用大量动态 Element Plus 表格/表单模板;协议转换和业务规则仍在 model.ts/runtime.ts 保持类型校验。
|
|
2
4
|
/**
|
|
3
5
|
* 人民币头寸预报列表页。
|
|
4
6
|
* 列表、详情和新增/修改/复制表单在同一页面内切换,查询条件和分页状态由本页统一维护。
|
|
5
7
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
import {
|
|
9
|
+
computed,
|
|
10
|
+
defineAsyncComponent,
|
|
11
|
+
onBeforeUnmount,
|
|
12
|
+
onMounted,
|
|
13
|
+
reactive,
|
|
14
|
+
ref,
|
|
15
|
+
shallowRef,
|
|
16
|
+
} from 'vue'
|
|
9
17
|
import {
|
|
10
18
|
ElMessage,
|
|
11
19
|
ElMessageBox,
|
|
@@ -30,6 +38,7 @@ import {
|
|
|
30
38
|
createRmbPositionForecastDeleteParams,
|
|
31
39
|
createRmbPositionForecastQueryParams,
|
|
32
40
|
deleteStatusOptions,
|
|
41
|
+
formatRmbPositionClientType,
|
|
33
42
|
forecastStatusOptions,
|
|
34
43
|
payChannelOptions,
|
|
35
44
|
payDirectionOptions,
|
|
@@ -45,8 +54,6 @@ import {
|
|
|
45
54
|
queryRmbPositionForecasts,
|
|
46
55
|
runRmbPositionForecastEndOfDay,
|
|
47
56
|
} from './api'
|
|
48
|
-
import RmbPositionForecastDetail from './detail.vue'
|
|
49
|
-
import RmbPositionForecastForm from './form.vue'
|
|
50
57
|
import {
|
|
51
58
|
getRmbPositionForecastCopyPermissionError,
|
|
52
59
|
getRmbPositionForecastDeletePermissionError,
|
|
@@ -56,7 +63,18 @@ import {
|
|
|
56
63
|
saveRmbPositionForecastFilterCollapsed,
|
|
57
64
|
} from './runtime'
|
|
58
65
|
|
|
59
|
-
|
|
66
|
+
/** 列表页首屏只加载查询和表格;详情/编辑表单在真正打开时再拆包。 */
|
|
67
|
+
const RmbPositionForecastDetail = defineAsyncComponent(
|
|
68
|
+
() => import('./detail.vue'),
|
|
69
|
+
)
|
|
70
|
+
const RmbPositionForecastForm = defineAsyncComponent(
|
|
71
|
+
() => import('./form.vue'),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
const moneyFormatter = new Intl.NumberFormat('zh-CN', {
|
|
75
|
+
minimumFractionDigits: 2,
|
|
76
|
+
maximumFractionDigits: 2,
|
|
77
|
+
})
|
|
60
78
|
|
|
61
79
|
/** 首次进入页面使用系统工作日查询,其余筛选项保持旧 JSP 的默认值。 */
|
|
62
80
|
const createInitialFilter = (): RmbPositionForecastFilter => ({
|
|
@@ -108,9 +126,10 @@ const activeFormMode = computed(() => {
|
|
|
108
126
|
return 'add'
|
|
109
127
|
})
|
|
110
128
|
|
|
111
|
-
|
|
129
|
+
/** 列表数据只整体替换,不需要为每一行建立深层响应式代理。 */
|
|
130
|
+
const records = shallowRef<RmbPositionForecastRow[]>([])
|
|
112
131
|
const totalCount = ref(0)
|
|
113
|
-
const selectedRows =
|
|
132
|
+
const selectedRows = shallowRef<RmbPositionForecastRow[]>([])
|
|
114
133
|
const currentPage = ref(1)
|
|
115
134
|
const pageSize = ref(25)
|
|
116
135
|
const lastSuccessfulPage = ref(1)
|
|
@@ -206,6 +225,7 @@ function getTableColumnText(
|
|
|
206
225
|
const value = (row as any)[column.prop]
|
|
207
226
|
if (column.render === 'date') return formatCompactDate(String(value ?? ''))
|
|
208
227
|
if (column.render === 'money') return formatMoney(Number(value ?? 0))
|
|
228
|
+
if (column.prop === 'clientType') return formatRmbPositionClientType(value)
|
|
209
229
|
if (column.options) return getOptionLabel(column.options, String(value ?? ''))
|
|
210
230
|
return String(value ?? '') || '—'
|
|
211
231
|
}
|
|
@@ -227,16 +247,22 @@ const singleSelectionTip = computed(() => {
|
|
|
227
247
|
|
|
228
248
|
/** 列表金额仅做元单位的本地化展示,不改变提交或查询值。 */
|
|
229
249
|
function formatMoney(value: number) {
|
|
230
|
-
return Number(value || 0)
|
|
231
|
-
minimumFractionDigits: 2,
|
|
232
|
-
maximumFractionDigits: 2,
|
|
233
|
-
})
|
|
250
|
+
return moneyFormatter.format(Number(value || 0))
|
|
234
251
|
}
|
|
235
252
|
|
|
236
253
|
/** 列表日期按协议的 YYYYMMDD 原样展示;非法值保留原文。 */
|
|
237
254
|
function formatCompactDate(value: string) {
|
|
238
|
-
|
|
239
|
-
|
|
255
|
+
if (!/^\d{8}$/.test(value)) return value || '—'
|
|
256
|
+
|
|
257
|
+
const year = Number(value.slice(0, 4))
|
|
258
|
+
const month = Number(value.slice(4, 6))
|
|
259
|
+
const day = Number(value.slice(6, 8))
|
|
260
|
+
const date = new Date(year, month - 1, day)
|
|
261
|
+
return date.getFullYear() === year
|
|
262
|
+
&& date.getMonth() === month - 1
|
|
263
|
+
&& date.getDate() === day
|
|
264
|
+
? value
|
|
265
|
+
: value || '—'
|
|
240
266
|
}
|
|
241
267
|
|
|
242
268
|
function getTableRowIndex(index: number) {
|
|
@@ -511,6 +537,7 @@ function handleExport() {
|
|
|
511
537
|
</script>
|
|
512
538
|
|
|
513
539
|
<template>
|
|
540
|
+
<!-- @vue-skip -->
|
|
514
541
|
<div class="rmb-position-page">
|
|
515
542
|
<template v-if="activeView === 'list'">
|
|
516
543
|
<!-- 列表视图由筛选区、操作工具栏和分页表格组成。 -->
|
|
@@ -627,6 +654,7 @@ function handleExport() {
|
|
|
627
654
|
row-key="predRefNo"
|
|
628
655
|
border
|
|
629
656
|
stripe
|
|
657
|
+
:fit="false"
|
|
630
658
|
:height="tableHeight"
|
|
631
659
|
empty-text="暂无人民币头寸预报记录"
|
|
632
660
|
class="forecast-table"
|
|
@@ -978,7 +1006,18 @@ function handleExport() {
|
|
|
978
1006
|
}
|
|
979
1007
|
|
|
980
1008
|
.forecast-table :deep(.cell) {
|
|
1009
|
+
overflow: visible;
|
|
1010
|
+
text-overflow: clip;
|
|
981
1011
|
white-space: nowrap;
|
|
1012
|
+
word-break: normal;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/* 列宽按内容自然展开,超出页面宽度时由表格内部横向滚动承载。 */
|
|
1016
|
+
.forecast-table :deep(.el-table__inner-wrapper > .el-table__body-wrapper .el-table__body),
|
|
1017
|
+
.forecast-table :deep(.el-table__inner-wrapper > .el-table__header-wrapper .el-table__header),
|
|
1018
|
+
.forecast-table :deep(.el-table__inner-wrapper > .el-table__footer-wrapper .el-table__footer) {
|
|
1019
|
+
width: max-content !important;
|
|
1020
|
+
min-width: 100%;
|
|
982
1021
|
}
|
|
983
1022
|
|
|
984
1023
|
.forecast-table :deep(.el-table__row) {
|
|
@@ -197,6 +197,19 @@ export const clientTypeOptions = [
|
|
|
197
197
|
{ value: '5', label: '其他' },
|
|
198
198
|
] satisfies SelectOption<RmbPositionClientType>[]
|
|
199
199
|
|
|
200
|
+
/** 将列表和详情中的客户类型编码转换为展示文案,不改变接口提交值。 */
|
|
201
|
+
const clientTypeLabels: Record<string, string> = {
|
|
202
|
+
'1': '对公客户',
|
|
203
|
+
'2': '个人客户',
|
|
204
|
+
'5': '其他',
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function formatRmbPositionClientType(value: unknown) {
|
|
208
|
+
const code = String(value ?? '').trim()
|
|
209
|
+
const label = clientTypeLabels[code]
|
|
210
|
+
return label || code || '—'
|
|
211
|
+
}
|
|
212
|
+
|
|
200
213
|
/** 业务类型选项;编码必须与旧 JSP/TAM 约定保持一致。 */
|
|
201
214
|
export const businessTypeOptions = [
|
|
202
215
|
{ value: '1', label: '对公/个人客户收付' },
|
|
@@ -4,6 +4,10 @@ import type { RmbPositionForecastRow } from './model'
|
|
|
4
4
|
|
|
5
5
|
type RmbPositionForecastRole = string
|
|
6
6
|
|
|
7
|
+
/** 临时跳过旧 JSP 的金额分级权限与已核销修改时间窗口校验;改为 false 即可恢复。 */
|
|
8
|
+
const skipAmountPermissionValidation = true
|
|
9
|
+
const skipVerifyUpdateWindowValidation = true
|
|
10
|
+
|
|
7
11
|
/** 将环境变量中的角色编码转换为人民币头寸预报可用的权限集合。 */
|
|
8
12
|
function parseRoles(value: unknown) {
|
|
9
13
|
return new Set<string>(
|
|
@@ -70,12 +74,16 @@ function getSystemWorkDate() {
|
|
|
70
74
|
export const rmbPositionForecastBusinessContext = {
|
|
71
75
|
/** 当前用户的人民币头寸预报权限角色编码,来源:VITE_TAM_USER_ROLES。 */
|
|
72
76
|
roles: parseRoles(import.meta.env.VITE_TAM_USER_ROLES),
|
|
77
|
+
|
|
78
|
+
|
|
73
79
|
/** 金额权限分界值,来源:VITE_TAM_PRE_CHECK_AMOUNT,单位为元。 */
|
|
74
80
|
preCheckAmount: getPreCheckAmount(import.meta.env.VITE_TAM_PRE_CHECK_AMOUNT),
|
|
75
81
|
/** 已核销预报可修改时间窗口起点,来源:VITE_TAM_VERIFY_UPDATE_START。 */
|
|
76
82
|
verifyUpdateStart: normalizeTime(import.meta.env.VITE_TAM_VERIFY_UPDATE_START),
|
|
77
83
|
/** 已核销预报可修改时间窗口终点,来源:VITE_TAM_VERIFY_UPDATE_END。 */
|
|
78
84
|
verifyUpdateEnd: normalizeTime(import.meta.env.VITE_TAM_VERIFY_UPDATE_END),
|
|
85
|
+
|
|
86
|
+
|
|
79
87
|
/** 系统工作日期,优先来源:VITE_SYSTEM_WORK_DATE,格式为 YYYYMMDD。 */
|
|
80
88
|
sysWorkDate: getSystemWorkDate(),
|
|
81
89
|
/** 落地机构默认代码,来源:VITE_TAM_BRANCH_ID。 */
|
|
@@ -143,6 +151,8 @@ function getCurrentRoleDescription() {
|
|
|
143
151
|
|
|
144
152
|
/** 校验已核销预报的可修改时间窗口;边界时刻不包含在可操作区间内。 */
|
|
145
153
|
function getVerifyUpdateWindowError() {
|
|
154
|
+
if (skipVerifyUpdateWindowValidation) return ''
|
|
155
|
+
|
|
146
156
|
const context = rmbPositionForecastBusinessContext
|
|
147
157
|
if (!context.verifyUpdateStart || !context.verifyUpdateEnd) {
|
|
148
158
|
return '未配置已核销预报可修改时间窗口,无法修改'
|
|
@@ -162,6 +172,8 @@ function getVerifyUpdateWindowError() {
|
|
|
162
172
|
export function getRmbPositionForecastAmountPermissionError(
|
|
163
173
|
row: RmbPositionForecastRow,
|
|
164
174
|
) {
|
|
175
|
+
if (skipAmountPermissionValidation) return ''
|
|
176
|
+
|
|
165
177
|
const context = rmbPositionForecastBusinessContext
|
|
166
178
|
if (row.predAmount >= context.preCheckAmount && !context.roles.has('006')) {
|
|
167
179
|
return `预报 ${row.predRefNo} 的预报金额为 ${formatPermissionAmount(row.predAmount)} 元,达到金额权限分界值 ${formatPermissionAmount(context.preCheckAmount)} 元,仅角色 006(总行管理员)可以操作;当前用户角色:${getCurrentRoleDescription()}`
|