yyb
10 小时以前 df4a21d1c2af8d05d13725c9791a4df81c4a0dc8
能耗成本核算
已修改1个文件
6 ■■■■ 文件已修改
src/views/costAccounting/energyCosts/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/costAccounting/energyCosts/index.vue
@@ -568,7 +568,7 @@
        </template>
        <el-table-column type="index" label="序号" width="60" align="center" />
        <el-table-column
          prop="timePeriod"
          prop="meterReadingDate"
          :label="timeColumnLabel"
          align="center"
          sortable="custom"
@@ -774,7 +774,7 @@
  const rows = Array.isArray(tableData.value) ? tableData.value : [];
  const byTime = new Map();
  for (const r of rows) {
    const t = r?.timePeriod ?? "";
    const t = r?.meterReadingDate ?? "";
    if (!t) continue;
    if (!byTime.has(t)) byTime.set(t, { total: 0, production: 0, office: 0 });
    const bucket = byTime.get(t);
@@ -1137,7 +1137,7 @@
    },
    xAxis: {
      type: "category",
      data: data.map((item) => item.timePeriod),
      data: data.map((item) => item.meterReadingDate),
      axisLabel: {
        rotate: statisticsType.value === "day" ? 45 : 0,
        color: "rgba(15, 23, 42, 0.62)",