| | |
| | | |
| | | // 查询列表 |
| | | const getList = () => { |
| | | showLoadingToast('加载中...') |
| | | const params = { |
| | | ...searchForm.value, |
| | | ...page.value |
| | | }; |
| | | receiptPaymentHistoryListPage(params).then((res) => { |
| | | tableData.value = res.records; |
| | | closeToast() |
| | | }).catch(() => { |
| | | closeToast() |
| | | uni.showToast({ |
| | | title: '查询失败', |
| | | icon: 'error' |
| | |
| | | }); |
| | | }; |
| | | |
| | | // 显示加载提示 |
| | | const showLoadingToast = (message) => { |
| | | uni.showLoading({ |
| | | title: message, |
| | | mask: true |
| | | }); |
| | | }; |
| | | |
| | | // 关闭提示 |
| | | const closeToast = () => { |
| | | uni.hideLoading(); |
| | | }; |
| | | |
| | | // 格式化回款方式 |
| | | const formatReceiptType = (type) => { |
| | | if (type == 0) { |