verce-vue-test 0.0.109 → 0.0.111

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/denglong.vue ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -37,6 +37,7 @@
37
37
  "@vitejs/plugin-vue": "^6.0.6",
38
38
  "@vue/tsconfig": "^0.9.1",
39
39
  "npm-run-all2": "^8.0.4",
40
+ "sass-embedded": "^1.100.0",
40
41
  "typescript": "~6.0.0",
41
42
  "vite": "^8.0.8",
42
43
  "vite-plugin-vue-devtools": "^8.1.1",
@@ -7,6 +7,7 @@ import {
7
7
  computed,
8
8
  getCurrentInstance,
9
9
  nextTick,
10
+ onBeforeUnmount,
10
11
  ref,
11
12
  useAttrs,
12
13
  useSlots,
@@ -38,7 +39,7 @@ const props = withDefaults(
38
39
  columnStorageKey?: string
39
40
  // 列配置弹窗挂载节点,用于页面级浮层隔离
40
41
  appendTo?: string | HTMLElement
41
- // 分页条数下拉层挂载节点(Element Plus 仅支持选择器)
42
+ // 分页条数下拉层挂载节点;兼容不支持 append-size-to 的旧版 Element Plus
42
43
  paginationAppendTo?: string
43
44
  // 是否开启列配置功能
44
45
  columnConfig?: boolean
@@ -92,7 +93,11 @@ const route = useRoute()
92
93
  const attrs = useAttrs()
93
94
  const slots = useSlots()
94
95
  // Vue 3.4 尚未提供 useId,使用组件实例 uid 生成页面内唯一的无障碍关联 ID。
95
- const columnOrderTipId = `el-table-pro-column-order-tip-${getCurrentInstance()?.uid ?? 0}`
96
+ const componentUid = getCurrentInstance()?.uid ?? 0
97
+ const columnOrderTipId = `el-table-pro-column-order-tip-${componentUid}`
98
+ // Element Plus 2.2.x 只能通过 popper-class 标识分页条数下拉层。
99
+ const paginationPopperClass = `el-table-pro-pagination-popper-${componentUid}`
100
+ let paginationPopperOriginalParent: HTMLElement | null = null
96
101
 
97
102
  /**
98
103
  * 响应式状态
@@ -138,6 +143,57 @@ watch(
138
143
  }
139
144
  )
140
145
 
146
+ /**
147
+ * Element Plus 2.2.x 的 el-pagination 尚不支持 append-size-to,分页条数下拉层
148
+ * 会固定 Teleport 到 body。浏览器全屏时 body 下的浮层不可见,因此在传入目标选择器后,
149
+ * 将当前表格独有的分页浮层移动到全屏根节点;退出全屏时再还原原挂载位置。
150
+ */
151
+ const syncPaginationPopperTarget = async () => {
152
+ await nextTick()
153
+ if (typeof document === "undefined") return
154
+
155
+ const popper = document.querySelector<HTMLElement>(`.${paginationPopperClass}`)
156
+ if (!popper) return
157
+
158
+ if (!paginationPopperOriginalParent) {
159
+ paginationPopperOriginalParent = popper.parentElement
160
+ }
161
+
162
+ if (props.paginationAppendTo) {
163
+ const target = document.querySelector<HTMLElement>(props.paginationAppendTo)
164
+ if (target && popper.parentElement !== target) {
165
+ target.appendChild(popper)
166
+ }
167
+ return
168
+ }
169
+
170
+ if (
171
+ paginationPopperOriginalParent?.isConnected
172
+ && popper.parentElement !== paginationPopperOriginalParent
173
+ ) {
174
+ paginationPopperOriginalParent.appendChild(popper)
175
+ }
176
+ }
177
+
178
+ watch(
179
+ () => props.paginationAppendTo,
180
+ () => {
181
+ void syncPaginationPopperTarget()
182
+ },
183
+ { immediate: true, flush: "post" }
184
+ )
185
+
186
+ onBeforeUnmount(() => {
187
+ const popper = document.querySelector<HTMLElement>(`.${paginationPopperClass}`)
188
+ if (
189
+ popper
190
+ && paginationPopperOriginalParent?.isConnected
191
+ && popper.parentElement !== paginationPopperOriginalParent
192
+ ) {
193
+ paginationPopperOriginalParent.appendChild(popper)
194
+ }
195
+ })
196
+
141
197
  /**
142
198
  * 计算属性
143
199
  */
@@ -588,7 +644,7 @@ initColumns()
588
644
  :total="total || data.length"
589
645
  :page-sizes="pageSizes"
590
646
  :layout="layout"
591
- :append-size-to="paginationAppendTo"
647
+ :popper-class="paginationPopperClass"
592
648
  background
593
649
  :size="colBtnSize"
594
650
  />
@@ -0,0 +1,267 @@
1
+ import baseHttpClient from '@/utils/baseHttpClient'
2
+
3
+ /**
4
+ * 外币手工核销页面接口。
5
+ *
6
+ * `baseHttpClient` 负责补充 TAM 公共报文头,当前文件只定义业务请求参数、
7
+ * 交易码以及页面需要的响应归一化逻辑。
8
+ */
9
+
10
+ /** TAM 列表接口返回的单行原始数据,字段名保持后端原样。 */
11
+ type ForeignSettlementRow = Record<string, unknown>
12
+
13
+ /** 外币预报、流水查询接口的原始响应体。 */
14
+ type ForeignSettlementListBody = {
15
+ resultInfos?: ForeignSettlementRow[]
16
+ totalCount?: number | string | null
17
+ totalPage?: number | string | null
18
+ }
19
+
20
+ /** 页面统一使用的列表查询结果。 */
21
+ export type ForeignSettlementListResult = {
22
+ /** 当前页数据。 */
23
+ resultList: ForeignSettlementRow[]
24
+ /** 符合查询条件的数据总数。 */
25
+ totalCount: number
26
+ /** 总页数;接口未返回有效值时为 0。 */
27
+ totalPage: number
28
+ }
29
+
30
+ /** 外币预报信息查询参数。 */
31
+ export type ForeignSettlementForecastQueryParams = {
32
+ /** 金额排序方式。 */
33
+ amtOrder: string
34
+ /** 授权状态。 */
35
+ authorization: string
36
+ /** 账户行行号。 */
37
+ bankCode: string
38
+ /** 所属机构代码。 */
39
+ branchs: string
40
+ /** 所属机构名称。 */
41
+ branchsName: string
42
+ /** 币种。 */
43
+ ccy: string
44
+ /** 客户名称。 */
45
+ clientName: string
46
+ /** 截止金额。 */
47
+ endAmt: string
48
+ /** 是否过滤 FTU 数据。 */
49
+ filter: string
50
+ /** 操作类型,列表查询时传空字符串。 */
51
+ opType: string
52
+ /** 当前页码。 */
53
+ pageIndex: number
54
+ /** 每页条数。 */
55
+ pageSize: number
56
+ /** 收支方向。 */
57
+ payDirec: string
58
+ /** 预报方式。 */
59
+ predWay: string
60
+ /** 起始金额。 */
61
+ startAmt: string
62
+ /** 起息日,格式为 YYYYMMDD。 */
63
+ tranDate: string
64
+ /** 业务类型。 */
65
+ tranType: string
66
+ /** 核销状态。 */
67
+ vrfctnSts: string
68
+ }
69
+
70
+ /** 外币流水信息查询参数。 */
71
+ export type ForeignSettlementFlowQueryParams = {
72
+ /** 授权状态。 */
73
+ authorization: string
74
+ /** 账户行行号。 */
75
+ bankCode: string
76
+ /** 所属机构代码。 */
77
+ branchs: string
78
+ /** 所属机构名称。 */
79
+ branchsName: string
80
+ /** 币种。 */
81
+ ccy: string
82
+ /** 客户名称。 */
83
+ clientName: string
84
+ /** 截止金额。 */
85
+ endAmt: string
86
+ /** 操作类型,列表查询时传空字符串。 */
87
+ opType: string
88
+ /** 当前页码。 */
89
+ pageIndex: number
90
+ /** 每页条数。 */
91
+ pageSize: number
92
+ /** 收支方向。 */
93
+ payDirec: string
94
+ /** 预报方式;流水查询时传空字符串。 */
95
+ predWay: string
96
+ /** 起始金额。 */
97
+ startAmt: string
98
+ /** 交易日期,格式为 YYYYMMDD。 */
99
+ tranDate: string
100
+ /** 报文类型列表。 */
101
+ tranType: string[]
102
+ /** 核销状态。 */
103
+ vrfctnSts: string
104
+ }
105
+
106
+ /** 手工核销请求参数;多个值按相同顺序使用英文逗号拼接。 */
107
+ export type ForeignSettlementVerifyParams = {
108
+ /** 预报流水号集合。 */
109
+ predIds: string
110
+ /** 预报金额集合。 */
111
+ predAmts: string
112
+ /** 已核销金额集合。 */
113
+ verifyAmts: string
114
+ /** 预报核销状态集合。 */
115
+ preStatus: string
116
+ /** 预报起息日集合。 */
117
+ predValueDates: string
118
+ /** 流水号集合;未选择流水时不传。 */
119
+ tranSeqIds?: string
120
+ /** 流水未核销金额集合;未选择流水时不传。 */
121
+ tranAmts?: string
122
+ /** 流水核销状态集合;未选择流水时不传。 */
123
+ seqVerifyStatus?: string
124
+ /** 流水起息日集合;未选择流水时不传。 */
125
+ tranValueDates?: string
126
+ }
127
+
128
+ /** 撤销核销请求参数。 */
129
+ export type ForeignSettlementCancelVerifyParams = {
130
+ /** 预报已核销金额。 */
131
+ predAmt: string
132
+ /** 预报流水号。 */
133
+ predRefNo: string
134
+ /** 关联流水号集合,使用英文逗号拼接。 */
135
+ tranRefNos: string
136
+ }
137
+
138
+ /** 自动核销请求参数。 */
139
+ export type ForeignSettlementDateParams = {
140
+ /** 自动核销日期,格式为 YYYYMMDD。 */
141
+ tranDate: string
142
+ }
143
+
144
+ /** 获取流水请求参数。 */
145
+ export type ForeignSettlementQueryDateParams = {
146
+ /** 待获取流水的日期,格式为 YYYYMMDD。 */
147
+ queryDate: string
148
+ }
149
+
150
+ /** 将接口返回的数量安全转换为非负数字。 */
151
+ function normalizeCount(value: unknown, fallback: number) {
152
+ const normalizedValue = String(value ?? '').trim()
153
+ if (!normalizedValue) return fallback
154
+ const count = Number(normalizedValue)
155
+ return Number.isFinite(count) && count >= 0 ? count : fallback
156
+ }
157
+
158
+ /**
159
+ * 将 TAM 的 `resultInfos` 列表结构转换为页面统一使用的分页结构。
160
+ * 接口未返回数组时主动抛错,避免页面把异常响应误认为空列表。
161
+ */
162
+ function normalizeListBody(
163
+ body: ForeignSettlementListBody,
164
+ errorMessage: string,
165
+ ): ForeignSettlementListResult {
166
+ if (!Array.isArray(body.resultInfos)) throw new Error(errorMessage)
167
+ return {
168
+ resultList: body.resultInfos.map((row) => ({ ...row })),
169
+ totalCount: normalizeCount(body.totalCount, body.resultInfos.length),
170
+ totalPage: normalizeCount(body.totalPage, 0),
171
+ }
172
+ }
173
+
174
+ /**
175
+ * 查询外币预报信息。
176
+ * @transactionCode 140202001
177
+ * @returns 归一化后的预报列表及分页信息。
178
+ */
179
+ export async function queryForeignSettlementForecasts(
180
+ params: ForeignSettlementForecastQueryParams,
181
+ ) {
182
+ const response = await baseHttpClient.post(
183
+ '/TAM/0001/140202001',
184
+ params,
185
+ ) as any
186
+ return normalizeListBody(response.body, '外币预报信息接口返回结构不正确')
187
+ }
188
+
189
+ /**
190
+ * 查询外币流水信息。
191
+ * @transactionCode 140202002
192
+ * @returns 归一化后的流水列表及分页信息。
193
+ */
194
+ export async function queryForeignSettlementFlows(
195
+ params: ForeignSettlementFlowQueryParams,
196
+ ) {
197
+ const response = await baseHttpClient.post(
198
+ '/TAM/0001/140202002',
199
+ params,
200
+ ) as any
201
+ return normalizeListBody(response.body, '外币流水信息接口返回结构不正确')
202
+ }
203
+
204
+ /**
205
+ * 按指定起息日发起自动核销。
206
+ * @transactionCode 120202001
207
+ */
208
+ export async function autoVerifyForeignSettlements(
209
+ params: ForeignSettlementDateParams,
210
+ ) {
211
+ await baseHttpClient.post(
212
+ '/TAM/0001/120202001',
213
+ params,
214
+ ) as any
215
+ }
216
+
217
+ /**
218
+ * 获取指定日期的外币流水。
219
+ * @transactionCode 120202004
220
+ */
221
+ export async function fetchForeignSettlementFlows(
222
+ params: ForeignSettlementQueryDateParams,
223
+ ) {
224
+ await baseHttpClient.post(
225
+ '/TAM/0001/120202004',
226
+ params,
227
+ ) as any
228
+ }
229
+
230
+ /**
231
+ * 获取指定日期的外币日终流水。
232
+ * @transactionCode 120202005
233
+ */
234
+ export async function fetchForeignSettlementEndOfDayFlows(
235
+ params: ForeignSettlementQueryDateParams,
236
+ ) {
237
+ await baseHttpClient.post(
238
+ '/TAM/0001/120202005',
239
+ params,
240
+ ) as any
241
+ }
242
+
243
+ /**
244
+ * 手动核销所选外币预报及关联流水。
245
+ * @transactionCode 120202002
246
+ */
247
+ export async function verifyForeignSettlements(
248
+ params: ForeignSettlementVerifyParams,
249
+ ) {
250
+ await baseHttpClient.post(
251
+ '/TAM/0001/120202002',
252
+ params,
253
+ ) as any
254
+ }
255
+
256
+ /**
257
+ * 撤销外币预报及关联流水的核销关系。
258
+ * @transactionCode 120202003
259
+ */
260
+ export async function cancelVerifyForeignSettlements(
261
+ params: ForeignSettlementCancelVerifyParams,
262
+ ) {
263
+ await baseHttpClient.post(
264
+ '/TAM/0001/120202003',
265
+ params,
266
+ ) as any
267
+ }
@@ -8,6 +8,7 @@ export default {
8
8
  <script setup lang="ts">
9
9
  import {
10
10
  computed,
11
+ getCurrentInstance,
11
12
  onActivated,
12
13
  onBeforeUnmount,
13
14
  onDeactivated,
@@ -15,7 +16,6 @@ import {
15
16
  reactive,
16
17
  ref,
17
18
  shallowRef,
18
- useId,
19
19
  watch,
20
20
  } from 'vue'
21
21
  import { onBeforeRouteLeave, useRoute } from 'vue-router'
@@ -32,8 +32,16 @@ import {
32
32
  Search,
33
33
  } from '@element-plus/icons-vue'
34
34
  import { queryAccountBanks } from '@/api/account-bank'
35
- import baseHttpClient from '@/utils/baseHttpClient'
36
35
  import { formatThousands } from '@/utils/formatters'
36
+ import {
37
+ autoVerifyForeignSettlements,
38
+ cancelVerifyForeignSettlements,
39
+ fetchForeignSettlementEndOfDayFlows,
40
+ fetchForeignSettlementFlows,
41
+ queryForeignSettlementFlows,
42
+ queryForeignSettlementForecasts,
43
+ verifyForeignSettlements,
44
+ } from './api'
37
45
  import './foreign-currency-settlement-base.css'
38
46
 
39
47
  type CardLayout = 'vertical' | 'horizontal'
@@ -288,52 +296,6 @@ function isForeignSettlementAbortError(error: unknown) {
288
296
  return error instanceof Error && error.name === 'AbortError'
289
297
  }
290
298
 
291
- function normalizeCount(value: unknown, fallback: number) {
292
- const normalizedValue = String(value ?? '').trim()
293
- if (!normalizedValue) return fallback
294
- const count = Number(normalizedValue)
295
- return Number.isFinite(count) && count >= 0 ? count : fallback
296
- }
297
-
298
- function normalizeListBody(body: any, errorMessage: string): any {
299
- if (!Array.isArray(body.resultInfos)) throw new Error(errorMessage)
300
- return {
301
- resultList: body.resultInfos.map((row: any) => ({ ...row })),
302
- totalCount: normalizeCount(body.totalCount, body.resultInfos.length),
303
- totalPage: normalizeCount(body.totalPage, 0),
304
- }
305
- }
306
-
307
- async function queryForeignSettlementForecasts(params: any) {
308
- const response = await baseHttpClient.post<any>('/TAM/0001/140202001', params)
309
- return normalizeListBody(response.body, '外币预报信息接口返回结构不正确')
310
- }
311
-
312
- async function queryForeignSettlementFlows(params: any) {
313
- const response = await baseHttpClient.post<any>('/TAM/0001/140202002', params)
314
- return normalizeListBody(response.body, '外币流水信息接口返回结构不正确')
315
- }
316
-
317
- async function autoVerifyForeignSettlements(params: any) {
318
- await baseHttpClient.post<any>('/TAM/0001/120202001', params)
319
- }
320
-
321
- async function fetchForeignSettlementFlows(params: any) {
322
- await baseHttpClient.post<any>('/TAM/0001/120202004', params)
323
- }
324
-
325
- async function fetchForeignSettlementEndOfDayFlows(params: any) {
326
- await baseHttpClient.post<any>('/TAM/0001/120202005', params)
327
- }
328
-
329
- async function verifyForeignSettlements(params: any) {
330
- await baseHttpClient.post<any>('/TAM/0001/120202002', params)
331
- }
332
-
333
- async function cancelVerifyForeignSettlements(params: any) {
334
- await baseHttpClient.post<any>('/TAM/0001/120202003', params)
335
- }
336
-
337
299
  function useScopedMessage(resolveAppendTo: () => HTMLElement | null) {
338
300
  const activeHandles = new Set<any>()
339
301
 
@@ -408,7 +370,7 @@ const pageContainer = ref<HTMLElement | null>(null)
408
370
  const overlayContainer = ref<HTMLElement | null>(null)
409
371
  const isFullscreen = ref(false)
410
372
  /** 每个页面实例使用独立根节点,避免 KeepAlive 场景下分页浮层命中旧页面。 */
411
- const pageScopeId = `foreign-currency-settlement-page-${useId()}`
373
+ const pageScopeId = `foreign-currency-settlement-page-${getCurrentInstance()?.uid ?? 0}`
412
374
  const paginationAppendTo = computed(() => (isFullscreen.value ? `#${pageScopeId}` : undefined))
413
375
  const pageMessage = useScopedMessage(() => overlayContainer.value)
414
376
  const forecastSelectedRows = shallowRef<any[]>([])
@@ -1494,7 +1456,6 @@ onBeforeUnmount(() => {
1494
1456
  <el-select
1495
1457
  v-model="forecastFilterForm.ftuFilter"
1496
1458
  :append-to="overlayContainer || undefined"
1497
- :persistent="false"
1498
1459
  size="small"
1499
1460
  placeholder="请选择"
1500
1461
  clearable
@@ -1513,7 +1474,6 @@ onBeforeUnmount(() => {
1513
1474
  <el-select
1514
1475
  v-model="forecastFilterForm.direction"
1515
1476
  :append-to="overlayContainer || undefined"
1516
- :persistent="false"
1517
1477
  size="small"
1518
1478
  placeholder="请选择"
1519
1479
  clearable
@@ -1532,7 +1492,6 @@ onBeforeUnmount(() => {
1532
1492
  <el-select
1533
1493
  v-model="forecastFilterForm.currency"
1534
1494
  :append-to="overlayContainer || undefined"
1535
- :persistent="false"
1536
1495
  size="small"
1537
1496
  placeholder="请选择"
1538
1497
  filterable
@@ -1745,7 +1704,6 @@ onBeforeUnmount(() => {
1745
1704
  <el-select
1746
1705
  v-model="forecastFilterForm.ftuFilter"
1747
1706
  :append-to="overlayContainer || undefined"
1748
- :persistent="false"
1749
1707
  size="small"
1750
1708
  placeholder="请选择"
1751
1709
  clearable
@@ -1764,7 +1722,6 @@ onBeforeUnmount(() => {
1764
1722
  <el-select
1765
1723
  v-model="forecastFilterForm.direction"
1766
1724
  :append-to="overlayContainer || undefined"
1767
- :persistent="false"
1768
1725
  size="small"
1769
1726
  placeholder="请选择"
1770
1727
  clearable
@@ -1783,7 +1740,6 @@ onBeforeUnmount(() => {
1783
1740
  <el-select
1784
1741
  v-model="forecastFilterForm.currency"
1785
1742
  :append-to="overlayContainer || undefined"
1786
- :persistent="false"
1787
1743
  size="small"
1788
1744
  placeholder="请选择"
1789
1745
  filterable
@@ -1805,7 +1761,6 @@ onBeforeUnmount(() => {
1805
1761
  <el-select
1806
1762
  v-model="forecastFilterForm.businessType"
1807
1763
  :append-to="overlayContainer || undefined"
1808
- :persistent="false"
1809
1764
  size="small"
1810
1765
  placeholder="请选择"
1811
1766
  clearable
@@ -1824,7 +1779,6 @@ onBeforeUnmount(() => {
1824
1779
  <el-select
1825
1780
  v-model="forecastFilterForm.forecastWay"
1826
1781
  :append-to="overlayContainer || undefined"
1827
- :persistent="false"
1828
1782
  size="small"
1829
1783
  placeholder="请选择"
1830
1784
  clearable
@@ -1843,7 +1797,6 @@ onBeforeUnmount(() => {
1843
1797
  <el-select
1844
1798
  v-model="forecastFilterForm.verifyStatus"
1845
1799
  :append-to="overlayContainer || undefined"
1846
- :persistent="false"
1847
1800
  size="small"
1848
1801
  placeholder="请选择"
1849
1802
  clearable
@@ -1868,7 +1821,6 @@ onBeforeUnmount(() => {
1868
1821
  v-model="forecastFilterForm.bankCode"
1869
1822
  :append-to="overlayContainer || undefined"
1870
1823
  :loading="forecastAccountBankLoading"
1871
- :persistent="false"
1872
1824
  size="small"
1873
1825
  placeholder="请选择账户行"
1874
1826
  filterable
@@ -1993,7 +1945,6 @@ onBeforeUnmount(() => {
1993
1945
  <el-select
1994
1946
  v-model="flowFilterForm.direction"
1995
1947
  :append-to="overlayContainer || undefined"
1996
- :persistent="false"
1997
1948
  size="small"
1998
1949
  placeholder="请选择"
1999
1950
  clearable
@@ -2012,7 +1963,6 @@ onBeforeUnmount(() => {
2012
1963
  <el-select
2013
1964
  v-model="flowFilterForm.currency"
2014
1965
  :append-to="overlayContainer || undefined"
2015
- :persistent="false"
2016
1966
  size="small"
2017
1967
  placeholder="请选择"
2018
1968
  filterable
@@ -2034,7 +1984,6 @@ onBeforeUnmount(() => {
2034
1984
  <el-select
2035
1985
  v-model="flowFilterForm.verifyStatus"
2036
1986
  :append-to="overlayContainer || undefined"
2037
- :persistent="false"
2038
1987
  size="small"
2039
1988
  placeholder="请选择"
2040
1989
  clearable
@@ -2231,7 +2180,6 @@ onBeforeUnmount(() => {
2231
2180
  <el-select
2232
2181
  v-model="flowFilterForm.direction"
2233
2182
  :append-to="overlayContainer || undefined"
2234
- :persistent="false"
2235
2183
  size="small"
2236
2184
  placeholder="请选择"
2237
2185
  clearable
@@ -2250,7 +2198,6 @@ onBeforeUnmount(() => {
2250
2198
  <el-select
2251
2199
  v-model="flowFilterForm.currency"
2252
2200
  :append-to="overlayContainer || undefined"
2253
- :persistent="false"
2254
2201
  size="small"
2255
2202
  placeholder="请选择"
2256
2203
  filterable
@@ -2272,7 +2219,6 @@ onBeforeUnmount(() => {
2272
2219
  <el-select
2273
2220
  v-model="flowFilterForm.messageTypes"
2274
2221
  :append-to="overlayContainer || undefined"
2275
- :persistent="false"
2276
2222
  size="small"
2277
2223
  placeholder="请选择或输入代码"
2278
2224
  multiple
@@ -2297,7 +2243,6 @@ onBeforeUnmount(() => {
2297
2243
  <el-select
2298
2244
  v-model="flowFilterForm.verifyStatus"
2299
2245
  :append-to="overlayContainer || undefined"
2300
- :persistent="false"
2301
2246
  size="small"
2302
2247
  placeholder="请选择"
2303
2248
  clearable
@@ -2322,7 +2267,6 @@ onBeforeUnmount(() => {
2322
2267
  v-model="flowFilterForm.bankCode"
2323
2268
  :append-to="overlayContainer || undefined"
2324
2269
  :loading="flowAccountBankLoading"
2325
- :persistent="false"
2326
2270
  size="small"
2327
2271
  placeholder="请选择账户行"
2328
2272
  filterable
@@ -1,11 +1,16 @@
1
1
  import baseHttpClient, { type TamResponse } from '@/utils/baseHttpClient'
2
2
  import type {
3
+ RmbPositionForecastDetail,
3
4
  RmbPositionForecastFilter,
4
5
  RmbPositionForecastListResult,
5
6
  RmbPositionForecastRow,
6
7
  } from './types'
7
8
 
8
9
  const QUERY_TRAN_CODE = '/TAM/0001/140101001'
10
+ const CREATE_TRAN_CODE = '/TAM/0001/120101001'
11
+ const UPDATE_TRAN_CODE = '/TAM/0001/120101002'
12
+ const DELETE_TRAN_CODE = '/TAM/0001/120101003'
13
+ const DETAIL_TRAN_CODE = '/TAM/0001/140101002'
9
14
 
10
15
  type RmbPositionForecastQueryParams = {
11
16
  busiType: string
@@ -24,19 +29,29 @@ type RmbPositionForecastQueryParams = {
24
29
 
25
30
  type RmbPositionForecastApiRow = {
26
31
  busiType?: string
32
+ billDate?: string
33
+ billNo?: string
27
34
  clientName?: string
28
35
  clientType?: string
29
36
  competAcct?: string
30
37
  competName?: string
38
+ eduFlag?: string
31
39
  groundBranch?: string
32
40
  groundBranchCode?: string
41
+ linkMan?: string
33
42
  payChannel?: string
34
43
  payDirec?: string
44
+ phoneNo?: string
35
45
  predAmt?: string
46
+ predBranch?: string
47
+ predBranchName?: string
36
48
  predCode?: string
37
49
  predDate?: string
50
+ predName?: string
38
51
  predRefNo?: string
39
52
  predStatus?: string
53
+ purpose?: string
54
+ remark?: string
40
55
  standardName?: string
41
56
  tranDate?: string
42
57
  verifyAmt?: string
@@ -48,6 +63,30 @@ type RmbPositionForecastResponseBody = {
48
63
  totalCount?: string | number
49
64
  }
50
65
 
66
+ export type RmbPositionForecastMutationValue = {
67
+ predRefNo?: string
68
+ tradeDate: string
69
+ payDirection: string
70
+ payChannel: string
71
+ predAmount: number
72
+ groundBranch: string
73
+ groundBranchCode?: string
74
+ clientType: string
75
+ clientName: string
76
+ counterpartyName: string
77
+ counterpartyAccount: string
78
+ businessType: string
79
+ forecastDate: string
80
+ billDate?: string
81
+ billNo?: string
82
+ linkMan?: string
83
+ phoneNo?: string
84
+ predName?: string
85
+ predBranchName?: string
86
+ purpose?: string
87
+ remark?: string
88
+ }
89
+
51
90
  function invalidField(field: string, value: unknown): never {
52
91
  const displayValue = String(value ?? '').trim() || '空值'
53
92
  throw new Error(`人民币头寸预报接口返回的 ${field} 无效:${displayValue}`)
@@ -130,6 +169,48 @@ function toFrontendRow(row: RmbPositionForecastApiRow): RmbPositionForecastRow {
130
169
  }
131
170
  }
132
171
 
172
+ function toFrontendDetail(row: RmbPositionForecastApiRow): RmbPositionForecastDetail {
173
+ return {
174
+ ...toFrontendRow(row),
175
+ billDate: String(row.billDate ?? ''),
176
+ billNo: String(row.billNo ?? ''),
177
+ eduFlag: String(row.eduFlag ?? ''),
178
+ linkMan: String(row.linkMan ?? ''),
179
+ phoneNo: String(row.phoneNo ?? ''),
180
+ predBranch: String(row.predBranch ?? ''),
181
+ predBranchName: String(row.predBranchName ?? ''),
182
+ predCode: String(row.predCode ?? ''),
183
+ predName: String(row.predName ?? ''),
184
+ purpose: String(row.purpose ?? ''),
185
+ remark: String(row.remark ?? ''),
186
+ }
187
+ }
188
+
189
+ function toProtocolMutationBody(value: RmbPositionForecastMutationValue) {
190
+ return {
191
+ busiType: value.businessType,
192
+ clientName: value.clientName.trim(),
193
+ clientType: value.clientType,
194
+ competAcct: value.counterpartyAccount.trim(),
195
+ competName: value.counterpartyName.trim(),
196
+ groundBranch: value.groundBranchCode?.trim() || value.groundBranch.trim(),
197
+ groundBranchName: value.groundBranch.trim(),
198
+ payChannel: value.payChannel,
199
+ payDirec: value.payDirection,
200
+ predAmt: String(value.predAmount),
201
+ predDate: value.forecastDate,
202
+ tranDate: value.tradeDate,
203
+ ...(value.billDate !== undefined ? { billDate: value.billDate } : {}),
204
+ ...(value.billNo !== undefined ? { billNo: value.billNo } : {}),
205
+ ...(value.linkMan !== undefined ? { linkMan: value.linkMan } : {}),
206
+ ...(value.phoneNo !== undefined ? { phoneNo: value.phoneNo } : {}),
207
+ ...(value.predName !== undefined ? { predName: value.predName } : {}),
208
+ ...(value.predBranchName !== undefined ? { predOrgName: value.predBranchName } : {}),
209
+ ...(value.purpose !== undefined ? { purpose: value.purpose } : {}),
210
+ ...(value.remark !== undefined ? { remark: value.remark } : {}),
211
+ }
212
+ }
213
+
133
214
  function createQueryParams(filters: RmbPositionForecastFilter): RmbPositionForecastQueryParams {
134
215
  const predStatus = filters.deleteStatus === '1'
135
216
  ? '3,4,5'
@@ -178,3 +259,54 @@ export async function queryRmbPositionForecasts(
178
259
  totalCount,
179
260
  }
180
261
  }
262
+
263
+ /** 新增人民币头寸预报(120101001)。 */
264
+ export function createRmbPositionForecast(value: RmbPositionForecastMutationValue) {
265
+ return baseHttpClient.post<TamResponse<Record<string, never>>>(
266
+ CREATE_TRAN_CODE,
267
+ {
268
+ ...toProtocolMutationBody(value),
269
+ custInfoSeq: '',
270
+ },
271
+ )
272
+ }
273
+
274
+ /** 修改人民币头寸预报,接口以 predRefSeq 接收列表中的 predRefNo(120101002)。 */
275
+ export function updateRmbPositionForecast(value: RmbPositionForecastMutationValue) {
276
+ const predRefSeq = String(value.predRefNo ?? '').trim()
277
+ if (!predRefSeq) throw new Error('预报流水号不能为空')
278
+
279
+ return baseHttpClient.post<TamResponse<Record<string, never>>>(
280
+ UPDATE_TRAN_CODE,
281
+ {
282
+ ...toProtocolMutationBody(value),
283
+ custRefSeq: '',
284
+ predRefSeq,
285
+ },
286
+ )
287
+ }
288
+
289
+ /** 删除人民币头寸预报,文档字段名为 predRefSeqs(120101003)。 */
290
+ export function deleteRmbPositionForecast(predRefNos: string[]) {
291
+ const predRefSeqs = [...new Set(predRefNos.map((item) => item.trim()).filter(Boolean))]
292
+ if (predRefSeqs.length === 0) throw new Error('预报流水号不能为空')
293
+
294
+ return baseHttpClient.post<TamResponse<Record<string, never>>>(
295
+ DELETE_TRAN_CODE,
296
+ { predRefSeqs },
297
+ )
298
+ }
299
+
300
+ /** 根据预报流水号查询完整详情(140101002)。 */
301
+ export async function getRmbPositionForecastDetail(
302
+ predRefNo: string,
303
+ signal?: AbortSignal,
304
+ ): Promise<RmbPositionForecastDetail> {
305
+ const response = await baseHttpClient.post<TamResponse<RmbPositionForecastApiRow>>(
306
+ DETAIL_TRAN_CODE,
307
+ { predRefNo },
308
+ { signal },
309
+ )
310
+
311
+ return toFrontendDetail(response.body)
312
+ }
@@ -32,9 +32,17 @@ import {
32
32
  verifyStatusOptions,
33
33
  type SelectOption,
34
34
  } from './options'
35
- import { queryRmbPositionForecasts } from './api'
35
+ import {
36
+ createRmbPositionForecast,
37
+ deleteRmbPositionForecast,
38
+ getRmbPositionForecastDetail,
39
+ queryRmbPositionForecasts,
40
+ updateRmbPositionForecast,
41
+ type RmbPositionForecastMutationValue,
42
+ } from './api'
36
43
  import { getLocalDateString } from './mock'
37
44
  import type {
45
+ RmbPositionForecastDetail,
38
46
  RmbPositionForecastFilter,
39
47
  RmbPositionForecastRow,
40
48
  } from './types'
@@ -125,14 +133,17 @@ let activeQueryController: AbortController | null = null
125
133
 
126
134
  const detailVisible = ref(false)
127
135
  const transactionVisible = ref(false)
128
- const detailRecord = ref<RmbPositionForecastRow | null>(null)
136
+ const detailRecord = ref<RmbPositionForecastDetail | null>(null)
129
137
  const transactionRecord = ref<RmbPositionForecastRow | null>(null)
138
+ const isDetailLoading = ref(false)
130
139
 
131
140
  const editorVisible = ref(false)
132
141
  const editorMode = ref<EditorMode>('add')
133
142
  const editingRefNo = ref('')
134
143
  const editorFormRef = ref<FormInstance>()
135
144
  const editorForm = reactive<EditorForm>(createEditorForm())
145
+ const isSubmitting = ref(false)
146
+ const deletingRefNo = ref('')
136
147
 
137
148
  const importVisible = ref(false)
138
149
  const importFileName = ref('')
@@ -337,9 +348,19 @@ onBeforeUnmount(() => {
337
348
  activeQueryController?.abort()
338
349
  })
339
350
 
340
- function openDetail(row: RmbPositionForecastRow) {
341
- detailRecord.value = row
351
+ async function openDetail(row: RmbPositionForecastRow) {
352
+ detailRecord.value = null
342
353
  detailVisible.value = true
354
+ isDetailLoading.value = true
355
+
356
+ try {
357
+ detailRecord.value = await getRmbPositionForecastDetail(row.predRefNo)
358
+ } catch (error) {
359
+ detailVisible.value = false
360
+ ElMessage.error(error instanceof Error ? error.message : '人民币头寸预报详情查询失败')
361
+ } finally {
362
+ isDetailLoading.value = false
363
+ }
343
364
  }
344
365
 
345
366
  function openTransactionStatus(row: RmbPositionForecastRow) {
@@ -420,11 +441,6 @@ function openCopyEditor(row: RmbPositionForecastRow) {
420
441
  editorVisible.value = true
421
442
  }
422
443
 
423
- function createReferenceNo() {
424
- const datePart = getLocalDateString().replaceAll('-', '')
425
- return `RMB${datePart}${String(Date.now()).slice(-7)}`
426
- }
427
-
428
444
  function getLocalDateTimeString() {
429
445
  const now = new Date()
430
446
  const pad = (value: number) => String(value).padStart(2, '0')
@@ -432,6 +448,8 @@ function getLocalDateTimeString() {
432
448
  }
433
449
 
434
450
  async function submitEditor() {
451
+ if (isSubmitting.value) return
452
+
435
453
  try {
436
454
  await editorFormRef.value?.validate()
437
455
  } catch {
@@ -439,39 +457,44 @@ async function submitEditor() {
439
457
  }
440
458
 
441
459
  const existing = records.value.find((row) => row.predRefNo === editingRefNo.value)
442
- const nextRow: RmbPositionForecastRow = {
443
- predRefNo: editorMode.value === 'edit' ? editingRefNo.value : createReferenceNo(),
444
- predStatus: editorMode.value === 'edit' && existing ? existing.predStatus : '1',
460
+ const mode = editorMode.value
461
+ const mutationValue: RmbPositionForecastMutationValue = {
462
+ predRefNo: mode === 'edit' ? editingRefNo.value : undefined,
445
463
  tradeDate: editorForm.tradeDate,
446
- payDirection: editorForm.payDirection as RmbPositionForecastRow['payDirection'],
447
- payChannel: editorForm.payChannel as RmbPositionForecastRow['payChannel'],
448
- verifyStatus: editorMode.value === 'edit' && existing ? existing.verifyStatus : '1',
464
+ payDirection: editorForm.payDirection,
465
+ payChannel: editorForm.payChannel,
449
466
  predAmount: editorForm.predAmount,
450
- verifyAmount: editorMode.value === 'edit' && existing ? existing.verifyAmount : 0,
451
467
  groundBranch: editorForm.groundBranch.trim(),
452
- groundBranchCode: existing?.groundBranchCode ?? 'ORG-TEMP',
453
- clientType: editorForm.clientType as RmbPositionForecastRow['clientType'],
468
+ groundBranchCode: existing?.groundBranchCode,
469
+ clientType: editorForm.clientType,
454
470
  clientName: editorForm.clientName.trim(),
455
471
  counterpartyName: editorForm.counterpartyName.trim(),
456
- standardName: editorForm.standardName.trim(),
457
472
  counterpartyAccount: editorForm.counterpartyAccount.trim(),
458
- businessType: editorForm.businessType as RmbPositionForecastRow['businessType'],
459
- forecastDate: getLocalDateTimeString(),
473
+ businessType: editorForm.businessType,
474
+ forecastDate: mode === 'edit' && existing
475
+ ? existing.forecastDate
476
+ : getLocalDateTimeString(),
460
477
  }
461
478
 
462
- if (editorMode.value === 'edit') {
463
- records.value = records.value.map((row) => (
464
- row.predRefNo === editingRefNo.value ? nextRow : row
465
- ))
466
- ElMessage.success('预报修改成功')
467
- } else {
468
- records.value = [nextRow, ...records.value]
469
- ElMessage.success(editorMode.value === 'copy' ? '预报复制成功' : '预报新增成功')
470
- }
479
+ isSubmitting.value = true
480
+ try {
481
+ if (mode === 'edit') {
482
+ await updateRmbPositionForecast(mutationValue)
483
+ } else {
484
+ await createRmbPositionForecast(mutationValue)
485
+ }
471
486
 
472
- editorVisible.value = false
473
- currentPage.value = 1
474
- clearSelection()
487
+ editorVisible.value = false
488
+ const targetPage = mode === 'edit' ? currentPage.value : 1
489
+ await loadForecasts(cloneFilter(appliedFilters.value), targetPage, pageSize.value)
490
+ ElMessage.success(
491
+ mode === 'edit' ? '预报修改成功' : mode === 'copy' ? '预报复制成功' : '预报新增成功',
492
+ )
493
+ } catch (error) {
494
+ ElMessage.error(error instanceof Error ? error.message : '人民币头寸预报保存失败')
495
+ } finally {
496
+ isSubmitting.value = false
497
+ }
475
498
  }
476
499
 
477
500
  async function handleDelete(row: RmbPositionForecastRow) {
@@ -501,15 +524,20 @@ async function handleDelete(row: RmbPositionForecastRow) {
501
524
  return
502
525
  }
503
526
 
504
- records.value = records.value.map((record) => (
505
- record.predRefNo === row.predRefNo
506
- ? { ...record, predStatus: '3' as RmbPositionForecastRow['predStatus'] }
507
- : record
508
- ))
509
- const maxPage = Math.max(1, Math.ceil(totalCount.value / pageSize.value))
510
- currentPage.value = Math.min(currentPage.value, maxPage)
511
- clearSelection()
512
- ElMessage.success('删除操作成功')
527
+ deletingRefNo.value = row.predRefNo
528
+ try {
529
+ await deleteRmbPositionForecast([row.predRefNo])
530
+ await loadForecasts(
531
+ cloneFilter(appliedFilters.value),
532
+ currentPage.value,
533
+ pageSize.value,
534
+ )
535
+ ElMessage.success('删除操作成功')
536
+ } catch (error) {
537
+ ElMessage.error(error instanceof Error ? error.message : '人民币头寸预报删除失败')
538
+ } finally {
539
+ deletingRefNo.value = ''
540
+ }
513
541
  }
514
542
 
515
543
  const handleUploadChange: UploadProps['onChange'] = (file) => {
@@ -852,7 +880,15 @@ async function exportCsv() {
852
880
  <el-button link type="primary" size="small" :icon="EditPen" @click.stop="openEditEditor(row)">
853
881
  修改
854
882
  </el-button>
855
- <el-button link type="danger" size="small" :icon="Delete" @click.stop="handleDelete(row)">
883
+ <el-button
884
+ link
885
+ type="danger"
886
+ size="small"
887
+ :icon="Delete"
888
+ :loading="deletingRefNo === row.predRefNo"
889
+ :disabled="Boolean(deletingRefNo) && deletingRefNo !== row.predRefNo"
890
+ @click.stop="handleDelete(row)"
891
+ >
856
892
  删除
857
893
  </el-button>
858
894
  <el-button link type="primary" size="small" :icon="CopyDocument" @click.stop="openCopyEditor(row)">
@@ -865,27 +901,39 @@ async function exportCsv() {
865
901
  </section>
866
902
 
867
903
  <el-dialog v-model="detailVisible" title="人民币头寸预报详细信息" width="860px" destroy-on-close>
868
- <el-descriptions v-if="detailRecord" :column="3" border class="detail-descriptions">
869
- <el-descriptions-item label="预报流水号" :span="2">{{ detailRecord.predRefNo }}</el-descriptions-item>
870
- <el-descriptions-item label="预报状态">
871
- {{ getOptionLabel(forecastStatusOptions, detailRecord.predStatus) }}
872
- </el-descriptions-item>
873
- <el-descriptions-item label="交易日期">{{ formatCompactDate(detailRecord.tradeDate) }}</el-descriptions-item>
874
- <el-descriptions-item label="收支方向">{{ getOptionLabel(payDirectionOptions, detailRecord.payDirection) }}</el-descriptions-item>
875
- <el-descriptions-item label="支付渠道">{{ getOptionLabel(payChannelOptions, detailRecord.payChannel) }}</el-descriptions-item>
876
- <el-descriptions-item label="预报金额">{{ formatMoney(detailRecord.predAmount) }} 元</el-descriptions-item>
877
- <el-descriptions-item label="已核销金额">{{ formatMoney(detailRecord.verifyAmount) }} 元</el-descriptions-item>
878
- <el-descriptions-item label="核销状态">{{ getOptionLabel(verifyStatusOptions, detailRecord.verifyStatus) }}</el-descriptions-item>
879
- <el-descriptions-item label="落地机构" :span="2">{{ detailRecord.groundBranch }}</el-descriptions-item>
880
- <el-descriptions-item label="机构代码">{{ detailRecord.groundBranchCode }}</el-descriptions-item>
881
- <el-descriptions-item label="客户类型">{{ getOptionLabel(clientTypeOptions, detailRecord.clientType) }}</el-descriptions-item>
882
- <el-descriptions-item label="客户名称" :span="2">{{ detailRecord.clientName }}</el-descriptions-item>
883
- <el-descriptions-item label="交易对手名称" :span="2">{{ detailRecord.counterpartyName || '—' }}</el-descriptions-item>
884
- <el-descriptions-item label="交易对手账号">{{ detailRecord.counterpartyAccount || '—' }}</el-descriptions-item>
885
- <el-descriptions-item label="标准名称" :span="2">{{ detailRecord.standardName || '—' }}</el-descriptions-item>
886
- <el-descriptions-item label="业务类型">{{ getOptionLabel(businessTypeOptions, detailRecord.businessType) }}</el-descriptions-item>
887
- <el-descriptions-item label="预报日期" :span="3">{{ detailRecord.forecastDate }}</el-descriptions-item>
888
- </el-descriptions>
904
+ <div v-loading="isDetailLoading" class="detail-loading">
905
+ <el-descriptions v-if="detailRecord" :column="3" border class="detail-descriptions">
906
+ <el-descriptions-item label="预报流水号" :span="2">{{ detailRecord.predRefNo }}</el-descriptions-item>
907
+ <el-descriptions-item label="预报状态">
908
+ {{ getOptionLabel(forecastStatusOptions, detailRecord.predStatus) }}
909
+ </el-descriptions-item>
910
+ <el-descriptions-item label="交易日期">{{ formatCompactDate(detailRecord.tradeDate) }}</el-descriptions-item>
911
+ <el-descriptions-item label="收支方向">{{ getOptionLabel(payDirectionOptions, detailRecord.payDirection) }}</el-descriptions-item>
912
+ <el-descriptions-item label="支付渠道">{{ getOptionLabel(payChannelOptions, detailRecord.payChannel) }}</el-descriptions-item>
913
+ <el-descriptions-item label="预报金额">{{ formatMoney(detailRecord.predAmount) }} 元</el-descriptions-item>
914
+ <el-descriptions-item label="已核销金额">{{ formatMoney(detailRecord.verifyAmount) }} 元</el-descriptions-item>
915
+ <el-descriptions-item label="核销状态">{{ getOptionLabel(verifyStatusOptions, detailRecord.verifyStatus) }}</el-descriptions-item>
916
+ <el-descriptions-item label="落地机构" :span="2">{{ detailRecord.groundBranch }}</el-descriptions-item>
917
+ <el-descriptions-item label="机构代码">{{ detailRecord.groundBranchCode }}</el-descriptions-item>
918
+ <el-descriptions-item label="预报机构" :span="2">{{ detailRecord.predBranchName || detailRecord.predBranch || '—' }}</el-descriptions-item>
919
+ <el-descriptions-item label="预报人员">{{ detailRecord.predName || '—' }}</el-descriptions-item>
920
+ <el-descriptions-item label="客户类型">{{ getOptionLabel(clientTypeOptions, detailRecord.clientType) }}</el-descriptions-item>
921
+ <el-descriptions-item label="客户名称" :span="2">{{ detailRecord.clientName }}</el-descriptions-item>
922
+ <el-descriptions-item label="交易对手名称" :span="2">{{ detailRecord.counterpartyName || '—' }}</el-descriptions-item>
923
+ <el-descriptions-item label="交易对手账号">{{ detailRecord.counterpartyAccount || '—' }}</el-descriptions-item>
924
+ <el-descriptions-item label="标准名称" :span="2">{{ detailRecord.standardName || '—' }}</el-descriptions-item>
925
+ <el-descriptions-item label="业务类型">{{ getOptionLabel(businessTypeOptions, detailRecord.businessType) }}</el-descriptions-item>
926
+ <el-descriptions-item label="联系人">{{ detailRecord.linkMan || '—' }}</el-descriptions-item>
927
+ <el-descriptions-item label="联系电话">{{ detailRecord.phoneNo || '—' }}</el-descriptions-item>
928
+ <el-descriptions-item label="额度标志">{{ detailRecord.eduFlag || '—' }}</el-descriptions-item>
929
+ <el-descriptions-item label="票号">{{ detailRecord.billNo || '—' }}</el-descriptions-item>
930
+ <el-descriptions-item label="出票日">{{ detailRecord.billDate || '—' }}</el-descriptions-item>
931
+ <el-descriptions-item label="预报人员编号">{{ detailRecord.predCode || '—' }}</el-descriptions-item>
932
+ <el-descriptions-item label="用途" :span="3">{{ detailRecord.purpose || '—' }}</el-descriptions-item>
933
+ <el-descriptions-item label="备注" :span="3">{{ detailRecord.remark || '—' }}</el-descriptions-item>
934
+ <el-descriptions-item label="预报日期" :span="3">{{ detailRecord.forecastDate }}</el-descriptions-item>
935
+ </el-descriptions>
936
+ </div>
889
937
  <template #footer>
890
938
  <el-button @click="detailVisible = false">关闭</el-button>
891
939
  </template>
@@ -966,13 +1014,13 @@ async function exportCsv() {
966
1014
  <el-input v-model="editorForm.counterpartyAccount" maxlength="40" placeholder="请输入" />
967
1015
  </el-form-item>
968
1016
  <el-form-item label="标准名称" class="editor-full-row">
969
- <el-input v-model="editorForm.standardName" maxlength="120" placeholder="请输入" />
1017
+ <el-input v-model="editorForm.standardName" disabled placeholder="由详情接口返回" />
970
1018
  </el-form-item>
971
1019
  </div>
972
1020
  </el-form>
973
1021
  <template #footer>
974
1022
  <el-button @click="editorVisible = false">取消</el-button>
975
- <el-button type="primary" @click="submitEditor">保存</el-button>
1023
+ <el-button type="primary" :loading="isSubmitting" @click="submitEditor">保存</el-button>
976
1024
  </template>
977
1025
  </el-dialog>
978
1026
 
@@ -1263,6 +1311,10 @@ async function exportCsv() {
1263
1311
  color: #d14343;
1264
1312
  }
1265
1313
 
1314
+ .detail-loading {
1315
+ min-height: 120px;
1316
+ }
1317
+
1266
1318
  .detail-descriptions :deep(.el-descriptions__label) {
1267
1319
  width: 126px;
1268
1320
  color: #667085;
@@ -83,6 +83,21 @@ export type RmbPositionForecastRow = {
83
83
  forecastDate: string
84
84
  }
85
85
 
86
+ /** 140101002 详情接口相较列表额外返回的业务字段。 */
87
+ export type RmbPositionForecastDetail = RmbPositionForecastRow & {
88
+ billDate: string
89
+ billNo: string
90
+ eduFlag: string
91
+ linkMan: string
92
+ phoneNo: string
93
+ predBranch: string
94
+ predBranchName: string
95
+ predCode: string
96
+ predName: string
97
+ purpose: string
98
+ remark: string
99
+ }
100
+
86
101
  /** 列表查询的标准分页结果。 */
87
102
  export type RmbPositionForecastListResult = {
88
103
  result: RmbPositionForecastRow[]