gaoluyang
3 天以前 7de165ce3fc2318681ed66494fb6da9fd700417b
src/pages/procurementManagement/paymentLedger/detail.vue
@@ -61,7 +61,7 @@
<script setup>
import { ref, computed, onMounted } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import {paymentLedgerList} from "@/api/procurementManagement/paymentLedger";
import {paymentLedgerList, paymentRecordList} from "@/api/procurementManagement/paymentLedger";
// 客户信息
const supplierId = ref('');
@@ -111,14 +111,12 @@
      });
      return;
   }
   const param = {
      supplierId: supplierId.value,
      current: -1,
      size: -1
   };
   paymentLedgerList(param).then((res) => {
      tableData.value = res.data.records;
   showLoadingToast('加载中...')
   paymentRecordList(supplierId.value).then((res) => {
      tableData.value = res.data;
      closeToast()
   }).catch(() => {
      closeToast()
      uni.showToast({
         title: '查询失败',
         icon: 'error'
@@ -131,6 +129,19 @@
   return amount ? parseFloat(amount).toFixed(2) : '0.00';
};
// 显示加载提示
const showLoadingToast = (message) => {
   uni.showLoading({
      title: message,
      mask: true
   });
};
// 关闭提示
const closeToast = () => {
   uni.hideLoading();
};
onMounted(() => {
   // 页面加载时获取参数并刷新列表
   getPageParams();