From 9b2ace317d2b7623facf6e83c0e884572330c09d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 11 三月 2026 13:59:15 +0800
Subject: [PATCH] 进销存升级app 1.将首页与工作台分开,添加新首页样式 2.首页饼状图不展示修改

---
 src/pages/index.vue | 2201 +++++++++++++++++++++++++---------------------------------
 1 files changed, 945 insertions(+), 1,256 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index e5f9c59..bc5e836 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -1,1342 +1,1031 @@
 <template>
-	<view class="content">
-		<view class="header-section">
-			<view class="currentFactory">
-				<up-text type="primary" :text="userStore.currentFactoryName" @click="show = true" size="18" class="factoryName"
-					suffixIcon="arrow-right" :iconStyle="iconStyle"></up-text>
-			</view>
-			<up-picker :show="show" :columns="factoryList" @confirm="changeFactory" @cancel="show = false"></up-picker>
-		</view>
+  <view class="page">
+    <scroll-view class="scroll" scroll-y>
+      <!-- 椤堕儴 Banner锛氭斁鍏ユ粴鍔ㄥ尯鍩燂紝闅忛〉闈竴璧锋粴鍔紝涓嶅浐瀹氬湪椤堕儴 -->
+      <view class="hero-section">
+        <view class="bg-img">
+          <view class="hero-content">
+            <!-- 棰勭暀锛氬鍚庣画闇�瑕佸彲鍦ㄦ鏀� logo 鎴栫畝鐭彁绀� -->
+          </view>
+          <view class="hero-wave"></view>
+        </view>
+      </view>
 
-		<view class="hero-section">
-			<view class="bg-img">
-				<view class="hero-content">
-					<text class="hero-title">娴峰窛寮�蹇冮鍝�</text>
-				</view>
-				<view class="hero-wave"></view>
-			</view>
-		</view>
+      <!-- 蹇嵎鍏ュ彛 -->
+      <view class="quick-section">
+        <up-grid :border="false" col="4">
+          <up-grid-item
+            v-for="item in quickTools"
+            :key="item.label"
+            @click="handleQuickTool(item)"
+          >
+            <view class="quick-icon" :style="{ background: item.bgColor }">
+              <image :src="item.icon" class="quick-icon-img" mode="aspectFit" />
+            </view>
+            <text class="quick-text">{{ item.label }}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
 
-		<!--		<view class="notice-section">-->
-		<!--			<view class="notice">-->
-		<!--				<view class="notice-content">-->
-		<!--					<view class="notice-left">-->
-		<!--						<text class="notice-status">閫氱煡</text>-->
-		<!--					</view>-->
-		<!--					<view class="notice-separator"></view>-->
-		<!--					<view class="notice-right">-->
-		<!--						<text class="notice-label">{{currentStatus}}</text>-->
-		<!--						<text class="notice-text">褰撴棩閿�鍞澶囨暟:<text class="notice-number">{{number}}<text class="notice-unit">涓�</text></text></text>-->
-		<!--					</view>-->
-		<!--				</view>-->
-		<!--			</view>-->
-		<!--		</view>-->
+      <!-- 鏁版嵁鎬昏 -->
+      <view class="section">
+        <view class="section-header">
+          <view class="section-title">
+            <view class="title-bar" />
+            <text class="title-text">鏁版嵁鎬昏</text>
+          </view>
+          <view class="section-action" @tap="toggleOverview">
+            <text class="action-text">{{ overviewExpanded ? "鏀惰捣" : "灞曞紑" }}</text>
+            <view :class="['chev', overviewExpanded ? 'up' : 'down']" />
+          </view>
+        </view>
 
-		<!-- 钀ラ攢绠$悊妯″潡 -->
-		<view class="common-module marketing-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">钀ラ攢绠$悊</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in marketingItems" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
+        <view v-show="overviewExpanded" class="overview">
+          <view class="overview-card sales">
+            <view class="card-left">
+              <text class="card-title">閿�鍞暟鎹�</text>
+              <view class="card-metrics">
+                <view class="metric">
+                  <text class="metric-label">鏈湀钀ヤ笟棰�(鍏�)</text>
+                  <text class="metric-value">{{ overviewCards.sales.today }}</text>
+                </view>
+                <view class="metric">
+                  <text class="metric-label">鏈湀宸插紑绁�(鍏�)</text>
+                  <text class="metric-value">{{ overviewCards.sales.unbilled }}</text>
+                </view>
+              </view>
+            </view>
+          </view>
 
-		<!-- 閲囪喘绠$悊妯″潡 -->
-		<view class="common-module purchase-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">閲囪喘绠$悊</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in purchaseItems" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
+          <view class="overview-card purchase">
+            <view class="card-left">
+              <text class="card-title">閲囪喘鏁版嵁</text>
+              <view class="card-metrics">
+                <view class="metric">
+                  <text class="metric-label">鏈湀钀ヤ笟棰�(鍏�)</text>
+                  <text class="metric-value">{{ overviewCards.purchase.today }}</text>
+                </view>
+                <view class="metric">
+                  <text class="metric-label">鏈湀宸插紑绁�(鍏�)</text>
+                  <text class="metric-value">{{ overviewCards.purchase.unbilled }}</text>
+                </view>
+              </view>
+            </view>
+          </view>
 
-		<!-- 鍗忓悓鍔炲叕妯″潡 -->
-		<view class="common-module collaboration-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">鍗忓悓鍔炲叕</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in collaborationItems" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
-		<!-- 鍏ュ簱绠$悊 -->
-		<view class="common-module collaboration-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">浠撳偍鐗╂祦</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in inventoryManagement" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
+          <view class="overview-card stock">
+            <view class="card-left">
+              <text class="card-title">搴撳瓨鏁版嵁</text>
+              <view class="card-metrics">
+                <view class="metric">
+                  <text class="metric-label">搴撳瓨鏁伴噺</text>
+                  <text class="metric-value">{{ overviewCards.stock.today }}</text>
+                </view>
+                <view class="metric">
+                  <text class="metric-label">浠婃棩搴撳瓨鏁伴噺</text>
+                  <text class="metric-value">{{ overviewCards.stock.unbilled }}</text>
+                </view>
+              </view>
+            </view>
+          </view>
+        </view>
+      </view>
 
-		<!-- 鐢熶骇绠℃帶妯″潡 -->
-		<view class="common-module production-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">鐢熶骇绠℃帶</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in productionItems" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
+      <!-- 瀹㈡埛鍚堝悓閲戦鍒嗘瀽 -->
+      <view class="section">
+        <view class="section-header">
+          <view class="section-title">
+            <view class="title-bar" />
+            <text class="title-text">瀹㈡埛鍚堝悓閲戦鍒嗘瀽</text>
+          </view>
+          <view class="section-action" @tap="goMore">
+            <text class="action-text">鏇村</text>
+            <view class="chev right" />
+          </view>
+        </view>
 
