verce-vue-test 0.0.156 → 0.0.158

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.156",
3
+ "version": "0.0.158",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -513,7 +513,10 @@ onBeforeUnmount(() => {
513
513
  <el-descriptions-item label="记录ID">{{ detailRecord.id }}</el-descriptions-item>
514
514
  <el-descriptions-item label="大额报备日期">{{ detailRecord.forecastDate }}</el-descriptions-item>
515
515
  <el-descriptions-item label="计划汇款日期">{{ detailRecord.planDate }}</el-descriptions-item>
516
- <el-descriptions-item label="汇款起息日">
516
+ <el-descriptions-item>
517
+ <template #label>
518
+ <span class="detail-required-label">汇款起息日</span>
519
+ </template>
517
520
  <el-date-picker
518
521
  v-model="detailEditForm.valueDate"
519
522
  class="detail-edit-control"
@@ -577,7 +580,10 @@ onBeforeUnmount(() => {
577
580
  <el-descriptions-item label="最终收款行 SWIFTCODE">
578
581
  {{ detailRecord.rdfibic }}
579
582
  </el-descriptions-item>
580
- <el-descriptions-item label="账户行" :span="4">
583
+ <el-descriptions-item :span="4">
584
+ <template #label>
585
+ <span class="detail-required-label">账户行</span>
586
+ </template>
581
587
  <el-select
582
588
  v-model="detailEditForm.nostro"
583
589
  class="detail-edit-control"
@@ -618,7 +624,10 @@ onBeforeUnmount(() => {
618
624
  <el-descriptions-item label="报备人">{{ detailRecord.linkMan }}</el-descriptions-item>
619
625
  <el-descriptions-item label="联系电话">{{ detailRecord.linkWay }}</el-descriptions-item>
620
626
  <el-descriptions-item label="复核人">{{ detailRecord.supervisor }}</el-descriptions-item>
621
- <el-descriptions-item label="授权人">
627
+ <el-descriptions-item>
628
+ <template #label>
629
+ <span class="detail-required-label">授权人</span>
630
+ </template>
622
631
  <el-input
623
632
  v-model="detailEditForm.author"
624
633
  class="detail-edit-control"
@@ -651,25 +660,27 @@ onBeforeUnmount(() => {
651
660
  <span class="detail-actions__hint">账户行、汇款起息日与授权人将在审核时一并保存</span>
652
661
  <div class="detail-actions__buttons">
653
662
  <el-button :icon="ArrowLeft" @click="returnToList">返回</el-button>
654
- <el-button
655
- type="primary"
656
- :icon="CircleCheck"
657
- :loading="reviewAction === 'approve'"
658
- :disabled="reviewAction !== null && reviewAction !== 'approve'"
659
- @click="handleReview('approve')"
660
- >
661
- 通过
662
- </el-button>
663
- <el-button
664
- type="danger"
665
- plain
666
- :icon="CircleClose"
667
- :loading="reviewAction === 'reject'"
668
- :disabled="reviewAction !== null && reviewAction !== 'reject'"
669
- @click="handleReview('reject')"
670
- >
671
- 驳回
672
- </el-button>
663
+ <template v-if="detailRecord.reviewStatus === 'pending'">
664
+ <el-button
665
+ type="primary"
666
+ :icon="CircleCheck"
667
+ :loading="reviewAction === 'approve'"
668
+ :disabled="reviewAction !== null && reviewAction !== 'approve'"
669
+ @click="handleReview('approve')"
670
+ >
671
+ 通过
672
+ </el-button>
673
+ <el-button
674
+ type="danger"
675
+ plain
676
+ :icon="CircleClose"
677
+ :loading="reviewAction === 'reject'"
678
+ :disabled="reviewAction !== null && reviewAction !== 'reject'"
679
+ @click="handleReview('reject')"
680
+ >
681
+ 驳回
682
+ </el-button>
683
+ </template>
673
684
  </div>
674
685
  </footer>
675
686
  </section>
@@ -701,9 +712,17 @@ onBeforeUnmount(() => {
701
712
  padding: 12px 16px 10px;
702
713
  }
703
714
 
715
+ .query-form {
716
+ display: flex;
717
+ align-items: flex-end;
718
+ gap: 12px;
719
+ }
720
+
704
721
  .query-grid {
705
722
  display: grid;
706
- grid-template-columns: repeat(6, minmax(0, 1fr));
723
+ flex: 1 1 auto;
724
+ grid-template-columns: repeat(7, minmax(0, 1fr));
725
+ min-width: 0;
707
726
  gap: 8px 12px;
708
727
  }
709
728
 
@@ -712,6 +731,10 @@ onBeforeUnmount(() => {
712
731
  margin-bottom: 0;
713
732
  }
714
733
 
734
+ .query-form :deep(.el-form-item__content) {
735
+ min-width: 0;
736
+ }
737
+
715
738
  .query-form :deep(.el-form-item__label) {
716
739
  height: 24px;
717
740
  padding: 0;
@@ -736,15 +759,17 @@ onBeforeUnmount(() => {
736
759
 
737
760
  .query-actions {
738
761
  display: flex;
762
+ flex: 0 0 auto;
763
+ align-items: flex-end;
739
764
  justify-content: flex-end;
740
765
  gap: 8px;
741
- margin-top: 10px;
742
- padding-top: 10px;
743
- border-top: 1px dashed #e2e8f0;
766
+ margin: 0;
767
+ padding: 0 0 0 2px;
744
768
  }
745
769
 
746
770
  .query-actions .el-button {
747
771
  min-width: 86px;
772
+ margin-left: 0;
748
773
  }
749
774
 
750
775
  .table-panel {
@@ -887,11 +912,20 @@ onBeforeUnmount(() => {
887
912
 
888
913
  .detail-descriptions :deep(.el-descriptions__label) {
889
914
  width: 126px;
890
- color: #667085;
915
+ color: #344054;
916
+ font-weight: 600;
917
+ }
918
+
919
+ .detail-descriptions :deep(.detail-required-label)::after {
920
+ margin-left: 4px;
921
+ color: #d92d20;
922
+ content: "*";
923
+ font-weight: 700;
891
924
  }
892
925
 
893
926
  .detail-descriptions :deep(.el-descriptions__content) {
894
- color: #27364f;
927
+ color: #1f2937;
928
+ font-weight: 500;
895
929
  word-break: break-word;
896
930
  }
897
931
 
@@ -899,6 +933,17 @@ onBeforeUnmount(() => {
899
933
  width: 100%;
900
934
  }
901
935
 
936
+ .detail-descriptions :deep(.detail-edit-control .el-input__inner),
937
+ .detail-descriptions :deep(.detail-edit-control .el-select__selected-item),
938
+ .detail-descriptions :deep(.detail-edit-control .el-textarea__inner) {
939
+ color: #1f2937;
940
+ }
941
+
942
+ .detail-descriptions :deep(.detail-edit-control .el-input__inner::placeholder),
943
+ .detail-descriptions :deep(.detail-edit-control .el-textarea__inner::placeholder) {
944
+ color: #667085;
945
+ }
946
+
902
947
  .detail-descriptions :deep(.detail-edit-control .el-input__wrapper),
903
948
  .detail-descriptions :deep(.detail-edit-control .el-select__wrapper),
904
949
  .detail-descriptions :deep(.detail-edit-control .el-textarea__inner) {
@@ -952,10 +997,20 @@ onBeforeUnmount(() => {
952
997
  margin-left: 0;
953
998
  }
954
999
 
955
- @media (max-width: 1380px) {
1000
+ @media (max-width: 1100px) {
1001
+ .query-form {
1002
+ flex-direction: column;
1003
+ align-items: stretch;
1004
+ gap: 10px;
1005
+ }
1006
+
956
1007
  .query-grid {
957
1008
  grid-template-columns: repeat(4, minmax(0, 1fr));
958
1009
  }
1010
+
1011
+ .query-actions {
1012
+ justify-content: flex-end;
1013
+ }
959
1014
  }
960
1015
 
961
1016
  @media (max-width: 900px) {
@@ -185,7 +185,7 @@
185
185
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__grid {
186
186
  display: grid;
187
187
  flex: 1 1 auto;
188
- grid-template-columns: repeat(4, minmax(0, 1fr));
188
+ grid-template-columns: repeat(3, minmax(0, 1fr));
189
189
  align-items: center;
190
190
  min-width: 0;
191
191
  column-gap: 10px;
@@ -195,7 +195,7 @@
195
195
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
196
196
  flex: 1 1 auto;
197
197
  max-width: none;
198
- grid-template-columns: repeat(8, minmax(0, 1fr));
198
+ grid-template-columns: repeat(6, minmax(0, 1fr));
199
199
  column-gap: 6px;
200
200
  }
201
201
 
@@ -304,7 +304,7 @@
304
304
  font-weight: 600;
305
305
  }
306
306
 
307
- /* 左右卡片状态下保留四个快速筛选项,并与操作按钮保持同一行。 */
307
+ /* 左右卡片状态下保留三个快速筛选项,并与操作按钮保持同一行。 */
308
308
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal {
309
309
  display: grid;
310
310
  grid-template-columns: minmax(0, 1fr) auto;
@@ -316,7 +316,7 @@
316
316
 
317
317
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
318
318
  min-width: 0;
319
- grid-template-columns: repeat(4, minmax(0, 1fr));
319
+ grid-template-columns: repeat(3, minmax(0, 1fr));
320
320
  column-gap: 8px;
321
321
  row-gap: 8px;
322
322
  }
@@ -815,12 +815,12 @@
815
815
  }
816
816
 
817
817
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__grid {
818
- grid-template-columns: repeat(4, minmax(0, 1fr));
818
+ grid-template-columns: repeat(3, minmax(0, 1fr));
819
819
  column-gap: 8px;
820
820
  }
821
821
 
822
822
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
823
- grid-template-columns: repeat(8, minmax(0, 1fr));
823
+ grid-template-columns: repeat(6, minmax(0, 1fr));
824
824
  column-gap: 8px;
825
825
  max-width: none;
826
826
  }
@@ -850,11 +850,11 @@
850
850
 
851
851
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__grid {
852
852
  flex-basis: 100%;
853
- grid-template-columns: repeat(4, minmax(0, 1fr));
853
+ grid-template-columns: repeat(3, minmax(0, 1fr));
854
854
  }
855
855
 
856
856
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
857
- grid-template-columns: repeat(8, minmax(0, 1fr));
857
+ grid-template-columns: repeat(6, minmax(0, 1fr));
858
858
  }
859
859
 
860
860
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item {
@@ -875,7 +875,7 @@
875
875
  }
876
876
 
877
877
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
878
- grid-template-columns: repeat(4, minmax(0, 1fr));
878
+ grid-template-columns: repeat(3, minmax(0, 1fr));
879
879
  }
880
880
 
881
881
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__actions {
@@ -42,6 +42,10 @@ const payDirectionOptions = [
42
42
  { value: 'I', label: '收入' },
43
43
  { value: 'O', label: '支出' },
44
44
  ]
45
+ const paymentTypeOptions = [
46
+ { value: '1', label: '收款' },
47
+ { value: '0', label: '付款' },
48
+ ]
45
49
  const verifyStatusOptions = [
46
50
  { value: 'VS01', label: '未核销' },
47
51
  { value: 'VS02', label: '部分核销' },
@@ -104,7 +108,7 @@ function orderColumns<T extends { prop: string }>(columns: T[], preferredProps:
104
108
  }
105
109
 
106
110
  const baseForecastColumns = [
107
- { prop: 'predRefNo', label: '预报流水号', minWidth: 146, defaultVisible: true },
111
+ { prop: 'predRefNo', label: '预报流水号', minWidth: 146, defaultVisible: false },
108
112
  { prop: 'tranDate', label: '起息日期', minWidth: 108, format: 'date', defaultVisible: true },
109
113
  { prop: 'payDirec', label: '收支方向', minWidth: 94, format: 'direction', defaultVisible: true },
110
114
  { prop: 'ccy', label: '币种', minWidth: 176, defaultVisible: true, solt: true },
@@ -138,7 +142,7 @@ const baseFlowColumns = [
138
142
  { prop: 'tranDate', label: '交易录入日期', minWidth: 120, format: 'date', defaultVisible: true },
139
143
  { prop: 'valueDate', label: '起息日', minWidth: 106, format: 'date', defaultVisible: true },
140
144
  { prop: 'direction', label: '往来标志', minWidth: 94, format: 'direction', defaultVisible: true },
141
- { prop: 'paymentType', label: '收付款类型', minWidth: 108, defaultVisible: true },
145
+ { prop: 'paymentType', label: '收付款类型', minWidth: 108, format: 'paymentType', defaultVisible: true },
142
146
  { prop: 'ccy', label: '币种', minWidth: 176, defaultVisible: true, solt: true },
143
147
  { prop: 'tranAmt', label: '交易金额(原币)', minWidth: 146, format: 'amount', defaultVisible: true },
144
148
  { prop: 'notVerifyAmt', label: '未核销金额(原币)', minWidth: 166, format: 'amount', defaultVisible: true },
@@ -234,6 +238,7 @@ const flowColumns = orderColumns(baseFlowColumns, [
234
238
  // 将协议字段值转换为表格中的中文显示文本。
235
239
  const optionMaps = {
236
240
  direction: Object.fromEntries(payDirectionOptions.map((option) => [option.value, option.label])),
241
+ paymentType: Object.fromEntries(paymentTypeOptions.map((option) => [option.value, option.label])),
237
242
  verifyStatus: Object.fromEntries(verifyStatusOptions.map((option) => [option.value, option.label])),
238
243
  businessType: Object.fromEntries(businessTypeOptions.map((option) => [option.value, option.label])),
239
244
  forecastWay: Object.fromEntries(forecastWayOptions.map((option) => [option.value, option.label])),
@@ -255,6 +260,8 @@ function createDefaultForeignSettlementFilter(multipleVerifyStatus = false): any
255
260
  tradeDate: getLocalDateString(),
256
261
  // 收支方向。
257
262
  direction: '',
263
+ // 收付款类型。
264
+ paymentType: '',
258
265
  // 币种列表。
259
266
  currency: [],
260
267
  // 客户名称。
@@ -322,6 +329,7 @@ function formatForeignSettlementCell(value: unknown, format: any = 'text') {
322
329
  if (format === 'date') return formatDateValue(text)
323
330
  if (format === 'dateTime') return formatDateValue(text, true)
324
331
  if (format === 'direction') return optionMaps.direction[text] ?? text
332
+ if (format === 'paymentType') return optionMaps.paymentType[text] ?? text
325
333
  if (format === 'verifyStatus') return optionMaps.verifyStatus[normalizeVerifyStatus(text)] ?? text
326
334
  if (format === 'businessType') return optionMaps.businessType[text] ?? text
327
335
  if (format === 'forecastWay') return optionMaps.forecastWay[text] ?? text
@@ -1212,7 +1220,7 @@ const flowAccountBankOptions = ref<any[]>([])
1212
1220
  const flowAccountBankLoading = ref(false)
1213
1221
  // 流水高级筛选已填写字段数量。
1214
1222
  const flowActiveMoreFilterCount = computed(() => [
1215
- flowFilterForm.direction,
1223
+ flowFilterForm.paymentType,
1216
1224
  flowFilterForm.currency.length ? 'currency' : '',
1217
1225
  flowFilterForm.messageType.trim(),
1218
1226
  flowFilterForm.verifyStatus.length ? 'verifyStatus' : '',
@@ -1274,8 +1282,8 @@ function buildFlowQuery(): any {
1274
1282
  endAmt: toForeignSettlementAmountText(endAmount),
1275
1283
  // 操作类型,普通查询为空。
1276
1284
  opType: '',
1277
- // 收支方向。
1278
- payDirec: flowFilterForm.direction,
1285
+ // 收付款类型。
1286
+ paydirection: flowFilterForm.paymentType,
1279
1287
  // 流水查询不使用预报方式。
1280
1288
  predWay: '',
1281
1289
  // 金额下限。
@@ -1772,7 +1780,7 @@ onBeforeUnmount(() => {
1772
1780
  />
1773
1781
  </label>
1774
1782
 
1775
- <label class="forecast-info-filter__item">
1783
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1776
1784
  <span>筛选FTU</span>
1777
1785
  <el-select
1778
1786
  v-model="forecastFilterForm.ftuFilter"
@@ -1867,31 +1875,6 @@ onBeforeUnmount(() => {
1867
1875
  </el-select>
1868
1876
  </label>
1869
1877
 
1870
- <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1871
- <span>勾兑状态</span>
1872
- <el-select
1873
- v-model="forecastFilterForm.verifyStatus"
1874
- :teleported="!isFullscreen"
1875
- size="small"
1876
- placeholder="请选择"
1877
- multiple
1878
- filterable
1879
- collapse-tags
1880
- clearable
1881
- >
1882
- <el-option
1883
- v-for="option in matchingStatusOptions"
1884
- :key="option.value"
1885
- :label="option.label"
1886
- :value="option.value"
1887
- />
1888
- </el-select>
1889
- </label>
1890
-
1891
- <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1892
- <span>客户名称</span>
1893
- <el-input v-model="forecastFilterForm.customerName" size="small" placeholder="请输入" clearable />
1894
- </label>
1895
1878
  </div>
1896
1879
 
1897
1880
  <div class="forecast-info-filter__actions">
@@ -2333,16 +2316,16 @@ onBeforeUnmount(() => {
2333
2316
  </label>
2334
2317
 
2335
2318
  <label class="forecast-info-filter__item">
2336
- <span>收支方向</span>
2319
+ <span>收付款类型</span>
2337
2320
  <el-select
2338
- v-model="flowFilterForm.direction"
2321
+ v-model="flowFilterForm.paymentType"
2339
2322
  :teleported="!isFullscreen"
2340
2323
  size="small"
2341
2324
  placeholder="请选择"
2342
2325
  clearable
2343
2326
  >
2344
2327
  <el-option
2345
- v-for="option in payDirectionOptions"
2328
+ v-for="option in paymentTypeOptions"
2346
2329
  :key="option.value"
2347
2330
  :label="option.label"
2348
2331
  :value="option.value"
@@ -2373,7 +2356,7 @@ onBeforeUnmount(() => {
2373
2356
  </el-select>
2374
2357
  </label>
2375
2358
 
2376
- <label class="forecast-info-filter__item">
2359
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
2377
2360
  <span>核销状态</span>
2378
2361
  <el-select
2379
2362
  v-model="flowFilterForm.verifyStatus"
@@ -2409,31 +2392,6 @@ onBeforeUnmount(() => {
2409
2392
  <el-input v-model="flowFilterForm.customerName" size="small" placeholder="请输入" clearable />
2410
2393
  </label>
2411
2394
 
2412
- <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
2413
- <span>账户行</span>
2414
- <el-select
2415
- v-model="flowFilterForm.bankCode"
2416
- :teleported="!isFullscreen"
2417
- :loading="flowAccountBankLoading"
2418
- size="small"
2419
- placeholder="请选择账户行"
2420
- filterable
2421
- clearable
2422
- @visible-change="handleFlowAccountBankVisibleChange"
2423
- >
2424
- <el-option
2425
- v-for="option in flowAccountBankOptions"
2426
- :key="`${option.bankAcct}-${option.bankName}`"
2427
- :label="option.bankName"
2428
- :value="option.bankAcct"
2429
- />
2430
- </el-select>
2431
- </label>
2432
-
2433
- <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
2434
- <span>机构代码</span>
2435
- <el-input v-model="flowFilterForm.branchCode" size="small" placeholder="请输入" clearable />
2436
- </label>
2437
2395
  </div>
2438
2396
 
2439
2397
  <div class="forecast-info-filter__actions">
@@ -2617,16 +2575,16 @@ onBeforeUnmount(() => {
2617
2575
  </label>
2618
2576
 
2619
2577
  <label class="forecast-info-filter__item">
2620
- <span>收支方向</span>
2578
+ <span>收付款类型</span>
2621
2579
  <el-select
2622
- v-model="flowFilterForm.direction"
2580
+ v-model="flowFilterForm.paymentType"
2623
2581
  :teleported="!isFullscreen"
2624
2582
  size="small"
2625
2583
  placeholder="请选择"
2626
2584
  clearable
2627
2585
  >
2628
2586
  <el-option
2629
- v-for="option in payDirectionOptions"
2587
+ v-for="option in paymentTypeOptions"
2630
2588
  :key="option.value"
2631
2589
  :label="option.label"
2632
2590
  :value="option.value"