yyb
2 天以前 bf4cd4ee46b87410e82734c22f8d9d1cfe2fd364
src/views/salesManagement/indicatorStats/index.vue
@@ -25,7 +25,7 @@
          </div>
          <div class="stat-content">
            <div class="stat-value">¥{{ indicatorKpis.salesAmount.toLocaleString() }}</div>
            <div class="stat-label">销售额</div>
            <div class="stat-label">合同金额</div>
          </div>
          <div class="stat-bg-decoration"></div>
        </div>
@@ -39,7 +39,7 @@
          </div>
          <div class="stat-content">
            <div class="stat-value">{{ indicatorKpis.shipRate }}</div>
            <div class="stat-label">发货率</div>
            <div class="stat-label">回款率</div>
          </div>
          <div class="stat-bg-decoration"></div>
        </div>
@@ -234,7 +234,7 @@
    if (res && res.data) {
      indicatorKpis.orderCount = res.data.total || 0
      indicatorKpis.salesAmount = res.data.contractAmountTotal || 0
      // 发货率如果接口没有返回,保持原值或设为0
      // 回款率如果接口没有返回,保持原值或设为0
      indicatorKpis.shipRate = res.data.shipRate || 0
    }
  } catch (error) {
@@ -287,7 +287,7 @@
  const option = {
    title: { text: '多维度销售指标趋势', left: 'center' },
    tooltip: { trigger: 'axis' },
    legend: { data: ['订单数', '销售额'], top: 30 },
    legend: { data: ['订单数', '合同金额'], top: 30 },
    grid: { left: '3%', right: '8%', bottom: '3%', containLabel: true },
    xAxis: { 
      type: 'category', 
@@ -317,7 +317,7 @@
        itemStyle: { color: '#409eff' } 
      },
      { 
        name: '销售额',
        name: '合同金额',
        type: 'bar', 
        yAxisIndex: 0,
        data: chartData.salesAmountList || [], 
@@ -335,7 +335,7 @@
  const option = {
    title: { text: '多维度销售指标趋势', left: 'center' },
    tooltip: { trigger: 'axis' },
    legend: { data: ['订单数', '销售额'], top: 30 },
    legend: { data: ['订单数', '合同金额'], top: 30 },
    grid: { left: '3%', right: '8%', bottom: '3%', containLabel: true },
    xAxis: { type: 'category', data: [] },
    yAxis: [
@@ -355,7 +355,7 @@
    ],
    series: [
      { name: '订单数', type: 'line', yAxisIndex: 1, data: [], itemStyle: { color: '#409eff' } },
      { name: '销售额', type: 'bar', yAxisIndex: 0, data: [], itemStyle: { color: '#67c23a' } }
      { name: '合同金额', type: 'bar', yAxisIndex: 0, data: [], itemStyle: { color: '#67c23a' } }
    ]
  }
  indicatorChart.setOption(option)
@@ -406,7 +406,6 @@
<style scoped lang="scss">
.indicator-stats {
  padding: 20px;
  background: #f5f7fa;
  min-height: calc(100vh - 84px);
}