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 | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/src/pages/sales/receiptPaymentHistory/index.vue b/src/pages/sales/receiptPaymentHistory/index.vue index de4620d..747ec95 100644 --- a/src/pages/sales/receiptPaymentHistory/index.vue +++ b/src/pages/sales/receiptPaymentHistory/index.vue @@ -78,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> @@ -92,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({ @@ -160,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(); @@ -247,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; -- Gitblit v1.9.3