-		<!-- 璁惧绠$悊妯″潡 -->
-		<view class="common-module equipment-module">
-			<view class="module-header">
-				<view class="module-title-container">
-					<text class="module-title">璁惧绠$悊</text>
-				</view>
-			</view>
-			<view class="module-content">
-				<up-grid :border="false" col="4">
-					<up-grid-item v-for="(item, index) in equipmentItems" :key="index" @click="handleCommonItemClick(item)">
-						<view class="icon-container" :style="{ background: item.bgColor }">
-							<up-icon :name="item.icon" :size="58" color="#ffffff"></up-icon>
-						</view>
-						<text class="item-label">{{item.label}}</text>
-					</up-grid-item>
-				</up-grid>
-			</view>
-		</view>
-	</view>
+        <view class="analysis-card">
+          <view class="chart-row">
+            <view class="chart-box big">
+              <qiun-data-charts
+                type="ring"
+                canvasId="home_contract_ring"
+                :canvas2d="isCanvas2d"
+                :reshow="chartReady"
+                :opts="ringOpts"
+                :chartData="ringChartData"
+              />
+            </view>
+          </view>
+
+          <view class="summary">
+            <view class="summary-main">
+              <text class="summary-label">鎬诲悎鍚岄噾棰�(鍏�)</text>
+              <text class="summary-value">{{ contractSummaryView.sumText }}</text>
+            </view>
+            <view class="summary-sub">
+              <view class="summary-chip">
+                <text class="chip-label">鍛ㄥ悓姣�</text>
+                <text class="chip-value">{{ contractSummaryView.ynyText }}</text>
+              </view>
+              <view class="summary-chip">
+                <text class="chip-label">鏃ョ幆姣�</text>
+                <text class="chip-value">{{ contractSummaryView.chainText }}</text>
+              </view>
+            </view>
+          </view>
+
+          <view class="list-row">
+            <swiper
+              class="customer-swiper"
+              :current="customerSwiperIndex"
+              :indicator-dots="false"
+              :autoplay="false"
+              :circular="false"
+              @change="onCustomerSwiperChange"
+            >
+              <swiper-item v-for="(page, pIdx) in customerPages" :key="pIdx">
+                <view class="customer-page">
+                  <view v-for="item in page" :key="item.key" class="customer-item">
+                    <view class="customer-row">
+                      <view class="customer-name">
+                        <image
+                          v-if="item.rank === 1"
+                          class="rank-icon"
+                          :src="imgNum1"
+                          mode="heightFix"
+                        />
+                        <image
+                          v-else-if="item.rank === 2"
+                          class="rank-icon"
+                          :src="imgNum2"
+                          mode="heightFix"
+                        />
+                        <image
+                          v-else-if="item.rank === 3"
+                          class="rank-icon"
+                          :src="imgNum3"
+                          mode="heightFix"
+                        />
+                        <text class="name-text">{{ item.name }}</text>
+                      </view>
+                      <view class="customer-rate">
+                        <text class="rate-label">鍗犳瘮</text>
+                        <text class="rate-value">{{ item.rateText }}</text>
+                      </view>
+                      <view class="amount">
+                        <text class="amount-num">{{ item.valueText }}</text>
+                        <text class="amount-unit">鍏�</text>
+                      </view>
+                    </view>
+                  </view>
+                </view>
+              </swiper-item>
+            </swiper>
+
+            <view v-if="customerPages.length > 1" class="dots">
+              <view
+                v-for="i in customerPages.length"
+                :key="i"
+                :class="['dot', customerSwiperIndex === i - 1 ? 'active' : '']"
+              />
+            </view>
+          </view>
+        </view>
+      </view>
+
+      <view class="bottom-space" />
+    </scroll-view>
+
+  </view>
 </template>
 
 <script setup>
-	import {
-		ref,
-		onMounted,
-		nextTick,
-		reactive
-	} from 'vue';
-	import dayjs from "dayjs"
-	import {
-		userLoginFacotryList,
-		noticesList
-	} from "@/api/login";
-	import modal from "@/plugins/modal";
-	import useUserStore from "@/store/modules/user";
-	import { onShow } from '@dcloudio/uni-app'
+import { computed, onMounted, ref } from "vue";
+import { analysisCustomerContractAmounts, getBusiness } from "@/api/viewIndex";
 
-	const userStore = useUserStore()
-	const factoryId = ref('');
-	const show = ref(false);
-	const factoryList = ref([]);
-	const factoryListTem = ref([]);
-	const iconStyle = {
-		fontSize: '1.125rem',
-		color: '#2979ff'
-	}
+const imgNum1 = "/static/images/index/num1.png";
+const imgNum2 = "/static/images/index/num2.png";
+const imgNum3 = "/static/images/index/num3.png";
 
-	// 閫氱煡鐘舵�佸垏鎹�
-	const statusList = ['閿�鍞�', '閲囪喘']
-	let statusIndex = 0
-	const currentStatus = ref(statusList[0])
-	const number = ref(7643)
+const quickTools = [
+  {
+    label: "鐢熶骇鎶ュ伐",
+    icon: "/static/images/icon/shengchanbaogong@2x.png",
+    bgColor: "linear-gradient(135deg,#3b82f6,#2563eb)",
+    route: "/pages/productionManagement/productionReport/index",
+  },
+  {
+    label: "璁惧宸℃",
+    icon: "/static/images/icon/xunjianshangchuan@2x.png",
+    bgColor: "linear-gradient(135deg,#22c55e,#16a34a)",
+    route: "/pages/inspectionUpload/index",
+  },
+  {
+    label: "璁惧淇濆吇",
+    icon: "/static/images/icon/shbeibaoyang@2x.png",
+    bgColor: "linear-gradient(135deg,#f97316,#ea580c)",
+    route: "/pages/equipmentManagement/upkeep/index",
+  },
+  {
+    label: "璁惧鎶ヤ慨",
+    icon: "/static/images/icon/shbeibaoxiu@2x.png",
+    bgColor: "linear-gradient(135deg,#a855f7,#7c3aed)",
+    route: "/pages/equipmentManagement/repair/index",
+  },
+];
 
-	// 瀹氭椂鍣ㄥ垏鎹㈤�氱煡鐘舵��
-	const startStatusTimer = () => {
-		setInterval(() => {
-			statusIndex = (statusIndex + 1) % statusList.length
-			currentStatus.value = statusList[statusIndex]
-		}, 3000)
-	}
+const isCanvas2d = ref(false);
 
-	// 钀ラ攢绠$悊鍔熻兘鏁版嵁
-	const marketingItems = reactive([{
-			icon: '/static/images/icon/xiaoshoutaizhang@2x.png',
-			label: '閿�鍞彴璐�',
-		},
-		{
-			icon: '/static/images/icon/kaipiaodengji@2x.png',
-			label: '寮�绁ㄧ櫥璁�',
-		},
-		{
-			icon: '/static/images/icon/kaipiaotaizhang@2x.png',
-			label: '寮�绁ㄥ彴璐�',
-		},
-		{
-			icon: '/static/images/icon/huikuandengji@2x.png',
-			label: '鍥炴鐧昏',
-		},
-		{
-			icon: '/static/images/icon/huikuanliushui@2x.png',
-			label: '鍥炴娴佹按',
-		},
-		{
-			icon: '/static/images/icon/kehuwanglai@2x.png',
-			label: '瀹㈡埛寰�鏉�',
-		}
-	]);
+const overviewExpanded = ref(true);
+const businessRaw = ref({});
+const contractRawList = ref([]);
+const chartReady = ref(false);
+const contractSummary = ref({ sum: "0", chain: "0", yny: "0" });
 
-	// 閲囪喘绠$悊鍔熻兘鏁版嵁
-	const purchaseItems = reactive([{
-			icon: '/static/images/icon/caigoutaizhang@2x.png',
-			label: '閲囪喘鍙拌处',
-		},
-		{
-			icon: '/static/images/icon/laipiaodengji@2x.png',
-			label: '鏉ョエ鐧昏',
-		},
-		{
-			icon: '/static/images/icon/laipiaotaizhang@2x.png',
-			label: '鏉ョエ鍙拌处',
-		},
-		{
-			icon: '/static/images/icon/fukuanjingji@2x.png',
-			label: '浠樻鐧昏',
-		},
-		{
-			icon: '/static/images/icon/fukuanliushui@2x.png',
-			label: '浠樻娴佹按',
-		},
-		{
-			icon: '/static/images/icon/gongyingshangwanglai@2x.png',
-			label: '渚涘簲鍟嗗線鏉�',
-		},
-	]);
+// 瀹㈡埛鍚堝悓閲戦鍒嗘瀽锛氭棤闇�绛涢�夐」锛堟寜鎺ュ彛榛樿杩斿洖灞曠ず锛�
 
-	// 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
-	const collaborationItems = reactive([{
-			icon: '/static/images/icon/gongchuguanli@2x.png',
-			label: '鍏嚭绠$悊',
-		},
-		{
-			icon: '/static/images/icon/qingjiaguanli@2x.png',
-			label: '璇峰亣绠$悊',
-		},
-		{
-			icon: '/static/images/icon/chuchaiguanli@2x.png',
-			label: '鍑哄樊绠$悊',
-		},
-		{
-			icon: '/static/images/icon/xietongshenpi@2x.png',
-			label: '鍗忓悓瀹℃壒',
-		},
-		{
-			icon: '/static/images/icon/kehubaifang@2x.png',
-			label: '瀹㈡埛鎷滆',
-		}
-	]);
-	// 鍗忓悓鍔炲叕鍔熻兘鏁版嵁inventoryManagement/receiptManagement
-	const inventoryManagement = reactive([{
-			icon: '/static/images/icon/rukuguanli@2x.png',
-			label: '鑷畾涔夊叆搴�',
-		},
-		{
-			icon: '/static/images/icon/zidingyichuku.png',
-			label: '鑷畾涔夊嚭搴�',
-		},
-	]);
+function toggleOverview() {
+  overviewExpanded.value = !overviewExpanded.value;
+}
 
