verce-vue-test 0.0.160 → 0.0.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.160",
3
+ "version": "0.0.162",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -309,10 +309,10 @@ function toForeignSettlementOperationDate(value: unknown) {
309
309
  return String(value ?? '').trim().replace('T', ' ')
310
310
  }
311
311
 
312
- // 格式化日期或日期时间字段,空值显示为短横线。
312
+ // 格式化日期或日期时间字段,空值显示为空字符串。
313
313
  function formatDateValue(value: unknown, includeTime = false) {
314
314
  const text = String(value ?? '').trim().replace('T', ' ')
315
- if (!text) return '-'
315
+ if (!text) return ''
316
316
  if (/^\d{8}$/.test(text)) return `${text.slice(0, 4)}-${text.slice(4, 6)}-${text.slice(6, 8)}`
317
317
  if (!includeTime) return text.slice(0, 10)
318
318
  return text.replace(/\.\d+(Z)?$/, '').replace(/Z$/, '')
@@ -321,8 +321,8 @@ function formatDateValue(value: unknown, includeTime = false) {
321
321
  // 按列配置格式化表格单元格内容。
322
322
  function formatForeignSettlementCell(value: unknown, format: any = 'text') {
323
323
  const text = String(value ?? '').trim()
324
- if (!text) return '-'
325
- if (format === 'amount') return formatThousands(text, '-')
324
+ if (!text) return ''
325
+ if (format === 'amount') return formatThousands(text, '')
326
326
  if (format === 'date') return formatDateValue(text)
327
327
  if (format === 'dateTime') return formatDateValue(text, true)
328
328
  if (format === 'direction') return optionMaps.direction[text] ?? text
@@ -506,9 +506,10 @@ function parseSelectionSummaryAmount(value: unknown) {
506
506
  return Number.isFinite(amount) ? amount : 0
507
507
  }
508
508
 
509
- // 保留两位小数并格式化勾选汇总金额。
509
+ // 换算为万元后保留两位小数,并格式化勾选汇总金额。
510
510
  function formatSelectionSummaryAmount(value: number) {
511
- const roundedValue = Math.round((value + Number.EPSILON) * 100) / 100
511
+ const amountInTenThousands = value / 10000
512
+ const roundedValue = Math.round((amountInTenThousands + Number.EPSILON) * 100) / 100
512
513
  return formatThousands(Object.is(roundedValue, -0) ? 0 : roundedValue, '0')
513
514
  }
514
515
 
@@ -606,7 +607,7 @@ function hasCompleteForecastSnapshot(row: any) {
606
607
  function hasCompleteFlowSnapshot(row: any) {
607
608
  return [
608
609
  row.tranRefNo,
609
- row.notVerifyAmt,
610
+ row.tranAmt,
610
611
  toForeignSettlementProtocolVerifyStatus(row.verifyStatus),
611
612
  row.valueDate,
612
613
  ].every(hasText)
@@ -757,8 +758,8 @@ function buildVerifyRequest(): any {
757
758
  ? {
758
759
  // 流水序号列表。
759
760
  tranSeqIds: flows.map((row) => String(row.tranRefNo).trim()).join(','),
760
- // 流水未核销金额列表。
761
- tranAmts: flows.map((row) => toForeignSettlementOperationAmount(row.notVerifyAmt)).join(','),
761
+ // 流水金额列表。
762
+ tranAmts: flows.map((row) => toForeignSettlementOperationAmount(row.tranAmt)).join(','),
762
763
  // 流水核销状态列表。
763
764
  seqVerifyStatus: flows
764
765
  .map((row) => toForeignSettlementProtocolVerifyStatus(row.verifyStatus))
@@ -775,15 +776,24 @@ function buildVerifyRequest(): any {
775
776
  // 组装撤销核销接口所需的预报和流水字段。
776
777
  function buildCancelVerifyRequest(): any {
777
778
  const forecast = forecastSelectedRows.value[0]
779
+ const tranRefNos = flowSelectedRows.value
780
+ .map((row) => String(row.tranRefNo ?? '').trim())
781
+ const isSingleFlow = tranRefNos.length === 1
778
782
  return {
779
783
  // 预报已核销金额。
780
784
  predAmt: toForeignSettlementOperationAmount(forecast?.verifyAmt),
781
785
  // 预报流水号。
782
786
  predRefNo: String(forecast?.predRefNo ?? '').trim(),
783
- // 关联流水号列表。
784
- tranRefNos: flowSelectedRows.value
785
- .map((row) => String(row.tranRefNo ?? '').trim())
786
- .join(','),
787
+ ...(isSingleFlow
788
+ ? {
789
+ // 单选流水按老接口字段传递,列表字段保持为空。
790
+ tranRefNos: '',
791
+ tranSeqId: tranRefNos[0],
792
+ }
793
+ : {
794
+ // 多选流水继续传递关联流水号列表。
795
+ tranRefNos: tranRefNos.join(','),
796
+ }),
787
797
  }
788
798
  }
789
799
 
@@ -1813,6 +1823,7 @@ onBeforeUnmount(() => {
1813
1823
  <span>币种</span>
1814
1824
  <el-select
1815
1825
  v-model="forecastFilterForm.currency"
1826
+ class="foreign-currency-settlement-currency-filter"
1816
1827
  :teleported="!isFullscreen"
1817
1828
  size="small"
1818
1829
  placeholder="请选择"
@@ -1889,6 +1900,11 @@ onBeforeUnmount(() => {
1889
1900
  </el-select>
1890
1901
  </label>
1891
1902
 
1903
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1904
+ <span>客户名称</span>
1905
+ <el-input v-model="forecastFilterForm.customerName" size="small" placeholder="请输入" clearable />
1906
+ </label>
1907
+
1892
1908
  </div>
1893
1909
 
1894
1910
  <div class="forecast-info-filter__actions">
@@ -1924,27 +1940,27 @@ onBeforeUnmount(() => {
1924
1940
  <section class="forecast-info-table-area" aria-label="外币预报信息列表">
1925
1941
  <div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
1926
1942
  <div class="forecast-info-forecast-summary__item">
1927
- <span>预报收入总金额(元)</span>
1943
+ <span>预报收入总金额(万元):</span>
1928
1944
  <strong>{{ forecastSelectionSummary.totalIncome }}</strong>
1929
1945
  </div>
1930
1946
  <div class="forecast-info-forecast-summary__item">
1931
- <span>预报支出总金额(元)</span>
1947
+ <span>预报支出总金额(万元):</span>
1932
1948
  <strong>{{ forecastSelectionSummary.totalExpense }}</strong>
1933
1949
  </div>
1934
1950
  <div class="forecast-info-forecast-summary__item">
1935
- <span>预报轧差金额(元)</span>
1951
+ <span>预报轧差金额(万元):</span>
1936
1952
  <strong>{{ forecastSelectionSummary.totalNet }}</strong>
1937
1953
  </div>
1938
1954
  <div class="forecast-info-forecast-summary__item">
1939
- <span>未核销收入总金额(元)</span>
1955
+ <span>未核销收入总金额(万元):</span>
1940
1956
  <strong>{{ forecastSelectionSummary.unverifiedIncome }}</strong>
1941
1957
  </div>
1942
1958
  <div class="forecast-info-forecast-summary__item">
1943
- <span>未核销支出总金额(元)</span>
1959
+ <span>未核销支出总金额(万元):</span>
1944
1960
  <strong>{{ forecastSelectionSummary.unverifiedExpense }}</strong>
1945
1961
  </div>
1946
1962
  <div class="forecast-info-forecast-summary__item">
1947
- <span>未核销轧差金额(元)</span>
1963
+ <span>未核销轧差金额(万元):</span>
1948
1964
  <strong>{{ forecastSelectionSummary.unverifiedNet }}</strong>
1949
1965
  </div>
1950
1966
  </div>
@@ -2131,6 +2147,7 @@ onBeforeUnmount(() => {
2131
2147
  <span>币种</span>
2132
2148
  <el-select
2133
2149
  v-model="forecastFilterForm.currency"
2150
+ class="foreign-currency-settlement-currency-filter"
2134
2151
  :teleported="!isFullscreen"
2135
2152
  size="small"
2136
2153
  placeholder="请选择"
@@ -2376,6 +2393,7 @@ onBeforeUnmount(() => {
2376
2393
  <span>币种</span>
2377
2394
  <el-select
2378
2395
  v-model="flowFilterForm.currency"
2396
+ class="foreign-currency-settlement-currency-filter"
2379
2397
  :teleported="!isFullscreen"
2380
2398
  size="small"
2381
2399
  placeholder="请选择"
@@ -2452,6 +2470,11 @@ onBeforeUnmount(() => {
2452
2470
  </el-select>
2453
2471
  </label>
2454
2472
 
2473
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
2474
+ <span>机构代码</span>
2475
+ <el-input v-model="flowFilterForm.branchCode" size="small" placeholder="请输入" clearable />
2476
+ </label>
2477
+
2455
2478
  </div>
2456
2479
 
2457
2480
  <div class="forecast-info-filter__actions">
@@ -2471,27 +2494,27 @@ onBeforeUnmount(() => {
2471
2494
  <section class="forecast-info-table-area" aria-label="外币流水信息列表">
2472
2495
  <div v-if="flowSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
2473
2496
  <div class="forecast-info-forecast-summary__item">
2474
- <span>流水收入总金额(元)</span>
2497
+ <span>流水收入总金额(万元):</span>
2475
2498
  <strong>{{ flowSelectionSummary.totalIncome }}</strong>
2476
2499
  </div>
2477
2500
  <div class="forecast-info-forecast-summary__item">
2478
- <span>流水支出总金额(元)</span>
2501
+ <span>流水支出总金额(万元):</span>
2479
2502
  <strong>{{ flowSelectionSummary.totalExpense }}</strong>
2480
2503
  </div>
2481
2504
  <div class="forecast-info-forecast-summary__item">
2482
- <span>流水轧差金额(元)</span>
2505
+ <span>流水轧差金额(万元):</span>
2483
2506
  <strong>{{ flowSelectionSummary.totalNet }}</strong>
2484
2507
  </div>
2485
2508
  <div class="forecast-info-forecast-summary__item">
2486
- <span>未核销收入总金额(元)</span>
2509
+ <span>未核销收入总金额(万元):</span>
2487
2510
  <strong>{{ flowSelectionSummary.unverifiedIncome }}</strong>
2488
2511
  </div>
2489
2512
  <div class="forecast-info-forecast-summary__item">
2490
- <span>未核销支出总金额(元)</span>
2513
+ <span>未核销支出总金额(万元):</span>
2491
2514
  <strong>{{ flowSelectionSummary.unverifiedExpense }}</strong>
2492
2515
  </div>
2493
2516
  <div class="forecast-info-forecast-summary__item">
2494
- <span>未核销轧差金额(元)</span>
2517
+ <span>未核销轧差金额(万元):</span>
2495
2518
  <strong>{{ flowSelectionSummary.unverifiedNet }}</strong>
2496
2519
  </div>
2497
2520
  </div>
@@ -2659,6 +2682,7 @@ onBeforeUnmount(() => {
2659
2682
  <span>币种</span>
2660
2683
  <el-select
2661
2684
  v-model="flowFilterForm.currency"
2685
+ class="foreign-currency-settlement-currency-filter"
2662
2686
  :teleported="!isFullscreen"
2663
2687
  size="small"
2664
2688
  placeholder="请选择"
@@ -2777,14 +2801,17 @@ onBeforeUnmount(() => {
2777
2801
 
2778
2802
  <style>
2779
2803
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] {
2804
+ /* 页面整体高度预留顶部和底部空间,具体数值后续可直接调整。 */
2805
+ --app-header-height: 0px;
2806
+ --app-footer-height: 0px;
2780
2807
  --fund-blue: #1668ff;
2781
2808
  --fund-text: #1f2937;
2782
2809
  --fund-bg: #f3f7fc;
2783
2810
  display: flex;
2784
- height: 900px;
2811
+ height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
2785
2812
  min-height: 0;
2786
2813
  flex-direction: column;
2787
- gap: 12px;
2814
+ gap: 5px;
2788
2815
  box-sizing: border-box;
2789
2816
  margin: -20px;
2790
2817
  padding: 10px 14px 14px;
@@ -2805,7 +2832,7 @@ onBeforeUnmount(() => {
2805
2832
  overflow: visible;
2806
2833
  }
2807
2834
 
2808
- /* 默认上下排列;切换左右排列时使用固定像素宽度,不随屏幕宽度重新计算。 */
2835
+ /* 默认上下排列;切换左右排列时由 Flex 等分可用空间。 */
2809
2836
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal {
2810
2837
  flex-direction: row;
2811
2838
  align-items: stretch;
@@ -2835,9 +2862,9 @@ onBeforeUnmount(() => {
2835
2862
  }
2836
2863
 
2837
2864
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-card {
2838
- width: 680px;
2865
+ width: auto;
2839
2866
  height: 100%;
2840
- flex: 0 0 680px;
2867
+ flex: 1 1 0;
2841
2868
  min-width: 0;
2842
2869
  }
2843
2870
 
@@ -3003,6 +3030,16 @@ onBeforeUnmount(() => {
3003
3030
  max-width: 120px;
3004
3031
  }
3005
3032
 
3033
+ /* 更多筛选抽屉不沿用顶部快捷筛选的固定宽度,控件占满抽屉剩余空间。 */
3034
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-select,
3035
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-input,
3036
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-date-editor {
3037
+ width: auto;
3038
+ min-width: 0;
3039
+ max-width: none;
3040
+ flex: 1 1 auto;
3041
+ }
3042
+
3006
3043
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__wrapper,
3007
3044
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__wrapper,
3008
3045
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-date-editor.el-input__wrapper {
@@ -3010,6 +3047,29 @@ onBeforeUnmount(() => {
3010
3047
  box-shadow: 0 0 0 1px #d8e1ee inset;
3011
3048
  }
3012
3049
 
3050
+ /* 币种多选保持单行固定高度,选中多个币种时不再撑高输入框。 */
3051
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter,
3052
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__wrapper {
3053
+ height: 24px;
3054
+ min-height: 24px;
3055
+ max-height: 24px;
3056
+ overflow: hidden;
3057
+ }
3058
+
3059
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__selection {
3060
+ min-width: 0;
3061
+ flex-wrap: nowrap;
3062
+ overflow: hidden;
3063
+ }
3064
+
3065
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__selected-item {
3066
+ min-width: 0;
3067
+ max-width: 100%;
3068
+ overflow: hidden;
3069
+ text-overflow: ellipsis;
3070
+ white-space: nowrap;
3071
+ }
3072
+
3013
3073
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__inner,
3014
3074
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-range-input,
3015
3075
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__placeholder {
@@ -3041,6 +3101,20 @@ onBeforeUnmount(() => {
3041
3101
  flex: 0 0 120px;
3042
3102
  }
3043
3103
 
3104
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__number-range {
3105
+ width: auto;
3106
+ min-width: 0;
3107
+ max-width: none;
3108
+ flex: 1 1 auto;
3109
+ }
3110
+
3111
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__number-range .number-range__input {
3112
+ width: auto;
3113
+ min-width: 0;
3114
+ max-width: none;
3115
+ flex: 1 1 0;
3116
+ }
3117
+
3044
3118
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__number-range .number-range__separator {
3045
3119
  width: 38px;
3046
3120
  color: #25354b;
@@ -3086,21 +3160,26 @@ onBeforeUnmount(() => {
3086
3160
  line-height: 22px;
3087
3161
  }
3088
3162
 
3089
- /* 左右卡片状态下保留三个快速筛选项,操作区独占下一行,避免固定宽度控件被挤压。 */
3163
+ /* 左右布局时条件和操作按钮保持同一行,避免固定宽度控件换行。 */
3090
3164
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal {
3091
3165
  display: flex;
3092
- flex-direction: column;
3093
- align-items: flex-start;
3166
+ flex-direction: row;
3167
+ align-items: center;
3168
+ flex-wrap: nowrap;
3169
+ justify-content: space-between;
3094
3170
  gap: 8px;
3095
3171
  padding: 0 4px;
3172
+ white-space: nowrap;
3096
3173
  }
3097
3174
 
3098
3175
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
3099
3176
  display: flex;
3100
3177
  flex: 0 0 auto;
3101
3178
  min-width: 0;
3102
- justify-content: start;
3179
+ justify-content: flex-start;
3180
+ flex-wrap: nowrap;
3103
3181
  gap: 8px;
3182
+ white-space: nowrap;
3104
3183
  }
3105
3184
 
3106
3185
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__item {
@@ -3140,6 +3219,14 @@ onBeforeUnmount(() => {
3140
3219
  display: flex;
3141
3220
  }
3142
3221
 
3222
+ /* 更多筛选抽屉固定标签列宽,保证每项输入控件左侧对齐。 */
3223
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item > span {
3224
+ width: 118px;
3225
+ min-width: 118px;
3226
+ flex: 0 0 118px;
3227
+ white-space: nowrap;
3228
+ }
3229
+
3143
3230
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item--range {
3144
3231
  display: flex;
3145
3232
  }
@@ -3195,7 +3282,7 @@ onBeforeUnmount(() => {
3195
3282
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary {
3196
3283
  display: flex;
3197
3284
  flex-wrap: nowrap;
3198
- width: 1080px;
3285
+ width: 100%;
3199
3286
  flex: 0 0 auto;
3200
3287
  margin-bottom: 6px;
3201
3288
  overflow: hidden;
@@ -3206,7 +3293,7 @@ onBeforeUnmount(() => {
3206
3293
 
3207
3294
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-forecast-summary {
3208
3295
  flex-wrap: wrap;
3209
- width: 540px;
3296
+ width: 100%;
3210
3297
  }
3211
3298
 
3212
3299
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item {
@@ -3215,12 +3302,14 @@ onBeforeUnmount(() => {
3215
3302
  flex: 0 0 180px;
3216
3303
  width: 180px;
3217
3304
  min-width: 0;
3218
- flex-direction: column;
3219
- gap: 1px;
3305
+ flex-direction: row;
3306
+ align-items: center;
3307
+ gap: 2px;
3220
3308
  padding: 4px 8px;
3221
3309
  border-left: 1px solid #e1e7f0;
3222
3310
  color: #4a5668;
3223
3311
  font-size: 11px;
3312
+ white-space: nowrap;
3224
3313
  }
3225
3314
 
3226
3315
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item:first-child {
@@ -3236,16 +3325,17 @@ onBeforeUnmount(() => {
3236
3325
  }
3237
3326
 
3238
3327
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item > span {
3239
- overflow: hidden;
3240
- text-overflow: ellipsis;
3328
+ flex: 0 0 auto;
3241
3329
  white-space: nowrap;
3242
3330
  }
3243
3331
 
3244
3332
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item strong {
3333
+ flex: 0 0 auto;
3245
3334
  color: #24344b;
3246
3335
  font-size: 12px;
3247
3336
  font-weight: 600;
3248
3337
  font-variant-numeric: tabular-nums;
3338
+ white-space: nowrap;
3249
3339
  }
3250
3340
 
3251
3341
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-table-area > .el-table-plus > .forecast-info-table {