gaoluyang
16 小时以前 ee42bf1badae06026efa79dc17d2a541297ab49b
src/pages/procurementManagement/paymentLedger/detail.vue
@@ -111,6 +111,7 @@
      });
      return;
   }
   showLoadingToast('加载中...')
   const param = {
      supplierId: supplierId.value,
      current: -1,
@@ -118,7 +119,9 @@
   };
   paymentLedgerList(param).then((res) => {
      tableData.value = res.data.records;
      closeToast()
   }).catch(() => {
      closeToast()
      uni.showToast({
         title: '查询失败',
         icon: 'error'
@@ -131,6 +134,19 @@
   return amount ? parseFloat(amount).toFixed(2) : '0.00';
};
// 显示加载提示
const showLoadingToast = (message) => {
   uni.showLoading({
      title: message,
      mask: true
   });
};
// 关闭提示
const closeToast = () => {
   uni.hideLoading();
};
onMounted(() => {
   // 页面加载时获取参数并刷新列表
   getPageParams();