-	// 鐢熶骇绠℃帶鍔熻兘鏁版嵁
-	const productionItems = reactive([{
-			icon: '/static/images/icon/shengchandingdan@2x.png',
-			label: '鐢熶骇璁㈠崟',
-			bgColor: '#FF9800'
-		},
-		{
-			icon: '/static/images/icon/shengchanpaigong@2x.png',
-			label: '鐢熶骇娲惧伐',
-			bgColor: '#FF6B35'
-		},
-		{
-			icon: '/static/images/icon/shengchanpaichan@2x.png',
-			label: '宸ュ簭鎺掍骇',
-			bgColor: '#E91E63'
-		},
-		{
-			icon: '/static/images/icon/shengchanbaogong@2x.png',
-			label: '鐢熶骇鎶ュ伐',
-			bgColor: '#673AB7'
-		},
-		{
-			icon: '/static/images/icon/shengchanhesuan@2x.png',
-			label: '鐢熶骇鏍哥畻',
-			bgColor: '#3F51B5'
-		}
-	]);
+function handleQuickTool(item) {
+  if (!item?.route) return;
+  uni.navigateTo({ url: item.route });
+}
 
-	// 璁惧绠$悊鍔熻兘鏁版嵁
-	const equipmentItems = reactive([{
-			icon: '/static/images/icon/shebeitaizhang@2x.png',
-			label: '璁惧鍙拌处',
-		},
-		{
-			icon: '/static/images/icon/shbeibaoxiu@2x.png',
-			label: '璁惧鎶ヤ慨',
-		},
-		{
-			icon: '/static/images/icon/shbeibaoyang@2x.png',
-			label: '璁惧淇濆吇',
-		},
-		{
-			icon: '/static/images/icon/xunjianshangchuan@2x.png',
-			label: '宸℃涓婁紶',
-		},
-		// {
-		// 	icon: '/static/images/icon/guzhangfenxi@2x.png',
-		// 	label: '鍒嗘瀽杩芥函',
-		// 	bgColor: '#ff9800'
-		// },
-		// {
-		// 	icon: '/static/images/icon/zhinengpaidan@2x.png',
-		// 	label: '鏅鸿兘娲惧崟',
-		// 	bgColor: '#ff6b35'
-		// },
-		// {
-		// 	icon: '/static/images/icon/zuoyezhidao@2x.png',
-		// 	label: '浣滀笟鎸囧',
-		// 	bgColor: '#4caf50'
-		// },
-		// {
-		// 	icon: '/static/images/icon/jieguoyanzheng@2x.png',
-		// 	label: '缁撴灉楠岃瘉',
-		// 	bgColor: '#9c27b0'
-		// }
-	]);
+function goMore() {
+  uni.showToast({ title: "鏇村鍔熻兘寰呮帴鍏�", icon: "none" });
+}
 
-	// 澶勭悊甯哥敤鍔熻兘鐐瑰嚮
-	const handleCommonItemClick = (item) => {
-		// 鏍规嵁涓嶅悓鐨勫姛鑳介」杩涜璺宠浆
-		switch (item.label) {
-			case '閿�鍞彴璐�':
-				uni.navigateTo({
-					url: '/pages/sales/salesAccount/index'
-				});
-				break;
-			case '寮�绁ㄧ櫥璁�':
-				uni.navigateTo({
-					url: '/pages/sales/invoicingRegistration/index'
-				});
-				break;
-			case '寮�绁ㄥ彴璐�':
-				uni.navigateTo({
-					url: '/pages/sales/invoiceLedger/index'
-				});
-				break;
-			case '鍥炴鐧昏':
-				uni.navigateTo({
-					url: '/pages/sales/receiptPayment/index'
-				});
-				break;
-			case '鍥炴娴佹按':
-				uni.navigateTo({
-					url: '/pages/sales/receiptPaymentHistory/index'
-				});
-				break;
-			case '瀹㈡埛寰�鏉�':
-				uni.navigateTo({
-					url: '/pages/sales/receiptPaymentLedger/index'
-				});
-				break;
-			case '閲囪喘鍙拌处':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/procurementLedger/index'
-				});
-				break;
-			case '鏉ョエ鐧昏':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/invoiceEntry/index'
-				});
-				break;
-			case '鏉ョエ鍙拌处':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/procurementInvoiceLedger/index'
-				});
-				break;
-			case '浠樻鐧昏':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/paymentEntry/index'
-				});
-				break;
-			case '浠樻娴佹按':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/receiptPaymentHistory/index'
-				});
-				break;
-			case '渚涘簲鍟嗗線鏉�':
-				uni.navigateTo({
-					url: '/pages/procurementManagement/paymentLedger/index'
-				});
-				break;
-			case '鍏嚭绠$悊':
-				uni.navigateTo({
-					url: '/pages/cooperativeOffice/collaborativeApproval/index1'
-				});
-				break;
-			case '璇峰亣绠$悊':
-				uni.navigateTo({
-					url: '/pages/cooperativeOffice/collaborativeApproval/index2'
-				});
-				break;
-			case '鍑哄樊绠$悊':
-				uni.navigateTo({
-					url: '/pages/cooperativeOffice/collaborativeApproval/index3'
-				});
-				break;
-			case '鍗忓悓瀹℃壒':
-				uni.navigateTo({
-					url: '/pages/cooperativeOffice/collaborativeApproval/index'
-				});
-				break;
-			case '瀹㈡埛鎷滆':
-				uni.navigateTo({
-					url: '/pages/cooperativeOffice/clientVisit/index'
-				});
-				break;
-			case '鑷畾涔夊叆搴�':
-				uni.navigateTo({
-					url: '/pages/inventoryManagement/receiptManagement/index'
-				});
-				break;
-			case '鑷畾涔夊嚭搴�':
-				uni.navigateTo({
-					url: '/pages/inventoryManagement/issueManagement/index'
-				});
-				break;
-			case '鐢熶骇璁㈠崟':
-				uni.navigateTo({
-					url: '/pages/productionManagement/productionOrder/index'
-				});
-				break;
-			case '鐢熶骇娲惧伐':
-				uni.navigateTo({
-					url: '/pages/productionManagement/productionDispatching/index'
-				});
-				break;
-			case '宸ュ簭鎺掍骇':
-				uni.navigateTo({
-					url: '/pages/productionManagement/operationScheduling/index'
-				});
-				break;
-			case '鐢熶骇鎶ュ伐':
-				uni.navigateTo({
-					url: '/pages/productionManagement/productionReporting/index'
-				});
-				break;
-			case '鐢熶骇鏍哥畻':
-				uni.navigateTo({
-					url: '/pages/productionManagement/productionCosting/index'
-				});
-				break;
-			case '璁惧鍙拌处':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/ledger/index'
-				});
-				break;
-			case '璁惧鎶ヤ慨':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/repair/index'
-				});
-				break;
-			case '璁惧淇濆吇':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/upkeep/index'
-				});
-				break;
-			case '宸℃涓婁紶':
-				uni.navigateTo({
-					url: '/pages/inspectionUpload/index'
-				});
-				break;
-			case '鍒嗘瀽杩芥函':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/faultAnalysis/index'
-				});
-				break;
-			case '鏅鸿兘娲惧崟':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/smartDispatch/index'
-				});
-				break;
-			case '浣滀笟鎸囧':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/sop/index'
-				});
-				break;
-			case '缁撴灉楠岃瘉':
-				uni.navigateTo({
-					url: '/pages/equipmentManagement/verification/index'
-				});
-				break;
-			default:
-				uni.showToast({
-					title: `鐐瑰嚮浜�${item.label}`,
-					icon: 'none'
-				});
-		}
-	};
 
