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/receiptPayment/index.vue |   42 +++++++-----------------------------------
 1 files changed, 7 insertions(+), 35 deletions(-)

diff --git a/src/pages/sales/receiptPayment/index.vue b/src/pages/sales/receiptPayment/index.vue
index ba54e48..a30d42e 100644
--- a/src/pages/sales/receiptPayment/index.vue
+++ b/src/pages/sales/receiptPayment/index.vue
@@ -15,14 +15,14 @@
 					/>
 				</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 class="switch-row">
 				<text class="switch-label">涓嶆樉绀哄緟鍥炴涓�0</text>
-				<van-switch v-model="searchForm.status" @change="getList" size="18"/>
+				<u-switch v-model="searchForm.status" @change="getList" size="18"/>
 			</view>
 		</view>
 
@@ -35,12 +35,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>
-					<up-divider></up-divider>
+					<u-divider></u-divider>
 					<view class="item-details">
 						<view class="detail-row">
 							<text class="detail-label">瀹㈡埛鍚嶇О</text>
@@ -82,7 +82,7 @@
 					
 					<!-- 鎿嶄綔鎸夐挳 -->
 					<view class="action-buttons">
-						<van-button
+						<u-button
 							type="primary"
 							size="small"
 							class="action-btn"
@@ -90,7 +90,7 @@
 							@click="openForm(item)"
 						>
 							鏂板鍥炴
-						</van-button>
+						</u-button>
 					</view>
 				</view>
 			</view>
@@ -98,17 +98,8 @@
 
 		<!-- 鏃犳暟鎹彁绀� -->
 		<view class="no-data" v-else>
-			<text>鏆傛棤鍥炴鏁版嵁</text>
+			<text>鏆傛棤鏁版嵁</text>
 		</view>
-
-		<!-- 鍥炴鏂瑰紡閫夋嫨鍣� -->
-		<van-popup v-model:show="showPaymentType" position="bottom">
-			<van-picker
-				:columns="receipt_payment_type"
-				@confirm="onPaymentTypeConfirm"
-				@cancel="showPaymentType = false"
-			/>
-		</van-popup>
 	</view>
 </template>
 
@@ -121,13 +112,9 @@
 import { showToast } from 'vant'
 import {onShow} from "@dcloudio/uni-app";
 
-const userStore = useUserStore()
-
 // 鍝嶅簲寮忔暟鎹�
 const tableData = ref([])
 const tableLoading = ref(false)
-const showPaymentType = ref(false)
-const currentEditRow = ref(null)
 
 // 鏌ヨ鍙傛暟璁剧疆涓�-1鑾峰彇鍏ㄩ儴鏁版嵁
 const page = ref({
@@ -143,14 +130,6 @@
 	customerContractNo: '',
 	projectName: ''
 })
-
-// 鍥炴鏂瑰紡閫夐」
-const receipt_payment_type = ref([
-	{ text: '鐜伴噾', value: '1' },
-	{ text: '閾惰杞处', value: '2' },
-	{ text: '鏀エ', value: '3' },
-	{ text: '鍏朵粬', value: '4' }
-])
 
 // 鏍煎紡鍖栨暟瀛�
 const formatNumber = (value) => {
@@ -185,13 +164,6 @@
 	uni.navigateTo({ url: '/pages/sales/receiptPayment/add' })
 }
 
-// 纭鍥炴鏂瑰紡閫夋嫨
-const onPaymentTypeConfirm = (value) => {
-	if (currentEditRow.value) {
-		currentEditRow.value.receiptPaymentType = value.value
-	}
-	showPaymentType.value = false
-}
 onShow(() => {
 	getList()
 })

--
Gitblit v1.9.3