From bb26641a50899c5c0a33803fecb82cdbba3cae29 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 04 三月 2026 10:59:16 +0800
Subject: [PATCH] fix: 首页需展示已有功能模块的数据(如截图中画框区域),页面排版样式需重新设计下

---
 src/views/index.vue |  619 ++++++++++++++++++++++++-------------------------------
 1 files changed, 273 insertions(+), 346 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 59eb106..bf488c5 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,8 +1,7 @@
 <template>
   <div class="dashboard">
-    <!-- 椤堕儴妯悜涓ゆ爮 -->
+    <!-- 椤堕儴锛氬乏鐢ㄦ埛淇℃伅锛屼腑闂村簱瀛樺崱鐗囷紝鍙充晶寰呭姙 -->
     <div class="dashboard-top">
-      <!-- 宸︼細浼佷笟淇℃伅+涓夊ぇ鏁版嵁鍗$墖锛堜笂涓嬫帓鍒楋級 -->
       <div class="top-left">
         <div class="company-info">
           <!-- 椤堕儴闂�欐潯 -->
@@ -31,90 +30,66 @@
           </div>
         </div>
       </div>
-      <div class="data-cards">
-        <div class="data-card sales">
-          <div class="data-title">閿�鍞暟鎹�</div>
-          <div class="data-num">
-            <div>
-              <div class="data-desc">鏈湀閿�鍞/鍏�</div>
-              <div class="data-value">{{businessInfo.monthSaleMoney}}</div>
-            </div>
-            <div>
-              <div class="data-desc">鏈紑绁ㄩ噾棰�/鍏�</div>
-              <div class="data-value">{{businessInfo.monthSaleHaveMoney}}</div>
-            </div>
-          </div>
 
-        </div>
-        <div class="data-card purchase">
-          <div class="data-title">閲囪喘鏁版嵁</div>
-          <div class="data-num">
-            <div>
-              <div class="data-desc">鏈湀閲囪喘棰�/鍏�</div>
-              <div class="data-value">{{businessInfo.monthPurchaseMoney}}</div>
-            </div>
-            <div>
-              <div class="data-desc">寰呬粯娆鹃噾棰�/鍏�</div>
-              <div class="data-value">{{businessInfo.monthPurchaseHaveMoney}}</div>
-            </div>
-          </div>
-        </div>
+      <div class="top-middle">
         <div class="data-card inventory">
           <div class="data-title">搴撳瓨鏁版嵁</div>
           <div class="data-num">
             <div>
               <div class="data-desc">褰撳墠搴撳瓨鎬婚噺/浠�</div>
-              <div class="data-value">{{businessInfo.inventoryNum}}</div>
+              <div class="data-value">{{ businessInfo.inventoryNum }}</div>
             </div>
             <div>
               <div class="data-desc">浠婃棩鍏ュ簱/浠�</div>
-              <div class="data-value">{{businessInfo.todayInventoryNum}}</div>
+              <div class="data-value">{{ businessInfo.todayInventoryNum }}</div>
             </div>
           </div>
         </div>
       </div>
-      <!-- 鍙筹細寰呭姙浜嬮」 -->
-      <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">
-            <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>
-                <div class="todo-division">閮ㄩ棬锛歿{item.approveDeptName}}</div>
-                <div class="todo-time">{{item.approveTime}}</div>
+
+      <div class="top-right">
+        <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">
+              <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>
+                  <div class="todo-division">閮ㄩ棬锛歿{ item.approveDeptName }}</div>
+                  <div class="todo-time">{{ item.approveTime }}</div>
+                </div>
+                <div class="todo-division">寰呭姙浜嬬敱锛歿{ item.approveReason }}</div>
               </div>
-              <div class="todo-division">寰呭姙浜嬬敱锛歿{item.approveReason}}</div>
-            </div>
-          </li>
-        </ul>
-        <div v-else style="text-align: center">
-          鏆傛棤鏁版嵁
+            </li>
+          </ul>
+          <div v-else style="text-align: center">
+            鏆傛棤鏁版嵁
+          </div>
         </div>
       </div>
     </div>
+
+    <!-- 涓儴锛氬伐搴忔暟鎹粺璁� -->
     <div class="dashboard-row">
       <div class="main-panel process-panel">
         <div class="process-panel__header">
           <div class="section-title">宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏</div>
