From 00fc3e3b4523dd6266fe98e9b0a7dac64c7e819a Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 02 四月 2026 17:50:39 +0800
Subject: [PATCH] test commit

---
 src/views/index.vue | 2044 ++++++++++++++++++++++++++++++----------------------------
 1 files changed, 1,062 insertions(+), 982 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 4ae5fe4..2535fe1 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -9,14 +9,15 @@
           <div class="welcome-banner">
             <div class="welcome-title">
               <span class="welcome-user">{{ userStore.roleName || '绯荤粺绠$悊鍛�' }}</span>
-              <span> 鎮ㄥソ锛佺鎮ㄥ紑蹇冩瘡涓�澶�</span>
+              <span> 鎮ㄥソ锛侊紒绁濇偍寮�蹇冩瘡涓�澶�</span>
             </div>
             <div class="welcome-time">鐧诲綍浜�: {{ userStore.currentLoginTime }}</div>
           </div>
-
           <!-- 鐢ㄦ埛淇℃伅鍗$墖 -->
           <div class="user-card">
-            <img :src="userStore.avatar" class="avatar" alt="" />
+            <img :src="userStore.avatar"
+                 class="avatar"
+                 alt="" />
             <div class="user-card-main">
               <div class="user-name">{{ userStore.name }}</div>
               <div class="user-role">{{ userStore.roleName }}</div>
@@ -44,7 +45,6 @@
               <div class="data-value">{{ businessInfo.monthSaleHaveMoney }}</div>
             </div>
           </div>
-
         </div>
         <div class="data-card purchase">
           <div class="data-title">閲囪喘鏁版嵁</div>
@@ -76,8 +76,10 @@
       <!-- 鍙筹細寰呭姙浜嬮」 -->
       <div class="todo-panel">
         <div class="section-title">寰呭姙浜嬮」</div>
-        <ul class="todo-list" v-if="todoList.length > 0">
-          <li v-for="item in todoList" :key="item.id">
+        <ul class="todo-list"
+            v-if="todoList.length > 0">
+          <li v-for="item in todoList"
+              :key="item.id">
             <div style="display: flex;flex-direction: column;justify-content: space-between;width: 100%;gap: 20px">
               <div style="display: flex;justify-content: space-between;align-items: center;">
                 <div class="todo-title">寰呭姙缂栧彿锛歿{ item.approveId }}</div>
@@ -88,7 +90,8 @@
             </div>
           </li>
         </ul>
-        <div v-else style="text-align: center">
+        <div v-else
+             style="text-align: center">
           鏆傛棤鏁版嵁
         </div>
       </div>
@@ -98,23 +101,36 @@
         <div class="process-panel__header">
           <div class="section-title">宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏</div>
           <div style="display: flex; gap: 10px; align-items: center;">
-            <el-button type="primary" size="small" plain icon="Filter" @click="openProcessDialog">閫夋嫨宸ュ簭</el-button>
-            <el-button type="info" size="small" plain icon="Refresh" @click="resetProcessFilter">閲嶇疆</el-button>
-            <el-radio-group v-model="processRange" size="small" @change="refreshProcessStats">
+            <el-button type="primary"
+                       size="small"
+                       plain
+                       icon="Filter"
+                       @click="openProcessDialog">閫夋嫨宸ュ簭</el-button>
+            <el-button type="info"
+                       size="small"
+                       plain
+                       icon="Refresh"
+                       @click="resetProcessFilter">閲嶇疆</el-button>
+            <el-radio-group v-model="processRange"
+                            size="small"
+                            @change="refreshProcessStats">
               <el-radio-button :value="1">鏃�</el-radio-button>
               <el-radio-button :value="2">鍛�</el-radio-button>
               <el-radio-button :value="3">鏈�</el-radio-button>
             </el-radio-group>
           </div>
         </div>
-
         <div class="process-panel__body">
           <div class="process-panel__chart">
-            <Echarts :chartStyle="{ width: '100%', height: '100%' }" :grid="processGrid" :series="processSeries"
-              :tooltip="processTooltip" :xAxis="processXAxis" :yAxis="processYAxis" style="height: 100%"
-              @click="handleChartClick" />
+            <Echarts :chartStyle="{ width: '100%', height: '100%' }"
+                     :grid="processGrid"
+                     :series="processSeries"
+                     :tooltip="processTooltip"
+                     :xAxis="processXAxis"
+                     :yAxis="processYAxis"
+                     style="height: 100%"
+                     @click="handleChartClick" />
           </div>
-
           <div class="process-panel__aside">
             <div class="process-legend">
               <div class="process-legend__item">
@@ -127,9 +143,7 @@
                 <span class="dot dot-teal"></span><span>浜у嚭閲�</span>
               </div>
             </div>
-
             <div class="process-card process-card--name">{{ processAside.processName }}</div>
-
             <div class="process-card">
               <div class="process-card__label">绱鎬绘姇鍏�</div>
               <div class="process-card__value">{{ formatAmount(processAside.totalInput) }}
@@ -149,13 +163,18 @@
         </div>
       </div>
     </div>
-
     <!-- 宸ュ簭閫夋嫨寮圭獥 -->
-    <el-dialog v-model="processDialogVisible" title="閫夋嫨宸ュ簭" width="500px" append-to-body>
+    <el-dialog v-model="processDialogVisible"
+               title="閫夋嫨宸ュ簭"
+               width="500px"
+               append-to-body>
       <div class="process-selection-wrapper">
         <el-checkbox-group v-model="tempProcessIds">
           <div class="process-grid">
-            <el-checkbox v-for="item in processOptions" :key="item.id" :label="item.id" border>
+            <el-checkbox v-for="item in processOptions"
+                         :key="item.id"
+                         :label="item.id"
+                         border>
               {{ item.name }}
             </el-checkbox>
           </div>
@@ -164,7 +183,8 @@
       <template #footer>
         <span class="dialog-footer">
           <el-button @click="processDialogVisible = false">鍙栨秷</el-button>
-          <el-button type="primary" @click="handleProcessDialogConfirm">纭</el-button>
+          <el-button type="primary"
+                     @click="handleProcessDialogConfirm">纭</el-button>
         </span>
       </template>
     </el-dialog>
@@ -174,7 +194,9 @@
         <div class="section-title">瀹㈡埛鍚堝悓閲戦鍒嗘瀽</div>
         <div class="contract-summary">
           <div class="contract-info">
-            <img src="../assets/images/khtitle.png" alt="" style="width: 42px" />
+            <img src="../assets/images/khtitle.png"
+                 alt=""
+                 style="width: 42px" />
             <div class="contract-card">
               <div class="contract-name">鎬诲悎鍚岄噾棰�(鍏�)</div>
               <div class="contract-meta">
@@ -184,16 +206,20 @@
             </div>
           </div>
         </div>
-        <div
-          style="display: flex;align-items: center;gap: 20px;justify-content: space-evenly;height: 180px;margin-top: 20px">
+        <div style="display: flex;align-items: center;gap: 20px;justify-content: space-evenly;height: 180px;margin-top: 20px">
           <div>
-            <Echarts ref="chart" :legend="pieLegend" :chartStyle="chartStylePie" :series="materialPieSeries"
-              :tooltip="pieTooltip"></Echarts>
+            <Echarts ref="chart"
+                     :legend="pieLegend"
+                     :chartStyle="chartStylePie"
+                     :series="materialPieSeries"
+                     :tooltip="pieTooltip"></Echarts>
           </div>
           <ul class="contract-list">
-            <li v-for="item in materialPieSeries[0].data" :key="item.name">
+            <li v-for="item in materialPieSeries[0].data"
+                :key="item.name">
               <div style="display: flex;align-items: center;justify-content: space-between;width: 100%">
-                <div class="line" :style="{ color: item.itemStyle.color }">鈼弡{ item.name }}</div>
+                <div class="line"
+                     :style="{ color: item.itemStyle.color }">鈼弡{ item.name }}</div>
                 <div style="width: 70px">{{ item.rate }}%</div>
                 <div>锟{ item.value }}</div>
               </div>
