From 35b0b44824aaeb6be31595f1d0a17380c90c1b89 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 25 八月 2025 17:31:09 +0800
Subject: [PATCH] 1.回款流水开发联调

---
 src/pages/sales/receiptPaymentHistory/index.vue |   48 ++++++++++++++++++++++++++++++++++++------------
 1 files changed, 36 insertions(+), 12 deletions(-)

diff --git a/src/pages/sales/receiptPaymentHistory/index.vue b/src/pages/sales/receiptPaymentHistory/index.vue
index e2be722..747ec95 100644
--- a/src/pages/sales/receiptPaymentHistory/index.vue
+++ b/src/pages/sales/receiptPaymentHistory/index.vue
@@ -1,14 +1,7 @@
 <template>
 	<view class="receipt-payment-history">
-		<!-- 椤甸潰澶撮儴 -->
-		<van-nav-bar
-			title="鍥炴鍘嗗彶"
-			left-text="杩斿洖"
-			left-arrow
-			@click-left="goBack"
-			fixed
-			placeholder
-		/>
+		<!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 -->
+		<PageHeader title="鍥炴鍘嗗彶" @back="goBack" />
 		
 		<!-- 鎼滅储鍖哄煙 -->
 		<view class="search-section">
@@ -85,6 +78,18 @@
 								<text class="detail-value">{{ item.createTime }}</text>
 							</view>
 						</view>
+						<!-- 鎿嶄綔鎸夐挳 -->
+						<view class="action-buttons">
+							<van-button
+								type="primary"
+								size="small"
+								class="action-btn"
+								:disabled="item.registrant !== userStore.nickName"
+								@click="openForm(item)"
+							>
+								缂栬緫鍥炴
+							</van-button>
+						</view>
 					</view>
 				</view>
 			</view>
@@ -99,6 +104,8 @@
 import { ref, computed } from 'vue';
 import { onShow } from '@dcloudio/uni-app';
 import { receiptPaymentHistoryListPage } from "@/api/salesManagement/receiptPayment.js";
+import useUserStore from "@/store/modules/user";
+const userStore = useUserStore()
 
 // 鎼滅储琛ㄥ崟
 const searchForm = ref({
@@ -167,6 +174,11 @@
 const formatAmount = (amount) => {
 	return amount ? parseFloat(amount).toFixed(2) : '0.00';
 };
+// 鎵撳紑缂栬緫琛ㄥ崟
+const openForm = (item) => {
+	uni.setStorageSync('invoiceLedgerEditRow', JSON.stringify(item))
+	uni.navigateTo({ url: '/pages/sales/receiptPayment/edit' })
+}
 onShow(() => {
 	// 椤甸潰鏄剧ず鏃跺埛鏂板垪琛�
 	getList();
@@ -254,7 +266,19 @@
 	align-items: center;
 	gap: 8px;
 }
-
+.action-buttons {
+	display: flex;
+	gap: 12px;
+	padding: 12px 0 0 0;
+	justify-content: space-between;
+}
+.action-btn {
+	flex: 1;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	gap: 8px;
+}
 .document-icon {
 	width: 24px;
 	height: 24px;
@@ -273,7 +297,7 @@
 
 .item-tag {
 	border-radius: 4px;
-	padding: 2px 8px;
+	padding:  2px 8px;
 }
 
 .tag-electric {
@@ -289,7 +313,7 @@
 }
 
 .tag-text {
-	font-size: 11px;
+	font-size: 14px;
 	color: #ffffff;
 	font-weight: 500;
 }

--
Gitblit v1.9.3