gongchunyi
7 小时以前 df7b96871d485eb1e0146eabe0e61277be8c7853
fix: 去除金额改成产量
已修改1个文件
6 ■■■■ 文件已修改
src/views/reportAnalysis/productionAnalysis/components/right-bottom.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/productionAnalysis/components/right-bottom.vue
@@ -73,7 +73,7 @@
  formatter(params) {
    let result = params[0].axisValueLabel + '<br/>'
    params.forEach((item) => {
      result += `<div>${item.marker} ${item.seriesName}: ${item.value} 元</div>`
      result += `<div>${item.marker} ${item.seriesName}: ${item.value} 件</div>`
    })
    return result
  },
@@ -83,7 +83,7 @@
  { type: 'category', axisTick: { show: false }, axisLabel: { color: '#B8C8E0' }, data: [] },
])
const yAxis1 = [
  { type: 'value', name: '单位: 元', axisLabel: { color: '#B8C8E0' }, nameTextStyle: { color: '#B8C8E0' }, splitLine: { lineStyle: { color: 'rgba(184, 200, 224, 0.2)' } } },
  { type: 'value', name: '单位: 件', axisLabel: { color: '#B8C8E0' }, nameTextStyle: { color: '#B8C8E0' }, splitLine: { lineStyle: { color: 'rgba(184, 200, 224, 0.2)' } } },
]
const handleDateTypeChange = () => {
@@ -99,7 +99,7 @@
      // 兼容字段:有的接口返回 dateStr,有的返回 date
      xAxis1.value[0].data = items.map((d) => d.dateStr ?? d.date ?? '')
      chartSeries.value[0].data = items.map((d) => parseFloat(d.amount) || 0)
      chartSeries.value[0].data = items.map((d) => parseFloat(d.numberOfCompleted) || 0)
    })
    .catch((err) => {
      console.error('获取生产核算分析失败:', err)