| | |
| | | }; |
| | | |
| | | const getList = () => { |
| | | showLoadingToast('加载中...') |
| | | invoiceLedgerSalesAccount({ ...searchForm.value, ...page }).then((res) => { |
| | | tableData.value = res.data.records; |
| | | closeToast() |
| | | }).catch(() => { |
| | | closeToast() |
| | | uni.showToast({ |
| | | title: '查询失败', |
| | | icon: 'error' |
| | |
| | | return parseFloat(value || 0).toFixed(2); |
| | | }; |
| | | |
| | | // 显示加载提示 |
| | | const showLoadingToast = (message) => { |
| | | uni.showLoading({ |
| | | title: message, |
| | | mask: true |
| | | }); |
| | | }; |
| | | |
| | | // 关闭提示 |
| | | const closeToast = () => { |
| | | uni.hideLoading(); |
| | | }; |
| | | |
| | | const rowClickMethod = (row) => { |
| | | // 使用 uni.setStorageSync 存储客户信息 |