@@ -210,17 +236,26 @@
           <!--						<el-radio-button label="鎸夊搴�" :value="3" />-->
           <!--					</el-radio-group>-->
         </div>
-        <Echarts ref="chart" :color="barColors2" :chartStyle="chartStyle" :grid="grid" :series="barSeries"
-          :tooltip="tooltip" :xAxis="xAxis" :yAxis="yAxis" style="height: 260px"></Echarts>
+        <Echarts ref="chart"
+                 :color="barColors2"
+                 :chartStyle="chartStyle"
+                 :grid="grid"
+                 :series="barSeries"
+                 :tooltip="tooltip"
+                 :xAxis="xAxis"
+                 :yAxis="yAxis"
+                 style="height: 260px"></Echarts>
       </div>
     </div>
-
     <!-- 搴曢儴妯悜涓ゆ爮 -->
     <div class="dashboard-row">
       <div class="main-panel">
         <div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px;">
-          <div class="section-title" style="margin-bottom: 0;">璐ㄩ噺缁熻</div>
-          <el-radio-group v-model="qualityRange" size="small" @change="qualityStatisticsInfo">
+          <div class="section-title"
+               style="margin-bottom: 0;">璐ㄩ噺缁熻</div>
+          <el-radio-group v-model="qualityRange"
+                          size="small"
+                          @change="qualityStatisticsInfo">
             <el-radio-button :value="1">鍛�</el-radio-button>
             <el-radio-button :value="2">鏈�</el-radio-button>
             <el-radio-button :value="3">瀛e害</el-radio-button>
@@ -231,1033 +266,1078 @@
           <div class="quality-card two">杩囩▼妫�楠屾暟閲� <span>{{ qualityStatisticsObject.processNum }}浠�</span></div>
           <div class="quality-card three">鍑哄巶宸叉鏁伴噺 <span>{{ qualityStatisticsObject.factoryNum }}浠�</span></div>
         </div>
-        <Echarts ref="chart" :chartStyle="chartStyle" :grid="grid" :legend="barLegend" :series="barSeries1"
-          :tooltip="tooltip" :xAxis="xAxis1" :yAxis="yAxis1" style="height: 260px"></Echarts>
+        <Echarts ref="chart"
+                 :chartStyle="chartStyle"
+                 :grid="grid"
+                 :legend="barLegend"
+                 :series="barSeries1"
+                 :tooltip="tooltip"
+                 :xAxis="xAxis1"
+                 :yAxis="yAxis1"
+                 style="height: 260px"></Echarts>
       </div>
-
       <div class="main-panel">
         <div class="section-title">鍥炴涓庡紑绁ㄥ垎鏋�</div>
-        <Echarts ref="invoiceChart" :chartStyle="chartStyle" :grid="grid" :legend="lineLegend" :series="lineSeries"
-          :tooltip="tooltipLine" :xAxis="xAxis2" :yAxis="yAxis2" style="height: 270px;" />
+        <Echarts ref="invoiceChart"
+                 :chartStyle="chartStyle"
+                 :grid="grid"
+                 :legend="lineLegend"
+                 :series="lineSeries"
+                 :tooltip="tooltipLine"
+                 :xAxis="xAxis2"
+                 :yAxis="yAxis2"
+                 style="height: 270px;" />
       </div>
     </div>
   </div>
 </template>
 
 <script setup>
-import { ref, onMounted, computed, reactive } from 'vue'
-import Echarts from "@/components/Echarts/echarts.vue";
-import * as echarts from 'echarts';
-import useUserStore from "@/store/modules/user.js";
-import {
-  analysisCustomerContractAmounts, getAmountHalfYear,
-  getBusiness,
-  homeTodos,
-  processDataProductionStatistics,
-  statisticsReceivablePayable,
-  qualityInspectionStatistics
-} from "@/api/viewIndex.js";
-import { list } from '@/api/productionManagement/productionProcess';
+  import { ref, onMounted, computed, reactive } from "vue";
+  import Echarts from "@/components/Echarts/echarts.vue";
+  import * as echarts from "echarts";
+  import useUserStore from "@/store/modules/user.js";
+  import {
+    analysisCustomerContractAmounts,
+    getAmountHalfYear,
+    getBusiness,
+    homeTodos,
+    processDataProductionStatistics,
+    statisticsReceivablePayable,
+    qualityInspectionStatistics,
+  } from "@/api/viewIndex.js";
+  import { list } from "@/api/productionManagement/productionProcess";
 
+  const userStore = useUserStore();
 
-const userStore = useUserStore()
+  const processOptions = ref([]);
+  const selectedProcessIds = ref([]);
+  const tempProcessIds = ref([]);
+  const processDialogVisible = ref(false);
+  const activeProcessIndex = ref(0);
 
-const processOptions = ref([])
-const selectedProcessIds = ref([])
-const tempProcessIds = ref([])
-const processDialogVisible = ref(false)
-const activeProcessIndex = ref(0)
+  const businessInfo = ref({
+    inventoryNum: 0,
+    monthPurchaseHaveMoney: 0,
+    monthPurchaseMoney: 0,
+    monthSaleHaveMoney: 0,
+    monthSaleMoney: 0,
+    todayInventoryNum: 0,
+  });
+  const qualityStatisticsObject = ref({
+    supplierNum: 0,
+    processNum: 0,
+    factoryNum: 0,
+  });
+  const sum = ref(0);
+  const yny = ref(0);
+  const chain = ref(0);
 
