|
|
@@ -4,7 +4,7 @@
|
|
|
<div>
|
|
|
<h1>企业运营看板 · 首页</h1>
|
|
|
<div class="sub">
|
|
|
- 查询范围全看板统一:年度 / 季度(本期 3 个月内)/ 本月 | 下钻明细与导出共用同一口径
|
|
|
+ 查询范围全看板统一:年度 / 本季度 / 本月(默认) | 下钻明细与导出共用同一口径
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="scope">
|
|
|
@@ -55,9 +55,9 @@
|
|
|
<summary-cards :cards="summaryCards" :scope="scope" :scope-range-text="scopeRangeText" />
|
|
|
|
|
|
<div class="foot">
|
|
|
- <b>统一口径:</b>查询范围三档(年度 / 季度 / 本月)为全局筛选,切换后所有区块与指标下钻明细同步刷新;
|
|
|
- <b>口径标注:</b>M01/M03 为财务主口径(不含税,取确认收入 / 入库成本),M02
|
|
|
- 为业务口径(含税,订单台账),本地运营报表为含税开票口径,两套口径并行展示、禁止混用;
|
|
|
+ <b>统一口径:</b>查询范围三档(年度 / 本季度 / 本月(默认))为全局筛选,切换后所有区块与指标下钻明细同步刷新;
|
|
|
+ <b>口径标注:</b>M01 为含税开票口径(按开票日期,红字与退货折让冲减),M03/M04/M05
|
|
|
+ 为财务主口径(不含税),M02 为业务口径(含税,订单台账);两套口径并行展示、禁止混用;
|
|
|
<b>阈值:</b>M11、M13、M17~M20、M25 阈值统一存参数配置表,禁止前端写死;
|
|
|
<b>空值:</b>上期或同期为 0 显示「—」,无数据显示「暂无数据」。
|
|
|
</div>
|
|
|
@@ -72,17 +72,17 @@
|
|
|
import riskAlertCard from './components/riskAlertCard.vue';
|
|
|
import summaryCards from './components/summaryCards.vue';
|
|
|
|
|
|
- const SCOPE_NAME = { YEAR: '年度', QUARTER: '季度(本期 3 个月内)', MONTH: '本月' };
|
|
|
+ const SCOPE_NAME = { YEAR: '年度', QUARTER: '本季度', MONTH: '本月' };
|
|
|
|
|
|
export default {
|
|
|
components: { kpiCards, trendCharts, revenueDonut, riskAlertCard, summaryCards },
|
|
|
data() {
|
|
|
return {
|
|
|
- scope: 'YEAR',
|
|
|
+ scope: 'MONTH',
|
|
|
scopeOptions: [
|
|
|
{ value: 'YEAR', label: '年度' },
|
|
|
- { value: 'QUARTER', label: '季度(本期 3 个月内)' },
|
|
|
- { value: 'MONTH', label: '本月' }
|
|
|
+ { value: 'QUARTER', label: '本季度' },
|
|
|
+ { value: 'MONTH', label: '本月(默认)' }
|
|
|
],
|
|
|
loading: false,
|
|
|
scopeRangeText: '',
|
|
|
@@ -109,11 +109,20 @@
|
|
|
if (!silent) {
|
|
|
this.loading = true;
|
|
|
}
|
|
|
+ const scope = this.scope;
|
|
|
+ const startedAt = Date.now();
|
|
|
+ console.info('[eos-dashboard] 加载看板', { scope, 上次区间: this.scopeRangeText });
|
|
|
try {
|
|
|
- const data = await getDashboardHome(this.scope);
|
|
|
+ const data = await getDashboardHome(scope);
|
|
|
this.applyData(data);
|
|
|
+ console.info('[eos-dashboard] 加载完成', {
|
|
|
+ scope,
|
|
|
+ 区间: this.scopeRangeText,
|
|
|
+ 耗时: Date.now() - startedAt
|
|
|
+ });
|
|
|
} catch (e) {
|
|
|
this.applyData(null);
|
|
|
+ console.error('[eos-dashboard] 加载失败', { scope, error: e });
|
|
|
this.$message.error(`看板数据加载失败:${this.errorText(e)}`);
|
|
|
} finally {
|
|
|
this.loading = false;
|
|
|
@@ -139,6 +148,7 @@
|
|
|
if (this.scope === scope || this.loading) {
|
|
|
return;
|
|
|
}
|
|
|
+ console.info('[eos-dashboard] 切换查询档位', { from: this.scope, to: scope });
|
|
|
this.scope = scope;
|
|
|
this.loadHome();
|
|
|
}
|