-          <el-radio-group v-model="processRange" size="small" @change="refreshProcessStats">
-            <el-radio-button :value="'week'">鎸夊懆</el-radio-button>
-            <el-radio-button :value="'month'">鎸夋湀</el-radio-button>
-            <el-radio-button :value="'quarter'">鎸夊搴�</el-radio-button>
-          </el-radio-group>
+          <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-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%"
-            />
+            <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">
@@ -134,107 +109,61 @@
 
             <div class="process-card">
               <div class="process-card__label">绱鎬绘姇鍏�</div>
-              <div class="process-card__value">{{ formatAmount(processAside.totalInput) }}<span class="unit">涓囧厓</span></div>
+              <div class="process-card__value">{{ formatAmount(processAside.totalInput) }}
+              </div>
             </div>
             <div class="process-card">
               <div class="process-card__label">绱鎬绘姤搴�</div>
-              <div class="process-card__value">{{ formatAmount(processAside.totalScrap) }}<span class="unit">涓囧厓</span></div>
+              <div class="process-card__value">{{ formatAmount(processAside.totalScrap) }}
+              </div>
             </div>
             <div class="process-card">
               <div class="process-card__label">绱鎬讳骇鍑�</div>
-              <div class="process-card__value">{{ formatAmount(processAside.totalOutput) }}<span class="unit">涓囧厓</span></div>
+              <div class="process-card__value">{{ formatAmount(processAside.totalOutput) }}
+              </div>
             </div>
           </div>
         </div>
       </div>
     </div>
-    <!-- 涓儴妯悜涓ゆ爮 -->
+
+    <!-- 宸ュ簭閫夋嫨寮圭獥 -->
+    <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>
+              {{ item.name }}
+            </el-checkbox>
+          </div>
+        </el-checkbox-group>
+      </div>
+      <template #footer>
+        <span class="dialog-footer">
+          <el-button @click="processDialogVisible = false">鍙栨秷</el-button>
+          <el-button type="primary" @click="handleProcessDialogConfirm">纭</el-button>
+        </span>
+      </template>
+    </el-dialog>
+
+    <!-- 搴曢儴锛氳川閲忕粺璁� -->
     <div class="dashboard-row">
       <div class="main-panel">
-        <div class="section-title">瀹㈡埛鍚堝悓閲戦鍒嗘瀽</div>
-        <div class="contract-summary">
-          <div class="contract-info">
-            <img src="../assets/images/khtitle.png" alt="" style="width: 42px"/>
-            <div class="contract-card">
-              <div class="contract-name">鎬诲悎鍚岄噾棰�(鍏�)</div>
-              <div class="contract-meta">
-                <div class="main-amount">{{sum}}</div>
-                <div>鍛ㄥ悓姣�: <span class="up">{{yny}}% </span> 鏃ョ幆姣�: <span class="up">{{chain}}% </span></div>
-              </div>
-            </div>
-          </div>
+        <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">
+            <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>
+          </el-radio-group>
         </div>
-        <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>
-          </div>
-          <ul class="contract-list">
-            <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 style="width: 70px">{{item.rate}}%</div>
-                <div>锟{item.value}}</div>
-              </div>
-            </li>
-          </ul>
+        <div class="quality-cards">
+          <div class="quality-card one">鍘熸潗鏂欏凡妫�娴嬫暟 <span>{{ qualityStatisticsObject.supplierNum }}浠�</span></div>
+          <div class="quality-card two">杩囩▼妫�楠屾暟閲� <span>{{ qualityStatisticsObject.processNum }}浠�</span></div>
+          <div class="quality-card three">鍑哄巶宸叉鏁伴噺 <span>{{ qualityStatisticsObject.factoryNum }}浠�</span></div>
         </div>
-      </div>
-      <div class="main-panel">
-        <div style="display: flex;justify-content: space-between;">
-          <div class="section-title">搴旀敹搴斾粯缁熻</div>
-          <!--					<el-radio-group v-model="radio1" size="large" @change="statisticsReceivable">-->
-          <!--						<el-radio-button label="鎸夊懆" :value="1" />-->
-          <!--						<el-radio-button label="鎸夋湀" :value="2" />-->
-          <!--						<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>
-      </div>
-    </div>
-
-    <!-- 搴曢儴妯悜涓ゆ爮 -->
-    <div class="dashboard-row">
-      			<div class="main-panel">
-      				<div class="section-title">璐ㄩ噺缁熻</div>
-      				<div class="quality-cards">
-      					<div class="quality-card one">鍘熸潗鏂欏凡妫�娴嬫暟 <span>{{qualityStatisticsObject.supplierNum}}浠�</span></div>
-      					<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>
-      			</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="chart" :chartStyle="chartStyle" :grid="grid" :legend="barLegend" :series="barSeries1"
+          :tooltip="tooltip" :xAxis="xAxis1" :yAxis="yAxis1" style="height: 260px"></Echarts>
       </div>
     </div>
   </div>
