From 5c48ef2b8267c38bae717202615e1618074ee31c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 29 八月 2025 15:25:05 +0800
Subject: [PATCH] 修改组件

---
 src/pages/sales/invoicingRegistration/index.vue |   44 +++++++++++---------------------------------
 1 files changed, 11 insertions(+), 33 deletions(-)

diff --git a/src/pages/sales/invoicingRegistration/index.vue b/src/pages/sales/invoicingRegistration/index.vue
index 4d2a79a..a89af00 100644
--- a/src/pages/sales/invoicingRegistration/index.vue
+++ b/src/pages/sales/invoicingRegistration/index.vue
@@ -14,7 +14,7 @@
 					/>
 				</view>
 				<view class="filter-button" @click="getList">
-					<up-icon name="search" size="24" color="#999"></up-icon>
+					<u-icon name="search" size="24" color="#999"></u-icon>
 				</view>
 			</view>
 		</view>
@@ -26,15 +26,12 @@
 					<view class="item-header">
 						<view class="item-left">
 							<view class="document-icon">
-								<up-icon name="file-text" size="16" color="#ffffff"></up-icon>
+								<u-icon name="file-text" size="16" color="#ffffff"></u-icon>
 							</view>
 							<text class="item-id">{{ item.salesContractNo }}</text>
 						</view>
-						<!--							<view class="item-tag">-->
-						<!--								<text class="tag-text">{{ item.recorder }}</text>-->
-						<!--							</view>-->
 					</view>
-					<up-divider></up-divider>
+					<u-divider></u-divider>
 					
 					<view class="item-details">
 						<view class="detail-row">
@@ -69,23 +66,23 @@
 					
 					<!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
 					<view class="action-buttons">
-						<van-button
+						<u-button
 							type="primary"
-							size="small" 
+							size="small"
 							@click="handleAddInvoice(item)"
 							class="action-btn"
-							:disabled="item.entryPerson != userStore.id || item.noInvoiceAmountTotal == 0"
+							:disabled="item.noInvoiceAmountTotal == 0"
 						>
 							鏂板寮�绁�
-						</van-button>
-						<van-button 
-							type="default" 
-							size="small" 
+						</u-button>
+						<u-button
+							type="info"
+							size="small"
 							@click="handleViewDetail(item)"
 							class="action-btn"
 						>
 							鏌ョ湅璇︽儏
-						</van-button>
+						</u-button>
 					</view>
 				</view>
 			</view>
@@ -93,11 +90,6 @@
 		<view v-else class="no-data">
 			<text>鏆傛棤閿�鍞彴璐︽暟鎹�</text>
 		</view>
-		
-		<!-- 娴姩鎿嶄綔鎸夐挳 -->
-		<!-- <view class="fab-button" @click="handleInfo('add')">
-			<up-icon name="plus" size="24" color="#ffffff"></up-icon>
-		</view> -->
 	</view>
 </template>
 
@@ -114,11 +106,6 @@
 // 閿�鍞彴璐︽暟鎹�
 const ledgerList = ref([]);
 const total = ref(0);
-
-// 鍚堝悓閫夋嫨鍣ㄧ浉鍏�
-const contractList = ref([]);
-const contractLoading = ref(false);
-const contractFinished = ref(false);
 
 // 杩斿洖涓婁竴椤�
 const goBack = () => {
@@ -141,15 +128,6 @@
 // 澶勭悊鏂板寮�绁�
 const handleAddInvoice = (item) => {
 	try {
-		// 妫�鏌ユ潈闄愶細鍙湁褰曞叆浜烘墠鑳芥柊澧炲紑绁�
-		if (item.entryPerson != userStore.id) {
-			uni.showToast({
-				title: '鍙湁褰曞叆浜烘墠鑳芥柊澧炲紑绁�',
-				icon: 'none'
-			});
-			return;
-		}
-		
 		// 瀛樺偍閫変腑鐨勫悎鍚屼俊鎭�
 		uni.setStorageSync('editData', JSON.stringify(item));
 		

--
Gitblit v1.9.3