-const businessInfo = ref({
-  inventoryNum: 0,
-  monthPurchaseHaveMoney: 0,
-  monthPurchaseMoney: 0,
-  monthSaleHaveMoney: 0,
-  monthSaleMoney: 0,
-  todayInventoryNum: 0,
-})
-const qualityStatisticsObject = ref({
-  supplierNum: 0,
-  processNum: 0,
-  factoryNum: 0,
-})
-const sum = ref(0)
-const yny = ref(0)
-const chain = ref(0)
-
-const pieLegend = reactive({
-  show: false,
-})
-const barSeries = ref([
-  {
-    type: 'bar',
-    data: [],
-    label: {
-      show: true,
-    }
-  },
-])
-
-const barSeries1 = ref([
-  {
-    name: '鍘熸潗鏂欎笉鍚堟牸鏁�',
-    type: 'bar',
-    barGap: 0,
-    emphasis: {
-      focus: 'series'
-    },
-    data: []
-  },
-  {
-    name: '杩囩▼涓嶅悎鏍兼暟',
-    type: 'bar',
-    emphasis: {
-      focus: 'series'
-    },
-    data: []
-  },
-  {
-    name: '鍑哄巶涓嶅悎鏍兼暟',
-    type: 'bar',
-    emphasis: {
-      focus: 'series'
-    },
-    data: []
-  },
-])
-const chartStyle = {
-  width: '100%',
-  height: '100%' // 璁剧疆鍥捐〃瀹瑰櫒鐨勯珮搴�
-}
-const chartStylePie = {
-  width: '140%',
-  height: '140%' // 璁剧疆鍥捐〃瀹瑰櫒鐨勯珮搴�
-}
-const grid = {
-  left: '3%',
-  right: '4%',
-  bottom: '3%',
-  containLabel: true
-}
-const barLegend = {
-  show: true,
-  data: ['鍘熸潗鏂欎笉鍚堟牸鏁�', '杩囩▼涓嶅悎鏍兼暟', '鍑哄巶涓嶅悎鏍兼暟']
-}
-const barLegend1 = {
-  show: true,
-  data: ['棰勪粯璐︽', '搴斾粯璐︽', '棰勬敹璐︽', '搴旀敹璐︽']
-}
-const lineLegend = {
-  show: true,
-  data: ['寮�绁�', '鍥炴']
-}
-const tooltip = {
-  trigger: 'axis',
-  axisPointer: {
-    type: 'shadow'
-  }
-}
-const xAxis = [{
-  type: 'value',
-}]
-const xAxis1 = ref([{
-  type: 'category',
-  axisTick: { show: false },
-  data: []
-}])
-const yAxis = [{
-  type: 'category',
-  data: ['搴斾粯璐︽', '搴旀敹璐︽',]
-}]
-const yAxis1 = [{
-  type: 'value'
-}]
-const pieTooltip = reactive({
-  trigger: 'item',
-  formatter: function (params) {
-    // 鍔ㄦ�佺敓鎴愭彁绀轰俊鎭紝鍩轰簬鏁版嵁椤圭殑 name 灞炴��
-    const description = params.name === '鏈湀鍥炴閲戦' ? '鏈湀鍥炴閲戦' : '搴旀敹娆鹃噾棰�';
-    return `${description} ${formatNumber(params.value)}鍏� ${params.percent}%`;
-  },
-  position: 'right'
-})
-const materialPieSeries = ref([
-  {
-    type: 'pie',
-    radius: ['66%', '90%'],
-    avoidLabelOverlap: false,
-    itemStyle: {
-      borderColor: '#fff',
-      borderWidth: 2
-    },
-    label: {
-      show: false
-    },
-    data: []
-  }
-])
-const lineSeries = ref([
-  {
-    type: 'line',
-    data: [],
-    label: {
-      show: true
-    },
-    showSymbol: true, // 鏄剧ず鍦嗙偣
-  },
-])
-const tooltipLine = {
-  trigger: 'axis',
-}
-const yAxis2 = ref([
-  {
-    type: 'value',
-  }
-])
-const xAxis2 = ref([
-  {
-    type: 'category',
-    data: [],
-    axisLabel: {
-      interval: 0,
-      formatter: function (value) {
-        return value.replace(/~/g, '\n');
-      },
-    }
-  }
-])
-
-// 寰呭姙浜嬮」
-const todoList = ref([])
-const radio1 = ref(1)
-const qualityRange = ref(1)
-
-// 鍥捐〃寮曠敤
-const barChart = ref(null)
-const lineChart = ref(null)
-const barColors2 = ['#5181DB', '#D369E0', '#F2CA6D', '#60CCA8']
-
-// 闅忔満棰滆壊鐢熸垚鍑芥暟
-const getRandomColor = () => {
-  return '#' + Math.floor(Math.random() * 0xffffff).toString(16).padStart(6, '0');
-}
-
-onMounted(() => {
-  getBusinessData()
-  analysisCustomer()
-  todoInfoS()
-  statisticsReceivable()
-  qualityStatisticsInfo()
-  getAmountHalfYearNum()
-  getProcessList()
-})
-// 鏁版嵁缁熻
-const getBusinessData = () => {
-  getBusiness().then((res) => {
-    businessInfo.value = { ...res.data }
-  })
-}
-// 鍚堝悓閲戦
-const analysisCustomer = () => {
-  analysisCustomerContractAmounts().then((res) => {
-    sum.value = res.data.sum
-    yny.value = res.data.yny
-    chain.value = res.data.chain
-    // 涓烘瘡涓暟鎹」鍒嗛厤闅忔満棰滆壊
-    materialPieSeries.value[0].data = res.data.item.map(item => ({
-      ...item,
-      itemStyle: { color: getRandomColor() }
-    }))
-  })
-}
-// 寰呭姙浜嬮」
-const todoInfoS = () => {
-  homeTodos().then((res) => {
-    todoList.value = res.data
-  })
-}
-// 鑾峰彇宸ュ簭鍒楄〃
-const getProcessList = () => {
-  list().then(res => {
-    processOptions.value = res.data
-  })
-}
-
-const openProcessDialog = () => {
-  tempProcessIds.value = [...selectedProcessIds.value]
-  processDialogVisible.value = true
-}
-
-const handleProcessDialogConfirm = () => {
-  selectedProcessIds.value = [...tempProcessIds.value]
-  processDialogVisible.value = false
-  refreshProcessStats()
-}
-
-const resetProcessFilter = () => {
-  selectedProcessIds.value = []
-  tempProcessIds.value = []
-  refreshProcessStats()
-}
-
-const handleChartClick = (params) => {
-  if (params && params.dataIndex !== undefined) {
-    activeProcessIndex.value = params.dataIndex
-  }
-}
-// 搴斾粯搴旀敹缁熻
-const statisticsReceivable = () => {
-  statisticsReceivablePayable({ type: radio1.value }).then((res) => {
-    barSeries.value[0].data = [
-      // { value: res.data.prepayMoney, itemStyle: { color: barColors2[0] } },
-      { value: res.data.payableMoney, itemStyle: { color: barColors2[0] } },
-      // { value: res.data.advanceMoney, itemStyle: { color: barColors2[2] } },
-      { value: res.data.receivableMoney, itemStyle: { color: barColors2[1] } }
-    ]
-  })
-}
-// 璐ㄦ缁熻
-const qualityStatisticsInfo = () => {
-  qualityInspectionStatistics({ type: qualityRange.value }).then((res) => {
-    xAxis1.value[0].data = []
-    barSeries1.value[0].data = []
-    barSeries1.value[1].data = []
-    barSeries1.value[2].data = []
-    res.data.item.forEach(item => {
-      xAxis1.value[0].data.push(item.date)
-      barSeries1.value[0].data.push(item.supplierNum)
-      barSeries1.value[1].data.push(item.processNum)
-      barSeries1.value[2].data.push(item.factoryNum)
-    })
-    qualityStatisticsObject.value.supplierNum = res.data.supplierNum
-    qualityStatisticsObject.value.processNum = res.data.processNum
-    qualityStatisticsObject.value.factoryNum = res.data.factoryNum
-  })
-}
-const getAmountHalfYearNum = async () => {
-  const res = await getAmountHalfYear()
-  console.log(res)
-  const monthName = []
-  const receiptAmount = []
-  const invoiceAmount = []
-  res.data.forEach(item => {
-    monthName.push(item.month)
-    receiptAmount.push(item.receiptAmount)
-    invoiceAmount.push(item.invoiceAmount)
-  })
-  // 姝g‘鍝嶅簲寮忚祴鍊硷細鍒涘缓鏂扮殑 xAxis 鍜� series 瀵硅薄
-  xAxis2.value[0].data = monthName
-  xAxis2.value[0].data = monthName.map(item => item.replace(/~/g, '\n~'));
-  lineSeries.value = [
+  const pieLegend = reactive({
+    show: false,
+  });
+  const barSeries = ref([
     {
-      name: '寮�绁�',
-      type: 'line',
-      data: invoiceAmount,
-      stack: 'Total',
-      areaStyle: {
-        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-          {
-            offset: 0,
-            color: 'rgba(131, 207, 255, 1)'
-          },
-          {
-            offset: 1,
-            color: 'rgba(186, 228, 255, 1)'
-          }
-        ])
+      type: "bar",
+      data: [],
+      label: {
+        show: true,
       },
-      itemStyle: {
-        color: '#2D99FF',
-        borderColor: '#2D99FF'
-      },
+    },
+  ]);
+
+  const barSeries1 = ref([
+    {
+      name: "鍘熸潗鏂欎笉鍚堟牸鏁�",
+      type: "bar",
+      barGap: 0,
       emphasis: {
-        focus: 'series'
+        focus: "series",
       },
-      lineStyle: {
-        width: 0
-      },
-      showSymbol: true,
+      data: [],
     },
     {
-      name: '鍥炴',
-      type: 'line',
-      data: receiptAmount,
-      stack: 'Total',
-      lineStyle: {
-        width: 0
-      },
-      itemStyle: {
-        color: '#83CFFF',
-        borderColor: '#83CFFF'
-      },
-      showSymbol: true,
-      areaStyle: {
-        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-          {
-            offset: 0,
-            color: 'rgba(54, 153, 255, 1)'
-          },
-          {
-            offset: 1,
-            color: 'rgba(89, 169, 254, 1)'
-          }
-        ])
-      },
+      name: "杩囩▼涓嶅悎鏍兼暟",
+      type: "bar",
       emphasis: {
-        focus: 'series'
+        focus: "series",
       },
+      data: [],
+    },
+    {
+      name: "鍑哄巶涓嶅悎鏍兼暟",
+      type: "bar",
+      emphasis: {
+        focus: "series",
+      },
+      data: [],
+    },
+  ]);
+  const chartStyle = {
+    width: "100%",
+    height: "100%", // 璁剧疆鍥捐〃瀹瑰櫒鐨勯珮搴�
+  };
+  const chartStylePie = {
+    width: "140%",
+    height: "140%", // 璁剧疆鍥捐〃瀹瑰櫒鐨勯珮搴�
+  };
+  const grid = {
+    left: "3%",
+    right: "4%",
+    bottom: "3%",
+    containLabel: true,
+  };
+  const barLegend = {
+    show: true,
+    data: ["鍘熸潗鏂欎笉鍚堟牸鏁�", "杩囩▼涓嶅悎鏍兼暟", "鍑哄巶涓嶅悎鏍兼暟"],
+  };
+  const barLegend1 = {
+    show: true,
+    data: ["棰勪粯璐︽", "搴斾粯璐︽", "棰勬敹璐︽", "搴旀敹璐︽"],
+  };
+  const lineLegend = {
+    show: true,
+    data: ["寮�绁�", "鍥炴"],
+  };
+  const tooltip = {
+    trigger: "axis",
+    axisPointer: {
+      type: "shadow",
+    },
+  };
+  const xAxis = [
+    {
+      type: "value",
+    },
+  ];
+  const xAxis1 = ref([
+    {
+      type: "category",
+      axisTick: { show: false },
+      data: [],
+    },
+  ]);
+  const yAxis = [
+    {
+      type: "category",
+      data: ["搴斾粯璐︽", "搴旀敹璐︽"],
+    },
+  ];
+  const yAxis1 = [
+    {
+      type: "value",
+    },
+  ];
+  const pieTooltip = reactive({
+    trigger: "item",
+    formatter: function (params) {
+      // 鍔ㄦ�佺敓鎴愭彁绀轰俊鎭紝鍩轰簬鏁版嵁椤圭殑 name 灞炴��
+      const description =
+        params.name === "鏈湀鍥炴閲戦" ? "鏈湀鍥炴閲戦" : "搴旀敹娆鹃噾棰�";
+      return `${description} ${formatNumber(params.value)}鍏� ${params.percent}%`;
+    },
+    position: "right",
+  });
+  const materialPieSeries = ref([
+    {
+      type: "pie",
+      radius: ["66%", "90%"],
+      avoidLabelOverlap: false,
+      itemStyle: {
+        borderColor: "#fff",
+        borderWidth: 2,
+      },
+      label: {
+        show: false,
+      },
+      data: [],
+    },
+  ]);
+  const lineSeries = ref([
+    {
+      type: "line",
+      data: [],
+      label: {
+        show: true,
+      },
+      showSymbol: true, // 鏄剧ず鍦嗙偣
+    },
+  ]);
+  const tooltipLine = {
+    trigger: "axis",
+  };
+  const yAxis2 = ref([
+    {
+      type: "value",
+    },
+  ]);
+  const xAxis2 = ref([
+    {
+      type: "category",
+      data: [],
+      axisLabel: {
+        interval: 0,
+        formatter: function (value) {
+          return value.replace(/~/g, "\n");
+        },
+      },
+    },
+  ]);
+
+  // 寰呭姙浜嬮」
+  const todoList = ref([]);
+  const radio1 = ref(1);
+  const qualityRange = ref(1);
+
+  // 鍥捐〃寮曠敤
+  const barChart = ref(null);
+  const lineChart = ref(null);
+  const barColors2 = ["#5181DB", "#D369E0", "#F2CA6D", "#60CCA8"];
+
+  // 闅忔満棰滆壊鐢熸垚鍑芥暟
+  const getRandomColor = () => {
+    return (
+      "#" +
+      Math.floor(Math.random() * 0xffffff)
+        .toString(16)
+        .padStart(6, "0")
+    );
+  };
+
+  onMounted(() => {
+    getBusinessData();
+    analysisCustomer();
+    todoInfoS();
+    statisticsReceivable();
+    qualityStatisticsInfo();
+    getAmountHalfYearNum();
+    getProcessList();
+  });
+  // 鏁版嵁缁熻
+  const getBusinessData = () => {
+    getBusiness().then(res => {
+      businessInfo.value = { ...res.data };
+    });
+  };
+  // 鍚堝悓閲戦
+  const analysisCustomer = () => {
+    analysisCustomerContractAmounts().then(res => {
+      sum.value = res.data.sum;
+      yny.value = res.data.yny;
+      chain.value = res.data.chain;
+      // 涓烘瘡涓暟鎹」鍒嗛厤闅忔満棰滆壊
+      materialPieSeries.value[0].data = res.data.item.map(item => ({
+        ...item,
+        itemStyle: { color: getRandomColor() },
+      }));
+    });
+  };
+  // 寰呭姙浜嬮」
+  const todoInfoS = () => {
+    homeTodos().then(res => {
+      todoList.value = res.data;
+    });
+  };
+  // 鑾峰彇宸ュ簭鍒楄〃
+  const getProcessList = () => {
+    list().then(res => {
+      processOptions.value = res.data;
+    });
+  };
+
+  const openProcessDialog = () => {
+    tempProcessIds.value = [...selectedProcessIds.value];
+    processDialogVisible.value = true;
+  };
+
+  const handleProcessDialogConfirm = () => {
+    selectedProcessIds.value = [...tempProcessIds.value];
+    processDialogVisible.value = false;
+    refreshProcessStats();
+  };
+
+  const resetProcessFilter = () => {
+    selectedProcessIds.value = [];
+    tempProcessIds.value = [];
+    refreshProcessStats();
+  };
+
+  const handleChartClick = params => {
+    if (params && params.dataIndex !== undefined) {
+      activeProcessIndex.value = params.dataIndex;
     }
-  ]
-}
+  };
+  // 搴斾粯搴旀敹缁熻
+  const statisticsReceivable = () => {
+    statisticsReceivablePayable({ type: radio1.value }).then(res => {
+      barSeries.value[0].data = [
+        // { value: res.data.prepayMoney, itemStyle: { color: barColors2[0] } },
+        { value: res.data.payableMoney, itemStyle: { color: barColors2[0] } },
+        // { value: res.data.advanceMoney, itemStyle: { color: barColors2[2] } },
+        { value: res.data.receivableMoney, itemStyle: { color: barColors2[1] } },
+      ];
+    });
+  };
+  // 璐ㄦ缁熻
+  const qualityStatisticsInfo = () => {
+    qualityInspectionStatistics({ type: qualityRange.value }).then(res => {
+      xAxis1.value[0].data = [];
+      barSeries1.value[0].data = [];
+      barSeries1.value[1].data = [];
+      barSeries1.value[2].data = [];
+      res.data.item.forEach(item => {
+        xAxis1.value[0].data.push(item.date);
+        barSeries1.value[0].data.push(item.supplierNum);
+        barSeries1.value[1].data.push(item.processNum);
+        barSeries1.value[2].data.push(item.factoryNum);
+      });
+      qualityStatisticsObject.value.supplierNum = res.data.supplierNum;
+      qualityStatisticsObject.value.processNum = res.data.processNum;
+      qualityStatisticsObject.value.factoryNum = res.data.factoryNum;
+    });
+  };
+  const getAmountHalfYearNum = async () => {
+    const res = await getAmountHalfYear();
+    console.log(res);
+    const monthName = [];
+    const receiptAmount = [];
+    const invoiceAmount = [];
+    res.data.forEach(item => {
+      monthName.push(item.month);
+      receiptAmount.push(item.receiptAmount);
+      invoiceAmount.push(item.invoiceAmount);
+    });
+    // 姝g‘鍝嶅簲寮忚祴鍊硷細鍒涘缓鏂扮殑 xAxis 鍜� series 瀵硅薄
+    xAxis2.value[0].data = monthName;
+    xAxis2.value[0].data = monthName.map(item => item.replace(/~/g, "\n~"));
+    lineSeries.value = [
+      {
+        name: "寮�绁�",
+        type: "line",
+        data: invoiceAmount,
+        stack: "Total",
+        areaStyle: {
+          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+            {
+              offset: 0,
+              color: "rgba(131, 207, 255, 1)",
+            },
+            {
+              offset: 1,
+              color: "rgba(186, 228, 255, 1)",
+            },
+          ]),
+        },
+        itemStyle: {
+          color: "#2D99FF",
+          borderColor: "#2D99FF",
+        },
+        emphasis: {
+          focus: "series",
+        },
+        lineStyle: {
+          width: 0,
+        },
+        showSymbol: true,
+      },
+      {
+        name: "鍥炴",
+        type: "line",
+        data: receiptAmount,
+        stack: "Total",
+        lineStyle: {
+          width: 0,
+        },
+        itemStyle: {
+          color: "#83CFFF",
+          borderColor: "#83CFFF",
+        },
+        showSymbol: true,
+        areaStyle: {
+          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+            {
+              offset: 0,
+              color: "rgba(54, 153, 255, 1)",
+            },
+            {
+              offset: 1,
+              color: "rgba(89, 169, 254, 1)",
+            },
+          ]),
+        },
+        emphasis: {
+          focus: "series",
+        },
+      },
+    ];
+  };
 
