1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1
2
|
<template>
<div class="annual-summary-dashboard">
|
340f9d62
李宇
最新
|
3
4
5
|
<!-- 顶部状态栏 & 筛选器 -->
<div class="cockpit-header">
<div class="header-left">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
6
|
<h1 class="page-title">年度经营全景报告</h1>
|
340f9d62
李宇
最新
|
7
8
9
10
|
</div>
<div class="header-right">
<el-form :inline="true" :model="query" class="search-form-compact">
<el-form-item label="年度">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
11
12
|
<el-date-picker v-model="query.year" type="year" value-format="yyyy" placeholder="选择年度" clearable
size="mini" @change="handleQueryChange" style="width: 150px" />
|
340f9d62
李宇
最新
|
13
14
|
</el-form-item>
<el-form-item label="门店名称">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
15
16
17
18
|
<el-select v-model="query.storeName" placeholder="请选择门店" clearable filterable size="mini"
@change="handleQueryChange" style="width: 200px">
<el-option v-for="store in storeOptions" :key="store.id" :label="store.fullName"
:value="store.fullName" />
|
340f9d62
李宇
最新
|
19
20
21
22
23
24
|
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" size="mini" icon="el-icon-search" @click="handleQueryChange">查询</el-button>
<el-button size="mini" icon="el-icon-refresh-right" @click="handleReset">重置</el-button>
</el-form-item>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
25
|
</el-form>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
26
27
28
|
</div>
</div>
|
340f9d62
李宇
最新
|
29
30
31
|
<!-- 标签页导航 -->
<el-tabs v-model="activeMenu" @tab-click="handleTabClick" class="dashboard-tabs">
<el-tab-pane name="monthly-trend">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
32
|
<span slot="label"><i class="el-icon-data-line"></i> 月度经营趋势</span>
|
340f9d62
李宇
最新
|
33
34
|
</el-tab-pane>
<el-tab-pane name="performance-stat">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
35
|
<span slot="label"><i class="el-icon-trophy"></i> 年度业绩总览</span>
|
340f9d62
李宇
最新
|
36
37
|
</el-tab-pane>
<el-tab-pane name="consume-stat">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
38
|
<span slot="label"><i class="el-icon-shopping-cart-2"></i> 年度消耗总览</span>
|
340f9d62
李宇
最新
|
39
40
|
</el-tab-pane>
<el-tab-pane name="headcount-stat">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
41
|
<span slot="label"><i class="el-icon-user"></i> 年度客流量总览</span>
|
340f9d62
李宇
最新
|
42
43
|
</el-tab-pane>
<el-tab-pane name="persontime-stat">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
44
|
<span slot="label"><i class="el-icon-user-solid"></i> 年度到店频次总览</span>
|
340f9d62
李宇
最新
|
45
46
|
</el-tab-pane>
<el-tab-pane name="project-stat">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
47
|
<span slot="label"><i class="el-icon-goods"></i> 年度项目量总览</span>
|
340f9d62
李宇
最新
|
48
49
|
</el-tab-pane>
<el-tab-pane name="store-indicators">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
50
|
<span slot="label"><i class="el-icon-pie-chart"></i> 门店综合指标</span>
|
340f9d62
李宇
最新
|
51
52
|
</el-tab-pane>
<el-tab-pane name="bu-indicators">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
53
|
<span slot="label"><i class="el-icon-s-data"></i> 事业部综合指标</span>
|
340f9d62
李宇
最新
|
54
55
|
</el-tab-pane>
<el-tab-pane name="bu-summary">
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
56
|
<span slot="label"><i class="el-icon-tickets"></i> 事业部经营汇总</span>
|
340f9d62
李宇
最新
|
57
58
|
</el-tab-pane>
</el-tabs>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
59
|
|
340f9d62
李宇
最新
|
60
61
|
<!-- 内容区域 -->
<div class="dashboard-content">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
62
63
64
65
66
67
|
<!-- 月度趋势分析 -->
<div v-show="activeMenu === 'monthly-trend'" class="content-panel">
<div class="panel-body">
<el-row :gutter="16">
<el-col :span="12">
<el-card shadow="hover" class="dashboard-card chart-card">
|
340f9d62
李宇
最新
|
68
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
69
|
<i class="el-icon-trophy"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
70
|
<span>业绩趋势对比</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
71
|
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
72
|
<div id="perfTrend" class="chart-box"></div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
73
|
</el-card>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
74
75
76
77
78
|
</el-col>
<el-col :span="12">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-shopping-cart-2"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
79
|
<span>消耗趋势对比</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
80
81
82
83
84
85
86
87
88
89
|
</div>
<div id="consumeTrend" class="chart-box"></div>
</el-card>
</el-col>
</el-row>
<el-row :gutter="16" style="margin-top: 16px">
<el-col :span="8">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-user"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
90
|
<span>客流量趋势</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
91
92
93
94
95
96
97
98
|
</div>
<div id="headCountTrend" class="chart-box"></div>
</el-card>
</el-col>
<el-col :span="8">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-user-solid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
99
|
<span>到店频次趋势</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
100
101
102
103
104
105
106
107
|
</div>
<div id="personTimeTrend" class="chart-box"></div>
</el-card>
</el-col>
<el-col :span="8">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-goods"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
108
|
<span>项目量趋势</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
109
110
111
112
113
114
115
116
117
|
</div>
<div id="projectCountTrend" class="chart-box"></div>
</el-card>
</el-col>
</el-row>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
<div slot="header" class="card-title">
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
118
|
<span>月度趋势明细</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
119
|
</div>
|
c6224cb7
李宇
最新
|
120
121
|
<el-table v-loading="trendTableLoading" :data="trendTableData" border stripe style="width: 100%"
max-height="600" @sort-change="(sortInfo) => handleTableSortChange('trend', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
122
|
<el-table-column v-for="col in trendTableColumns" :key="col.prop" :prop="col.prop" :label="col.label"
|
c6224cb7
李宇
最新
|
123
124
|
:width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
125
126
127
128
129
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
130
|
</el-table>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
131
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
132
133
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
134
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
135
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
136
137
138
139
140
141
|
<!-- 全年门店业绩表 -->
<div v-show="activeMenu === 'performance-stat'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
142
|
<span>业绩趋势图</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
143
144
145
146
147
|
</div>
<div id="performanceChart" class="chart-box-large"></div>
</el-card>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
|
340f9d62
李宇
最新
|
148
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
149
|
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
150
|
<span>业绩明细表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
151
|
</div>
|
c6224cb7
李宇
最新
|
152
153
|
<el-table v-loading="performanceTableLoading" :data="performanceTableData" border stripe
style="width: 100%" max-height="600" @sort-change="(sortInfo) => handleTableSortChange('performance', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
154
|
<el-table-column v-for="col in performanceTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
155
156
|
:label="col.label" :width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
157
158
159
160
161
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
162
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
163
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
164
165
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
166
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
167
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
168
169
170
171
172
173
|
<!-- 全年门店消耗表 -->
<div v-show="activeMenu === 'consume-stat'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
174
|
<span>消耗趋势图</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
175
176
177
178
179
|
</div>
<div id="consumeChart" class="chart-box-large"></div>
</el-card>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
|
340f9d62
李宇
最新
|
180
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
181
|
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
182
|
<span>消耗明细表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
183
|
</div>
|
c6224cb7
李宇
最新
|
184
185
|
<el-table v-loading="consumeTableLoading" :data="consumeTableData" border stripe style="width: 100%"
max-height="600" @sort-change="(sortInfo) => handleTableSortChange('consume', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
186
|
<el-table-column v-for="col in consumeTableColumns" :key="col.prop" :prop="col.prop" :label="col.label"
|
c6224cb7
李宇
最新
|
187
188
|
:width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
189
190
191
192
193
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
194
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
195
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
196
197
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
198
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
199
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
200
201
202
203
204
205
|
<!-- 年度门店人头表 -->
<div v-show="activeMenu === 'headcount-stat'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
206
|
<span>客流量趋势图</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
207
208
209
210
211
|
</div>
<div id="headCountChart" class="chart-box-large"></div>
</el-card>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
|
340f9d62
李宇
最新
|
212
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
213
|
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
214
|
<span>客流量明细表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
215
|
</div>
|
c6224cb7
李宇
最新
|
216
217
|
<el-table v-loading="headCountTableLoading" :data="headCountTableData" border stripe style="width: 100%"
max-height="600" @sort-change="(sortInfo) => handleTableSortChange('headCount', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
218
|
<el-table-column v-for="col in headCountTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
219
220
|
:label="col.label" :width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
221
222
223
224
225
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
226
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
227
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
228
229
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
230
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
231
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
232
233
234
235
236
237
|
<!-- 年度门店人次表 -->
<div v-show="activeMenu === 'persontime-stat'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
238
|
<span>到店频次趋势图</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
239
240
241
242
243
|
</div>
<div id="personTimeChart" class="chart-box-large"></div>
</el-card>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
|
340f9d62
李宇
最新
|
244
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
245
|
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
246
|
<span>到店频次明细表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
247
|
</div>
|
c6224cb7
李宇
最新
|
248
249
|
<el-table v-loading="personTimeTableLoading" :data="personTimeTableData" border stripe
style="width: 100%" max-height="600" @sort-change="(sortInfo) => handleTableSortChange('personTime', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
250
|
<el-table-column v-for="col in personTimeTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
251
252
|
:label="col.label" :width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
253
254
255
256
257
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
258
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
259
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
260
261
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
262
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
263
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
264
265
266
267
268
269
|
<!-- 年度门店项目数表 -->
<div v-show="activeMenu === 'project-stat'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
270
|
<span>项目量趋势图</span>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
271
272
273
274
275
|
</div>
<div id="projectCountChart" class="chart-box-large"></div>
</el-card>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
|
340f9d62
李宇
最新
|
276
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
277
|
<i class="el-icon-s-grid"></i>
|
63999922
“wangming”
fix: 修复开单升单逻辑Bug,...
|
278
|
<span>项目量明细表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
279
|
</div>
|
c6224cb7
李宇
最新
|
280
281
|
<el-table v-loading="projectCountTableLoading" :data="projectCountTableData" border stripe
style="width: 100%" max-height="600" @sort-change="(sortInfo) => handleTableSortChange('projectCount', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
282
|
<el-table-column v-for="col in projectCountTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
283
284
|
:label="col.label" :width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod" :fixed="col.fixed">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
285
286
287
288
289
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
290
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
291
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
292
293
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
294
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
295
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
|
<!-- 门店五项指标统计 -->
<div v-show="activeMenu === 'store-indicators'" class="content-panel">
<div class="panel-body">
<div class="indicator-controls">
<el-radio-group v-model="indicatorField" size="mini" @change="loadStoreIndicators">
<el-radio-button label="totalperformance">
<i class="el-icon-trophy"></i>
总业绩
</el-radio-button>
<el-radio-button label="totalconsume">
<i class="el-icon-shopping-cart-2"></i>
总消耗
</el-radio-button>
<el-radio-button label="headcount">
<i class="el-icon-user"></i>
客头数
</el-radio-button>
<el-radio-button label="persontime">
<i class="el-icon-user-solid"></i>
客次数
</el-radio-button>
<el-radio-button label="projectcount">
<i class="el-icon-goods"></i>
项目数
</el-radio-button>
</el-radio-group>
</div>
<el-row :gutter="16" style="margin-top: 16px">
<el-col :span="16">
<el-card shadow="hover" class="dashboard-card chart-card">
|
340f9d62
李宇
最新
|
326
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
327
328
|
<i class="el-icon-s-data"></i>
<span>各门店指标对比</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
329
|
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
330
|
<div id="storeIndicatorChart" class="chart-box-large"></div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
331
|
</el-card>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
332
333
334
|
</el-col>
<el-col :span="8">
<el-card shadow="hover" class="dashboard-card chart-card">
|
340f9d62
李宇
最新
|
335
|
<div slot="header" class="card-title">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
336
337
|
<i class="el-icon-pie-chart"></i>
<span>门店占比分析</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
338
|
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
339
|
<div id="storePieChart" class="chart-box-large"></div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
340
|
</el-card>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
341
342
343
344
345
346
347
348
|
</el-col>
</el-row>
<div class="table-section" style="margin-top: 16px">
<el-card shadow="hover" class="dashboard-card table-card">
<div slot="header" class="card-title">
<i class="el-icon-s-grid"></i>
<span>门店指标数据列表</span>
</div>
|
c6224cb7
李宇
最新
|
349
350
|
<el-table v-loading="storeIndicatorTableLoading" :data="storeIndicatorTableData" border stripe
style="width: 100%" @sort-change="(sortInfo) => handleTableSortChange('storeIndicator', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
351
|
<el-table-column v-for="col in storeIndicatorTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
352
|
:label="col.label" :sortable="col.sortable" :sort-method="col.sortMethod">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
353
354
355
356
357
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
358
|
</el-table>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
359
|
</el-card>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
360
361
|
</div>
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
362
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
363
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
|
<!-- 事业部五项指标统计 -->
<div v-show="activeMenu === 'bu-indicators'" class="content-panel">
<div class="panel-body">
<div class="indicator-controls">
<el-radio-group v-model="buIndicatorField" size="mini" @change="loadBuIndicators">
<el-radio-button label="totalperformance">
<i class="el-icon-trophy"></i>
总业绩
</el-radio-button>
<el-radio-button label="totalconsume">
<i class="el-icon-shopping-cart-2"></i>
总消耗
</el-radio-button>
<el-radio-button label="headcount">
<i class="el-icon-user"></i>
客头数
</el-radio-button>
<el-radio-button label="persontime">
<i class="el-icon-user-solid"></i>
客次数
</el-radio-button>
<el-radio-button label="projectcount">
<i class="el-icon-goods"></i>
项目数
</el-radio-button>
</el-radio-group>
</div>
<el-row :gutter="16" style="margin-top: 16px">
<el-col :span="12">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-pie-chart"></i>
<span>事业部贡献占比</span>
</div>
<div id="buPieChart" class="chart-box"></div>
</el-card>
</el-col>
<el-col :span="12">
<el-card shadow="hover" class="dashboard-card chart-card">
<div slot="header" class="card-title">
<i class="el-icon-data-line"></i>
<span>事业部增长率分析</span>
</div>
<div id="buGrowthChart" class="chart-box"></div>
</el-card>
</el-col>
</el-row>
<div class="table-section" style="margin-top: 16px">
|
340f9d62
李宇
最新
|
412
413
|
<el-card shadow="hover" class="dashboard-card table-card">
<div slot="header" class="card-title">
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
414
|
<i class="el-icon-s-grid"></i>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
415
|
<span>事业部指标数据列表</span>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
416
|
</div>
|
c6224cb7
李宇
最新
|
417
418
|
<el-table v-loading="buIndicatorTableLoading" :data="buIndicatorTableData" border stripe
style="width: 100%" @sort-change="(sortInfo) => handleTableSortChange('buIndicator', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
419
|
<el-table-column v-for="col in buIndicatorTableColumns" :key="col.prop" :prop="col.prop"
|
c6224cb7
李宇
最新
|
420
|
:label="col.label" :sortable="col.sortable" :sort-method="col.sortMethod">
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
421
422
423
424
425
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
426
|
</el-table>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
427
|
</el-card>
|
340f9d62
李宇
最新
|
428
|
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
429
|
</div>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
430
431
432
433
434
435
436
437
438
439
|
</div>
<!-- 事业部内部汇总 -->
<div v-show="activeMenu === 'bu-summary'" class="content-panel">
<div class="panel-body">
<el-card shadow="hover" class="dashboard-card table-card bu-summary-card">
<div slot="header" class="card-title">
<i class="el-icon-s-grid"></i>
<span>事业部汇总数据列表</span>
</div>
|
c6224cb7
李宇
最新
|
440
441
|
<el-table v-loading="buSummaryTableLoading" :data="buSummaryTableData" border stripe style="width: 100%"
:height="null" class="bu-summary-table" @sort-change="(sortInfo) => handleTableSortChange('buSummary', sortInfo)">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
442
|
<el-table-column v-for="col in buSummaryTableColumns" :key="col.prop" :prop="col.prop" :label="col.label"
|
c6224cb7
李宇
最新
|
443
444
|
:width="col.width" :align="col.align || 'center'" :sortable="col.sortable"
:sort-method="col.sortMethod">
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
445
446
447
448
449
|
<template slot-scope="scope">
<span v-if="col.formatter" v-html="col.formatter(scope.row)"></span>
<span v-else>{{ scope.row[col.prop] || '0' }}</span>
</template>
</el-table-column>
|
c6224cb7
李宇
最新
|
450
|
</el-table>
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
451
452
453
|
</el-card>
</div>
</div>
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
|
</div>
</div>
</template>
<script>
import * as echarts from 'echarts'
import {
getMonthlyTrend,
getTotalPerformanceStat,
getTotalConsumeStat,
getHeadCountStat,
getPersonTimeStat,
getProjectCountStat,
getStoreIndicatorDetail,
getBusinessUnitIndicatorsStat,
getBusinessUnitSummaryStat
} from '@/api/extend/annualSummary'
import { getStoreSelector } from '@/api/extend/store'
export default {
name: 'annualSummaryDashboard',
data() {
return {
activeMenu: 'monthly-trend',
query: {
year: new Date().getFullYear().toString(),
storeName: ''
},
indicatorField: 'totalperformance',
buIndicatorField: 'totalperformance',
trendField: 'totalperformance', // 月度趋势列表显示的类型
// 月度趋势
trendTableLoading: false,
trendTableData: [],
trendTableColumns: [],
// 业绩
performanceTableLoading: false,
performanceTableData: [],
performanceTableColumns: [],
// 消耗
consumeTableLoading: false,
consumeTableData: [],
consumeTableColumns: [],
// 人头
headCountTableLoading: false,
headCountTableData: [],
headCountTableColumns: [],
// 人次
personTimeTableLoading: false,
personTimeTableData: [],
personTimeTableColumns: [],
// 项目
projectCountTableLoading: false,
projectCountTableData: [],
projectCountTableColumns: [],
// 门店指标
storeIndicatorTableLoading: false,
storeIndicatorTableData: [],
storeIndicatorTableColumns: [],
// 事业部指标
buIndicatorTableLoading: false,
buIndicatorTableData: [],
buIndicatorTableColumns: [],
// 事业部汇总
buSummaryTableLoading: false,
buSummaryTableData: [],
buSummaryTableColumns: [],
// 门店下拉选项
storeOptions: []
}
},
mounted() {
this.loadStoreOptions()
this.initData()
window.addEventListener('resize', this.handleResize)
},
beforeDestroy() {
window.removeEventListener('resize', this.handleResize)
// 销毁所有图表实例
this.destroyAllCharts()
},
methods: {
// 加载门店下拉选项
async loadStoreOptions() {
try {
const res = await getStoreSelector()
if (res.data && res.data.list) {
this.storeOptions = res.data.list
}
} catch (error) {
console.error('加载门店列表失败:', error)
this.storeOptions = []
}
},
initData() {
this.loadCurrentMenuData()
},
handleQueryChange() {
this.loadCurrentMenuData()
},
handleReset() {
this.query = {
year: new Date().getFullYear().toString(),
storeName: ''
}
this.loadCurrentMenuData()
},
|
340f9d62
李宇
最新
|
561
562
|
handleTabClick(tab) {
this.activeMenu = tab.name
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
|
this.$nextTick(() => {
this.loadCurrentMenuData()
})
},
loadCurrentMenuData() {
switch (this.activeMenu) {
case 'monthly-trend':
this.loadMonthlyTrend()
break
case 'performance-stat':
this.loadPerformanceStat()
break
case 'consume-stat':
this.loadConsumeStat()
break
case 'headcount-stat':
this.loadHeadCountStat()
break
case 'persontime-stat':
this.loadPersonTimeStat()
break
case 'project-stat':
this.loadProjectCountStat()
break
case 'store-indicators':
this.loadStoreIndicators()
break
case 'bu-indicators':
this.loadBuIndicators()
break
case 'bu-summary':
this.loadBuSummary()
break
}
},
// 月度趋势分析
async loadMonthlyTrend() {
const fields = [
{ field: 'totalperformance', chartId: 'perfTrend', name: '业绩' },
{ field: 'totalconsume', chartId: 'consumeTrend', name: '消耗' },
{ field: 'headcount', chartId: 'headCountTrend', name: '客头数' },
{ field: 'persontime', chartId: 'personTimeTrend', name: '客次数' },
{ field: 'projectcount', chartId: 'projectCountTrend', name: '项目数' }
]
// 加载每个图表的数据 - 确保每个图表都使用正确的 type 参数
for (const item of fields) {
try {
// 明确传递 type 参数,确保后端能正确接收
const params = {
year: this.query.year || new Date().getFullYear().toString(),
storeName: this.query.storeName || '',
type: item.field // type 作为单独的查询参数传递
}
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
617
|
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
618
619
620
621
622
623
624
625
626
627
628
629
|
const res = await getMonthlyTrend(params)
if (res && res.data) {
// 立即渲染,避免数据被覆盖
this.renderTrendChart(item.chartId, res.data, item.name)
}
} catch (error) {
console.error(`加载${item.name}趋势失败:`, error)
}
}
// 加载列表数据(使用当前选中的趋势类型对应的数据)
try {
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
630
631
632
633
|
const res = await getMonthlyTrend({
year: this.query.year,
storeName: this.query.storeName,
type: this.trendField || 'totalperformance'
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
|
})
if (res && res.data && res.data.rows) {
this.trendTableData = res.data.rows
this.buildTrendTableColumns(res.data)
}
} catch (error) {
console.error('加载趋势列表失败:', error)
}
},
// 全年门店业绩表
async loadPerformanceStat() {
this.performanceTableLoading = true
try {
const res = await getTotalPerformanceStat(this.query)
if (res.data) {
this.renderMonthlyStatChart('performanceChart', res.data, '业绩')
this.performanceTableData = res.data.rows || []
this.buildMonthlyStatTableColumns(res.data, '业绩')
}
} catch (error) {
console.error('加载业绩统计失败:', error)
} finally {
this.performanceTableLoading = false
}
},
// 全年门店消耗表
async loadConsumeStat() {
this.consumeTableLoading = true
try {
const res = await getTotalConsumeStat(this.query)
if (res.data) {
this.renderMonthlyStatChart('consumeChart', res.data, '消耗')
this.consumeTableData = res.data.rows || []
this.buildMonthlyStatTableColumns(res.data, '消耗')
}
} catch (error) {
console.error('加载消耗统计失败:', error)
} finally {
this.consumeTableLoading = false
}
},
// 年度门店人头表
async loadHeadCountStat() {
this.headCountTableLoading = true
try {
const res = await getHeadCountStat(this.query)
if (res.data) {
this.renderMonthlyStatChart('headCountChart', res.data, '人头数')
this.headCountTableData = res.data.rows || []
this.buildMonthlyStatTableColumns(res.data, '人头数')
}
} catch (error) {
console.error('加载人头统计失败:', error)
} finally {
this.headCountTableLoading = false
}
},
// 年度门店人次表
async loadPersonTimeStat() {
this.personTimeTableLoading = true
try {
const res = await getPersonTimeStat(this.query)
if (res.data) {
this.renderMonthlyStatChart('personTimeChart', res.data, '人次')
this.personTimeTableData = res.data.rows || []
this.buildMonthlyStatTableColumns(res.data, '人次')
}
} catch (error) {
console.error('加载人次统计失败:', error)
} finally {
this.personTimeTableLoading = false
}
},
// 年度门店项目数表
async loadProjectCountStat() {
this.projectCountTableLoading = true
try {
const res = await getProjectCountStat(this.query)
if (res.data) {
this.renderMonthlyStatChart('projectCountChart', res.data, '项目数')
this.projectCountTableData = res.data.rows || []
this.buildMonthlyStatTableColumns(res.data, '项目数')
}
} catch (error) {
console.error('加载项目统计失败:', error)
} finally {
this.projectCountTableLoading = false
}
},
// 门店五项指标统计
async loadStoreIndicators() {
this.storeIndicatorTableLoading = true
try {
const res = await getStoreIndicatorDetail({
...this.query,
type: this.indicatorField
})
if (res.data && res.data.rows) {
this.renderStoreIndicatorChart(res.data)
this.storeIndicatorTableData = res.data.rows
this.buildStoreIndicatorTableColumns()
}
} catch (error) {
console.error('加载门店指标失败:', error)
} finally {
this.storeIndicatorTableLoading = false
}
},
// 事业部五项指标统计
async loadBuIndicators() {
this.buIndicatorTableLoading = true
try {
const res = await getBusinessUnitIndicatorsStat({
...this.query,
type: this.buIndicatorField
})
if (res.data && res.data.rows) {
this.renderBuIndicatorCharts(res.data)
this.buIndicatorTableData = res.data.rows
this.buildBuIndicatorTableColumns()
}
} catch (error) {
console.error('加载事业部指标失败:', error)
} finally {
this.buIndicatorTableLoading = false
}
},
// 事业部内部汇总
async loadBuSummary() {
this.buSummaryTableLoading = true
try {
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
765
|
const res = await getBusinessUnitSummaryStat(this.query)
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
766
767
768
769
770
771
772
773
774
775
|
if (res.data && res.data.list) {
this.buSummaryTableData = res.data.list
this.buildBuSummaryTableColumns()
}
} catch (error) {
console.error('加载事业部汇总失败:', error)
} finally {
this.buSummaryTableLoading = false
}
},
|
340f9d62
李宇
最新
|
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
|
// 获取图表颜色配置
getChartColors(name) {
const colorMap = {
'业绩': {
current: '#409EFF', // 蓝色
currentArea: 'rgba(64, 158, 255, 0.15)',
last: '#909399' // 灰色
},
'消耗': {
current: '#67C23A', // 绿色
currentArea: 'rgba(103, 194, 58, 0.15)',
last: '#909399'
},
'客头数': {
current: '#E6A23C', // 橙色
currentArea: 'rgba(230, 162, 60, 0.15)',
last: '#909399'
},
'客次数': {
current: '#F56C6C', // 红色
currentArea: 'rgba(245, 108, 108, 0.15)',
last: '#909399'
},
'项目数': {
current: '#9C27B0', // 紫色
currentArea: 'rgba(156, 39, 176, 0.15)',
last: '#909399'
}
}
return colorMap[name] || {
current: '#409EFF',
currentArea: 'rgba(64, 158, 255, 0.15)',
last: '#909399'
}
},
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
811
812
813
814
815
816
817
818
819
820
821
|
// 渲染趋势图
renderTrendChart(chartId, data, name) {
this.$nextTick(() => {
const chartDom = document.getElementById(chartId)
if (!chartDom) return
// 先销毁旧的图表实例,确保使用新数据
const oldChart = echarts.getInstanceByDom(chartDom)
if (oldChart) {
oldChart.dispose()
}
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
822
|
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
823
|
const chart = echarts.init(chartDom)
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
824
825
|
const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
826
827
|
// 确保使用传入的 data,而不是共享的数据
const rows = data && data.rows ? data.rows : []
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
828
|
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
829
830
831
832
833
834
835
836
837
838
839
840
|
const currentYearValues = months.map((m) => {
return rows.reduce((sum, row) => {
const value = row['month' + m] || 0
return sum + (typeof value === 'number' ? value : 0)
}, 0)
})
const lastYearValues = months.map((m) => {
return rows.reduce((sum, row) => {
const value = row['lastMonth' + m] || 0
return sum + (typeof value === 'number' ? value : 0)
}, 0)
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
841
|
})
|
340f9d62
李宇
最新
|
842
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
843
844
845
846
847
848
|
// 获取颜色配置
const colors = this.getChartColors(name)
const option = {
tooltip: {
trigger: 'axis',
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
849
|
formatter: function (params) {
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
850
|
let res = params[0].name + '<br/>'
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
851
|
params.forEach((item) => {
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
852
853
854
855
856
|
res += item.marker + item.seriesName + ': ' + item.value.toLocaleString() + '<br/>'
})
return res
}
},
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
|
legend: {
data: ['本年走势', '上年走势'],
top: 10
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
top: '15%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: months.map((m) => m + '月')
},
yAxis: {
type: 'value'
},
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
876
|
series: [
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
877
878
879
880
881
|
{
name: '本年走势',
type: 'line',
smooth: true,
data: currentYearValues,
|
340f9d62
李宇
最新
|
882
883
884
|
itemStyle: { color: colors.current },
lineStyle: { color: colors.current, width: 2 },
areaStyle: { color: colors.currentArea }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
885
886
887
888
889
890
|
},
{
name: '上年走势',
type: 'line',
smooth: true,
data: lastYearValues,
|
340f9d62
李宇
最新
|
891
892
|
itemStyle: { color: colors.last },
lineStyle: { type: 'dashed', color: colors.last, width: 2 }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
893
|
}
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
894
895
896
|
]
}
chart.setOption(option)
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
|
})
},
// 渲染月度统计图表
renderMonthlyStatChart(chartId, data, name) {
this.$nextTick(() => {
const chartDom = document.getElementById(chartId)
if (!chartDom) return
const chart = echarts.getInstanceByDom(chartDom) || echarts.init(chartDom)
const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
const currentYearValues = months.map((m) => {
return (data.rows || []).reduce((sum, row) => sum + (row['month' + m] || 0), 0)
})
const lastYearValues = months.map((m) => {
return (data.rows || []).reduce((sum, row) => sum + (row['lastMonth' + m] || 0), 0)
})
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
916
917
|
// 获取颜色配置
const colors = this.getChartColors(name)
|
340f9d62
李宇
最新
|
918
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
919
|
const option = {
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
|
tooltip: {
trigger: 'axis',
formatter: function (params) {
let res = params[0].name + '<br/>'
params.forEach((item) => {
res += item.marker + item.seriesName + ': ' + item.value.toLocaleString() + '<br/>'
})
return res
}
},
legend: {
data: ['本年走势', '上年走势'],
top: 10
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
top: '15%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: months.map((m) => m + '月')
},
yAxis: {
type: 'value'
},
series: [
{
name: '本年走势',
type: 'line',
smooth: true,
data: currentYearValues,
|
340f9d62
李宇
最新
|
955
956
957
|
itemStyle: { color: colors.current },
lineStyle: { color: colors.current, width: 2 },
areaStyle: { color: colors.currentArea }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
958
959
960
961
962
963
|
},
{
name: '上年走势',
type: 'line',
smooth: true,
data: lastYearValues,
|
340f9d62
李宇
最新
|
964
965
|
itemStyle: { color: colors.last },
lineStyle: { type: 'dashed', color: colors.last, width: 2 }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
966
967
968
969
970
971
|
}
]
}
chart.setOption(option)
})
},
|
340f9d62
李宇
最新
|
972
973
974
975
976
977
978
979
980
981
982
|
// 根据指标字段获取颜色名称
getIndicatorColorName(field) {
const fieldMap = {
'totalperformance': '业绩',
'totalconsume': '消耗',
'headcount': '客头数',
'persontime': '客次数',
'projectcount': '项目数'
}
return fieldMap[field] || '业绩'
},
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
983
984
985
|
// 渲染门店指标图表
renderStoreIndicatorChart(data) {
this.$nextTick(() => {
|
340f9d62
李宇
最新
|
986
987
988
989
|
// 根据当前选择的指标类型获取颜色
const colorName = this.getIndicatorColorName(this.indicatorField)
const colors = this.getChartColors(colorName)
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
|
// 柱状图
const barChartDom = document.getElementById('storeIndicatorChart')
if (barChartDom) {
const barChart = echarts.getInstanceByDom(barChartDom) || echarts.init(barChartDom)
const sortedResult = [...(data.rows || [])]
.sort((a, b) => b.currentYearValue - a.currentYearValue)
const barOption = {
tooltip: {
trigger: 'axis',
formatter: function (params) {
return params[0].name + '<br/>' + params[0].seriesName + ': ' + params[0].value.toLocaleString()
}
},
grid: {
left: '3%',
right: '4%',
bottom: '15%',
top: '10%',
containLabel: true
},
xAxis: {
type: 'category',
data: sortedResult.map((o) => o.storeName),
axisLabel: {
interval: 0,
rotate: 30
}
},
yAxis: {
type: 'value'
},
series: [
{
|
340f9d62
李宇
最新
|
1024
1025
|
name: '本年数值',
type: 'bar',
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1026
|
data: sortedResult.map((o) => o.currentYearValue),
|
340f9d62
李宇
最新
|
1027
1028
1029
|
itemStyle: {
color: colors.current,
borderRadius: [4, 4, 0, 0]
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
|
}
}
]
}
barChart.setOption(barOption)
}
// 饼图
const pieChartDom = document.getElementById('storePieChart')
if (pieChartDom) {
const pieChart = echarts.getInstanceByDom(pieChartDom) || echarts.init(pieChartDom)
const allStores = [...(data.rows || [])]
.sort((a, b) => b.currentYearValue - a.currentYearValue)
|
340f9d62
李宇
最新
|
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
|
// 柔和但清晰的颜色配置(提高饱和度,保持柔和感)
const lightColors = [
'#6BB6FF', // 明亮蓝色
'#81C784', // 明亮绿色
'#FFB74D', // 明亮橙色
'#F48FB1', // 明亮粉色
'#BA68C8', // 明亮紫色
'#4DD0E1', // 明亮青色
'#FF8A65', // 明亮橙红色
'#7986CB', // 明亮蓝紫色
'#AED581', // 明亮黄绿色
'#FFD54F', // 明亮黄色
'#A1887F', // 明亮棕色
'#90A4AE' // 明亮灰蓝色
]
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
|
const pieOption = {
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
legend: {
show: false // 隐藏图例
},
series: [
{
name: '门店占比',
type: 'pie',
radius: ['40%', '70%'],
center: ['60%', '50%'],
avoidLabelOverlap: false,
|
340f9d62
李宇
最新
|
1075
1076
|
color: lightColors,
data: allStores.map((o, index) => ({
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1077
|
name: o.storeName,
|
340f9d62
李宇
最新
|
1078
1079
1080
1081
|
value: o.currentYearValue,
itemStyle: {
color: lightColors[index % lightColors.length]
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1082
1083
1084
1085
1086
|
})),
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
|
340f9d62
李宇
最新
|
1087
|
shadowColor: 'rgba(0, 0, 0, 0.3)'
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
|
}
}
}
]
}
pieChart.setOption(pieOption)
}
})
},
// 渲染事业部指标图表
renderBuIndicatorCharts(data) {
this.$nextTick(() => {
|
340f9d62
李宇
最新
|
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
|
// 根据当前选择的指标类型获取颜色
const colorName = this.getIndicatorColorName(this.buIndicatorField)
const colors = this.getChartColors(colorName)
// 柔和但清晰的颜色配置(与门店占比分析一致)
const lightColors = [
'#6BB6FF', // 明亮蓝色
'#81C784', // 明亮绿色
'#FFB74D', // 明亮橙色
'#F48FB1', // 明亮粉色
'#BA68C8', // 明亮紫色
'#4DD0E1', // 明亮青色
'#FF8A65', // 明亮橙红色
'#7986CB', // 明亮蓝紫色
'#AED581', // 明亮黄绿色
'#FFD54F', // 明亮黄色
'#A1887F', // 明亮棕色
'#90A4AE' // 明亮灰蓝色
]
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
|
// 饼图
const pieChartDom = document.getElementById('buPieChart')
if (pieChartDom) {
const pieChart = echarts.getInstanceByDom(pieChartDom) || echarts.init(pieChartDom)
const pieOption = {
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
legend: {
orient: 'vertical',
left: 'left',
top: 'middle',
data: (data.rows || []).map((o) => o.businessUnitName)
},
series: [
{
name: '事业部占比',
|
340f9d62
李宇
最新
|
1138
1139
|
type: 'pie',
radius: '55%',
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1140
|
center: ['60%', '50%'],
|
340f9d62
李宇
最新
|
1141
1142
|
color: lightColors,
data: (data.rows || []).map((o, index) => ({
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1143
|
name: o.businessUnitName,
|
340f9d62
李宇
最新
|
1144
1145
1146
1147
|
value: o.currentYearValue,
itemStyle: {
color: lightColors[index % lightColors.length]
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1148
|
})),
|
340f9d62
李宇
最新
|
1149
|
emphasis: {
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1150
1151
1152
|
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
|
340f9d62
李宇
最新
|
1153
|
shadowColor: 'rgba(0, 0, 0, 0.3)'
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
|
}
}
}
]
}
pieChart.setOption(pieOption)
}
// 增长率图
const growthChartDom = document.getElementById('buGrowthChart')
if (growthChartDom) {
const growthChart = echarts.getInstanceByDom(growthChartDom) || echarts.init(growthChartDom)
const growthOption = {
tooltip: {
trigger: 'axis',
formatter: function (params) {
return params[0].name + '<br/>增长率: ' + params[0].value + '%'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
|
340f9d62
李宇
最新
|
1177
|
top: '15%',
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
|
containLabel: true
},
xAxis: {
type: 'category',
data: (data.rows || []).map((o) => o.businessUnitName),
axisLabel: {
rotate: 30,
interval: 0
}
},
yAxis: {
type: 'value',
axisLabel: {
formatter: '{value}%'
}
},
series: [
{
name: '增长率',
type: 'bar',
data: (data.rows || []).map((o) => parseFloat(o.growthRate) || 0),
itemStyle: {
|
340f9d62
李宇
最新
|
1200
1201
|
color: colors.current, // 统一使用当前指标类型的颜色
borderRadius: [4, 4, 0, 0]
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
|
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
}
}
]
}
growthChart.setOption(growthOption)
}
})
},
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
|
// 数字排序方法(返回一个排序函数)
getNumberSortMethod(prop) {
return (a, b) => {
const valA = parseFloat(a[prop]) || 0
const valB = parseFloat(b[prop]) || 0
return valA - valB
}
},
// 增长率排序方法(处理百分比,返回一个排序函数)
getGrowthRateSortMethod(prop) {
return (a, b) => {
const valA = parseFloat(a[prop]) || 0
const valB = parseFloat(b[prop]) || 0
return valA - valB
}
},
// 增长率排序方法(处理百分比字符串,返回一个排序函数)
getGrowthRateStringSortMethod(prop) {
return (a, b) => {
const rateA = a[prop] || '0%'
const rateB = b[prop] || '0%'
const valA = parseFloat(rateA.toString().replace('%', '')) || 0
const valB = parseFloat(rateB.toString().replace('%', '')) || 0
return valA - valB
}
},
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1242
1243
1244
|
// 构建趋势表格列
buildTrendTableColumns(data) {
const columns = [
|
c6224cb7
李宇
最新
|
1245
1246
|
{ label: '事业部', prop: 'businessUnitName', width: 120, align: 'left', sortable: true, fixed: 'left' },
{ label: '门店', prop: 'storeName', width: 150, align: 'left', sortable: true, fixed: 'left' }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1247
1248
1249
1250
1251
1252
1253
1254
|
]
for (let i = 1; i <= 12; i++) {
columns.push({
label: `${i}月`,
prop: `month${i}`,
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1255
1256
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod(`month${i}`),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
|
formatter: (row) => {
return row[`month${i}`] ? Number(row[`month${i}`]).toLocaleString() : '0'
}
})
}
columns.push(
{
label: '本年合计',
prop: 'totalCurrentYear',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1269
1270
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('totalCurrentYear'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1271
1272
1273
1274
1275
1276
1277
1278
1279
|
formatter: (row) => {
return row.totalCurrentYear ? Number(row.totalCurrentYear).toLocaleString() : '0'
}
},
{
label: '上年合计',
prop: 'totalLastYear',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1280
1281
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('totalLastYear'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1282
1283
1284
1285
1286
1287
1288
1289
1290
|
formatter: (row) => {
return row.totalLastYear ? Number(row.totalLastYear).toLocaleString() : '0'
}
},
{
label: '增长率',
prop: 'growthRate',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1291
1292
|
sortable: 'custom',
sortMethod: this.getGrowthRateSortMethod('growthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
|
formatter: (row) => {
const rate = parseFloat(row.growthRate) || 0
const color = rate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate.toFixed(2)}%</span>`
}
}
)
this.trendTableColumns = columns
},
// 构建月度统计表格列
buildMonthlyStatTableColumns(data, name) {
const columns = [
|
c6224cb7
李宇
最新
|
1306
1307
|
{ label: '事业部', prop: 'businessUnitName', width: 120, align: 'left', sortable: true, fixed: 'left' },
{ label: '门店', prop: 'storeName', width: 150, align: 'left', sortable: true, fixed: 'left' }
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1308
1309
1310
1311
1312
1313
1314
1315
|
]
for (let i = 1; i <= 12; i++) {
columns.push({
label: `${i}月`,
prop: `month${i}`,
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1316
1317
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod(`month${i}`),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
|
formatter: (row) => {
const value = row[`month${i}`] || 0
if (name === '业绩' || name === '消耗') {
return `¥${Number(value).toLocaleString()}`
}
return Number(value).toLocaleString()
}
})
}
columns.push(
{
label: '本年合计',
prop: 'totalCurrentYear',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1334
1335
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('totalCurrentYear'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
|
formatter: (row) => {
const value = row.totalCurrentYear || 0
if (name === '业绩' || name === '消耗') {
return `¥${Number(value).toLocaleString()}`
}
return Number(value).toLocaleString()
}
},
{
label: '上年合计',
prop: 'totalLastYear',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1349
1350
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('totalLastYear'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
|
formatter: (row) => {
const value = row.totalLastYear || 0
if (name === '业绩' || name === '消耗') {
return `¥${Number(value).toLocaleString()}`
}
return Number(value).toLocaleString()
}
},
{
label: '增长率',
prop: 'growthRate',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1364
1365
|
sortable: 'custom',
sortMethod: this.getGrowthRateSortMethod('growthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
|
formatter: (row) => {
const rate = parseFloat(row.growthRate) || 0
const color = rate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate.toFixed(2)}%</span>`
}
}
)
switch (name) {
case '业绩':
this.performanceTableColumns = columns
break
case '消耗':
this.consumeTableColumns = columns
break
case '人头数':
this.headCountTableColumns = columns
break
case '人次':
this.personTimeTableColumns = columns
break
case '项目数':
this.projectCountTableColumns = columns
break
}
},
// 构建门店指标表格列
buildStoreIndicatorTableColumns() {
this.storeIndicatorTableColumns = [
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1395
1396
|
{ label: '事业部', prop: 'businessUnitName', width: 120, align: 'left', sortable: true },
{ label: '门店', prop: 'storeName', align: 'left', sortable: true },
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1397
1398
1399
1400
1401
|
{
label: '本年数值',
prop: 'currentYearValue',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1402
1403
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentYearValue'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1404
1405
1406
1407
1408
1409
1410
1411
1412
|
formatter: (row) => {
return Number(row.currentYearValue || 0).toLocaleString()
}
},
{
label: '上年数值',
prop: 'lastYearValue',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1413
1414
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastYearValue'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1415
1416
1417
1418
1419
1420
1421
1422
1423
|
formatter: (row) => {
return Number(row.lastYearValue || 0).toLocaleString()
}
},
{
label: '增长率',
prop: 'growthRate',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1424
1425
|
sortable: 'custom',
sortMethod: this.getGrowthRateSortMethod('growthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
|
formatter: (row) => {
const rate = parseFloat(row.growthRate) || 0
const color = rate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate.toFixed(2)}%</span>`
}
}
]
},
// 构建事业部指标表格列
buildBuIndicatorTableColumns() {
this.buIndicatorTableColumns = [
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1437
|
{ label: '事业部', prop: 'businessUnitName', width: 200, align: 'left', sortable: true },
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1438
1439
1440
1441
1442
|
{
label: '本年数值',
prop: 'currentYearValue',
width: 150,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1443
1444
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentYearValue'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1445
1446
1447
1448
1449
1450
1451
1452
1453
|
formatter: (row) => {
return Number(row.currentYearValue || 0).toLocaleString()
}
},
{
label: '上年数值',
prop: 'lastYearValue',
width: 150,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1454
1455
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastYearValue'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1456
1457
1458
1459
1460
1461
1462
1463
1464
|
formatter: (row) => {
return Number(row.lastYearValue || 0).toLocaleString()
}
},
{
label: '增长率',
prop: 'growthRate',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1465
1466
|
sortable: 'custom',
sortMethod: this.getGrowthRateSortMethod('growthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
|
formatter: (row) => {
const rate = parseFloat(row.growthRate) || 0
const color = rate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate.toFixed(2)}%</span>`
}
}
]
},
// 构建事业部汇总表格列
buildBuSummaryTableColumns() {
this.buSummaryTableColumns = [
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1478
1479
|
{ label: '事业部', prop: 'businessUnitName', width: 120, align: 'left', sortable: true },
{ label: '门店', prop: 'storeName', align: 'left', sortable: true },
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1480
1481
1482
1483
1484
|
{
label: '本年业绩',
prop: 'currentPerformance',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1485
1486
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentPerformance'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1487
1488
1489
1490
1491
1492
1493
1494
1495
|
formatter: (row) => {
return `¥${Number(row.currentPerformance || 0).toLocaleString()}`
}
},
{
label: '上年业绩',
prop: 'lastPerformance',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1496
1497
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastPerformance'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1498
1499
1500
1501
1502
1503
1504
1505
1506
|
formatter: (row) => {
return `¥${Number(row.lastPerformance || 0).toLocaleString()}`
}
},
{
label: '业绩增长率',
prop: 'performanceGrowthRate',
width: 110,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1507
1508
|
sortable: 'custom',
sortMethod: this.getGrowthRateStringSortMethod('performanceGrowthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
|
formatter: (row) => {
const rate = row.performanceGrowthRate || '0%'
const numRate = parseFloat(rate) || 0
const color = numRate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate}</span>`
}
},
{
label: '本年消耗',
prop: 'currentConsume',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1521
1522
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentConsume'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1523
1524
1525
1526
1527
1528
1529
1530
1531
|
formatter: (row) => {
return `¥${Number(row.currentConsume || 0).toLocaleString()}`
}
},
{
label: '上年消耗',
prop: 'lastConsume',
width: 120,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1532
1533
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastConsume'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1534
1535
1536
1537
1538
1539
1540
1541
1542
|
formatter: (row) => {
return `¥${Number(row.lastConsume || 0).toLocaleString()}`
}
},
{
label: '消耗增长率',
prop: 'consumeGrowthRate',
width: 110,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1543
1544
|
sortable: 'custom',
sortMethod: this.getGrowthRateStringSortMethod('consumeGrowthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
|
formatter: (row) => {
const rate = row.consumeGrowthRate || '0%'
const numRate = parseFloat(rate) || 0
const color = numRate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate}</span>`
}
},
{
label: '本年客头',
prop: 'currentHeadCount',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1557
1558
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentHeadCount'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1559
1560
1561
1562
1563
1564
1565
1566
1567
|
formatter: (row) => {
return Number(row.currentHeadCount || 0).toLocaleString()
}
},
{
label: '上年客头',
prop: 'lastHeadCount',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1568
1569
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastHeadCount'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1570
1571
1572
1573
1574
1575
1576
1577
1578
|
formatter: (row) => {
return Number(row.lastHeadCount || 0).toLocaleString()
}
},
{
label: '客头增长率',
prop: 'headCountGrowthRate',
width: 110,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1579
1580
|
sortable: 'custom',
sortMethod: this.getGrowthRateStringSortMethod('headCountGrowthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
|
formatter: (row) => {
const rate = row.headCountGrowthRate || '0%'
const numRate = parseFloat(rate) || 0
const color = numRate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate}</span>`
}
},
{
label: '本年客次',
prop: 'currentPersonTime',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1593
1594
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentPersonTime'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1595
1596
1597
1598
1599
1600
1601
1602
1603
|
formatter: (row) => {
return Number(row.currentPersonTime || 0).toLocaleString()
}
},
{
label: '上年客次',
prop: 'lastPersonTime',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1604
1605
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastPersonTime'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1606
1607
1608
1609
1610
1611
1612
1613
1614
|
formatter: (row) => {
return Number(row.lastPersonTime || 0).toLocaleString()
}
},
{
label: '客次增长率',
prop: 'personTimeGrowthRate',
width: 110,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1615
1616
|
sortable: 'custom',
sortMethod: this.getGrowthRateStringSortMethod('personTimeGrowthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
|
formatter: (row) => {
const rate = row.personTimeGrowthRate || '0%'
const numRate = parseFloat(rate) || 0
const color = numRate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate}</span>`
}
},
{
label: '本年项目',
prop: 'currentProjectCount',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1629
1630
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('currentProjectCount'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1631
1632
1633
1634
1635
1636
1637
1638
1639
|
formatter: (row) => {
return Number(row.currentProjectCount || 0).toLocaleString()
}
},
{
label: '上年项目',
prop: 'lastProjectCount',
width: 100,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1640
1641
|
sortable: 'custom',
sortMethod: this.getNumberSortMethod('lastProjectCount'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1642
1643
1644
1645
1646
1647
1648
1649
1650
|
formatter: (row) => {
return Number(row.lastProjectCount || 0).toLocaleString()
}
},
{
label: '项目增长率',
prop: 'projectCountGrowthRate',
width: 110,
align: 'right',
|
28ad29c0
“wangming”
feat: 年度经营统计分析列表添...
|
1651
1652
|
sortable: 'custom',
sortMethod: this.getGrowthRateStringSortMethod('projectCountGrowthRate'),
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1653
1654
1655
1656
1657
1658
1659
1660
1661
|
formatter: (row) => {
const rate = row.projectCountGrowthRate || '0%'
const numRate = parseFloat(rate) || 0
const color = numRate >= 0 ? '#67C23A' : '#F56C6C'
return `<span style="color: ${color}">${rate}</span>`
}
}
]
},
|
c6224cb7
李宇
最新
|
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
|
// 处理表格排序变化
handleTableSortChange(tableType, { column, prop, order }) {
if (!order) {
// 如果没有排序顺序,恢复原始数据(需要重新加载数据)
this.loadCurrentMenuData()
return
}
// 获取对应的数据和列配置
let tableData = []
let tableColumns = []
switch (tableType) {
case 'trend':
tableData = this.trendTableData
tableColumns = this.trendTableColumns
break
case 'performance':
tableData = this.performanceTableData
tableColumns = this.performanceTableColumns
break
case 'consume':
tableData = this.consumeTableData
tableColumns = this.consumeTableColumns
break
case 'headCount':
tableData = this.headCountTableData
tableColumns = this.headCountTableColumns
break
case 'personTime':
tableData = this.personTimeTableData
tableColumns = this.personTimeTableColumns
break
case 'projectCount':
tableData = this.projectCountTableData
tableColumns = this.projectCountTableColumns
break
case 'storeIndicator':
tableData = this.storeIndicatorTableData
tableColumns = this.storeIndicatorTableColumns
break
case 'buIndicator':
tableData = this.buIndicatorTableData
tableColumns = this.buIndicatorTableColumns
break
case 'buSummary':
tableData = this.buSummaryTableData
tableColumns = this.buSummaryTableColumns
break
}
// 找到对应的列配置
const colConfig = tableColumns.find(col => col.prop === prop)
if (!colConfig) return
// 获取排序方法
const sortMethod = colConfig.sortMethod
const isAsc = order === 'ascending'
// 创建数据副本进行排序
const sortedData = [...tableData]
// 执行排序
if (sortMethod) {
// 使用自定义排序方法
sortedData.sort((a, b) => {
const result = sortMethod(a, b)
return isAsc ? result : -result
})
} else {
// 使用默认排序(字符串或数字)
sortedData.sort((a, b) => {
let aVal = a[prop]
let bVal = b[prop]
// 处理空值
if (aVal === null || aVal === undefined) aVal = ''
if (bVal === null || bVal === undefined) bVal = ''
// 尝试转换为数字
const aNum = Number(aVal)
const bNum = Number(bVal)
if (!isNaN(aNum) && !isNaN(bNum)) {
// 数字排序
return isAsc ? aNum - bNum : bNum - aNum
} else {
// 字符串排序
const aStr = String(aVal)
const bStr = String(bVal)
if (isAsc) {
return aStr.localeCompare(bStr)
} else {
return bStr.localeCompare(aStr)
}
}
})
}
// 更新对应的数据数组(Vue 响应式更新)
switch (tableType) {
case 'trend':
this.trendTableData = sortedData
break
case 'performance':
this.performanceTableData = sortedData
break
case 'consume':
this.consumeTableData = sortedData
break
case 'headCount':
this.headCountTableData = sortedData
break
case 'personTime':
this.personTimeTableData = sortedData
break
case 'projectCount':
this.projectCountTableData = sortedData
break
case 'storeIndicator':
this.storeIndicatorTableData = sortedData
break
case 'buIndicator':
this.buIndicatorTableData = sortedData
break
case 'buSummary':
this.buSummaryTableData = sortedData
break
}
},
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
|
handleResize() {
const chartIds = [
'perfTrend',
'consumeTrend',
'headCountTrend',
'personTimeTrend',
'projectCountTrend',
'performanceChart',
'consumeChart',
'headCountChart',
'personTimeChart',
'projectCountChart',
'storeIndicatorChart',
'storePieChart',
'buPieChart',
'buGrowthChart'
]
chartIds.forEach((id) => {
const chart = echarts.getInstanceByDom(document.getElementById(id))
if (chart) chart.resize()
})
},
destroyAllCharts() {
const chartIds = [
'perfTrend',
'consumeTrend',
'headCountTrend',
'personTimeTrend',
'projectCountTrend',
'performanceChart',
'consumeChart',
'headCountChart',
'personTimeChart',
'projectCountChart',
'storeIndicatorChart',
'storePieChart',
'buPieChart',
'buGrowthChart'
]
chartIds.forEach((id) => {
const chart = echarts.getInstanceByDom(document.getElementById(id))
if (chart) chart.dispose()
})
}
}
}
</script>
<style lang="scss" scoped>
.annual-summary-dashboard {
|
340f9d62
李宇
最新
|
1842
1843
1844
1845
|
padding: 16px;
background-color: #f5f7fa;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1846
|
|
340f9d62
李宇
最新
|
1847
1848
1849
1850
1851
|
.cockpit-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1852
|
background: #fff;
|
340f9d62
李宇
最新
|
1853
|
padding: 12px 20px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1854
|
border-radius: 8px;
|
340f9d62
李宇
最新
|
1855
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1856
|
|
340f9d62
李宇
最新
|
1857
1858
1859
1860
1861
1862
|
.page-title {
margin: 0;
font-size: 20px;
color: #303133;
font-weight: 600;
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1863
|
|
340f9d62
李宇
最新
|
1864
1865
1866
1867
|
.search-form-compact {
::v-deep .el-form-item {
margin-bottom: 0;
margin-right: 15px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1868
1869
1870
1871
|
}
}
}
|
340f9d62
李宇
最新
|
1872
1873
1874
1875
1876
1877
|
.dashboard-tabs {
background: #fff;
padding: 0 20px;
border-radius: 8px;
margin-bottom: 16px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1878
|
|
340f9d62
李宇
最新
|
1879
1880
1881
|
::v-deep .el-tabs__header {
margin: 0;
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1882
|
|
340f9d62
李宇
最新
|
1883
1884
1885
1886
1887
|
::v-deep .el-tabs__item {
height: 48px;
line-height: 48px;
padding: 0 20px;
font-size: 14px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1888
|
|
340f9d62
李宇
最新
|
1889
1890
|
i {
margin-right: 6px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1891
1892
|
}
|
340f9d62
李宇
最新
|
1893
1894
1895
1896
1897
|
&.is-active {
color: #409EFF;
font-weight: 600;
}
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1898
|
|
340f9d62
李宇
最新
|
1899
1900
1901
1902
|
::v-deep .el-tabs__active-bar {
background-color: #409EFF;
}
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1903
|
|
340f9d62
李宇
最新
|
1904
1905
1906
1907
1908
1909
1910
|
.dashboard-content {
.content-panel {
.panel-body {
.indicator-controls {
padding: 16px 0;
border-bottom: 1px solid #f0f2f5;
margin-bottom: 16px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1911
|
|
340f9d62
李宇
最新
|
1912
1913
|
::v-deep .el-radio-button__inner {
padding: 8px 16px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1914
1915
|
i {
|
340f9d62
李宇
最新
|
1916
|
margin-right: 4px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1917
1918
|
}
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1919
|
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1920
|
|
340f9d62
李宇
最新
|
1921
1922
|
.chart-card {
margin-bottom: 16px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1923
|
|
340f9d62
李宇
最新
|
1924
1925
1926
|
&::v-deep .el-card__header {
padding: 12px 20px;
border-bottom: 1px solid #f0f2f5;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1927
|
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1928
|
|
340f9d62
李宇
最新
|
1929
1930
1931
1932
|
.card-title {
font-size: 15px;
font-weight: 600;
color: #303133;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1933
|
|
340f9d62
李宇
最新
|
1934
1935
1936
|
i {
color: #409EFF;
margin-right: 8px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1937
1938
1939
|
}
}
|
340f9d62
李宇
最新
|
1940
1941
1942
1943
|
.chart-box {
height: 320px;
width: 100%;
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1944
|
|
340f9d62
李宇
最新
|
1945
1946
1947
1948
1949
|
.chart-box-large {
height: 400px;
width: 100%;
}
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1950
|
|
340f9d62
李宇
最新
|
1951
1952
1953
1954
1955
|
.table-card {
&::v-deep .el-card__header {
padding: 12px 20px;
border-bottom: 1px solid #f0f2f5;
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1956
|
|
340f9d62
李宇
最新
|
1957
1958
1959
1960
|
.card-title {
font-size: 15px;
font-weight: 600;
color: #303133;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1961
|
|
340f9d62
李宇
最新
|
1962
1963
1964
|
i {
color: #409EFF;
margin-right: 8px;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1965
1966
|
}
}
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
|
// 事业部汇总表格特殊样式
&.bu-summary-card {
&::v-deep .el-card__body {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
}
}
// 事业部汇总表格样式
.bu-summary-table {
height: auto !important;
max-height: none !important;
overflow: visible !important;
&::v-deep .el-table__body-wrapper {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
&::v-deep .el-table {
height: auto !important;
max-height: none !important;
}
|
340f9d62
李宇
最新
|
1994
|
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
1995
|
|
340f9d62
李宇
最新
|
1996
1997
1998
1999
2000
|
.table-section {
::v-deep .el-table {
.el-table__header th {
background-color: #f5f7fa;
color: #606266;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
2001
|
font-weight: 600;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
2002
|
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
2003
|
|
97c1bdaf
“wangming”
feat: 优化库存扣减逻辑和报销...
|
2004
|
.el-table__body tr:hover>td {
|
340f9d62
李宇
最新
|
2005
|
background-color: #f5f7fa;
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
2006
2007
2008
2009
2010
2011
|
}
}
}
}
}
}
|
340f9d62
李宇
最新
|
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
|
.dashboard-card {
border: none;
border-radius: 8px;
margin-bottom: 16px;
&::v-deep .el-card__body {
padding: 20px;
}
}
|
1fffa876
“wangming”
优化储扣列表接口:增加门店、时间、...
|
2022
2023
|
}
</style>
|