verce-vue-test 0.0.68 → 0.0.70

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/env.d.ts CHANGED
@@ -1 +1,21 @@
1
1
  /// <reference types="vite/client" />
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ ElButtonPro: typeof import('./src/components/ElButtonPro.vue')['default']
6
+ ElFormDialog: typeof import('./src/components/ElFormDialog.vue')['default']
7
+ ElInputThousandth: typeof import('./src/components/ElInputThousandth.vue')['default']
8
+ ElTablePro: typeof import('./src/components/ElTablePro.vue')['default']
9
+ ElUploadButton: typeof import('./src/components/ElUploadButton.vue')['default']
10
+ LoginSuccessNotification: typeof import('./src/components/LoginSuccessNotification.vue')['default']
11
+ NumberRange: typeof import('./src/components/NumberRange.vue')['default']
12
+ WebsiteNoticeTitle: typeof import('./src/components/WebsiteNoticeTitle.vue')['default']
13
+ IconCommunity: typeof import('./src/components/icons/IconCommunity.vue')['default']
14
+ IconDocumentation: typeof import('./src/components/icons/IconDocumentation.vue')['default']
15
+ IconEcosystem: typeof import('./src/components/icons/IconEcosystem.vue')['default']
16
+ IconSupport: typeof import('./src/components/icons/IconSupport.vue')['default']
17
+ IconTooling: typeof import('./src/components/icons/IconTooling.vue')['default']
18
+ }
19
+ }
20
+
21
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -0,0 +1,38 @@
1
+ import type { App, Component } from 'vue'
2
+
3
+ import ElButtonPro from './ElButtonPro.vue'
4
+ import ElFormDialog from './ElFormDialog.vue'
5
+ import ElInputThousandth from './ElInputThousandth.vue'
6
+ import ElTablePro from './ElTablePro.vue'
7
+ import ElUploadButton from './ElUploadButton.vue'
8
+ import LoginSuccessNotification from './LoginSuccessNotification.vue'
9
+ import NumberRange from './NumberRange.vue'
10
+ import WebsiteNoticeTitle from './WebsiteNoticeTitle.vue'
11
+ import IconCommunity from './icons/IconCommunity.vue'
12
+ import IconDocumentation from './icons/IconDocumentation.vue'
13
+ import IconEcosystem from './icons/IconEcosystem.vue'
14
+ import IconSupport from './icons/IconSupport.vue'
15
+ import IconTooling from './icons/IconTooling.vue'
16
+
17
+ const globalComponents: Record<string, Component> = {
18
+ ElButtonPro,
19
+ ElFormDialog,
20
+ ElInputThousandth,
21
+ ElTablePro,
22
+ ElUploadButton,
23
+ LoginSuccessNotification,
24
+ NumberRange,
25
+ WebsiteNoticeTitle,
26
+ IconCommunity,
27
+ IconDocumentation,
28
+ IconEcosystem,
29
+ IconSupport,
30
+ IconTooling,
31
+ }
32
+
33
+ /** 注册 src/components 下的公共组件,页面模板中可直接使用。 */
34
+ export function registerGlobalComponents(app: App) {
35
+ Object.entries(globalComponents).forEach(([name, component]) => {
36
+ app.component(name, component)
37
+ })
38
+ }
package/src/main.ts CHANGED
@@ -6,6 +6,7 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
6
6
  import './assets/reset.css'
7
7
 
8
8
  import App from './App.vue'
9
+ import { registerGlobalComponents } from './components'
9
10
  import router from './router'
10
11
 
11
12
  const app = createApp(App)
@@ -13,5 +14,6 @@ const app = createApp(App)
13
14
  app.use(createPinia())
14
15
  app.use(router)
15
16
  app.use(ElementPlus, { locale: zhCn })
17
+ registerGlobalComponents(app)
16
18
 
17
19
  app.mount('#app')
@@ -57,8 +57,6 @@
57
57
  <script setup lang="ts">
58
58
  import { ref, reactive, onMounted } from 'vue'