-	// 鍒涘缓瀵瑰瓙缁勪欢鐨勫紩鐢�
-	const uToastRef = ref(null);
+function getByPath(obj, path) {
+  if (!obj || !path) return undefined;
+  const seg = String(path).split(".");
+  let cur = obj;
+  for (const k of seg) {
+    if (cur == null) return undefined;
+    cur = cur[k];
+  }
+  return cur;
+}
 
-	function getUserLoginFacotryList() {
-		userLoginFacotryList({
-			userName: userStore.nickName
-		}).then(res => {
-			// 妫�鏌es.data鏄惁涓烘暟缁�
-			factoryList.value[0] = []
-			if (res.data && Array.isArray(res.data)) {
-				factoryListTem.value = res.data
-				res.data.forEach(item => {
-					factoryList.value[0].push(item.deptName)
-				})
-				factoryId.value = userStore.currentDeptId
-			} else {
-				// 濡傛灉res.data涓嶆槸鏁扮粍锛岃缃负绌烘暟缁�
-				factoryList.value = []
-			}
-		}).catch(error => {
-			modal.msgError('鑾峰彇鍏徃鍒楄〃澶辫触:', error)
-			factoryList.value = []
-		})
-	}
-	const changeFactory = async (arr) => {
-		show.value = false;
-		const factoryId = factoryListTem.value[arr.indexs[0]].deptId
-		const loginForm = {
-			username: userStore.name,
-			password: uni.getStorageSync('remembered_password'),
-			factoryId: factoryId,
-		}
-		modal.loading("鍒锋柊涓紝璇疯�愬績绛夊緟...")
-		userStore.loginCheckFactory(loginForm).then(() => {
-			modal.closeLoading()
-			nextTick(() => {
-				loginSuccess()
-			});
-		}).catch(() => {
-			modal.closeLoading()
-		})
-	}
+function pick(obj, paths, fallback = undefined) {
+  for (const p of paths) {
+    const v = getByPath(obj, p);
+    if (v !== undefined && v !== null && v !== "") return v;
+  }
+  return fallback;
+}
 
-	function loginSuccess(result) {
-		uni.reLaunch({
-			url: '/pages/index'
-		});
-	}
+function toNumber(v) {
+  const n = Number(v);
+  return Number.isFinite(n) ? n : NaN;
+}
 