-// 宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏锛堝亣鏁版嵁 + 鍥捐〃锛�
-const processRange = ref(1)
-const processChartData = ref([])
+  // 宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏锛堝亣鏁版嵁 + 鍥捐〃锛�
+  const processRange = ref(1);
+  const processChartData = ref([]);
 
-const processXAxis = ref([
-  {
-    nameTextStyle: { color: 'rgba(0,0,0,0.35)', fontSize: 12 },
-    axisLabel: { color: 'rgba(0,0,0,0.35)' },
-    splitLine: { lineStyle: { color: 'rgba(0,0,0,0.06)', type: 'dashed' } },
-  },
-])
-
-const processYAxis = ref([
-  {
-    type: 'category',
-    axisTick: { show: false },
-    axisLine: { show: false },
-    axisLabel: { color: 'rgba(0,0,0,0.45)' },
-    data: [],
-  },
-])
-
-const processGrid = reactive({ left: 0, right: 100, top: 30, bottom: 20, containLabel: true })
-
-const processTooltip = reactive({
-  trigger: 'axis',
-  axisPointer: { type: 'shadow' },
-  formatter: (params) => {
-    const name = params?.[0]?.name ?? ''
-    const list = Array.isArray(params) ? params : []
-    const lines = list
-      .map((p) => {
-        const colorBox = `<span style="display:inline-block;margin-right:6px;border-radius:2px;width:10px;height:10px;background:${p.color}"></span>`
-        return `${colorBox}${p.seriesName} <b style="float:right;">${Number(p.value || 0).toFixed(2)}</b>`
-      })
-      .join('<br/>')
-    return `<div style="min-width:140px;"><div style="font-weight:700;margin-bottom:6px;">${name}</div>${lines}</div>`
-  },
-})
-
-const processSeries = computed(() => {
-  const input = processChartData.value.map((i) => i.input)
-  const scrap = processChartData.value.map((i) => i.scrap)
-  const output = processChartData.value.map((i) => i.output)
-
-  return [
+  const processXAxis = ref([
     {
-      name: '鎶曞叆閲�',
-      type: 'bar',
-      stack: 'total',
-      barWidth: 22,
-      itemStyle: { color: '#1E5BFF', borderRadius: [6, 0, 0, 6] },
-      data: input,
+      nameTextStyle: { color: "rgba(0,0,0,0.35)", fontSize: 12 },
+      axisLabel: { color: "rgba(0,0,0,0.35)" },
+      splitLine: { lineStyle: { color: "rgba(0,0,0,0.06)", type: "dashed" } },
     },
+  ]);
+
+  const processYAxis = ref([
     {
-      name: '鎶ュ簾閲�',
-      type: 'bar',
-      stack: 'total',
-      barWidth: 22,
-      itemStyle: { color: '#F7B500' },
-      data: scrap,
+      type: "category",
+      axisTick: { show: false },
+      axisLine: { show: false },
+      axisLabel: { color: "rgba(0,0,0,0.45)" },
+      data: [],
     },
-    {
-      name: '浜у嚭閲�',
-      type: 'bar',
-      stack: 'total',
-      barWidth: 22,
-      itemStyle: { color: '#19C6C6', borderRadius: [0, 6, 6, 0] },
-      data: output,
+  ]);
+
+  const processGrid = reactive({
+    left: 0,
+    right: 100,
+    top: 30,
+    bottom: 20,
+    containLabel: true,
+  });
+
+  const processTooltip = reactive({
+    trigger: "axis",
+    axisPointer: { type: "shadow" },
+    formatter: params => {
+      const name = params?.[0]?.name ?? "";
+      const list = Array.isArray(params) ? params : [];
+      const lines = list
+        .map(p => {
+          const colorBox = `<span style="display:inline-block;margin-right:6px;border-radius:2px;width:10px;height:10px;background:${p.color}"></span>`;
+          return `${colorBox}${p.seriesName} <b style="float:right;">${Number(
+            p.value || 0
+          ).toFixed(2)}</b>`;
+        })
+        .join("<br/>");
+      return `<div style="min-width:140px;"><div style="font-weight:700;margin-bottom:6px;">${name}</div>${lines}</div>`;
     },
-  ]
-})
+  });
 
-const processAside = computed(() => {
-  const list = processChartData.value
-  const item = list[activeProcessIndex.value] || {}
-  return {
-    processName: item.name || '鏆傛棤鏁版嵁',
-    totalInput: item.input || 0,
-    totalScrap: item.scrap || 0,
-    totalOutput: item.output || 0,
-  }
-})
+  const processSeries = computed(() => {
+    const input = processChartData.value.map(i => i.input);
+    const scrap = processChartData.value.map(i => i.scrap);
+    const output = processChartData.value.map(i => i.output);
 
-const formatAmount = (n) => {
-  const num = Number(n || 0)
-  return num.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
-}
+    return [
+      {
+        name: "鎶曞叆閲�",
+        type: "bar",
+        stack: "total",
+        barWidth: 22,
+        itemStyle: { color: "#1E5BFF", borderRadius: [6, 0, 0, 6] },
+        data: input,
+      },
+      {
+        name: "鎶ュ簾閲�",
+        type: "bar",
+        stack: "total",
+        barWidth: 22,
+        itemStyle: { color: "#F7B500" },
+        data: scrap,
+      },
+      {
+        name: "浜у嚭閲�",
+        type: "bar",
+        stack: "total",
+        barWidth: 22,
+        itemStyle: { color: "#19C6C6", borderRadius: [0, 6, 6, 0] },
+        data: output,
+      },
+    ];
+  });
 
-const refreshProcessStats = () => {
-  processDataProductionStatistics({
-    type: processRange.value,
-    processIds: selectedProcessIds.value.length > 0 ? selectedProcessIds.value.join(',') : null
-  }).then(res => {
-    processChartData.value = res.data.map(item => ({
-      name: item.processName,
-      input: item.totalInput,
-      scrap: item.totalScrap,
-      output: item.totalOutput
-    }))
-    processYAxis.value[0].data = processChartData.value.map((i) => i.name)
-    activeProcessIndex.value = 0
-  })
-}
+  const processAside = computed(() => {
+    const list = processChartData.value;
+    const item = list[activeProcessIndex.value] || {};
+    return {
+      processName: item.name || "鏆傛棤鏁版嵁",
+      totalInput: item.input || 0,
+      totalScrap: item.scrap || 0,
+      totalOutput: item.output || 0,
+    };
+  });
 
-onMounted(() => {
-  getBusinessData()
-  analysisCustomer()
-  todoInfoS()
-  statisticsReceivable()
-  qualityStatisticsInfo()
-  getAmountHalfYearNum()
-  refreshProcessStats()
-})
+  const formatAmount = n => {
+    const num = Number(n || 0);
+    return num.toLocaleString(undefined, {
+      minimumFractionDigits: 2,
+      maximumFractionDigits: 2,
+    });
+  };
+
+  const refreshProcessStats = () => {
+    processDataProductionStatistics({
+      type: processRange.value,
+      processIds:
+        selectedProcessIds.value.length > 0
+          ? selectedProcessIds.value.join(",")
+          : null,
+    }).then(res => {
+      processChartData.value = res.data.map(item => ({
+        name: item.processName,
+        input: item.totalInput,
+        scrap: item.totalScrap,
+        output: item.totalOutput,
+      }));
+      processYAxis.value[0].data = processChartData.value.map(i => i.name);
+      activeProcessIndex.value = 0;
+    });
+  };
+
+  onMounted(() => {
+    getBusinessData();
+    analysisCustomer();
+    todoInfoS();
+    statisticsReceivable();
+    qualityStatisticsInfo();
+    getAmountHalfYearNum();
+    refreshProcessStats();
+  });
 </script>
 
 <style scoped>
-.dashboard {
-  background: #f5f7fa;
-  min-height: 100vh;
-  padding: 20px;
-  box-sizing: border-box;
-}
+  .dashboard {
+    background: #f5f7fa;
+    min-height: 100vh;
+    padding: 20px;
+    box-sizing: border-box;
+  }
 
-.dashboard-top {
-  display: flex;
-  gap: 20px;
-  margin-bottom: 20px;
-  align-items: flex-start;
-  justify-content: space-evenly;
-}
+  .dashboard-top {
+    display: flex;
+    gap: 20px;
+    margin-bottom: 20px;
+    align-items: flex-start;
+    justify-content: space-evenly;
+  }
 
-.company-info {
-  padding: 0;
-  overflow: hidden;
-  border-radius: 12px;
-  background: #fff;
-  height: 100%;
-}
+  .company-info {
+    padding: 0;
+    overflow: hidden;
+    border-radius: 12px;
+    background: #fff;
+    height: 100%;
+  }
 
-.welcome-banner {
-  padding: 10px 10px;
-  background: linear-gradient(135deg, rgba(229, 240, 255, 0.9), rgba(214, 232, 255, 0.7), rgba(207, 236, 255, 0.9));
-}
+  .welcome-banner {
+    padding: 10px 10px;
+    background: linear-gradient(
+      135deg,
+      rgba(229, 240, 255, 0.9),
+      rgba(214, 232, 255, 0.7),
+      rgba(207, 236, 255, 0.9)
+    );
+  }
 
-.welcome-title {
-  font-size: 18px;
-  font-weight: 700;
-  color: #222;
-  line-height: 1.3;
-}
+  .welcome-title {
+    font-size: 18px;
+    font-weight: 700;
+    color: #222;
+    line-height: 1.3;
+  }
 
-.welcome-user {
-  margin-right: 6px;
-}
+  .welcome-user {
+    margin-right: 6px;
+  }
 
-.welcome-time {
-  margin-top: 10px;
-  font-size: 16px;
-  color: rgba(0, 0, 0, 0.55);
-}
+  .welcome-time {
+    margin-top: 10px;
+    font-size: 16px;
+    color: rgba(0, 0, 0, 0.55);
+  }
 
-.user-card {
-  display: flex;
-  align-items: center;
-  gap: 10px;
-  padding: 18px 22px;
-}
+  .user-card {
+    display: flex;
+    align-items: center;
+    gap: 10px;
+    padding: 18px 22px;
+  }
 
-.user-card-main {
-  display: flex;
-  flex-direction: column;
-  gap: 5px;
-  min-width: 0;
-}
+  .user-card-main {
+    display: flex;
+    flex-direction: column;
+    gap: 5px;
+    min-width: 0;
+  }
 
-.user-name {
-  font-size: 16px;
-  font-weight: bold;
-  color: #111;
-  letter-spacing: 1px;
-}
+  .user-name {
+    font-size: 16px;
+    font-weight: bold;
+    color: #111;
+    letter-spacing: 1px;
+  }
 
-.user-role {
-  display: inline-flex;
-  align-items: center;
-  justify-content: center;
-  height: 20px;
-  padding: 5px 10px;
-  background: rgba(245, 246, 248, 1);
-  color: #333;
-  width: fit-content;
-  font-weight: 600;
-}
+  .user-role {
+    display: inline-flex;
+    align-items: center;
+    justify-content: center;
+    height: 20px;
+    padding: 5px 10px;
+    background: rgba(245, 246, 248, 1);
+    color: #333;
+    width: fit-content;
+    font-weight: 600;
+  }
 
-.user-meta {
-  font-size: 12px;
-  color: rgba(0, 0, 0, 0.55);
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
+  .user-meta {
+    font-size: 12px;
+    color: rgba(0, 0, 0, 0.55);
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+  }
 
-.user-meta .sep {
-  margin: 0 10px;
-  color: rgba(0, 0, 0, 0.25);
-}
+  .user-meta .sep {
+    margin: 0 10px;
+    color: rgba(0, 0, 0, 0.25);
+  }
 
-.avatar {
-  width: 90px;
-  height: 90px;
-  border-radius: 50%;
-  object-fit: cover;
-  flex: 0 0 auto;
-}
+  .avatar {
+    width: 90px;
+    height: 90px;
+    border-radius: 50%;
+    object-fit: cover;
+    flex: 0 0 auto;
+  }
 
-.data-cards {
-  width: 50%;
-  display: flex;
-  gap: 16px;
-  justify-content: flex-start;
-  background: #ffffff;
-  border-radius: 12px;
-  padding: 20px;
-}
+  .data-cards {
+    width: 50%;
+    display: flex;
+    gap: 16px;
+    justify-content: flex-start;
+    background: #ffffff;
+    border-radius: 12px;
+    padding: 20px;
+  }
 
-.data-title {
-  font-weight: 700;
-  font-size: 26px;
-  color: #FFFFFF;
-}
+  .data-title {
+    font-weight: 700;
+    font-size: 26px;
+    color: #ffffff;
+  }
 
-.data-num {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  margin-top: 20px;
-}
+  .data-num {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    margin-top: 20px;
+  }
 
-.data-card {
-  background: #fff;
-  border-radius: 12px;
-  padding: 14px 10px 10px 10px;
-  min-width: 160px;
-  box-shadow: 0 2px 8px #eee;
-  display: flex;
-  flex-direction: column;
-  width: 32%;
-  height: 140px;
-}
+  .data-card {
+    background: #fff;
+    border-radius: 12px;
+    padding: 14px 10px 10px 10px;
+    min-width: 160px;
+    box-shadow: 0 2px 8px #eee;
+    display: flex;
+    flex-direction: column;
+    width: 32%;
+    height: 140px;
+  }
 
-.data-card.sales {
-  background-image: url("../assets/images/xioashoushuju.png");
-  background-size: cover;
-  background-position: center;
-  background-repeat: no-repeat;
-}
+  .data-card.sales {
+    background-image: url("../assets/images/xioashoushuju.png");
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
+  }
 
-.data-card.purchase {
-  background-image: url("../assets/images/caigou.png");
-  background-size: cover;
-  background-position: center;
-  background-repeat: no-repeat;
-}
+  .data-card.purchase {
+    background-image: url("../assets/images/caigou.png");
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
+  }
 
-.data-card.inventory {
-  background-image: url("../assets/images/kucun.png");
-  background-size: cover;
-  background-position: center;
-  background-repeat: no-repeat;
-}
+  .data-card.inventory {
+    background-image: url("../assets/images/kucun.png");
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
+  }
 
-.data-desc {
-  font-weight: 500;
-  font-size: 13px;
-  color: #FFFFFF;
-}
+  .data-desc {
+    font-weight: 500;
+    font-size: 13px;
+    color: #ffffff;
+  }
 
-.data-value {
-  font-size: 18px;
-  font-weight: 500;
-  margin: 10px 0;
-  color: #FFFFFF;
-}
+  .data-value {
+    font-size: 18px;
+    font-weight: 500;
+    margin: 10px 0;
+    color: #ffffff;
+  }
 
-.top-left {
-  display: flex;
-  flex-direction: column;
-  gap: 20px;
-  height: 180px;
-  width: 20%;
-}
+  .top-left {
+    display: flex;
+    flex-direction: column;
+    gap: 20px;
+    height: 180px;
+    width: 20%;
+  }
 
-.todo-panel {
-  background: #fff;
-  border-radius: 12px;
-  padding: 20px;
-  height: 180px;
-  width: 30%;
-}
+  .todo-panel {
+    background: #fff;
+    border-radius: 12px;
+    padding: 20px;
+    height: 180px;
+    width: 30%;
+  }
 
-.todo-list {
-  height: 100px;
-  list-style: none;
-  padding: 0;
-  margin: 0;
-  font-size: 15px;
-  overflow-y: auto;
-}
+  .todo-list {
+    height: 100px;
+    list-style: none;
+    padding: 0;
+    margin: 0;
+    font-size: 15px;
+    overflow-y: auto;
+  }
 
-.todo-list li {
-  border-radius: 8px;
-  margin-bottom: 12px;
-  padding: 8px 20px;
-  height: 74px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  background: rgba(225, 227, 250, 0.62);
-}
-
-.todo-title {
-  font-weight: 400;
-  font-size: 12px;
-  color: #000000;
-  position: relative;
-}
-
-.todo-title::before {
-  content: '';
-  /* 蹇呴渶锛岃〃绀鸿繖閲屾湁涓�涓唴瀹� */
-  position: absolute;
-  left: -10px;
-  /* 瀹氫綅鍒板乏渚� */
-  top: 50%;
-  /* 鍨傜洿灞呬腑 */
-  transform: translateY(-50%);
-  /* 寰皟鍨傜洿灞呬腑 */
-  width: 6px;
-  /* 鍦嗙殑鐩村緞 */
-  height: 6px;
-  /* 鍦嗙殑鐩村緞 */
-  background: #498CEB;
-  border-radius: 50%;
-  /* 璁╁叾鍙樻垚鍦嗗舰 */
-}
-
-.todo-division {
-  font-weight: 400;
-  font-size: 12px;
-  color: #000000;
-}
-
-.todo-time {
-  font-weight: 400;
-  font-size: 12px;
-  color: #000000;
-}
-
-.todo-meta {
-  color: #888;
-  font-size: 13px;
-}
-
-.dashboard-row {
-  display: flex;
-  gap: 20px;
-  margin-bottom: 20px;
-}
-
-.main-panel {
-  background: #fff;
-  border-radius: 12px;
-  padding: 20px;
-  flex: 1;
-  min-width: 0;
-  display: flex;
-  flex-direction: column;
-}
-
-.section-title {
-  position: relative;
-  font-size: 18px;
-  color: #333;
-  padding-left: 10px;
-  margin-bottom: 10px;
-  font-weight: 700;
-}
-
-.section-title::before {
-  position: absolute;
-  left: 0;
-  top: 4px;
-  content: '';
-  width: 4px;
-  height: 18px;
-  background-color: #002FA7;
-  border-radius: 2px;
-}
-
-.contract-info {
-  display: flex;
-  align-items: center;
-  gap: 20px;
-  height: 90px;
-  background: rgba(245, 245, 245, 0.59);
-  width: 100%;
-  border-radius: 10px;
-  padding: 10px 30px;
-}
-
-.contract-summary {
-  display: flex;
-  align-items: center;
-  gap: 30px;
-}
-
-.contract-card {
-  display: flex;
-  flex-direction: column;
-  gap: 10px;
-}
-
-.contract-name {
-  font-weight: 400;
-  font-size: 14px;
-  color: #050505;
-}
-
-.contract-meta {
-  display: flex;
-  align-items: center;
-  width: 100%;
-  gap: 80px;
-}
-
-.main-amount {
-  font-size: 24px;
-  color: rgba(51, 50, 50, 0.85);
-}
-
-.up {
-  color: #e57373;
-}
-
-.contract-list {
-  margin-top: 16px;
-  font-size: 14px;
-  color: #666;
-  list-style: none;
-  padding: 0;
-  height: 190px;
-  overflow-y: auto;
-  width: 460px;
-}
-
-.line {
-  position: relative;
-  width: 230px;
-}
-
-.line::after {
-  content: '';
-  position: absolute;
-  right: 2px;
-  top: 0;
-  bottom: 0;
-  width: 1px;
-  background-color: #C9C5C5;
-  border-radius: 2px;
-}
-
-.contract-list li {
-  margin-top: 10px;
-}
-
-.quality-cards {
-  display: flex;
-  gap: 12px;
-  margin-bottom: 12px;
-}
-
-.quality-card {
-  border-radius: 8px;
-  padding: 15px 10px 10px 50px;
-  font-weight: 400;
-  font-size: 12px;
-  color: rgba(0, 0, 0, 0.67);
-  width: 236px;
-  height: 49px;
-  background-size: cover;
-  background-position: center;
-  background-repeat: no-repeat;
-}
-
-.quality-card.one {
-  background-image: url("../assets/images/yuancailiao.png");
-}
-
-.quality-card.two {
-  background-image: url("../assets/images/guocheng.png");
-}
-
-.quality-card.three {
-  background-image: url("../assets/images/chuchang.png");
-
-}
-
-.quality-card span {
-  color: #4fc3f7;
-  font-weight: bold;
-  margin-left: 6px;
-}
-
-.chart {
-  width: 100%;
-  height: 220px;
-  margin-top: 10px;
-}
-
-.process-panel {
-  padding-bottom: 10px;
-}
-
-.process-panel__header {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-}
-
-.process-panel__body {
-  display: flex;
-  gap: 24px;
-  align-items: stretch;
-  margin-top: 10px;
-}
-
-.process-panel__chart {
-  flex: 1;
-  min-width: 0;
-  padding: 6px 0;
-}
-
-.process-panel__aside {
-  width: 260px;
-  display: flex;
-  flex-direction: column;
-  gap: 12px;
-}
-
-.process-legend {
-  display: flex;
-  flex-direction: column;
-  gap: 10px;
-  align-items: flex-start;
-  padding: 8px 6px;
-}
-
-.process-legend__item {
-  display: flex;
-  align-items: center;
-  gap: 8px;
-  font-size: 13px;
-  color: rgba(0, 0, 0, 0.55);
-}
-
-.dot {
-  width: 10px;
-  height: 10px;
-  border-radius: 2px;
-  display: inline-block;
-}
-
-.dot-blue {
-  background: #1E5BFF;
-}
-
-.dot-yellow {
-  background: #F7B500;
-}
+  .todo-list li {
+    border-radius: 8px;
+    margin-bottom: 12px;
+    padding: 8px 20px;
+    height: 74px;
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    background: rgba(225, 227, 250, 0.62);
+  }
 
-.dot-teal {
-  background: #19C6C6;
-}
+  .todo-title {
+    font-weight: 400;
+    font-size: 12px;
+    color: #000000;
+    position: relative;
+  }
 
-.process-card {
-  background: rgba(245, 247, 250, 0.9);
-  border-radius: 10px;
-  padding: 16px 16px;
-}
+  .todo-title::before {
+    content: "";
+    /* 蹇呴渶锛岃〃绀鸿繖閲屾湁涓�涓唴瀹� */
+    position: absolute;
+    left: -10px;
+    /* 瀹氫綅鍒板乏渚� */
+    top: 50%;
+    /* 鍨傜洿灞呬腑 */
+    transform: translateY(-50%);
+    /* 寰皟鍨傜洿灞呬腑 */
+    width: 6px;
+    /* 鍦嗙殑鐩村緞 */
+    height: 6px;
+    /* 鍦嗙殑鐩村緞 */
+    background: #498ceb;
+    border-radius: 50%;
+    /* 璁╁叾鍙樻垚鍦嗗舰 */
+  }
 
-.process-card--name {
-  background: rgba(235, 242, 255, 1);
-  color: #1E5BFF;
-  font-weight: 800;
-  font-size: 14px;
-}
+  .todo-division {
+    font-weight: 400;
+    font-size: 12px;
+    color: #000000;
+  }
 
-.process-card__label {
-  font-size: 13px;
-  color: rgba(0, 0, 0, 0.55);
-  margin-bottom: 10px;
-}
+  .todo-time {
+    font-weight: 400;
+    font-size: 12px;
+    color: #000000;
+  }
 
-.process-card__value {
-  font-size: 24px;
-  font-weight: 800;
-  color: rgba(0, 0, 0, 0.8);
-}
+  .todo-meta {
+    color: #888;
+    font-size: 13px;
+  }
 
-.process-card__value .unit {
-  font-size: 12px;
-  font-weight: 600;
-  color: rgba(0, 0, 0, 0.45);
-  margin-left: 6px;
-}
+  .dashboard-row {
+    display: flex;
+    gap: 20px;
+    margin-bottom: 20px;
+  }
 
-@media (max-width: 1200px) {
-  .process-panel__body {
+  .main-panel {
+    background: #fff;
+    border-radius: 12px;
+    padding: 20px;
+    flex: 1;
+    min-width: 0;
+    display: flex;
     flex-direction: column;
   }
 
-  .process-panel__aside {
+  .section-title {
+    position: relative;
+    font-size: 18px;
+    color: #333;
+    padding-left: 10px;
+    margin-bottom: 10px;
+    font-weight: 700;
+  }
+
+  .section-title::before {
+    position: absolute;
+    left: 0;
+    top: 4px;
+    content: "";
+    width: 4px;
+    height: 18px;
+    background-color: #002fa7;
+    border-radius: 2px;
+  }
+
+  .contract-info {
+    display: flex;
+    align-items: center;
+    gap: 20px;
+    height: 90px;
+    background: rgba(245, 245, 245, 0.59);
     width: 100%;
-    flex-direction: row;
-    flex-wrap: wrap;
+    border-radius: 10px;
+    padding: 10px 30px;
+  }
+
+  .contract-summary {
+    display: flex;
+    align-items: center;
+    gap: 30px;
+  }
+
+  .contract-card {
+    display: flex;
+    flex-direction: column;
+    gap: 10px;
+  }
+
+  .contract-name {
+    font-weight: 400;
+    font-size: 14px;
+    color: #050505;
+  }
+
+  .contract-meta {
+    display: flex;
+    align-items: center;
+    width: 100%;
+    gap: 80px;
+  }
+
+  .main-amount {
+    font-size: 24px;
+    color: rgba(51, 50, 50, 0.85);
+  }
+
+  .up {
+    color: #e57373;
+  }
+
+  .contract-list {
+    margin-top: 16px;
+    font-size: 14px;
+    color: #666;
+    list-style: none;
+    padding: 0;
+    height: 190px;
+    overflow-y: auto;
+    width: 460px;
+  }
+
+  .line {
+    position: relative;
+    width: 230px;
+  }
+
+  .line::after {
+    content: "";
+    position: absolute;
+    right: 2px;
+    top: 0;
+    bottom: 0;
+    width: 1px;
+    background-color: #c9c5c5;
+    border-radius: 2px;
+  }
+
+  .contract-list li {
+    margin-top: 10px;
+  }
+
+  .quality-cards {
+    display: flex;
+    gap: 12px;
+    margin-bottom: 12px;
+  }
+
+  .quality-card {
+    border-radius: 8px;
+    padding: 15px 10px 10px 50px;
+    font-weight: 400;
+    font-size: 12px;
+    color: rgba(0, 0, 0, 0.67);
+    width: 236px;
+    height: 49px;
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
+  }
+
+  .quality-card.one {
+    background-image: url("../assets/images/yuancailiao.png");
+  }
+
+  .quality-card.two {
+    background-image: url("../assets/images/guocheng.png");
+  }
+
+  .quality-card.three {
+    background-image: url("../assets/images/chuchang.png");
+  }
+
+  .quality-card span {
+    color: #4fc3f7;
+    font-weight: bold;
+    margin-left: 6px;
+  }
+
+  .chart {
+    width: 100%;
+    height: 220px;
+    margin-top: 10px;
+  }
+
+  .process-panel {
+    padding-bottom: 10px;
+  }
+
+  .process-panel__header {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+  }
+
+  .process-panel__body {
+    display: flex;
+    gap: 24px;
+    align-items: stretch;
+    margin-top: 10px;
+  }
+
+  .process-panel__chart {
+    flex: 1;
+    min-width: 0;
+    padding: 6px 0;
+  }
+
+  .process-panel__aside {
+    width: 260px;
+    display: flex;
+    flex-direction: column;
+    gap: 12px;
+  }
+
+  .process-legend {
+    display: flex;
+    flex-direction: column;
+    gap: 10px;
+    align-items: flex-start;
+    padding: 8px 6px;
+  }
+
+  .process-legend__item {
+    display: flex;
+    align-items: center;
+    gap: 8px;
+    font-size: 13px;
+    color: rgba(0, 0, 0, 0.55);
+  }
+
+  .dot {
+    width: 10px;
+    height: 10px;
+    border-radius: 2px;
+    display: inline-block;
+  }
+
+  .dot-blue {
+    background: #1e5bff;
+  }
+
+  .dot-yellow {
+    background: #f7b500;
+  }
+
+  .dot-teal {
+    background: #19c6c6;
   }
 
   .process-card {
-    flex: 1;
-    min-width: 220px;
+    background: rgba(245, 247, 250, 0.9);
+    border-radius: 10px;
+    padding: 16px 16px;
   }
-}
 
-.process-selection-wrapper {
-  max-height: 400px;
-  overflow-y: auto;
-  padding: 10px;
-}
+  .process-card--name {
+    background: rgba(235, 242, 255, 1);
+    color: #1e5bff;
+    font-weight: 800;
+    font-size: 14px;
+  }
 
-.process-grid {
-  display: grid;
-  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
-  gap: 12px;
-}
+  .process-card__label {
+    font-size: 13px;
+    color: rgba(0, 0, 0, 0.55);
+    margin-bottom: 10px;
+  }
 
-:deep(.el-checkbox.is-bordered) {
-  margin-left: 0 !important;
-  width: 100%;
-}
+  .process-card__value {
+    font-size: 24px;
+    font-weight: 800;
+    color: rgba(0, 0, 0, 0.8);
+  }
+
+  .process-card__value .unit {
+    font-size: 12px;
+    font-weight: 600;
+    color: rgba(0, 0, 0, 0.45);
+    margin-left: 6px;
+  }
+
+  @media (max-width: 1200px) {
+    .process-panel__body {
+      flex-direction: column;
+    }
+
+    .process-panel__aside {
+      width: 100%;
+      flex-direction: row;
+      flex-wrap: wrap;
+    }
+
+    .process-card {
+      flex: 1;
+      min-width: 220px;
+    }
+  }
+
+  .process-selection-wrapper {
+    max-height: 400px;
+    overflow-y: auto;
+    padding: 10px;
+  }
+
+  .process-grid {
+    display: grid;
+    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
+    gap: 12px;
+  }
+
+  :deep(.el-checkbox.is-bordered) {
+    margin-left: 0 !important;
+    width: 100%;
+  }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3