@@ -249,11 +178,20 @@
   analysisCustomerContractAmounts, getAmountHalfYear,
   getBusiness,
   homeTodos,
-  qualityStatistics,
-  statisticsReceivablePayable
+  processDataProductionStatistics,
+  statisticsReceivablePayable,
+  qualityInspectionStatistics
 } from "@/api/viewIndex.js";
+import { list } from '@/api/productionManagement/productionProcess';
+
 
 const userStore = useUserStore()
+
+const processOptions = ref([])
+const selectedProcessIds = ref([])
+const tempProcessIds = ref([])
+const processDialogVisible = ref(false)
+const activeProcessIndex = ref(0)
 
 const businessInfo = ref({
   inventoryNum: 0,
@@ -354,7 +292,7 @@
 }])
 const yAxis = [{
   type: 'category',
-  data: [ '搴斾粯璐︽', '搴旀敹璐︽',]
+  data: ['搴斾粯璐︽', '搴旀敹璐︽',]
 }]
 const yAxis1 = [{
   type: 'value'
@@ -407,7 +345,7 @@
     data: [],
     axisLabel: {
       interval: 0,
-      formatter: function(value) {
+      formatter: function (value) {
         return value.replace(/~/g, '\n');
       },
     }
@@ -417,6 +355,7 @@
 // 寰呭姙浜嬮」
 const todoList = ref([])
 const radio1 = ref(1)
+const qualityRange = ref(1)
 
 // 鍥捐〃寮曠敤
 const barChart = ref(null)
@@ -435,11 +374,12 @@
   statisticsReceivable()
   qualityStatisticsInfo()
   getAmountHalfYearNum()
+  getProcessList()
 })
 // 鏁版嵁缁熻
 const getBusinessData = () => {
   getBusiness().then((res) => {
-    businessInfo.value = {...res.data}
+    businessInfo.value = { ...res.data }
   })
 }
 // 鍚堝悓閲戦
@@ -461,9 +401,38 @@
     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) => {
+  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] } },
@@ -474,7 +443,11 @@
 }
 // 璐ㄦ缁熻
 const qualityStatisticsInfo = () => {
-  qualityStatistics().then((res) => {
+  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)
@@ -504,7 +477,7 @@
     {
       name: '寮�绁�',
       type: 'line',
-      data: receiptAmount,
+      data: invoiceAmount,
       stack: 'Total',
       areaStyle: {
         color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -533,7 +506,7 @@
     {
       name: '鍥炴',
       type: 'line',
-      data: invoiceAmount,
+      data: receiptAmount,
       stack: 'Total',
       lineStyle: {
         width: 0
@@ -563,7 +536,7 @@
 }
 
 // 宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏锛堝亣鏁版嵁 + 鍥捐〃锛�
-const processRange = ref('week')
+const processRange = ref(1)
 const processChartData = ref([])
 
 const processXAxis = ref([
@@ -593,11 +566,11 @@
     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/>')
+      .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>`
   },
 })
@@ -637,14 +610,12 @@
 
 const processAside = computed(() => {
   const list = processChartData.value
-  const totalInput = list.reduce((s, i) => s + Number(i.input || 0), 0)
-  const totalScrap = list.reduce((s, i) => s + Number(i.scrap || 0), 0)
-  const totalOutput = list.reduce((s, i) => s + Number(i.output || 0), 0)
+  const item = list[activeProcessIndex.value] || {}
   return {
-    processName: '宸ュ簭鍚嶇О',
-    totalInput,
-    totalScrap,
-    totalOutput,
+    processName: item.name || '鏆傛棤鏁版嵁',
+    totalInput: item.input || 0,
+    totalScrap: item.scrap || 0,
+    totalOutput: item.output || 0,
   }
 })
 
@@ -653,27 +624,20 @@
   return num.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
 }
 
-const buildProcessFake = (range) => {
-  // 璁╀笉鍚屽垏鎹㈡湁鐐瑰樊寮�
-  const factor = range === 'week' ? 1 : range === 'month' ? 1.4 : 1.9
-  const baseNames = ['宸ュ簭1', '宸ュ簭2', '宸ュ簭3', '宸ュ簭4', '宸ュ簭5', '宸ュ簭6', '宸ュ簭7']
-  return baseNames.map((name, idx) => {
-    const seed = (idx + 1) * 120 * factor
-    const input = seed + (idx % 2 === 0 ? 80 : 40)
-    const scrap = Math.max(20, seed * 0.15)
-    const output = Math.max(30, seed * 0.35)
-    return {
-      name,
-      input: Number(input.toFixed(2)),
-      scrap: Number(scrap.toFixed(2)),
-      output: Number(output.toFixed(2)),
-    }
-  })
-}
-
 const refreshProcessStats = () => {
-  processChartData.value = buildProcessFake(processRange.value)
-  processYAxis.value[0].data = processChartData.value.map((i) => i.name)
+  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(() => {
@@ -694,74 +658,13 @@
   padding: 20px;
   box-sizing: border-box;
 }
+
 .dashboard-top {
   display: flex;
   gap: 20px;
   margin-bottom: 20px;
   align-items: stretch;
-  justify-content: flex-start;
-  flex-wrap: nowrap;
-}
-
-.top-left {
-  display: flex;
-  flex-direction: column;
-  gap: 20px;
-  height: 180px;
-  flex: 0 0 320px;
-  min-width: 280px;
-}
-
-.data-cards {
-  flex: 1 1 auto;
-  min-width: 0;
-  display: flex;
-  gap: 16px;
-  justify-content: flex-start;
-  background: #ffffff;
-  border-radius: 12px;
-  padding: 20px;
-  overflow: hidden;
-}
-
-.todo-panel {
-  background: #fff;
-  border-radius: 12px;
-  padding: 20px;
-  height: 180px;
-  flex: 0 0 360px;
-  min-width: 320px;
-}
-
-.welcome-banner {
-  padding: 12px 14px;
-  background: linear-gradient(135deg, rgba(229, 240, 255, 0.95), rgba(214, 232, 255, 0.75), rgba(207, 236, 255, 0.95));
-  display: flex;
-  align-items: flex-start;
   justify-content: space-between;
-  gap: 4px;
-  flex-direction: column;
-}
-
-.welcome-title {
-  flex: 1 1 auto;
-  min-width: 0;
-  font-size: 12px;
-  font-weight: bolder;
-  color: #222;
-  line-height: 1.3;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.welcome-time {
-  flex: 0 0 auto;
-  margin-top: 0;
-  font-size: 8px;
-  font-weight: bold;
-  color: rgba(0, 0, 0, 0.55);
-  white-space: nowrap;
 }
 
 .company-info {
@@ -770,6 +673,29 @@
   border-radius: 12px;
   background: #fff;
   height: 100%;
+  width: 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-title {
+  font-size: 18px;
+  font-weight: 700;
+  color: #222;
+  line-height: 1.3;
+}
+
+.welcome-user {
+  margin-right: 6px;
+}
+
+.welcome-time {
+  margin-top: 10px;
+  font-size: 16px;
+  color: rgba(0, 0, 0, 0.55);
 }
 
 .user-card {
@@ -777,6 +703,7 @@
   align-items: center;
   gap: 10px;
   padding: 18px 22px;
+  width: 100%;
 }
 
 .user-card-main {
@@ -825,25 +752,27 @@
   object-fit: cover;
   flex: 0 0 auto;
 }
-.data-cards {
-  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;
+  text-align: center;
+  margin-top: 20px;
 }
+
 .data-num {
   display: flex;
   align-items: center;
-  justify-content: space-between;
-  margin-top: 20px;
+  justify-content: center;
+  margin-top: 36px;
+  gap: 60px;
 }
+
+.data-num > div {
+  text-align: center;
+}
+
 .data-card {
   background: #fff;
   border-radius: 12px;
@@ -852,62 +781,67 @@
   box-shadow: 0 2px 8px #eee;
   display: flex;
   flex-direction: column;
-  width: 32%;
-  height: 140px;
+  width: 100%;
+  height: 100%;
 }
+
 .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.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;
+  font-size: 16px;
   color: #FFFFFF;
 }
+
 .data-value {
-  font-size: 18px;
-  font-weight: 500;
-  margin: 10px 0;
+  font-size: 26px;
+  font-weight: 600;
+  margin: 12px 0 0;
   color: #FFFFFF;
 }
-.top-left {
+
+.top-left,
+.top-middle,
+.top-right {
+  flex: 1;
   display: flex;
-  flex-direction: column;
-  gap: 20px;
-  height: 180px;
-  flex: 0 0 320px;
-  min-width: 280px;
 }
+
 .todo-panel {
   background: #fff;
   border-radius: 12px;
   padding: 20px;
-  height: 180px;
-  flex: 0 0 360px;
-  min-width: 320px;
+  width: 100%;
 }
+
 .todo-list {
-  height: 100px;
   list-style: none;
   padding: 0;
   margin: 0;
   font-size: 15px;
+  max-height: 120px;
   overflow-y: auto;
 }
+
 .todo-list li {
   border-radius: 8px;
   margin-bottom: 12px;
@@ -916,44 +850,58 @@
   display: flex;
   justify-content: space-between;
   align-items: center;
-  background: rgba(225,227,250,0.62);
+  background: rgba(225, 227, 250, 0.62);
 }
+
 .todo-title {
   font-weight: 400;
   font-size: 12px;
   color: #000000;
   position: relative;
 }
+
 .todo-title::before {
-  content: ''; /* 蹇呴渶锛岃〃绀鸿繖閲屾湁涓�涓唴瀹� */
+  content: '';
+  /* 蹇呴渶锛岃〃绀鸿繖閲屾湁涓�涓唴瀹� */
   position: absolute;
-  left: -10px; /* 瀹氫綅鍒板乏渚� */
-  top: 50%; /* 鍨傜洿灞呬腑 */
-  transform: translateY(-50%); /* 寰皟鍨傜洿灞呬腑 */
-  width: 6px; /* 鍦嗙殑鐩村緞 */
-  height: 6px; /* 鍦嗙殑鐩村緞 */
+  left: -10px;
+  /* 瀹氫綅鍒板乏渚� */
+  top: 50%;
+  /* 鍨傜洿灞呬腑 */
+  transform: translateY(-50%);
+  /* 寰皟鍨傜洿灞呬腑 */
+  width: 6px;
+  /* 鍦嗙殑鐩村緞 */
+  height: 6px;
+  /* 鍦嗙殑鐩村緞 */
   background: #498CEB;
-  border-radius: 50%; /* 璁╁叾鍙樻垚鍦嗗舰 */
+  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;
@@ -963,6 +911,7 @@
   display: flex;
   flex-direction: column;
 }
+
 .section-title {
   position: relative;
   font-size: 18px;
@@ -982,42 +931,52 @@
   background-color: #002FA7;
   border-radius: 2px;
 }
+
 .contract-info {
   display: flex;
   align-items: center;
   gap: 20px;
   height: 90px;
-  background: rgba(245,245,245,0.59);
+  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);
+  color: rgba(51, 50, 50, 0.85);
 }
-.up { color: #e57373; }
+
+.up {
+  color: #e57373;
+}
+
 .contract-list {
   margin-top: 16px;
   font-size: 14px;
@@ -1028,10 +987,12 @@
   overflow-y: auto;
   width: 460px;
 }
+
 .line {
   position: relative;
   width: 230px;
 }
+
 .line::after {
   content: '';
   position: absolute;
@@ -1042,46 +1003,55 @@
   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);
+  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;
 }
@@ -1183,76 +1153,33 @@
   .process-panel__body {
     flex-direction: column;
   }
+
   .process-panel__aside {
     width: 100%;
     flex-direction: row;
     flex-wrap: wrap;
   }
+
   .process-card {
     flex: 1;
     min-width: 220px;
   }
 }
 
-@media (max-width: 1280px) {
-  .dashboard-top {
-    flex-wrap: wrap;
-  }
-
-  .top-left {
-    flex: 1 1 320px;
-  }
-
-  .data-cards {
-    flex: 1 1 560px;
-  }
-
-  .todo-panel {
-    flex: 1 1 320px;
-    min-width: 280px;
-    height: auto;
-  }
+.process-selection-wrapper {
+  max-height: 400px;
+  overflow-y: auto;
+  padding: 10px;
 }
 
-@media (max-width: 768px) {
-  .dashboard {
-    padding: 12px;
-  }
+.process-grid {
+  display: grid;
+  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
+  gap: 12px;
+}
 
-  .dashboard-top {
-    flex-direction: column;
-    align-items: stretch;
-  }
-
-  .top-left,
-  .data-cards,
-  .todo-panel {
-    width: 100%;
-    flex: 1 1 auto;
-    min-width: 0;
-  }
-
-  .top-left {
-    height: auto;
-  }
-
-  .data-cards {
-    flex-wrap: wrap;
-  }
-
-  .data-card {
-    width: calc(50% - 8px);
-    min-width: 160px;
-  }
-
-  .welcome-banner {
-    flex-direction: column;
-    align-items: flex-start;
-
-  }
-
-  .welcome-title {
-    white-space: normal;
-  }
+:deep(.el-checkbox.is-bordered) {
+  margin-left: 0 !important;
+  width: 100%;
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3