59
59
  import { ElMessage, ElMessageBox } from 'element-plus'
60
- import ElTablePro from '@/components/ElTablePro.vue'
61
- import ElFormDialog from '@/components/ElFormDialog.vue'
62
60
  import type { FormRules } from 'element-plus'
63
61
 
64
62
  type Employee = {
@@ -9,8 +9,9 @@ export default {
9
9
  </script>
10
10
 
11
11
  <script setup lang="ts">
12
- import { ref, type Component } from 'vue'
12
+ import { onBeforeUnmount, onDeactivated, onMounted, ref, type Component } from 'vue'
13
13
  import { storeToRefs } from 'pinia'
14
+ import { ElMessage } from 'element-plus'
14
15
  import { Grid, Menu } from '@element-plus/icons-vue'
15
16
  import ForecastInfoPanel from './components/ForecastInfoPanel.vue'
16
17
  import FlowInfoPanel from './components/FlowInfoPanel.vue'
@@ -35,11 +36,60 @@ const { cardLayout } = storeToRefs(forecastInfoStore)
35
36
  * 抽屉和弹窗不再直接挂到 body,避免 Layout 路由切换或 KeepAlive 缓存时遮罩残留在其他页面上。
36
37
  */
37
38
  const overlayContainer = ref<HTMLElement | null>(null)
39
+ /** 全屏只挂载当前业务页面,浏览器会自动排除外层侧边栏和顶部 Layout。 */
40
+ const pageContainer = ref<HTMLElement | null>(null)
41
+ const isFullscreen = ref(false)
42
+
43
+ function syncFullscreenState() {
44
+ isFullscreen.value = document.fullscreenElement === pageContainer.value
45
+ }
46
+
47
+ async function toggleFullscreen() {
48
+ const container = pageContainer.value
49
+
50
+ if (!container) return
51
+
52
+ try {
53
+ if (document.fullscreenElement === container) {
54
+ await document.exitFullscreen()
55
+ return
56
+ }
57
+
58
+ if (!container.requestFullscreen) {
59
+ ElMessage.warning('当前浏览器不支持页面全屏')
60
+ return
61
+ }
62
+
63
+ await container.requestFullscreen()
64
+ } catch {
65
+ ElMessage.error('进入全屏失败,请检查浏览器权限设置')
66
+ }
67
+ }
68
+
69
+ function exitPageFullscreen() {
70
+ if (document.fullscreenElement === pageContainer.value) {
71
+ void document.exitFullscreen()
72
+ }
73
+ }
74
+
75
+ onMounted(() => document.addEventListener('fullscreenchange', syncFullscreenState))
76
+ onDeactivated(exitPageFullscreen)
77
+ onBeforeUnmount(() => {
78
+ document.removeEventListener('fullscreenchange', syncFullscreenState)
79
+ exitPageFullscreen()
80
+ })
38
81
  </script>
39
82
 
40
83
  <template>
41
84
  <!-- 水平布局使用两列;垂直布局由公共样式切换为两行等高卡片。 -->
42
- <div class="forecast-info-page" :class="{ 'forecast-info-page--horizontal': cardLayout === 'horizontal' }">
85
+ <div
86
+ ref="pageContainer"
87
+ class="forecast-info-page"
88
+ :class="{
89
+ 'forecast-info-page--horizontal': cardLayout === 'horizontal',
90
+ 'forecast-info-page--fullscreen': isFullscreen,
91
+ }"
92
+ >
43
93
  <!-- 固定定位且不参与网格布局,专门承接本页抽屉和弹窗。 -->
44
94
  <div ref="overlayContainer" class="forecast-info-overlay-host"></div>
45
95
  <!-- 两个面板接收同一布局值,保证任一入口切换后页面整体保持一致。 -->
@@ -47,13 +97,17 @@ const overlayContainer = ref<HTMLElement | null>(null)
47
97
  :layout="cardLayout"
48
98
  :layout-options="layoutOptions"
49
99
  :overlay-container="overlayContainer"
100
+ :is-fullscreen="isFullscreen"
50
101
  @change-layout="forecastInfoStore.setCardLayout"
102
+ @toggle-fullscreen="toggleFullscreen"
51
103
  />
52
104
  <FlowInfoPanel
53
105
  :layout="cardLayout"
54
106
  :layout-options="layoutOptions"
55
107
  :overlay-container="overlayContainer"
108
+ :is-fullscreen="isFullscreen"
56
109
  @change-layout="forecastInfoStore.setCardLayout"
110
+ @toggle-fullscreen="toggleFullscreen"
57
111
  />
58
112
  </div>
59
113
  </template>
@@ -1,10 +1,9 @@
1
1
  <script setup lang="ts">
2
- import { onBeforeUnmount, onDeactivated, reactive, ref, type Component } from 'vue'
2
+ import { computed, onBeforeUnmount, onDeactivated, reactive, ref, type Component } from 'vue'
3
3
  import { storeToRefs } from 'pinia'
4
4
  import { ElMessage } from 'element-plus'
5
- import { Search } from '@element-plus/icons-vue'
6
- import NumberRange, { type RangeValue } from '@/components/NumberRange.vue'
7
- import ElTablePro from '@/components/ElTablePro.vue'
5
+ import { FullScreen, Search } from '@element-plus/icons-vue'
6
+ import type { RangeValue } from '@/components/NumberRange.vue'
8
7
  import { formatThousands } from '@/utils/formatters'
9
8
  import {
10
9
  useForecastInfoStore,
@@ -33,12 +32,15 @@ type TableColumn = {
33
32
  defineProps<{
34
33
  layout: ForecastInfoCardLayout
35
34
  layoutOptions: LayoutOption[]
35
+ /** 当前页面是否已进入浏览器全屏。 */
36
+ isFullscreen: boolean
36
37
  /** 页面级局部浮层容器,防止抽屉直接挂到 Layout 的 body 节点。 */
37
38
  overlayContainer: HTMLElement | null
38
39
  }>()
39
40
 
40
41
  const emit = defineEmits<{
41
42
  changeLayout: [layout: ForecastInfoCardLayout]
43
+ toggleFullscreen: []
42
44
  }>()
43
45
 
44
46
  /** 流水接口方向编码与预报不同:1 为收入,0 为支出。 */
@@ -101,7 +103,31 @@ const flowDrawerVisible = ref(false)
101
103
  /** 页面级 store 保存流水数据,也保存与预报表共享的多选结果。 */
102
104
  const forecastInfoStore = useForecastInfoStore()
103
105
  /** 分页、列表和最近一次查询参数从 Pinia 读取,翻页时不依赖组件局部状态。 */
104
- const { flowRows, flowTotal, flowPage, flowPageSize, flowLoading, flowQueryParams } = storeToRefs(forecastInfoStore)
106
+ const {
107
+ flowRows,
108
+ flowTotal,
109
+ flowPage,
110
+ flowPageSize,
111
+ flowLoading,
112
+ flowQueryParams,
113
+ flowSelectedRows,
114
+ } = storeToRefs(forecastInfoStore)
115
+
116
+ /**
117
+ * 所选流水的轧差金额:收入计正、支出计负。
118
+ * 金额统一保留至分后再展示,避免浮点运算产生无意义的小数位。
119
+ */
120
+ const flowNetAmount = computed(() => {
121
+ const amount = flowSelectedRows.value.reduce((total, row) => {
122
+ const normalizedAmount = Number(String(row.amt ?? '').trim().replace(/,/g, ''))
123
+ if (!Number.isFinite(normalizedAmount)) return total
124
+ if (row.payDirec === '1') return total + normalizedAmount
125
+ if (row.payDirec === '0') return total - normalizedAmount
126
+ return total
127
+ }, 0)
128
+
129
+ return formatThousands(Math.round((amount + Number.EPSILON) * 100) / 100, '0')
130
+ })
105
131
 
106
132
  /**
107
133
  * 关闭流水卡片的更多筛选抽屉。
@@ -187,28 +213,48 @@ function getFlowSequence(index: number) {
187
213
  <!-- 卡片标题和页面级布局切换;操作会同步影响预报卡片。 -->
188
214
  <header class="forecast-info-card__header">
189
215
  <h2 id="flow-info-title" class="forecast-info-card__title">流水信息</h2>
190
- <div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换流水信息卡片排列方式">
216
+ <div class="forecast-info-header-actions">
191
217
  <el-tooltip
192
- v-for="option in layoutOptions"
193
- :key="option.value"
194
- :content="option.label"
218
+ :content="isFullscreen ? '退出全屏' : '全屏显示'"
195
219
  placement="top"
196
220
  :show-after="200"
221
+ :append-to="overlayContainer || undefined"
197
222
  >
198
223
  <button
199
224
  type="button"
200
- class="forecast-info-layout-switch__button"
201
- :class="{ 'is-active': layout === option.value }"
202
- role="radio"
203
- :aria-label="option.label"
204
- :aria-checked="layout === option.value"
205
- @click="emit('changeLayout', option.value)"
225
+ class="forecast-info-fullscreen-button"
226
+ :class="{ 'is-active': isFullscreen }"
227
+ :aria-label="isFullscreen ? '退出全屏' : '全屏显示当前页面'"
228
+ :aria-pressed="isFullscreen"
229
+ @click="emit('toggleFullscreen')"
206
230
  >
207
- <el-icon>
208
- <component :is="option.icon" />
209
- </el-icon>
231
+ <el-icon><FullScreen /></el-icon>
210
232
  </button>
211
233
  </el-tooltip>
234
+ <div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换流水信息卡片排列方式">
235
+ <el-tooltip
236
+ v-for="option in layoutOptions"
237
+ :key="option.value"
238
+ :content="option.label"
239
+ placement="top"
240
+ :show-after="200"
241
+ :append-to="overlayContainer || undefined"
242
+ >
243
+ <button
244
+ type="button"
245
+ class="forecast-info-layout-switch__button"
246
+ :class="{ 'is-active': layout === option.value }"
247
+ role="radio"
248
+ :aria-label="option.label"
249
+ :aria-checked="layout === option.value"
250
+ @click="emit('changeLayout', option.value)"
251
+ >
252
+ <el-icon>
253
+ <component :is="option.icon" />
254
+ </el-icon>
255
+ </button>
256
+ </el-tooltip>
257
+ </div>
212
258
  </div>
213
259
  </header>
214
260
 
@@ -262,6 +308,13 @@ function getFlowSequence(index: number) {
262
308
  @selection-change="forecastInfoStore.handleFlowSelectionChange"
263
309
  @pagination-change="handleFlowPaginationChange"
264
310
  >
311
+ <!-- 有选中流水时,在列配置同一行展示实时轧差金额。 -->
312
+ <template v-if="flowSelectedRows.length" #toolbar>
313
+ <div class="forecast-info-flow-net-amount" aria-live="polite">
314
+ <span>轧差金额(元):</span>
315
+ <strong>{{ flowNetAmount }}</strong>
316
+ </div>
317
+ </template>
265
318
  <!-- 勾选列保留行选择状态,事件入口位于 Pinia。 -->
266
319
  <el-table-column
267
320
  type="selection"
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { onBeforeUnmount, onDeactivated, reactive, ref, type Component } from 'vue'
2
+ import { computed, onBeforeUnmount, onDeactivated, reactive, ref, type Component } from 'vue'
3
3
  import { storeToRefs } from 'pinia'
4
4
  import { ElMessage, ElMessageBox } from 'element-plus'
5
5
  import {
@@ -7,13 +7,13 @@ import {
7
7
  CirclePlus,
8
8
  DataAnalysis,
9
9
  EditPen,
10
+ FullScreen,
10
11
  Money,
11
12
  RefreshLeft,
12
13
  Search,
13
14
  Tickets,
14
15
  } from '@element-plus/icons-vue'
15
- import NumberRange, { type RangeValue } from '@/components/NumberRange.vue'
16
- import ElTablePro from '@/components/ElTablePro.vue'
16
+ import type { RangeValue } from '@/components/NumberRange.vue'
17
17
  import { formatThousands } from '@/utils/formatters'
18
18
  import {
19
19
  useForecastInfoStore,
@@ -55,6 +55,8 @@ const amountColumnProps = new Set(['predAmt', 'verifyAmt'])
55
55
  defineProps<{
56
56
  layout: ForecastInfoCardLayout
57
57
  layoutOptions: LayoutOption[]
58
+ /** 当前页面是否已进入浏览器全屏。 */
59
+ isFullscreen: boolean
58
60
  /** 页面级局部浮层容器,防止抽屉与弹窗直接污染 Layout 的 body 节点。 */
59
61
  overlayContainer: HTMLElement | null
60
62
  }>()
@@ -62,6 +64,7 @@ defineProps<{
62
64
  /** 任一业务卡片点击布局图标时,将新布局回传给页面容器。 */
63
65
  const emit = defineEmits<{
64
66
  changeLayout: [layout: ForecastInfoCardLayout]
67
+ toggleFullscreen: []
65
68
  }>()
66
69
 
67
70
  /** 预报筛选的后端收支方向编码。 */
@@ -176,7 +179,7 @@ const modifyForm = reactive({
176
179
  /** 页面级 store 提供跨预报、流水表共享的业务状态与操作。 */
177
180
  const forecastInfoStore = useForecastInfoStore()
178
181
  /** 工具栏按钮仅在至少选择一条预报信息时可用。 */
179
- const { forecastHasSelectedRows } = storeToRefs(forecastInfoStore)
182
+ const { forecastHasSelectedRows, forecastSelectedRows } = storeToRefs(forecastInfoStore)
180
183
  /** 列表、分页、加载状态和匡算弹窗状态均从 Pinia 取值,避免布局切换后丢失。 */
181
184
  const {
182
185
  forecastRows,
@@ -188,6 +191,46 @@ const {
188
191
  calculationDialogVisible,
189
192
  } = storeToRefs(forecastInfoStore)
190
193
 
194
+ /** 将后端金额文本转换为可计算数字,兼容千分位格式。 */
195
+ function parseSummaryAmount(value: unknown) {
196
+ const amount = Number(String(value ?? '').trim().replace(/,/g, ''))
197
+ return Number.isFinite(amount) ? amount : 0
198
+ }
199
+
200
+ /** 汇总金额统一保留至分,并使用千分位展示。 */
201
+ function formatSummaryAmount(value: number) {
202
+ return formatThousands(Math.round((value + Number.EPSILON) * 100) / 100, '0')
203
+ }
204
+
205
+ /** 根据已选预报数据实时计算预报金额及核销金额的收支汇总和轧差。 */
206
+ const forecastSelectionSummary = computed(() => {
207
+ const summary = forecastSelectedRows.value.reduce(
208
+ (result, row) => {
209
+ const isIncome = row.payDirec === '1'
210
+ const isExpense = row.payDirec === '2'
211
+ if (!isIncome && !isExpense) return result
212
+
213
+ const directionKey = isIncome ? 'income' : 'expense'
214
+ result.pred[directionKey] += parseSummaryAmount(row.predAmt)
215
+ result.verified[directionKey] += parseSummaryAmount(row.verifyAmt)
216
+ return result
217
+ },
218
+ {
219
+ pred: { income: 0, expense: 0 },
220
+ verified: { income: 0, expense: 0 },
221
+ },
222
+ )
223
+
224
+ return {
225
+ predIncome: formatSummaryAmount(summary.pred.income),
226
+ predExpense: formatSummaryAmount(summary.pred.expense),
227
+ predNet: formatSummaryAmount(summary.pred.income - summary.pred.expense),
228
+ verifiedIncome: formatSummaryAmount(summary.verified.income),
229
+ verifiedExpense: formatSummaryAmount(summary.verified.expense),
230
+ verifiedNet: formatSummaryAmount(summary.verified.income - summary.verified.expense),
231
+ }
232
+ })
233
+
191
234
  /**
192
235
  * 关闭预报卡片创建的所有临时浮层。
193
236
  *
@@ -345,28 +388,48 @@ function handleForecastPaginationChange(_value: { page: number; pageSize: number
345
388
  <!-- 卡片标题与布局切换;两个面板使用相同的切换事件。 -->
346
389
  <header class="forecast-info-card__header">
347
390
  <h2 id="forecast-info-title" class="forecast-info-card__title">预报信息</h2>
348
- <div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换预报信息卡片排列方式">
391
+ <div class="forecast-info-header-actions">
349
392
  <el-tooltip
350
- v-for="option in layoutOptions"
351
- :key="option.value"
352
- :content="option.label"
393
+ :content="isFullscreen ? '退出全屏' : '全屏显示'"
353
394
  placement="top"
354
395
  :show-after="200"
396
+ :append-to="overlayContainer || undefined"
355
397
  >
356
398
  <button
357
399
  type="button"
358
- class="forecast-info-layout-switch__button"
359
- :class="{ 'is-active': layout === option.value }"
360
- role="radio"
361
- :aria-label="option.label"
362
- :aria-checked="layout === option.value"
363
- @click="emit('changeLayout', option.value)"
400
+ class="forecast-info-fullscreen-button"
401
+ :class="{ 'is-active': isFullscreen }"
402
+ :aria-label="isFullscreen ? '退出全屏' : '全屏显示当前页面'"
403
+ :aria-pressed="isFullscreen"
404
+ @click="emit('toggleFullscreen')"
364
405
  >
365
- <el-icon>
366
- <component :is="option.icon" />
367
- </el-icon>
406
+ <el-icon><FullScreen /></el-icon>
368
407
  </button>
369
408
  </el-tooltip>
409
+ <div class="forecast-info-layout-switch" role="radiogroup" aria-label="切换预报信息卡片排列方式">
410
+ <el-tooltip
411
+ v-for="option in layoutOptions"
412
+ :key="option.value"
413
+ :content="option.label"
414
+ placement="top"
415
+ :show-after="200"
416
+ :append-to="overlayContainer || undefined"
417
+ >
418
+ <button
419
+ type="button"
420
+ class="forecast-info-layout-switch__button"
421
+ :class="{ 'is-active': layout === option.value }"
422
+ role="radio"
423
+ :aria-label="option.label"
424
+ :aria-checked="layout === option.value"
425
+ @click="emit('changeLayout', option.value)"
426
+ >
427
+ <el-icon>
428
+ <component :is="option.icon" />
429
+ </el-icon>
430
+ </button>
431
+ </el-tooltip>
432
+ </div>
370
433
  </div>
371
434
  </header>
372
435
 
@@ -403,6 +466,32 @@ function handleForecastPaginationChange(_value: { page: number; pageSize: number
403
466
 
404
467
  <!-- 表格区域占据卡片剩余高度,ElTablePro 管理分页和工具栏。 -->
405
468
  <section class="forecast-info-table-area" aria-label="预报信息列表">
469
+ <div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
470
+ <div class="forecast-info-forecast-summary__item">
471
+ <span>预报收入总金额(元)</span>
472
+ <strong>{{ forecastSelectionSummary.predIncome }}</strong>
473
+ </div>
474
+ <div class="forecast-info-forecast-summary__item">
475
+ <span>预报支出总金额(元)</span>
476
+ <strong>{{ forecastSelectionSummary.predExpense }}</strong>
477
+ </div>
478
+ <div class="forecast-info-forecast-summary__item">
479
+ <span>预报轧差金额</span>
480
+ <strong>{{ forecastSelectionSummary.predNet }}</strong>
481
+ </div>
482
+ <div class="forecast-info-forecast-summary__item">
483
+ <span>核销收入总金额</span>
484
+ <strong>{{ forecastSelectionSummary.verifiedIncome }}</strong>
485
+ </div>
486
+ <div class="forecast-info-forecast-summary__item">
487
+ <span>核销支出总金额</span>
488
+ <strong>{{ forecastSelectionSummary.verifiedExpense }}</strong>
489
+ </div>
490
+ <div class="forecast-info-forecast-summary__item">
491
+ <span>核销轧差金额</span>
492
+ <strong>{{ forecastSelectionSummary.verifiedNet }}</strong>
493
+ </div>
494
+ </div>
406
495
  <ElTablePro
407
496
  v-model:page="forecastPage"
408
497
  v-model:page-size="forecastPageSize"
@@ -22,6 +22,7 @@
22
22
  /* 本页抽屉和弹窗的局部 Teleport 目标,不参与卡片网格,也不会覆盖其他路由。 */
23
23
  .forecast-info-overlay-host {
24
24
  position: fixed;
25
+ z-index: 3000;
25
26
  top: 0;
26
27
  left: 0;
27
28
  width: 0;
@@ -36,6 +37,15 @@
36
37
  align-items: stretch;
37
38
  }
38
39
 
40
+ /* 浏览器全屏时页面根节点独占视口,不再预留外层 Layout 的头部高度。 */
41
+ .forecast-info-page:fullscreen,
42
+ .forecast-info-page--fullscreen {
43
+ width: 100vw;
44
+ height: 100vh;
45
+ margin: 0;
46
+ padding: 12px 14px 14px;
47
+ }
48
+
39
49
  /* ---- 卡片与标题:两张业务卡片共享相同的边框、阴影和内部弹性结构。 ---- */
40
50
  .forecast-info-page .forecast-info-card {
41
51
  display: flex;
@@ -63,6 +73,43 @@
63
73
  padding: 0 4px;
64
74
  }
65
75
 
76
+ .forecast-info-page .forecast-info-header-actions {
77
+ display: inline-flex;
78
+ align-items: center;
79
+ gap: 6px;
80
+ flex: 0 0 auto;
81
+ }
82
+
83
+ .forecast-info-page .forecast-info-fullscreen-button {
84
+ display: inline-flex;
85
+ width: 30px;
86
+ height: 30px;
87
+ align-items: center;
88
+ justify-content: center;
89
+ padding: 0;
90
+ border: 1px solid #d8e1ee;
91
+ border-radius: 5px;
92
+ background: #f6f9fd;
93
+ color: #5f6f86;
94
+ cursor: pointer;
95
+ transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
96
+ }
97
+
98
+ .forecast-info-page .forecast-info-fullscreen-button:hover,
99
+ .forecast-info-page .forecast-info-fullscreen-button.is-active {
100
+ border-color: #b8cff4;
101
+ background: #e8f1ff;
102
+ color: #1668ff;
103
+ }
104
+
105
+ .forecast-info-page .forecast-info-fullscreen-button.is-active {
106
+ box-shadow: 0 3px 8px rgba(22, 104, 255, .16);
107
+ }
108
+
109
+ .forecast-info-page .forecast-info-fullscreen-button .el-icon {
110
+ font-size: 16px;
111
+ }
112
+
66
113
  .forecast-info-page .forecast-info-layout-switch {
67
114
  display: inline-flex;
68
115
  align-items: center;
@@ -320,6 +367,71 @@
320
367
  flex-direction: column;
321
368
  }
322
369
 
370
+ .forecast-info-flow-net-amount {
371
+ display: inline-flex;
372
+ align-items: baseline;
373
+ gap: 2px;
374
+ color: #4a5668;
375
+ font-size: 11px;
376
+ }
377
+
378
+ .forecast-info-flow-net-amount strong {
379
+ color: #24344b;
380
+ font-size: 12px;
381
+ font-variant-numeric: tabular-nums;
382
+ }
383
+
384
+ .forecast-info-forecast-summary {
385
+ display: grid;
386
+ grid-template-columns: repeat(6, minmax(0, 1fr));
387
+ flex: 0 0 auto;
388
+ margin-bottom: 6px;
389
+ overflow: hidden;
390
+ border: 1px solid #e1e7f0;
391
+ border-radius: 5px;
392
+ background: #f7f9fc;
393
+ }
394
+
395
+ .forecast-info-page--horizontal .forecast-info-forecast-summary {
396
+ grid-template-columns: repeat(3, minmax(0, 1fr));
397
+ }
398
+
399
+ .forecast-info-forecast-summary__item {
400
+ display: flex;
401
+ min-width: 0;
402
+ flex-direction: column;
403
+ gap: 1px;
404
+ padding: 4px 8px;
405
+ border-left: 1px solid #e1e7f0;
406
+ color: #4a5668;
407
+ font-size: 11px;
408
+ }
409
+
410
+ .forecast-info-forecast-summary__item:first-child {
411
+ border-left: 0;
412
+ }
413
+
414
+ .forecast-info-page--horizontal .forecast-info-forecast-summary__item:nth-child(4) {
415
+ border-left: 0;
416
+ }
417
+
418
+ .forecast-info-page--horizontal .forecast-info-forecast-summary__item:nth-child(n + 4) {
419
+ border-top: 1px solid #e1e7f0;
420
+ }
421
+
422
+ .forecast-info-forecast-summary__item > span {
423
+ overflow: hidden;
424
+ text-overflow: ellipsis;
425
+ white-space: nowrap;
426
+ }
427
+
428
+ .forecast-info-forecast-summary__item strong {
429
+ color: #24344b;
430
+ font-size: 12px;
431
+ font-weight: 600;
432
+ font-variant-numeric: tabular-nums;
433
+ }
434
+
323
435
  .forecast-info-page .forecast-info-table-area > .el-table-plus > .forecast-info-table {
324
436
  flex: 1 1 auto;
325
437
  min-height: 0;
@@ -50,7 +50,7 @@
50
50
  <script setup lang="ts">
51
51
  import { reactive, ref } from 'vue'
52
52
  import { ElMessage } from 'element-plus'
53
- import NumberRange, { type RangeValue } from '@/components/NumberRange.vue'
53
+ import type { RangeValue } from '@/components/NumberRange.vue'
54
54
 
55
55
  const form = reactive({
56
56
  amountRange: [null, null] as RangeValue,
@@ -267,7 +267,6 @@
267
267
  <script setup lang="ts">
268
268
  import { ref } from 'vue'
269
269
  import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
270
- import ElButtonPro from '../components/ElButtonPro.vue'
271
270
  import {
272
271
  Promotion,
273
272
  OfficeBuilding,
@@ -8,7 +8,6 @@ import {
8
8
  RefreshRight,
9
9
  WarnTriangleFilled,
10
10
  } from '@element-plus/icons-vue'
11
- import WebsiteNoticeTitle from '@/components/WebsiteNoticeTitle.vue'
12
11
 
13
12
  type TodoCountField =
14
13
  | 'cbpsPrediTodoCount'
@@ -73,7 +73,6 @@
73
73
  <script setup lang="ts">
74
74
  import { ref, reactive, onMounted } from 'vue'
75
75
  import { ElMessage, ElMessageBox } from 'element-plus'
76
- import ElTablePro from '@/components/ElTablePro.vue'
77
76
  import { priceFormatter } from '@/utils/formatters'
78
77
 
79
78
  interface ColumnConfig {
@@ -45,7 +45,6 @@
45
45
  <script setup lang="ts">
46
46
  import { ref, reactive, onMounted } from 'vue'
47
47
  import { ElMessage, ElMessageBox } from 'element-plus'
48
- import ElTablePro from '@/components/ElTablePro.vue'
49
48
 
50
49
  const loading = ref(false)
51
50
  const total = ref(0)
@@ -36,7 +36,6 @@
36
36
  <script setup lang="ts">
37
37
  import { reactive } from 'vue'
38
38
  import { ElMessage } from 'element-plus'
39
- import ElInputThousandth from '@/components/ElInputThousandth.vue'
40
39
 
41
40
  const form = reactive({
42
41
  amount: undefined as number | undefined,