| | |
| | | <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> |
| | |
| | | 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({ |
| | |
| | | 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(); |
| | |
| | | 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; |