-	// 瀹氫箟鏂规硶
-	const click = (name) => {
-		if (uToastRef.value) {
-			uToastRef.value.success(`鐐瑰嚮浜嗙${name + 1}涓猔); // 娉ㄦ剰锛氳繖閲屽姞1鏄洜涓洪�氬父鎴戜滑鏄粠绗�1涓紑濮嬭鏁扮殑
-		}
-	};
-	const isShowNoticesList = ref(true)
-	// 鑾峰彇鍏憡鏁伴噺
-	const getNoticesList = () => {
-		if(!isShowNoticesList.value){
-			return
-		}
-		const current_date = dayjs().format('YYYY-MM-DD')
-		noticesList({
-			current:-1,
-			size:-1,
-			status: 1,
-			current_date
-		}).then(resp => {
-			console.log('noticesList',resp)
-			if (resp.code != 200 || !resp.data||!resp.data.records||!resp.data.records.length) {
-				return
-			}
-			const res = uni.getAppAuthorizeSetting();
-			if (res.notificationAuthorized == 'denied') {
-				uni.showModal({
-					title: '鎻愮ず',
-					content: '璇峰湪璁剧疆涓紑鍚�氱煡鏉冮檺',
-					success: (res) => {
-						if (res.confirm) {
-							uni.openAppAuthorizeSetting({
-								success: (res) => {}
-							});
-						}else{
-							isShowNoticesList.value = false
-						}
-					}
-				});
-				return
-			}
-			resp.data.records.map(item=>{
-				createPushMessage(item.title)
-			})
-			
-		}).catch(error => {
-			modal.msgError('鑾峰彇鍏憡鏁伴噺:', error)
-		})
-	}
+function formatMoneyWan(v) {
+  const n = toNumber(v);
+  if (!Number.isFinite(n)) return "--";
+  const wan = n >= 10000 ? n / 10000 : n;
+  const fixed = wan >= 100 ? wan.toFixed(0) : wan >= 10 ? wan.toFixed(1) : wan.toFixed(2);
+  return fixed.replace(/\.0+$/, "");
+}
 
-	const createPushMessage = (text) => {
-		uni.createPushMessage({
-			title: '鍏憡閫氱煡',
-			content: text||'',
-			success: (resp) => {
-				console.log('success', resp)
-				isShowNoticesList.value = false
-			},
-			fail: (resp) => {
-				console.log('fail', resp)
-			}
-		})
-	}
+function formatWanFromYuan(v) {
+  const n = toNumber(v);
+  if (!Number.isFinite(n)) return "--";
+  const wan = n / 10000;
+  const fixed = wan >= 100 ? wan.toFixed(0) : wan >= 10 ? wan.toFixed(1) : wan.toFixed(2);
+  return fixed.replace(/\.0+$/, "");
+}
 
-	onMounted(() => {
-		// 璁剧疆鐢ㄦ埛淇℃伅
-		userStore.getInfo()
-		getUserLoginFacotryList()
-		// 鍚姩閫氱煡鐘舵�佸畾鏃跺櫒
-		startStatusTimer()
-	});
-	onShow(()=>{
-		getNoticesList()
-	})
+function formatPlain(v) {
+  const n = toNumber(v);
+  if (!Number.isFinite(n)) return "--";
+  const fixed = n >= 100 ? n.toFixed(0) : n >= 10 ? n.toFixed(1) : n.toFixed(2);
+  return fixed.replace(/\.0+$/, "");
+}
+
+function formatPercent(v) {
+  const n = toNumber(v);
+  if (!Number.isFinite(n)) return "--";
+  const p = n > 1 ? n : n * 100;
+  return `${p.toFixed(1).replace(/\.0$/, "")}%`;
+}
+
+const overviewCards = computed(() => {
+  const b = businessRaw.value || {};
+
+  // /home/business 鍏煎瀛楁锛堜綘鎻愪緵鐨勭粨鏋勪紭鍏堬級
+  const monthSaleMoney = pick(b, ["monthSaleMoney", "sale.monthMoney", "sales.monthMoney", "sales.monthSaleMoney"]);
+  const monthSaleHaveMoney = pick(b, ["monthSaleHaveMoney", "sale.monthHaveMoney", "sales.monthHaveMoney"]);
+  const monthPurchaseMoney = pick(b, ["monthPurchaseMoney", "purchase.monthMoney", "procurement.monthMoney"]);
+  const monthPurchaseHaveMoney = pick(b, ["monthPurchaseHaveMoney", "purchase.monthHaveMoney", "procurement.monthHaveMoney"]);
+  const inventoryNum = pick(b, ["inventoryNum", "stock.inventoryNum", "inventory.num", "stock.num"]);
+  const todayInventoryNum = pick(b, ["todayInventoryNum", "stock.todayInventoryNum", "inventory.todayNum", "stock.todayNum"]);
+
+  return {
+    // 閲戦鎸夆�滃厓鈥濆睍绀�
+    sales: { today: formatPlain(monthSaleMoney), unbilled: formatPlain(monthSaleHaveMoney) },
+    purchase: { today: formatPlain(monthPurchaseMoney), unbilled: formatPlain(monthPurchaseHaveMoney) },
+    // 搴撳瓨涓烘暟閲忥紙涓嶅仛鈥滀竾鈥濇崲绠楋級
+    stock: { today: formatPlain(inventoryNum), unbilled: formatPlain(todayInventoryNum) },
+  };
+});
+
+const contractSummaryView = computed(() => {
+  const sumText = formatPlain(contractSummary.value?.sum);
+  const chainText = formatPlain(contractSummary.value?.chain);
+  const ynyText = formatPlain(contractSummary.value?.yny);
+  return {
+    sumText,
+    chainText,
+    ynyText,
+  };
+});
+
+const ringOpts = computed(() => {
+  const totalYuan = formatPlain(contractSummary.value?.sum);
+  return {
+    padding: [0, 0, 0, 0],
+    legend: { show: false },
+    rotate: false,
+    dataLabel: false,
+    title: { name: totalYuan, fontSize: 18, color: "#2b2b2b" },
+    subtitle: { name: "鍚堝悓閲戦(鍏�)", fontSize: 12, color: "#8a94a6" },
+    extra: {
+      ring: {
+        ringWidth: 18,
+        activeOpacity: 0.5,
+        activeRadius: 8,
+        offsetAngle: 0,
+        labelWidth: 0,
+        border: true,
+        borderWidth: 2,
+        borderColor: "#FFFFFF",
+      },
+    },
+  };
+});
+
+const ringChartData = computed(() => {
+  const list = Array.isArray(contractRawList.value) ? contractRawList.value : [];
+  const top = list.slice(0, 5);
+  const other = list.slice(5);
+  const otherSum = other.reduce((acc, cur) => acc + (Number(cur.value) || 0), 0);
+
+  const data = [
+    ...top.map((x) => ({ name: x.name, value: Number(x.value) || 0 })),
+    ...(otherSum > 0 ? [{ name: "鍏朵粬", value: otherSum }] : []),
+  ].filter((x) => x.value > 0);
+
+  return { series: [{ data }] };
+});
+
+const customerSwiperIndex = ref(0);
+function onCustomerSwiperChange(e) {
+  customerSwiperIndex.value = e.detail?.current || 0;
+}
+
+const customerPages = computed(() => {
+  const list = Array.isArray(contractRawList.value) ? contractRawList.value : [];
+  const pageSize = 2;
+  const pages = [];
+  for (let i = 0; i < list.length; i += pageSize) pages.push(list.slice(i, i + pageSize));
+  return pages.length ? pages : [[]];
+});
+
+function normalizeContractList(raw) {
+  const rows = Array.isArray(raw?.item) ? raw.item : [];
+
+  const mapped = rows
+    .map((it, idx) => {
+      const name = pick(it, ["name"], `鍏徃${idx + 1}`);
+      const value = pick(it, ["value"], 0);
+      const rate = pick(it, ["rate"], 0);
+
+      return {
+        key: `${idx}-${name}`,
+        name: String(name),
+        value: toNumber(value),
+        valueText: formatPlain(value),
+        rate: toNumber(rate),
+        rateText: `${formatPlain(rate)}%`,
+      };
+    })
+    .sort((a, b) => (b.rate || 0) - (a.rate || 0))
+    .map((it, index) => ({ ...it, rank: index + 1 }));
+
+  return mapped;
+}
+
+async function loadHome() {
+  chartReady.value = false;
+  try {
+    const [bRes, cRes] = await Promise.all([getBusiness(), analysisCustomerContractAmounts()]);
+    businessRaw.value = bRes?.data || {};
+    const cData = cRes?.data || {};
+    contractSummary.value = {
+      sum: pick(cData, ["sum"], "0"),
+      chain: pick(cData, ["chain"], "0"),
+      yny: pick(cData, ["yny"], "0"),
+    };
+    contractRawList.value = normalizeContractList(cData);
+  } catch (e) {
+    contractSummary.value = { sum: "0", chain: "0", yny: "0" };
+    contractRawList.value = normalizeContractList({ item: [] });
+  } finally {
+    customerSwiperIndex.value = 0;
+    chartReady.value = true;
+  }
+}
+
+onMounted(() => {
+  try {
+    const platform = uni.getSystemInfoSync().platform;
+    isCanvas2d.value = platform === "android" || platform === "ios";
+  } catch (e) {
+    isCanvas2d.value = false;
+  }
+  loadHome();
+});
 </script>
 
 <style scoped lang="scss">
-	.content {
-		background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
-		min-height: 100vh;
-		padding: 1.25rem;
-		/* 涓烘墍鏈夎澶囪缃熀纭�padding-top */
-		padding-top: 40px;
-		position: relative;
-
-		/* iOS璁惧浣跨敤env()鍑芥暟澶勭悊瀹夊叏鍖哄煙 */
-		padding-top: env(safe-area-inset-top);
-
-		/* 涓哄畨鍗撹澶囪缃洿澶х殑椤堕儴鍐呰竟璺� */
-		/* #ifdef APP-PLUS && !MP && !H5 */
-		padding-top: 45px;
-		/* #endif */
-
-		/* H5鍜屽皬绋嬪簭骞冲彴鐨勯�氱敤鏍峰紡 */
-		/* #ifdef H5 || MP */
-		padding-top: 30px;
-		/* #endif */
-
-		&::before {
-			content: '';
-			position: fixed;
-			top: 0;
-			left: 0;
-			right: 0;
-			bottom: 0;
-			background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(41, 121, 255, 0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
-			pointer-events: none;
-			z-index: -1;
-		}
-
-		&::after {
-			content: '';
-			position: fixed;
-			top: 0;
-			left: 0;
-			right: 0;
-			bottom: 0;
-			background: radial-gradient(circle at 20% 80%, rgba(41, 121, 255, 0.02) 0%, transparent 50%),
-				radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.02) 0%, transparent 50%);
-			pointer-events: none;
-			z-index: -1;
-		}
-	}
-
-	.header-section {
-		margin-bottom: 1rem;
-		animation: fadeInDown 0.6s ease-out;
-		/* 涓哄畨鍗撹澶囬澶栬皟鏁村ご閮ㄤ綅缃� */
-		/* #ifdef APP-PLUS && !MP && !H5 */
-		margin-top: 10px;
-		/* #endif */
-	}
-
-	.currentFactory {
-		margin-top: 0.5rem;
-		margin-left: 0.25rem;
-		font-weight: 500;
-		display: flex;
-	}
-
-	.factoryName {
-		width: auto;
-	}
-
-	:deep(.u-text) {
-		align-items: center;
-	}
-
-	.hero-section {
-		margin-bottom: 1rem;
-		animation: fadeInUp 0.6s ease-out 0.1s both;
-	}
-
-	.bg-img {
-		width: 100%;
-		height: 8.75rem;
-		background-image: url("../static/images/banner/backview.png");
-		background-size: cover;
-		border-radius: 0.75rem;
-		position: relative;
-		overflow: hidden;
-		box-shadow: 0 0.25rem 1.25rem rgba(41, 121, 255, 0.15);
-
-		&::before {
-			content: '';
-			position: absolute;
-			top: -50%;
-			left: -50%;
-			width: 200%;
-			height: 200%;
-			background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05), transparent);
-			animation: rotate 20s linear infinite;
-		}
-
-		&::after {
-			content: '';
-			position: absolute;
-			top: 0;
-			right: 0;
-			width: 7.5rem;
-			height: 7.5rem;
-			background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
-			border-radius: 50%;
-			transform: translate(2.5rem, -2.5rem);
-		}
-	}
-
-	.hero-content {
-		position: relative;
-		z-index: 1;
-		padding: 1.25rem 1.25rem 1.6rem 1.25rem;
-		height: 100%;
-		display: flex;
-		flex-direction: column;
-		align-items: flex-start;
-		justify-content: flex-start;
-	}
-
-	.hero-title {
-		color: #ffffff;
-		font-size: 1.625rem;
-		font-weight: 700;
-		letter-spacing: 0.03125rem;
-		text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
-	}
-
-	.hero-subtitle {
-		font-size: 0.8125rem;
-		margin-top: 0.375rem;
-	}
-
-	.hero-wave {
-		height: 2.75rem;
-	}
-
-	.hero-subtitle {
-		color: rgba(255, 255, 255, 0.9);
-		font-size: 0.8125rem;
-		margin-top: 0.375rem;
-		font-weight: 400;
-		text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
-	}
-
-	.hero-wave {
-		position: absolute;
+.page {
+	background: #f6f7fb;
+	min-height: 100vh;
+	// padding: 12px;
+	/* 涓烘墍鏈夎澶囪缃熀纭�padding-top锛堝寘鍚畨鍏ㄥ尯锛� */
+	padding-top: calc(env(safe-area-inset-top) + 30px);
+	position: relative;
+	
+	/* 涓哄畨鍗撹澶囪缃洿澶х殑椤堕儴鍐呰竟璺� */
+	/* #ifdef APP-PLUS && !MP && !H5 */
+	padding-top: calc(env(safe-area-inset-top) + 45px);
+	/* #endif */
+	
+	/* H5鍜屽皬绋嬪簭骞冲彴鐨勯�氱敤鏍峰紡 */
+	/* #ifdef H5 || MP */
+	padding-top: calc(env(safe-area-inset-top) + 30px);
+	/* #endif */
+	&::before {
+		content: "";
+		position: fixed;
+		top: 0;
 		left: 0;
 		right: 0;
 		bottom: 0;
-		height: 2.75rem;
-		background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%23ffffff' fill-opacity='0.2' d='M0,224L48,218.7C96,213,192,203,288,197.3C384,192,480,192,576,176C672,160,768,128,864,122.7C960,117,1056,139,1152,144C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'></path></svg>") no-repeat bottom center/cover;
+		background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="12" cy="12" r="1" fill="rgba(41, 121, 255, 0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
 		pointer-events: none;
+		z-index: -1;
 	}
-
-
-	.notice-section {
-		margin-bottom: 1rem;
-		animation: fadeInUp 0.6s ease-out 0.2s both;
+	
+	&::after {
+		content: "";
+		position: fixed;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+		background: radial-gradient(
+				circle at 20% 80%,
+				rgba(41, 121, 255, 0.02) 0%,
+				transparent 55%
+		),
+		radial-gradient(
+				circle at 80% 20%,
+				rgba(156, 39, 176, 0.015) 0%,
+				transparent 55%
+		);
+		pointer-events: none;
+		z-index: -1;
 	}
+}
+.hero-section {
+	margin: 0 12px;
+	margin-bottom: 12px;
+	animation: fadeInUp 0.6s ease-out 0.1s both;
+}
 
-	.notice {
-		width: 100%;
-		background: linear-gradient(135deg, #EAF2FF 0%, #BBDEFB 100%);
-		border: 0.0625rem solid #e3f2fd;
-		border-radius: 0.75rem;
-		padding: 1rem;
-		box-shadow: 0 0.25rem 1.25rem rgba(41, 121, 255, 0.08);
-		position: relative;
-		overflow: hidden;
-
-		&::before {
-			content: '';
-			position: absolute;
-			top: -50%;
-			left: -50%;
-			width: 200%;
-			height: 200%;
-			background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
-			animation: shine 4s infinite;
-		}
-
-		&::after {
-			content: '';
-			position: absolute;
-			top: 0;
-			right: 0;
-			width: 5rem;
-			height: 5rem;
-			background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
-			border-radius: 50%;
-			transform: translate(1.875rem, -1.875rem);
-		}
-
-		&:hover {
-			transform: translateY(-0.125rem);
-			box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.1);
-		}
+.bg-img {
+	width: 100%;
+	height: 9.25rem;
+	background-image: url("../static/images/banner/backview.png");
+	background-size: cover;
+	border-radius: 14px;
+	position: relative;
+	overflow: hidden;
+	box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
+	
+	&::before {
+		content: "";
+		position: absolute;
+		top: -50%;
+		left: -50%;
+		width: 200%;
+		height: 200%;
+		background: conic-gradient(
+				from 0deg,
+				transparent,
+				rgba(255, 255, 255, 0.1),
+				transparent,
+				rgba(255, 255, 255, 0.05),
+				transparent
+		);
+		animation: rotate 20s linear infinite;
 	}
-
-
-
-	@keyframes shine {
-		0% {
-			transform: translateX(-100%) translateY(-100%) rotate(45deg);
-		}
-
-		100% {
-			transform: translateX(100%) translateY(100%) rotate(45deg);
-		}
+	
+	&::after {
+		content: "";
+		position: absolute;
+		top: 0;
+		right: 0;
+		width: 7.5rem;
+		height: 7.5rem;
+		background: radial-gradient(
+				circle,
+				rgba(255, 255, 255, 0.15) 0%,
+				transparent 70%
+		);
+		border-radius: 50%;
+		transform: translate(2.5rem, -2.5rem);
 	}
+}
 
-	@keyframes fadeInDown {
-		from {
-			opacity: 0;
-			transform: translateY(-1.25rem);
-		}
+.hero-content {
+	position: relative;
+	z-index: 1;
+	
+	padding: 14px 14px 18px 14px;
+	margin: 0 12px;
+	height: 100%;
+}
+.hero-wave {
+	height: 2.75rem;
+}
 
-		to {
-			opacity: 1;
-			transform: translateY(0);
-		}
-	}
+.safe-top {
+  height: calc(env(safe-area-inset-top) + 10px);
+}
 
-	@keyframes fadeInUp {
-		from {
-			opacity: 0;
-			transform: translateY(1.25rem);
-		}
+.scroll {
+  min-height: calc(100vh - env(safe-area-inset-top) - 10px);
+}
 
-		to {
-			opacity: 1;
-			transform: translateY(0);
-		}
-	}
+.section {
+  margin: 0 14px 14px;
+}
 
-	@keyframes fadeInScale {
-		0% {
-			opacity: 0;
-			transform: translateY(0.5rem) scale(0.96);
-		}
+.quick-section {
+  margin: 0 14px 10px;
+  padding: 6px 0 2px;
+}
 
-		100% {
-			opacity: 1;
-			transform: translateY(0) scale(1);
-		}
-	}
+.quick-icon {
+  width: 44px;
+  height: 44px;
+  border-radius: 12px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
+}
 
-	.notice-content {
-		display: flex;
-		align-items: center;
-		height: 100%;
-		position: relative;
-		z-index: 1;
-	}
+.quick-icon-img {
+  width: 26px;
+  height: 26px;
+}
 
-	.notice-left {
-		margin-right: 1rem;
-	}
+.quick-text {
+  margin-top: 6px;
+  font-size: 12px;
+  color: #555555;
+  text-align: center;
+  white-space: nowrap;
+}
 
-	.notice-status {
-		font-weight: 600;
-		font-size: 1rem;
-		color: #1976d2;
-	}
+.section-header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 8px 2px 10px;
+}
 
-	.notice-separator {
-		width: 0.0625rem;
-		height: 1.5rem;
-		background: #e0e0e0;
-		margin-right: 1rem;
-	}
+.section-title {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+}
 
-	.notice-right {
-		display: flex;
-		align-items: center;
-		justify-content: space-between;
-		flex: 1;
-	}
+.title-bar {
+  width: 4px;
+  height: 16px;
+  border-radius: 2px;
+  background: #2f6bff;
+}
 
-	.notice-label {
-		color: #333;
-		font-size: 0.875rem;
-		font-weight: 500;
-		margin-right: 0.75rem;
-	}
+.title-text {
+  font-size: 16px;
+  font-weight: 700;
+  color: #1f2937;
+}
 
-	.notice-text {
-		font-weight: 400;
-		font-size: 0.875rem;
-		color: #666666;
-	}
+.section-action {
+  display: flex;
+  align-items: center;
+  gap: 6px;
+  color: #8a94a6;
+  font-size: 12px;
+}
 
-	.notice-number {
-		font-weight: 600;
-		font-size: 1rem;
-		color: #1976d2;
-		margin-left: 0.25rem;
-	}
+.action-text {
+  color: #8a94a6;
+}
 
-	.notice-unit {
-		color: #666666;
-		font-size: 0.875rem;
-		margin-left: 0.125rem;
-	}
+.chev {
+  width: 8px;
+  height: 8px;
+  border-right: 2px solid #b9c0cf;
+  border-bottom: 2px solid #b9c0cf;
+  transform: rotate(45deg);
+}
+.chev.up {
+  transform: rotate(-135deg);
+}
+.chev.down {
+  transform: rotate(45deg);
+}
+.chev.right {
+  transform: rotate(-45deg);
+}
+.chev.small {
+  width: 7px;
+  height: 7px;
+  border-width: 2px;
+}
 
-	/* 鍔熻兘妯″潡鏍峰紡 */
-	.common-module {
-		margin-bottom: 1.5rem;
-		background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
-		border-radius: 1rem;
-		padding: 1rem;
-		box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
-		border: none;
-		position: relative;
-		overflow: hidden;
-		transition: all 0.3s ease;
+.overview {
+  display: flex;
+  flex-direction: column;
+  gap: 10px;
+}
 
-		&::after {
-			content: '';
-			position: absolute;
-			top: 0;
-			right: 0;
-			width: 3.75rem;
-			height: 3.75rem;
-			background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
-			border-radius: 50%;
-			transform: translate(1.875rem, -1.875rem);
-		}
-	}
+.overview-card {
+  position: relative;
+  overflow: hidden;
+  border-radius: 12px;
+  padding: 14px 14px 12px;
+  border: 1px dashed rgba(31, 41, 55, 0.08);
+}
 
-	.marketing-module {
-		--module-color: #2979ff;
-	}
+.overview-card.sales {
+  background: url("/static/images/index/xiaoshoushuju.png") no-repeat center center;
+  background-size: cover;
+}
+.overview-card.purchase {
+  background: url("/static/images/index/caigoushuju.png") no-repeat center center;
+  background-size: cover;
+}
+.overview-card.stock {
+  background: url("/static/images/index/kucunshuju.png") no-repeat center center;
+  background-size: cover;
+}
 
-	.purchase-module {
-		--module-color: #1976d2;
-	}
+.card-left {
+  position: relative;
+  z-index: 1;
+}
 
-	.collaboration-module {
-		--module-color: #4caf50;
-	}
+.card-title {
+  font-size: 14px;
+  font-weight: 700;
+  color: rgba(17, 24, 39, 0.85);
+  margin-bottom: 10px;
+}
 
-	.production-module {
-		--module-color: #FF9800;
-	}
+.card-metrics {
+  display: flex;
+  gap: 12px;
+  justify-content: space-between;
+  width: 100%;
+}
 
-	.equipment-module {
-		--module-color: #9c27b0;
-	}
+.metric {
+  display: flex;
+  align-items: center;
+  min-width: 0;
+  flex: 1;
+}
 
-	.module-header {
-		margin-bottom: 1.5rem;
-		display: flex;
-		align-items: center;
-		justify-content: space-between;
-	}
+.metric-label {
+  font-size: 11px;
+  color: rgba(107, 114, 128, 0.9);
+  white-space: nowrap;
+  width: 80px;
+}
 
-	.module-title-container {
-		display: flex;
-		align-items: center;
-	}
+.metric-value {
+  font-size: 14px;
+  font-weight: 800;
+  color: rgba(17, 24, 39, 0.9);
+  white-space: nowrap;
+  flex: 1 1 auto;
+  min-width: 0;
+  overflow: visible;
+  text-overflow: clip;
+}
 
-	.module-title {
-		color: #333333;
-		font-size: 1.125rem;
-		font-weight: 600;
-		position: relative;
-	}
+.metric-label,
+.metric-value {
+  line-height: 1.2;
+}
 
-	.module-subtitle {
-		color: #666666;
-		font-size: 0.75rem;
-		font-weight: 400;
-		margin-left: 0.5rem;
-	}
+.metric-value {
+  font-variant-numeric: tabular-nums;
+}
 
-	.module-content {
-		width: 100%;
-		display: grid;
-		gap: 1rem;
-	}
+.overview-card.purchase .metric-value {
+  color: rgba(124, 84, 28, 0.95);
+}
+.overview-card.stock .metric-value {
+  color: rgba(24, 64, 136, 0.95);
+}
 
-	.icon-container {
-		width: 3.25rem;
-		height: 3.25rem;
-		border-radius: 0.75rem;
-		display: flex;
-		align-items: center;
-		justify-content: center;
-		margin-bottom: 0.375rem;
-		box-shadow: 0 0.1875rem 0.75rem rgba(0, 0, 0, 0.12);
-		transition: all 0.2s ease;
-		position: relative;
-		overflow: hidden;
-		animation: fadeInScale 0.5s ease both;
+.card-icon {
+  position: absolute;
+  right: 10px;
+  top: 10px;
+  width: 78px;
+  opacity: 0.35;
+}
 
-		&::before {
-			content: '';
-			position: absolute;
-			top: 0;
-			left: 0;
-			right: 0;
-			bottom: 0;
-			background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
-			opacity: 0;
-			transition: opacity 0.3s ease;
-		}
+.analysis-card {
+  background: #ffffff;
+  border-radius: 14px;
+  padding: 12px;
+  border: 1px solid rgba(148, 163, 184, 0.18);
+  display: flex;
+  flex-direction: column;
+  gap: 10px;
+}
 
-		&::after {
-			content: '';
-			position: absolute;
-			top: 0;
-			left: 0;
-			right: 0;
-			bottom: 0;
-			border-radius: 0.75rem;
-			background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
-			opacity: 0;
-			transition: opacity 0.3s ease;
-		}
+.chart-row {
+  width: 100%;
+  display: flex;
+  justify-content: center;
+}
 
-		&:hover {
-			transform: translateY(-0.1875rem) scale(1.02);
-			box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.18);
+.summary {
+  padding: 2px 2px 10px;
+}
+.summary-main {
+  display: flex;
+  align-items: baseline;
+  justify-content: space-between;
+  gap: 10px;
+}
+.summary-label {
+  font-size: 12px;
+  color: #6b7280;
+  white-space: nowrap;
+}
+.summary-value {
+  font-size: 18px;
+  font-weight: 800;
+  color: #1f2937;
+  text-align: right;
+  min-width: 0;
+  white-space: nowrap;
+}
+.summary-sub {
+  margin-top: 6px;
+  display: flex;
+  gap: 8px;
+}
 
-			&::before,
-			&::after {
-				opacity: 1;
-			}
-		}
+.list-row {
+  width: 100%;
+}
+.summary-chip {
+  flex: 1;
+  background: rgba(47, 107, 255, 0.06);
+  border: 1px solid rgba(47, 107, 255, 0.12);
+  border-radius: 10px;
+  padding: 6px 8px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 8px;
+  min-width: 0;
+}
+.chip-label {
+  font-size: 11px;
+  color: #6b7280;
+  white-space: nowrap;
+}
+.chip-value {
+  font-size: 12px;
+  font-weight: 700;
+  color: #2f6bff;
+  white-space: nowrap;
+}
 
-		&:active {
-			transform: scale(0.97);
-			box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.18);
-		}
-	}
-
-	.item-label {
-		font-size: 0.8125rem;
-		color: #555555;
-		text-align: center;
-		display: block;
-		line-height: 1.4;
-		font-weight: 500;
-		margin-top: 0.25rem;
-		margin-bottom: 0.625rem;
-	}
-
-	.grid-text {
-		font-size: 0.875rem;
-		color: #909399;
-		padding: 0.625rem 0 1.25rem 0;
-		/* #ifndef APP-PLUS */
-		box-sizing: border-box;
-		/* #endif */
-	}
-
-	/* 鏆楄壊妯″紡閫傞厤 */
-	@media (prefers-color-scheme: dark) {
-		.content {
-			background: linear-gradient(135deg, #121317 0%, #161a20 100%);
-		}
-
-		.content::before {
-			background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255, 255, 255, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
-		}
-
-		.common-module {
-			background: linear-gradient(135deg, #1e1f24 0%, #23252b 100%);
-			box-shadow: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.35);
-		}
-
-		.module-title {
-			color: #e9edf3;
-		}
-
-		.module-subtitle,
-		.item-label,
-		.notice-text,
-		.notice-unit,
-		.notice-label {
-			color: #c7cbd3;
-		}
-
-		.notice {
-			background: linear-gradient(135deg, #1b2330 0%, #1a2432 100%);
-			border-color: rgba(255, 255, 255, 0.06);
-			box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.4);
-		}
-
-		.notice-status,
-		.notice-number {
-			color: #8ab4ff;
-		}
-
-		.bg-img {
-			background: linear-gradient(135deg, #1f4fb9 0%, #0e3a8a 100%);
-		}
-	}
-
-	@keyframes rotate {
-		from {
-			transform: rotate(0deg);
-		}
-
-		to {
-			transform: rotate(360deg);
-		}
-	}
-
-	@keyframes fadeInDown {
-		from {
-			opacity: 0;
-			transform: translateY(-1.25rem);
-		}
-
-		to {
-			opacity: 1;
-			transform: translateY(0);
-		}
-	}
-
-	@keyframes fadeInUp {
-		from {
-			opacity: 0;
-			transform: translateY(1.25rem);
-		}
-
-		to {
-			opacity: 1;
-			transform: translateY(0);
-		}
-	}
-
-	@keyframes fadeInScale {
-		0% {
-			opacity: 0;
-			transform: translateY(0.5rem) scale(0.96);
-		}
-
-		100% {
-			opacity: 1;
-			transform: translateY(0) scale(1);
-		}
-	}
-
-	.notice-left {
-		margin-right: 1rem;
-	}
-
-	.notice-status {
-		font-size: 1rem;
-	}
-
-	.notice-separator {
-		width: 0.0625rem;
-		height: 1.5rem;
-		margin-right: 1rem;
-	}
-
-	.notice-label {
-		font-size: 0.875rem;
-		margin-right: 0.75rem;
-	}
-
-	.notice-text {
-		font-size: 0.875rem;
-	}
-
-	.notice-number {
-		font-size: 1rem;
-		margin-left: 0.25rem;
-	}
-
-	.notice-unit {
-		font-size: 0.875rem;
-		margin-left: 0.125rem;
-	}
-
-	.common-module {
-		margin-bottom: 1.5rem;
-		background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
-		border-radius: 1rem;
-		padding: 1rem;
-		box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
-		border: none;
-		position: relative;
-		overflow: hidden;
-		transition: all 0.3s ease;
-
-		&::after {
-			content: '';
-			position: absolute;
-			top: 0;
-			right: 0;
-			width: 3.75rem;
-			height: 3.75rem;
-			background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
-			border-radius: 50%;
-			transform: translate(1.875rem, -1.875rem);
-		}
-	}
-
-	.marketing-module {
-		--module-color: #2979ff;
-	}
-
-	.purchase-module {
-		--module-color: #1976d2;
-	}
-
-	.collaboration-module {
-		--module-color: #4caf50;
-	}
+.chart-box {
+  height: 170px;
+  width: 100%;
+}
+.chart-box.big {
+  height: 220px;
+  width: 100%;
+}
 
-	.production-module {
-		--module-color: #FF9800;
-	}
+.customer-swiper {
+  height: 140px;
+}
 
-	.equipment-module {
-		--module-color: #9c27b0;
-	}
+.customer-page {
+  display: flex;
+  flex-direction: column;
+  gap: 14px;
+  padding-top: 4px;
+}
 
-	.module-header {
-		margin-bottom: 1.5rem;
-		display: flex;
-		align-items: center;
-		justify-content: space-between;
-	}
+.customer-item {
+  display: flex;
+  flex-direction: column;
+  gap: 2px;
+}
 
-	.module-title-container {
-		display: flex;
-		align-items: center;
-	}
+.customer-row {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 8px;
+}
 
-	.module-title {
-		color: #333333;
-		font-size: 1.125rem;
-		font-weight: 600;
-		position: relative;
-	}
+.customer-name {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  min-width: 0;
+  flex: 1 1 auto;
+}
 
-	.module-subtitle {
-		color: #666666;
-		font-size: 0.75rem;
-		font-weight: 400;
-		margin-left: 0.5rem;
-	}
+.rank-icon {
+  width: 18px;
+  height: 18px;
+  flex: 0 0 auto;
+}
 
-	.module-content {
-		width: 100%;
-		display: grid;
-		gap: 1rem;
-	}
+.name-text {
+  font-size: 13px;
+  color: #1f2937;
+  font-weight: 600;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
 
-	.icon-container {
-		width: 3.25rem;
-		height: 3.25rem;
-		border-radius: 0.75rem;
-		display: flex;
-		align-items: center;
-		justify-content: center;
-		margin-bottom: 0.375rem;
-		box-shadow: 0 0.1875rem 0.75rem rgba(0, 0, 0, 0.12);
-		transition: all 0.2s ease;
-		position: relative;
-		overflow: hidden;
-		animation: fadeInScale 0.5s ease both;
+.amount {
+  display: flex;
+  align-items: baseline;
+  gap: 4px;
+  color: #1f2937;
+  font-weight: 800;
+  flex: 0 0 auto;
+}
+.amount-num {
+  font-size: 18px;
+  line-height: 1;
+}
+.amount-unit {
+  font-size: 12px;
+  color: #6b7280;
+  font-weight: 600;
+}
 
-		&:hover {
-			transform: translateY(-0.1875rem) scale(1.02);
-			box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.18);
-		}
+.customer-rate {
+  display: flex;
+  align-items: center;
+  gap: 4px;
+  flex: 0 0 auto;
+  white-space: nowrap;
+}
+.rate-label {
+  font-size: 11px;
+  color: #6b7280;
+}
+.rate-value {
+  font-size: 12px;
+  font-weight: 600;
+  color: #2f6bff;
+}
 
-		&:active {
-			transform: scale(0.97);
-			box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.18);
-		}
-	}
+.customer-sub {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  color: #6b7280;
+  font-size: 12px;
+}
+.sub-label {
+  color: #6b7280;
+}
+.sub-value {
+  font-weight: 700;
+  color: #6b7280;
+}
+.sub-value.up {
+  color: #16a34a;
+}
+.sub-value.down {
+  color: #dc2626;
+}
 
-	.item-label {
-		font-size: 0.8125rem;
-		margin-top: 0.25rem;
-		margin-bottom: 0.625rem;
-	}
+.arrow {
+  width: 0;
+  height: 0;
+  border-left: 4px solid transparent;
+  border-right: 4px solid transparent;
+}
+.arrow.up {
+  border-bottom: 6px solid #16a34a;
+  transform: translateY(-1px);
+}
+.arrow.down {
+  border-top: 6px solid #dc2626;
+  transform: translateY(1px);
+}
 
-	.grid-text {
-		font-size: 0.875rem;
-	}
+.dots {
+  display: flex;
+  gap: 6px;
+  justify-content: center;
+  margin-top: 6px;
+}
+.dot {
+  width: 8px;
+  height: 4px;
+  border-radius: 99px;
+  background: rgba(148, 163, 184, 0.35);
+}
+.dot.active {
+  width: 14px;
+  background: #2f6bff;
+}
 
-	@media (prefers-color-scheme: dark) {
-		.common-module {
-			box-shadow: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.35);
-		}
+.bottom-space {
+  height: 24px;
+}
 
-		.notice {
-			box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.4);
-		}
-	}
+@media (prefers-color-scheme: dark) {
+  .page {
+    background: #121317;
+  }
+  .title-text {
+    color: #e9edf3;
+  }
+  .overview-card,
+  .filter-item,
+  .analysis-card {
+    border-color: rgba(255, 255, 255, 0.08);
+  }
+  .filter-item,
+  .analysis-card {
+    background: #1e1f24;
+  }
+  .name-text,
+  .amount {
+    color: #e9edf3;
+  }
+  .amount-unit,
+  .metric-label,
+  .action-text,
+  .section-action,
+  .customer-sub,
+  .sub-label,
+  .sub-value {
+    color: #aab2c1;
+  }
+  .summary-value {
+    color: #e9edf3;
+  }
+  .summary-chip {
+    background: rgba(47, 107, 255, 0.12);
+    border-color: rgba(47, 107, 255, 0.18);
+  }
+  .overview-card.sales {
+    background: linear-gradient(135deg, rgba(30, 91, 104, 0.35) 0%, rgba(18, 68, 80, 0.35) 100%);
+  }
+  .overview-card.purchase {
+    background: linear-gradient(135deg, rgba(108, 76, 33, 0.35) 0%, rgba(80, 55, 20, 0.35) 100%);
+  }
+  .overview-card.stock {
+    background: linear-gradient(135deg, rgba(36, 54, 110, 0.35) 0%, rgba(22, 35, 74, 0.35) 100%);
+  }
+  .metric-value {
+    color: #e9edf3;
+  }
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3