verce-vue-test 0.0.101 → 0.0.103

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.101",
3
+ "version": "0.0.103",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -5,10 +5,10 @@
5
5
  */
6
6
  import {
7
7
  computed,
8
+ getCurrentInstance,
8
9
  nextTick,
9
10
  ref,
10
11
  useAttrs,
11
- useId,
12
12
  useSlots,
13
13
  watch,
14
14
  cloneVNode,
@@ -38,6 +38,8 @@ const props = withDefaults(
38
38
  columnStorageKey?: string
39
39
  // 列配置弹窗挂载节点,用于页面级浮层隔离
40
40
  appendTo?: string | HTMLElement
41
+ // 分页条数下拉层挂载节点(Element Plus 仅支持选择器)
42
+ paginationAppendTo?: string
41
43
  // 是否开启列配置功能
42
44
  columnConfig?: boolean
43
45
  // 是否持久化列配置到本地存储
@@ -89,7 +91,8 @@ const emit = defineEmits<{
89
91
  const route = useRoute()
90
92
  const attrs = useAttrs()
91
93
  const slots = useSlots()
92
- const columnOrderTipId = useId()
94
+ // Vue 3.4 尚未提供 useId,使用组件实例 uid 生成页面内唯一的无障碍关联 ID。
95
+ const columnOrderTipId = `el-table-pro-column-order-tip-${getCurrentInstance()?.uid ?? 0}`
93
96
 
94
97
  /**
95
98
  * 响应式状态
@@ -585,8 +588,9 @@ initColumns()
585
588
  :total="total || data.length"
586
589
  :page-sizes="pageSizes"
587
590
  :layout="layout"
591
+ :append-size-to="paginationAppendTo"
588
592
  background
589
- :small="colBtnSize === 'small'"
593
+ :size="colBtnSize"
590
594
  />
591
595
  </div>
592
596
 
@@ -13,6 +13,7 @@ export default {
13
13
  // 页面入口只负责筛选表单、浮层和路由生命周期,业务状态由 composable 管理。
14
14
  import {
15
15
  computed,
16
+ getCurrentInstance,
16
17
  onActivated,
17
18
  onBeforeUnmount,
18
19
  onDeactivated,
@@ -109,6 +110,10 @@ const route = useRoute()
109
110
  const ownerRouteRecord = route.matched[route.matched.length - 1]
110
111
  const isCurrentRoute = computed(() => !ownerRouteRecord || route.matched.includes(ownerRouteRecord))
111
112
 
113
+ // KeepAlive 可能同时保留多个页面实例,分页浮层必须挂载到当前实例的唯一容器。
114
+ const overlayContainerId = `forecast-info-overlay-host-${getCurrentInstance()?.uid ?? 0}`
115
+ const overlayContainerSelector = `#${overlayContainerId}`
116
+
112
117
  /**
113
118
  * 页面专属的浮层挂载点。
114
119
  * 抽屉和弹窗不再直接挂到 body,避免 Layout 路由切换或 KeepAlive 缓存时遮罩残留在其他页面上。
@@ -582,7 +587,7 @@ onBeforeUnmount(() => {
582
587
  }"
583
588
  >
584
589
  <!-- 固定定位且不参与网格布局,专门承接本页抽屉和弹窗。 -->
585
- <div ref="overlayContainer" class="forecast-info-overlay-host"></div>
590
+ <div :id="overlayContainerId" ref="overlayContainer" class="forecast-info-overlay-host"></div>
586
591
  <section class="forecast-info-card" aria-labelledby="forecast-info-title">
587
592
  <!-- 卡片标题与布局切换;两个面板使用相同的切换事件。 -->
588
593
  <header class="forecast-info-card__header">
@@ -632,7 +637,7 @@ onBeforeUnmount(() => {
632
637
  </div>
633
638
  </header>
634
639
 
635
- <!-- 水平布局仅显示交易日期,其他筛选统一放在抽屉;垂直布局额外显示收支方向。 -->
640
+ <!-- 左右布局仅显示交易日期;上下布局展示四个常用筛选条件。 -->
636
641
  <div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
637
642
  <div class="forecast-info-filter__grid">
638
643
  <label class="forecast-info-filter__item">
@@ -662,6 +667,38 @@ onBeforeUnmount(() => {
662
667
  <el-option v-for="option in forecastDirectionOptions" :key="option.value" v-bind="option" />
663
668
  </el-select>
664
669
  </label>
670
+
671
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
672
+ <span>业务类型</span>
673
+ <el-select
674
+ v-model="forecastForm.businessType"
675
+ :append-to="overlayContainer || undefined"
676
+ :persistent="false"
677
+ size="small"
678
+ placeholder="请选择"
679
+ clearable
680
+ >
681
+ <el-option v-for="option in businessTypeOptions" :key="option.value" v-bind="option" />
682
+ </el-select>
683
+ </label>
684
+
685
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
686
+ <span>核销状态</span>
687
+ <el-select
688
+ v-model="forecastForm.verification"
689
+ :append-to="overlayContainer || undefined"
690
+ :persistent="false"
691
+ size="small"
692
+ placeholder="请选择"
693
+ clearable
694
+ >
695
+ <el-option
696
+ v-for="option in forecastVerifyStatusFilterOptions"
697
+ :key="option.value"
698
+ v-bind="option"
699
+ />
700
+ </el-select>
701
+ </label>
665
702
  </div>
666
703
 
667
704
  <div class="forecast-info-filter__actions">
@@ -709,6 +746,7 @@ onBeforeUnmount(() => {
709
746
  table-key="rmb-position-settlement-forecast-info"
710
747
  :selection-reset-key="forecastSelectionResetKey"
711
748
  :append-to="overlayContainer || undefined"
749
+ :pagination-append-to="overlayContainerSelector"
712
750
  isolate-overlays
713
751
  row-key="predRefNo"
714
752
  border
@@ -718,7 +756,6 @@ onBeforeUnmount(() => {
718
756
  table-layout="auto"
719
757
  height="100%"
720
758
  class="forecast-info-table forecast-info-table--forecast"
721
- pagination-size="small"
722
759
  @selection-change="forecastInfoStore.handleForecastSelectionChange"
723
760
  @pagination-change="handleForecastPaginationChange"
724
761
  >
@@ -1148,7 +1185,7 @@ onBeforeUnmount(() => {
1148
1185
  </div>
1149
1186
  </header>
1150
1187
 
1151
- <!-- 水平布局收敛为一个快速筛选项,完整条件通过抽屉提供。 -->
1188
+ <!-- 左右布局仅显示交易日期;上下布局展示四个常用筛选条件。 -->
1152
1189
  <div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
1153
1190
  <div class="forecast-info-filter__grid">
1154
1191
  <label class="forecast-info-filter__item">
@@ -1178,6 +1215,25 @@ onBeforeUnmount(() => {
1178
1215
  <el-option v-for="option in flowDirectionOptions" :key="option.value" v-bind="option" />
1179
1216
  </el-select>
1180
1217
  </label>
1218
+
1219
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1220
+ <span>支付渠道</span>
1221
+ <el-input v-model="flowForm.payChannel" size="small" placeholder="请输入" clearable />
1222
+ </label>
1223
+
1224
+ <label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
1225
+ <span>核销状态</span>
1226
+ <el-select
1227
+ v-model="flowForm.verifyStatus"
1228
+ :append-to="overlayContainer || undefined"
1229
+ :persistent="false"
1230
+ size="small"
1231
+ placeholder="请选择"
1232
+ clearable
1233
+ >
1234
+ <el-option v-for="option in flowStatusOptions" :key="option.value" v-bind="option" />
1235
+ </el-select>
1236
+ </label>
1181
1237
  </div>
1182
1238
 
1183
1239
  <div class="forecast-info-filter__actions">
@@ -1199,6 +1255,7 @@ onBeforeUnmount(() => {
1199
1255
  table-key="rmb-position-settlement-flow-info"
1200
1256
  :selection-reset-key="flowSelectionResetKey"
1201
1257
  :append-to="overlayContainer || undefined"
1258
+ :pagination-append-to="overlayContainerSelector"
1202
1259
  isolate-overlays
1203
1260
  row-key="refNo"
1204
1261
  border
@@ -1208,7 +1265,6 @@ onBeforeUnmount(() => {
1208
1265
  table-layout="auto"
1209
1266
  height="100%"
1210
1267
  class="forecast-info-table forecast-info-table--flow"
1211
- pagination-size="small"
1212
1268
  @selection-change="forecastInfoStore.handleFlowSelectionChange"
1213
1269
  @pagination-change="handleFlowPaginationChange"
1214
1270
  >
@@ -192,8 +192,9 @@
192
192
  }
193
193
 
194
194
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
195
- flex: 0 0 auto;
196
- grid-template-columns: 248px 220px;
195
+ flex: 1 1 auto;
196
+ grid-template-columns: repeat(4, minmax(0, 1fr));
197
+ column-gap: 16px;
197
198
  }
198
199
 
199
200
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__item {
@@ -799,7 +800,8 @@
799
800
  }
800
801
 
801
802
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
802
- grid-template-columns: minmax(238px, 248px) minmax(220px, 240px);
803
+ grid-template-columns: repeat(4, minmax(0, 1fr));
804
+ column-gap: 12px;
803
805
  }
804
806
 
805
807
  }
@@ -830,6 +832,10 @@
830
832
  grid-template-columns: minmax(0, 1fr);
831
833
  }
832
834
 
835
+ .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
836
+ grid-template-columns: minmax(0, 1fr);
837
+ }
838
+
833
839
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__item,
834
840
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__item--range,
835
841
  .forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__drawer-grid .forecast-info-filter__item {
@@ -192,8 +192,9 @@
192
192
  }
193
193
 
194
194
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
195
- flex: 0 0 auto;
196
- grid-template-columns: 248px 220px;
195
+ flex: 1 1 auto;
196
+ grid-template-columns: repeat(4, minmax(0, 1fr));
197
+ column-gap: 16px;
197
198
  }
198
199
 
199
200
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item {
@@ -799,7 +800,8 @@
799
800
  }
800
801
 
801
802
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
802
- grid-template-columns: minmax(238px, 248px) minmax(220px, 240px);
803
+ grid-template-columns: repeat(4, minmax(0, 1fr));
804
+ column-gap: 12px;
803
805
  }
804
806
 
805
807
  }
@@ -830,6 +832,10 @@
830
832
  grid-template-columns: minmax(0, 1fr);
831
833
  }
832
834
 
835
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
836
+ grid-template-columns: minmax(0, 1fr);
837
+ }
838
+
833
839
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item,
834
840
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item--range,
835
841
  .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item {
@@ -931,50 +937,8 @@
931
937
  }
932
938
  }
933
939
 
934
- .forecast-info-page[data-page-scope="foreign-currency-settlement"].foreign-currency-settlement-page {
935
- gap: 10px;
936
- background:
937
- linear-gradient(135deg, rgba(23, 105, 224, .055) 0, transparent 28%),
938
- #f3f6fa;
939
- }
940
-
941
- .foreign-currency-settlement-page .foreign-currency-settlement-title-group {
942
- display: flex;
943
- min-width: 0;
944
- align-items: center;
945
- gap: 10px;
946
- }
947
-
948
- .foreign-currency-settlement-page .forecast-info-card {
949
- border-color: #dce5f0;
950
- border-radius: 8px;
951
- box-shadow: 0 5px 18px rgba(31, 58, 92, .075);
952
- }
953
-
954
- .foreign-currency-settlement-page .forecast-info-card__header {
955
- min-height: 24px;
956
- }
957
-
958
- .forecast-info-page[data-page-scope="foreign-currency-settlement"].foreign-currency-settlement-page
959
- .forecast-info-filter:not(.forecast-info-filter--horizontal)
960
- .forecast-info-filter__grid {
961
- grid-template-columns: 238px repeat(3, minmax(170px, 200px));
962
- }
963
-
964
- .foreign-currency-settlement-page .foreign-currency-settlement-selection-count {
965
- display: inline-flex;
966
- height: 24px;
967
- align-items: center;
968
- padding: 0 9px;
969
- border: 1px solid #bfe2df;
970
- border-radius: 999px;
971
- background: #eef9f7;
972
- color: #147b76;
973
- font-size: 12px;
974
- font-weight: 600;
975
- }
976
-
977
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar {
940
+ /* 外币页面保留独立作用域,工具栏辅助状态沿用本币页面的克制视觉。 */
941
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-table-shell .el-table-plus__toolbar {
978
942
  display: flex;
979
943
  min-height: 32px;
980
944
  align-items: center;
@@ -982,309 +946,46 @@
982
946
  gap: 12px;
983
947
  }
984
948
 
985
- .foreign-currency-settlement-page .forecast-info-filter {
986
- padding: 8px;
987
- }
988
-
989
- .foreign-currency-settlement-page .forecast-info-filter__actions .el-button {
990
- min-height: 28px;
991
- }
992
-
993
- .foreign-currency-settlement-page .foreign-currency-settlement-filter-count {
994
- display: inline-flex;
995
- min-width: 17px;
996
- height: 17px;
997
- align-items: center;
998
- justify-content: center;
999
- margin-left: 5px;
1000
- padding: 0 4px;
1001
- border-radius: 9px;
1002
- background: #e7eef7;
1003
- color: #536a86;
1004
- font-size: 10px;
1005
- font-weight: 700;
1006
- line-height: 1;
1007
- }
1008
-
1009
- .foreign-currency-settlement-page .forecast-info-fullscreen-button:focus-visible,
1010
- .foreign-currency-settlement-page .forecast-info-layout-switch__button:focus-visible {
1011
- outline: 2px solid rgba(23, 105, 224, .32);
1012
- outline-offset: 2px;
1013
- }
1014
-
1015
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__header th {
1016
- background: #f1f5f9;
1017
- color: #344761;
1018
- }
1019
-
1020
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__row:hover > td.el-table__cell {
1021
- background: #f0f7ff;
1022
- }
1023
-
1024
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-left,
1025
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-right {
949
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-table-shell .el-table-plus__toolbar-left,
950
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-table-shell .el-table-plus__toolbar-right {
1026
951
  display: flex;
1027
952
  min-width: 0;
1028
953
  align-items: center;
1029
954
  }
1030
955
 
1031
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-left {
956
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-table-shell .el-table-plus__toolbar-left {
1032
957
  width: auto;
1033
958
  flex: 1 1 auto;
1034
959
  }
1035
960
 
1036
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar-right {
961
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-table-shell .el-table-plus__toolbar-right {
1037
962
  flex: 0 0 auto;
1038
963
  }
1039
964
 
1040
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__pagination {
1041
- display: flex;
1042
- align-items: center;
1043
- justify-content: flex-end;
1044
- }
1045
-
1046
- .foreign-currency-settlement-page .foreign-currency-settlement-empty {
1047
- display: flex;
1048
- min-height: 126px;
1049
- align-items: center;
1050
- justify-content: center;
1051
- flex-direction: column;
1052
- gap: 7px;
1053
- color: #8492a6;
1054
- }
1055
-
1056
- .foreign-currency-settlement-page .foreign-currency-settlement-empty__icon {
1057
- display: inline-flex;
1058
- width: 38px;
1059
- height: 38px;
1060
- align-items: center;
1061
- justify-content: center;
1062
- border: 1px solid #d5e4f7;
1063
- border-radius: 12px;
1064
- background: #f2f7fd;
1065
- color: #4f83bd;
1066
- font-size: 20px;
1067
- }
1068
-
1069
- .foreign-currency-settlement-page .foreign-currency-settlement-empty strong {
1070
- color: #40526a;
1071
- font-size: 14px;
1072
- font-weight: 600;
1073
- }
1074
-
1075
- .foreign-currency-settlement-page .foreign-currency-settlement-empty > span:last-child {
965
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-selection-count {
966
+ color: #4a5668;
1076
967
  font-size: 12px;
1077
- }
1078
-
1079
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__empty-block {
1080
- min-height: 150px;
1081
- }
1082
-
1083
- @media (max-width: 900px) {
1084
- .forecast-info-page[data-page-scope="foreign-currency-settlement"].foreign-currency-settlement-page
1085
- .forecast-info-filter:not(.forecast-info-filter--horizontal)
1086
- .forecast-info-filter__grid {
1087
- grid-template-columns: minmax(0, 1fr);
1088
- }
1089
- }
1090
-
1091
- /* ---- 核销工作台视觉层级:区分预报与流水两步,并强化结果状态。 ---- */
1092
- .forecast-info-page[data-page-scope="foreign-currency-settlement"].foreign-currency-settlement-page {
1093
- --settlement-ink: #16243a;
1094
- --settlement-muted: #718198;
1095
- --settlement-line: #dbe4ef;
1096
- --settlement-forecast: #1769e0;
1097
- --settlement-flow: #087f7a;
1098
- gap: 12px;
1099
- background:
1100
- radial-gradient(circle at 4% 0, rgba(23, 105, 224, .09), transparent 26%),
1101
- radial-gradient(circle at 96% 100%, rgba(8, 127, 122, .075), transparent 24%),
1102
- #f3f6fa;
1103
- }
1104
-
1105
- .foreign-currency-settlement-page .forecast-info-card {
1106
- position: relative;
1107
- border-color: var(--settlement-line);
1108
- border-radius: 10px;
1109
- box-shadow: 0 8px 24px rgba(31, 58, 92, .075);
1110
- transition: border-color .18s ease, box-shadow .18s ease;
1111
- }
1112
-
1113
- .foreign-currency-settlement-page .forecast-info-card::before {
1114
- position: absolute;
1115
- z-index: 1;
1116
- top: -1px;
1117
- left: 18px;
1118
- width: 54px;
1119
- height: 3px;
1120
- border-radius: 0 0 4px 4px;
1121
- background: var(--panel-accent);
1122
- content: "";
1123
- }
1124
-
1125
- .foreign-currency-settlement-page .forecast-info-card--forecast {
1126
- --panel-accent: var(--settlement-forecast);
1127
- --panel-accent-soft: #edf5ff;
1128
- }
1129
-
1130
- .foreign-currency-settlement-page .forecast-info-card--flow {
1131
- --panel-accent: var(--settlement-flow);
1132
- --panel-accent-soft: #eaf8f6;
1133
- }
1134
-
1135
- .foreign-currency-settlement-page .forecast-info-card:focus-within {
1136
- border-color: #b8cbe2;
1137
- box-shadow: 0 10px 28px rgba(31, 58, 92, .11);
1138
- }
1139
-
1140
- .foreign-currency-settlement-page .forecast-info-card__header {
1141
- min-height: 34px;
1142
- padding: 0 6px;
1143
- }
1144
-
1145
- .foreign-currency-settlement-page .foreign-currency-settlement-title-group {
1146
- display: flex;
1147
- min-width: 0;
1148
- align-items: center;
1149
- gap: 9px;
1150
- }
1151
-
1152
- .foreign-currency-settlement-page .foreign-currency-settlement-step {
1153
- display: inline-flex;
1154
- width: 27px;
1155
- height: 27px;
1156
- align-items: center;
1157
- justify-content: center;
1158
- flex: 0 0 auto;
1159
- border: 1px solid #c9dced;
1160
- border-radius: 8px;
1161
- background: var(--panel-accent-soft);
1162
- color: var(--panel-accent);
1163
- font-size: 11px;
1164
- font-weight: 800;
1165
- font-variant-numeric: tabular-nums;
1166
- letter-spacing: .02em;
1167
- }
1168
-
1169
- .foreign-currency-settlement-page .forecast-info-card--flow .foreign-currency-settlement-step {
1170
- border-color: #b9dfda;
1171
- }
1172
-
1173
- .foreign-currency-settlement-page .foreign-currency-settlement-title-copy {
1174
- display: flex;
1175
- min-width: 0;
1176
- flex-direction: column;
1177
- gap: 3px;
1178
- }
1179
-
1180
- .foreign-currency-settlement-page .foreign-currency-settlement-title-copy p {
1181
- margin: 0;
1182
- overflow: hidden;
1183
- color: var(--settlement-muted);
1184
- font-size: 11px;
1185
- line-height: 1;
1186
- text-overflow: ellipsis;
1187
968
  white-space: nowrap;
1188
969
  }
1189
970
 
1190
- .foreign-currency-settlement-page .forecast-info-card__title {
1191
- color: var(--settlement-ink);
1192
- font-size: 15px;
1193
- line-height: 1;
1194
- }
1195
-
1196
- .foreign-currency-settlement-page .forecast-info-card__title::before {
1197
- display: none;
1198
- }
1199
-
1200
- .foreign-currency-settlement-page .foreign-currency-settlement-result-count {
971
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-filter-count {
1201
972
  display: inline-flex;
1202
- min-width: 54px;
1203
- height: 22px;
973
+ min-width: 17px;
974
+ height: 17px;
1204
975
  align-items: center;
1205
976
  justify-content: center;
1206
- flex: 0 0 auto;
1207
- padding: 0 8px;
1208
- border: 1px solid #e0e7f0;
1209
- border-radius: 999px;
1210
- background: #f8fafc;
1211
- color: #66768c;
1212
- font-size: 11px;
1213
- font-variant-numeric: tabular-nums;
1214
- }
1215
-
1216
- .foreign-currency-settlement-page .forecast-info-filter {
1217
- margin-top: 10px;
1218
- padding: 9px 10px;
1219
- border: 1px solid #e4eaf2;
1220
- border-radius: 8px;
1221
- background: #f8fafc;
1222
- }
1223
-
1224
- .foreign-currency-settlement-page .forecast-info-filter__item > span {
1225
- color: #52647c;
1226
- font-size: 12px;
1227
- font-weight: 650;
1228
- }
1229
-
1230
- .foreign-currency-settlement-page .forecast-info-filter__item .el-input__wrapper,
1231
- .foreign-currency-settlement-page .forecast-info-filter__item .el-select__wrapper,
1232
- .foreign-currency-settlement-page .forecast-info-filter__item .el-date-editor.el-input__wrapper {
1233
- background: #fff;
1234
- box-shadow: 0 0 0 1px #d8e1ec inset;
1235
- transition: box-shadow .16s ease, background-color .16s ease;
1236
- }
1237
-
1238
- .foreign-currency-settlement-page .forecast-info-filter__item .el-input__wrapper:hover,
1239
- .foreign-currency-settlement-page .forecast-info-filter__item .el-select__wrapper:hover,
1240
- .foreign-currency-settlement-page .forecast-info-filter__item .el-date-editor.el-input__wrapper:hover {
1241
- box-shadow: 0 0 0 1px #9fb9d8 inset;
1242
- }
1243
-
1244
- .foreign-currency-settlement-page .forecast-info-filter__actions .el-button {
1245
- min-height: 28px;
1246
- border-radius: 6px;
1247
- }
1248
-
1249
- .foreign-currency-settlement-page .forecast-info-filter__actions .el-button--primary {
1250
- background: var(--panel-accent);
1251
- border-color: var(--panel-accent);
1252
- box-shadow: 0 4px 10px rgba(23, 105, 224, .18);
1253
- }
1254
-
1255
- .foreign-currency-settlement-page .forecast-info-card--flow .forecast-info-filter__actions .el-button--primary {
1256
- box-shadow: 0 4px 10px rgba(8, 127, 122, .18);
1257
- }
1258
-
1259
- .foreign-currency-settlement-page .forecast-info-table-area {
1260
- margin-top: 10px;
1261
- padding-top: 9px;
1262
- border-top-color: #e6ebf2;
1263
- }
1264
-
1265
- .foreign-currency-settlement-page .foreign-currency-settlement-table-shell .el-table-plus__toolbar {
1266
- padding: 0 2px;
1267
- }
1268
-
1269
- .foreign-currency-settlement-page .foreign-currency-settlement-table {
1270
- border: 1px solid #dce4ee;
1271
- border-radius: 7px;
1272
- }
1273
-
1274
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__header th {
1275
- background: #f3f6fa;
1276
- color: #3e5068;
1277
- box-shadow: 0 -1px 0 #dce4ee inset;
1278
- }
1279
-
1280
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__row:hover > td.el-table__cell,
1281
- .foreign-currency-settlement-page .foreign-currency-settlement-table .el-table__row.current-row > td.el-table__cell {
1282
- background: var(--panel-accent-soft);
977
+ margin-left: 5px;
978
+ padding: 0 4px;
979
+ border-radius: 9px;
980
+ background: #e8f1ff;
981
+ color: #1668ff;
982
+ font-size: 10px;
983
+ font-weight: 700;
984
+ line-height: 1;
1283
985
  }
1284
986
 
1285
- @media (max-width: 900px) {
1286
- .foreign-currency-settlement-page .foreign-currency-settlement-title-copy p,
1287
- .foreign-currency-settlement-page .foreign-currency-settlement-result-count {
1288
- display: none;
1289
- }
987
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-fullscreen-button:focus-visible,
988
+ .forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-layout-switch__button:focus-visible {
989
+ outline: 2px solid rgba(22, 104, 255, .28);
990
+ outline-offset: 2px;
1290
991
  }
@@ -15,6 +15,7 @@ import {
15
15
  reactive,
16
16
  ref,
17
17
  shallowRef,
18
+ useId,
18
19
  watch,
19
20
  } from 'vue'
20
21
  import { onBeforeRouteLeave, useRoute } from 'vue-router'
@@ -25,7 +26,6 @@ import {
25
26
  Download,
26
27
  FullScreen,
27
28
  Grid,
28
- InfoFilled,
29
29
  Menu,
30
30
  Refresh,
31
31
  RefreshLeft,
@@ -391,6 +391,9 @@ const isCurrentRoute = computed(() => !ownerRouteRecord || route.matched.include
391
391
  const pageContainer = ref<HTMLElement | null>(null)
392
392
  const overlayContainer = ref<HTMLElement | null>(null)
393
393
  const isFullscreen = ref(false)
394
+ /** 每个页面实例使用独立根节点,避免 KeepAlive 场景下分页浮层命中旧页面。 */
395
+ const pageScopeId = `foreign-currency-settlement-page-${useId()}`
396
+ const paginationAppendTo = computed(() => (isFullscreen.value ? `#${pageScopeId}` : undefined))
394
397
  const pageMessage = useScopedMessage(() => overlayContainer.value)
395
398
  const forecastSelectedRows = shallowRef<any[]>([])
396
399
  const flowSelectedRows = shallowRef<any[]>([])
@@ -1244,6 +1247,7 @@ onBeforeUnmount(() => {
1244
1247
  <template>
1245
1248
  <div
1246
1249
  v-show="isCurrentRoute"
1250
+ :id="pageScopeId"
1247
1251
  ref="pageContainer"
1248
1252
  class="forecast-info-page foreign-currency-settlement-page"
1249
1253
  data-page-scope="foreign-currency-settlement"
@@ -1253,7 +1257,11 @@ onBeforeUnmount(() => {
1253
1257
  'forecast-info-page--fullscreen': isFullscreen,
1254
1258
  }"
1255
1259
  >
1256
- <div ref="overlayContainer" class="forecast-info-overlay-host"></div>
1260
+ <div
1261
+ id="foreign-currency-settlement-overlay-host"
1262
+ ref="overlayContainer"
1263
+ class="forecast-info-overlay-host"
1264
+ ></div>
1257
1265
 
1258
1266
  <section
1259
1267
  class="forecast-info-card forecast-info-card--forecast"
@@ -1261,16 +1269,7 @@ onBeforeUnmount(() => {
1261
1269
  :aria-busy="forecastLoading"
1262
1270
  >
1263
1271
  <header class="forecast-info-card__header">
1264
- <div class="foreign-currency-settlement-title-group">
1265
- <span class="foreign-currency-settlement-step" aria-hidden="true">01</span>
1266
- <div class="foreign-currency-settlement-title-copy">
1267
- <h2 id="foreign-currency-forecast-info-title" class="forecast-info-card__title">预报信息</h2>
1268
- <p>选择需要核销的外币预报</p>
1269
- </div>
1270
- <span class="foreign-currency-settlement-result-count" aria-live="polite">
1271
- {{ forecastLoading ? '查询中' : `共 ${forecastTotal} 笔` }}
1272
- </span>
1273
- </div>
1272
+ <h2 id="foreign-currency-forecast-info-title" class="forecast-info-card__title">预报信息</h2>
1274
1273
 
1275
1274
  <div class="forecast-info-header-actions">
1276
1275
  <el-tooltip
@@ -1403,6 +1402,7 @@ onBeforeUnmount(() => {
1403
1402
  :page-sizes="[10, 20, 50, 100]"
1404
1403
  :selection-reset-key="forecastSelectionResetKey"
1405
1404
  :append-to="overlayContainer || undefined"
1405
+ :pagination-append-to="paginationAppendTo"
1406
1406
  table-key="foreign-currency-settlement-forecast-info"
1407
1407
  row-key="predRefNo"
1408
1408
  border
@@ -1498,11 +1498,7 @@ onBeforeUnmount(() => {
1498
1498
  </el-table-column>
1499
1499
 
1500
1500
  <template #empty>
1501
- <div class="foreign-currency-settlement-empty">
1502
- <span class="foreign-currency-settlement-empty__icon"><el-icon><InfoFilled /></el-icon></span>
1503
- <strong>暂无数据</strong>
1504
- <span>暂无符合条件的外币预报信息</span>
1505
- </div>
1501
+ <el-empty description="暂无数据" :image-size="54" />
1506
1502
  </template>
1507
1503
  </ElTablePro>
1508
1504
  </section>
@@ -1689,16 +1685,7 @@ onBeforeUnmount(() => {
1689
1685
  :aria-busy="flowLoading"
1690
1686
  >
1691
1687
  <header class="forecast-info-card__header">
1692
- <div class="foreign-currency-settlement-title-group">
1693
- <span class="foreign-currency-settlement-step" aria-hidden="true">02</span>
1694
- <div class="foreign-currency-settlement-title-copy">
1695
- <h2 id="foreign-currency-flow-info-title" class="forecast-info-card__title">流水信息</h2>
1696
- <p>选择与预报匹配的银行流水</p>
1697
- </div>
1698
- <span class="foreign-currency-settlement-result-count" aria-live="polite">
1699
- {{ flowLoading ? '查询中' : `共 ${flowTotal} 笔` }}
1700
- </span>
1701
- </div>
1688
+ <h2 id="foreign-currency-flow-info-title" class="forecast-info-card__title">流水信息</h2>
1702
1689
 
1703
1690
  <div class="forecast-info-header-actions">
1704
1691
  <el-tooltip
@@ -1831,6 +1818,7 @@ onBeforeUnmount(() => {
1831
1818
  :page-sizes="[10, 20, 50, 100]"
1832
1819
  :selection-reset-key="flowSelectionResetKey"
1833
1820
  :append-to="overlayContainer || undefined"
1821
+ :pagination-append-to="paginationAppendTo"
1834
1822
  table-key="foreign-currency-settlement-flow-info"
1835
1823
  row-key="tranRefNo"
1836
1824
  border
@@ -1904,11 +1892,7 @@ onBeforeUnmount(() => {
1904
1892
  </el-table-column>
1905
1893
 
1906
1894
  <template #empty>
1907
- <div class="foreign-currency-settlement-empty">
1908
- <span class="foreign-currency-settlement-empty__icon"><el-icon><InfoFilled /></el-icon></span>
1909
- <strong>暂无数据</strong>
1910
- <span>暂无符合条件的外币流水信息</span>
1911
- </div>
1895
+ <el-empty description="暂无数据" :image-size="54" />
1912
1896
  </template>
1913
1897
  </ElTablePro>
1914
1898
  </section>