| | |
| | | <text class="item-id">{{ item.approveId }}</text> |
| | | </view> |
| | | <view class="item-tag"> |
| | | <van-tag :type="getTagClass(item.approveStatus)" size="medium">{{ formatReceiptType(item.approveStatus) }}</van-tag> |
| | | <u-tag :type="getTagClass(item.approveStatus)">{{ formatReceiptType(item.approveStatus) }}</u-tag> |
| | | </view> |
| | | </view> |
| | | <up-divider></up-divider> |
| | |
| | | </view> |
| | | <view class="detail-row"> |
| | | <view class="actions"> |
| | | <van-button |
| | | <u-button |
| | | type="primary" |
| | | size="small" |
| | | class="action-btn edit" |
| | |
| | | @click="handleItemClick(item)" |
| | | > |
| | | 编辑 |
| | | </van-button> |
| | | <van-button |
| | | </u-button> |
| | | <u-button |
| | | type="success" |
| | | size="small" |
| | | class="action-btn approve" |
| | |
| | | @click="approve(item)" |
| | | > |
| | | 审核 |
| | | </van-button> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }; |
| | | // 查询列表 |
| | | const getList = () => { |
| | | showLoadingToast('加载中...') |
| | | const page = { |
| | | current: -1, |
| | | size: -1, |
| | |
| | | }) |
| | | .then((res) => { |
| | | ledgerList.value = res.data.records; |
| | | closeToast() |
| | | }) |
| | | .catch(() => { |
| | | // tableLoading.value = false; |
| | | closeToast() |
| | | }); |
| | | }; |
| | | // 显示加载提示 |
| | | const showLoadingToast = (message) => { |
| | | uni.showLoading({ |
| | | title: message, |
| | | mask: true |
| | | }); |
| | | }; |
| | | |
| | | // 关闭提示 |
| | | const closeToast = () => { |
| | | uni.hideLoading(); |
| | | }; |
| | | |
| | | // 显示筛选选项 |
| | | const showFilterOptions = () => { |
| | | uni.showActionSheet({ |
| | |
| | | } else if (type == 4) { |
| | | return "primary"; |
| | | } else { |
| | | return "danger"; |
| | | return "error"; |
| | | } |
| | | }; |
| | | |
| | |
| | | .action-btn.approve { |
| | | /* success 样式来自组件,这里保留钩子以便后续需要扩展 */ |
| | | } |
| | | :deep(.van-floating-bubble) { |
| | | background: #ed8d05; |
| | | } |
| | | /* 已移除vant组件的样式引用 */ |
| | | </style> |