From f1bcbcb10006807787247219df78e0408742604b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 22 八月 2025 10:59:09 +0800
Subject: [PATCH] 1.采购台账开发联调

---
 src/pages/sales/salesAccount/index.vue |   82 +++-------------------------------------
 1 files changed, 7 insertions(+), 75 deletions(-)

diff --git a/src/pages/sales/salesAccount/index.vue b/src/pages/sales/salesAccount/index.vue
index 336e593..92f3557 100644
--- a/src/pages/sales/salesAccount/index.vue
+++ b/src/pages/sales/salesAccount/index.vue
@@ -1,14 +1,7 @@
 <template>
 	<view class="sales-account">
-		<!-- 椤甸潰澶撮儴 -->
-		<view class="page-header">
-			<view class="header-left">
-				<up-icon name="arrow-left" size="20" color="#333" @click="goBack"></up-icon>
-			</view>
-			<view class="header-center">
-				<text class="page-title">閿�鍞彴璐�</text>
-			</view>
-		</view>
+		<!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 -->
+		<PageHeader title="閿�鍞彴璐�" @back="goBack" />
 		
 		<!-- 鎼滅储鍜岀瓫閫夊尯鍩� -->
 		<view class="search-filter-section">
@@ -50,7 +43,7 @@
 						</view>
 						<view class="detail-row">
 							<text class="detail-label">瀹㈡埛鍚堝悓鍙�</text>
-							<text class="detail-value highlight">{{ item.customerContractNo }}</text>
+							<text class="detail-value">{{ item.customerContractNo }}</text>
 						</view>
 						<view class="detail-row">
 							<text class="detail-label">涓氬姟鍛�</text>
@@ -103,6 +96,7 @@
 import { onShow } from '@dcloudio/uni-app';
 import {ledgerListPage} from "@/api/salesManagement/salesLedger";
 import useUserStore from "@/store/modules/user";
+import PageHeader from "@/components/PageHeader.vue";
 const userStore = useUserStore()
 
 // 鎼滅储鍏抽敭璇�
@@ -148,7 +142,7 @@
       }
       
       // 妫�鏌ユ潈闄愶細鍙湁褰曞叆浜烘墠鑳界紪杈�
-      if (row.entryPerson !== userStore.id) {
+      if (row.entryPerson != userStore.id) {
         // 闈炲綍鍏ヤ汉璺宠浆鍒板彧璇昏鎯呴〉闈�
         uni.setStorageSync('editData', JSON.stringify(row));
         uni.navigateTo({
@@ -195,70 +189,7 @@
 	position: relative;
 }
 
-.page-header {
-	background: #ffffff;
-  padding: 16px 20px;
-	display: flex;
-	align-items: center;
-	justify-content: space-between;
-	border-bottom: 1px solid #f0f0f0;
-	position: sticky;
-  /* 鍏煎 iOS 鍒樻捣/鐏靛姩宀涘畨鍏ㄥ尯 */
-  padding-top: env(safe-area-inset-top);
-  top: 0;
-	z-index: 100;
-}
 
-.header-left {
-	display: flex;
-	align-items: center;
-	gap: 8px;
-}
-
-.nav-icon {
-	width: 24px;
-	height: 24px;
-	background: #2979ff;
-	border-radius: 4px;
-	display: flex;
-	align-items: center;
-	justify-content: center;
-}
-
-.nav-text {
-	font-size: 14px;
-	color: #2979ff;
-	font-weight: 500;
-}
-
-.header-center {
-	flex: 1;
-	text-align: center;
-}
-
-.page-title {
-	font-size: 18px;
-	font-weight: 600;
-	color: #333;
-}
-
-.header-right {
-	display: flex;
-	align-items: center;
-}
-
-.status-bar {
-	display: flex;
-	align-items: center;
-	gap: 4px;
-}
-
-.signal, .wifi, .battery {
-	width: 16px;
-	height: 8px;
-	background: #333;
-	border-radius: 2px;
-}
 
 .search-filter-section {
 	padding: 10px 20px;
@@ -405,7 +336,7 @@
 
 .fab-button {
 	position: fixed;
-	bottom: 30px;
+	bottom: calc(30px + env(safe-area-inset-bottom));
 	right: 30px;
 	width: 56px;
 	height: 56px;
@@ -416,5 +347,6 @@
 	justify-content: center;
 	box-shadow: 0 4px 16px rgba(41, 121, 255, 0.3);
 	z-index: 1000;
+	/* 纭繚娴姩鎸夐挳涓嶈搴曢儴瀹夊叏鍖哄煙閬尅 */
 }
 </style>

--
Gitblit v1.9.3