verce-vue-test 0.0.161 → 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.161",
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))
@@ -1822,6 +1823,7 @@ onBeforeUnmount(() => {
1822
1823
  <span>币种</span>
1823
1824
  <el-select
1824
1825
  v-model="forecastFilterForm.currency"
1826
+ class="foreign-currency-settlement-currency-filter"
1825
1827
  :teleported="!isFullscreen"
1826
1828
  size="small"
1827
1829
  placeholder="请选择"
@@ -1898,6 +1900,11 @@ onBeforeUnmount(() => {
1898
1900
  </el-select>
1899
1901
  </label>
1900
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
+
1901
1908
  </div>
1902
1909
 
1903
1910
  <div class="forecast-info-filter__actions">
@@ -1933,27 +1940,27 @@ onBeforeUnmount(() => {
1933
1940
  <section class="forecast-info-table-area" aria-label="外币预报信息列表">
1934
1941
  <div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
1935
1942
  <div class="forecast-info-forecast-summary__item">
1936
- <span>预报收入总金额(元)</span>
1943
+ <span>预报收入总金额(万元):</span>
1937
1944
  <strong>{{ forecastSelectionSummary.totalIncome }}</strong>
1938
1945
  </div>
1939
1946
  <div class="forecast-info-forecast-summary__item">
1940
- <span>预报支出总金额(元)</span>
1947
+ <span>预报支出总金额(万元):</span>
1941
1948
  <strong>{{ forecastSelectionSummary.totalExpense }}</strong>
1942
1949
  </div>
1943
1950
  <div class="forecast-info-forecast-summary__item">
1944
- <span>预报轧差金额(元)</span>
1951
+ <span>预报轧差金额(万元):</span>
1945
1952
  <strong>{{ forecastSelectionSummary.totalNet }}</strong>
1946
1953
  </div>
1947
1954
  <div class="forecast-info-forecast-summary__item">
1948
- <span>未核销收入总金额(元)</span>
1955
+ <span>未核销收入总金额(万元):</span>
1949
1956
  <strong>{{ forecastSelectionSummary.unverifiedIncome }}</strong>
1950
1957
  </div>
1951
1958
  <div class="forecast-info-forecast-summary__item">
1952
- <span>未核销支出总金额(元)</span>
1959
+ <span>未核销支出总金额(万元):</span>
1953
1960
  <strong>{{ forecastSelectionSummary.unverifiedExpense }}</strong>
1954
1961
  </div>
1955
1962
  <div class="forecast-info-forecast-summary__item">
1956
- <span>未核销轧差金额(元)</span>
1963
+ <span>未核销轧差金额(万元):</span>
1957
1964
  <strong>{{ forecastSelectionSummary.unverifiedNet }}</strong>
1958
1965
  </div>
1959
1966
  </div>
@@ -2140,6 +2147,7 @@ onBeforeUnmount(() => {
2140
2147
  <span>币种</span>
2141
2148
  <el-select
2142
2149
  v-model="forecastFilterForm.currency"
2150
+ class="foreign-currency-settlement-currency-filter"
2143
2151
  :teleported="!isFullscreen"
2144
2152
  size="small"
2145
2153
  placeholder="请选择"
@@ -2385,6 +2393,7 @@ onBeforeUnmount(() => {
2385
2393
  <span>币种</span>
2386
2394
  <el-select
2387
2395
  v-model="flowFilterForm.currency"
2396
+ class="foreign-currency-settlement-currency-filter"
2388
2397
  :teleported="!isFullscreen"
2389
2398
  size="small"
2390
2399
  placeholder="请选择"
@@ -2461,6 +2470,11 @@ onBeforeUnmount(() => {
2461
2470
  </el-select>
2462
2471
  </label>
2463
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
+
2464
2478
  </div>
2465
2479
 
2466
2480
  <div class="forecast-info-filter__actions">
@@ -2480,27 +2494,27 @@ onBeforeUnmount(() => {
2480
2494
  <section class="forecast-info-table-area" aria-label="外币流水信息列表">
2481
2495
  <div v-if="flowSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
2482
2496
  <div class="forecast-info-forecast-summary__item">
2483
- <span>流水收入总金额(元)</span>
2497
+ <span>流水收入总金额(万元):</span>
2484
2498
  <strong>{{ flowSelectionSummary.totalIncome }}</strong>
2485
2499
  </div>
2486
2500
  <div class="forecast-info-forecast-summary__item">
2487
- <span>流水支出总金额(元)</span>
2501
+ <span>流水支出总金额(万元):</span>
2488
2502
  <strong>{{ flowSelectionSummary.totalExpense }}</strong>
2489
2503
  </div>
2490
2504
  <div class="forecast-info-forecast-summary__item">
2491
- <span>流水轧差金额(元)</span>
2505
+ <span>流水轧差金额(万元):</span>
2492
2506
  <strong>{{ flowSelectionSummary.totalNet }}</strong>
2493
2507
  </div>
2494
2508
  <div class="forecast-info-forecast-summary__item">
2495
- <span>未核销收入总金额(元)</span>
2509
+ <span>未核销收入总金额(万元):</span>
2496
2510
  <strong>{{ flowSelectionSummary.unverifiedIncome }}</strong>
2497
2511
  </div>
2498
2512
  <div class="forecast-info-forecast-summary__item">
2499
- <span>未核销支出总金额(元)</span>
2513
+ <span>未核销支出总金额(万元):</span>
2500
2514
  <strong>{{ flowSelectionSummary.unverifiedExpense }}</strong>
2501
2515
  </div>
2502
2516
  <div class="forecast-info-forecast-summary__item">
2503
- <span>未核销轧差金额(元)</span>
2517
+ <span>未核销轧差金额(万元):</span>
2504
2518
  <strong>{{ flowSelectionSummary.unverifiedNet }}</strong>
2505
2519
  </div>
2506
2520
  </div>
@@ -2668,6 +2682,7 @@ onBeforeUnmount(() => {
2668
2682
  <span>币种</span>
2669
2683
  <el-select
2670
2684
  v-model="flowFilterForm.currency"
2685
+ class="foreign-currency-settlement-currency-filter"
2671
2686
  :teleported="!isFullscreen"
2672
2687
  size="small"
2673
2688
  placeholder="请选择"
@@ -2786,14 +2801,17 @@ onBeforeUnmount(() => {
2786
2801
 
2787
2802
  <style>
2788
2803
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] {
2804
+ /* 页面整体高度预留顶部和底部空间,具体数值后续可直接调整。 */
2805
+ --app-header-height: 0px;
2806
+ --app-footer-height: 0px;
2789
2807
  --fund-blue: #1668ff;
2790
2808
  --fund-text: #1f2937;
2791
2809
  --fund-bg: #f3f7fc;
2792
2810
  display: flex;
2793
- height: 900px;
2811
+ height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
2794
2812
  min-height: 0;
2795
2813
  flex-direction: column;
2796
- gap: 12px;
2814
+ gap: 5px;
2797
2815
  box-sizing: border-box;
2798
2816
  margin: -20px;
2799
2817
  padding: 10px 14px 14px;
@@ -2814,7 +2832,7 @@ onBeforeUnmount(() => {
2814
2832
  overflow: visible;
2815
2833
  }
2816
2834
 
2817
- /* 默认上下排列;切换左右排列时使用固定像素宽度,不随屏幕宽度重新计算。 */
2835
+ /* 默认上下排列;切换左右排列时由 Flex 等分可用空间。 */
2818
2836
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal {
2819
2837
  flex-direction: row;
2820
2838
  align-items: stretch;
@@ -2844,9 +2862,9 @@ onBeforeUnmount(() => {
2844
2862
  }
2845
2863
 
2846
2864
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-card {
2847
- width: 680px;
2865
+ width: auto;
2848
2866
  height: 100%;
2849
- flex: 0 0 680px;
2867
+ flex: 1 1 0;
2850
2868
  min-width: 0;
2851
2869
  }
2852
2870
 
@@ -3012,6 +3030,16 @@ onBeforeUnmount(() => {
3012
3030
  max-width: 120px;
3013
3031
  }
3014
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
+
3015
3043
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__wrapper,
3016
3044
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__wrapper,
3017
3045
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-date-editor.el-input__wrapper {
@@ -3019,6 +3047,29 @@ onBeforeUnmount(() => {
3019
3047
  box-shadow: 0 0 0 1px #d8e1ee inset;
3020
3048
  }
3021
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
+
3022
3073
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__inner,
3023
3074
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-range-input,
3024
3075
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__placeholder {
@@ -3050,6 +3101,20 @@ onBeforeUnmount(() => {
3050
3101
  flex: 0 0 120px;
3051
3102
  }
3052
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
+
3053
3118
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__number-range .number-range__separator {
3054
3119
  width: 38px;
3055
3120
  color: #25354b;
@@ -3095,21 +3160,26 @@ onBeforeUnmount(() => {
3095
3160
  line-height: 22px;
3096
3161
  }
3097
3162
 
3098
- /* 左右卡片状态下保留三个快速筛选项,操作区独占下一行,避免固定宽度控件被挤压。 */
3163
+ /* 左右布局时条件和操作按钮保持同一行,避免固定宽度控件换行。 */
3099
3164
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal {
3100
3165
  display: flex;
3101
- flex-direction: column;
3102
- align-items: flex-start;
3166
+ flex-direction: row;
3167
+ align-items: center;
3168
+ flex-wrap: nowrap;
3169
+ justify-content: space-between;
3103
3170
  gap: 8px;
3104
3171
  padding: 0 4px;
3172
+ white-space: nowrap;
3105
3173
  }
3106
3174
 
3107
3175
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
3108
3176
  display: flex;
3109
3177
  flex: 0 0 auto;
3110
3178
  min-width: 0;
3111
- justify-content: start;
3179
+ justify-content: flex-start;
3180
+ flex-wrap: nowrap;
3112
3181
  gap: 8px;
3182
+ white-space: nowrap;
3113
3183
  }
3114
3184
 
3115
3185
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__item {
@@ -3149,6 +3219,14 @@ onBeforeUnmount(() => {
3149
3219
  display: flex;
3150
3220
  }
3151
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
+
3152
3230
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item--range {
3153
3231
  display: flex;
3154
3232
  }
@@ -3204,7 +3282,7 @@ onBeforeUnmount(() => {
3204
3282
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary {
3205
3283
  display: flex;
3206
3284
  flex-wrap: nowrap;
3207
- width: 1080px;
3285
+ width: 100%;
3208
3286
  flex: 0 0 auto;
3209
3287
  margin-bottom: 6px;
3210
3288
  overflow: hidden;
@@ -3215,7 +3293,7 @@ onBeforeUnmount(() => {
3215
3293
 
3216
3294
  .forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-forecast-summary {
3217
3295
  flex-wrap: wrap;
3218
- width: 540px;
3296
+ width: 100%;
3219
3297
  }
3220
3298
 
3221
3299
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item {
@@ -3224,12 +3302,14 @@ onBeforeUnmount(() => {
3224
3302
  flex: 0 0 180px;
3225
3303
  width: 180px;
3226
3304
  min-width: 0;
3227
- flex-direction: column;
3228
- gap: 1px;
3305
+ flex-direction: row;
3306
+ align-items: center;
3307
+ gap: 2px;
3229
3308
  padding: 4px 8px;
3230
3309
  border-left: 1px solid #e1e7f0;
3231
3310
  color: #4a5668;
3232
3311
  font-size: 11px;
3312
+ white-space: nowrap;
3233
3313
  }
3234
3314
 
3235
3315
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item:first-child {
@@ -3245,16 +3325,17 @@ onBeforeUnmount(() => {
3245
3325
  }
3246
3326
 
3247
3327
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item > span {
3248
- overflow: hidden;
3249
- text-overflow: ellipsis;
3328
+ flex: 0 0 auto;
3250
3329
  white-space: nowrap;
3251
3330
  }
3252
3331
 
3253
3332
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item strong {
3333
+ flex: 0 0 auto;
3254
3334
  color: #24344b;
3255
3335
  font-size: 12px;
3256
3336
  font-weight: 600;
3257
3337
  font-variant-numeric: tabular-nums;
3338
+ white-space: nowrap;
3258
3339
  }
3259
3340
 
3260
3341
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-table-area > .el-table-plus > .forecast-info-table {