gaoluyang
9 天以前 a26e8d708ab3c8899bee5cae4167ccc3be9b58cd
src/pages/procurementManagement/paymentLedger/detail.vue
@@ -1,7 +1,7 @@
<template>
   <view class="receipt-payment-detail">
      <!-- 使用通用页面头部组件 -->
      <PageHeader title="客户往来详情" @back="goBack" />
      <PageHeader title="供应商往来详情" @back="goBack" />
      
      <!-- 统计信息 -->
      <view class="summary-info" v-if="tableData.length > 0">
@@ -89,17 +89,16 @@
// 返回上一页
const goBack = () => {
   uni.removeStorageSync('supplierId')
   uni.navigateBack();
};
// 获取页面参数
const getPageParams = () => {
   const pages = getCurrentPages();
   const currentPage = pages[pages.length - 1];
   const options = currentPage.options;
   if (options.supplierId) {
      supplierId.value = options.supplierId;
   // 从本地存储获取供应商ID
   const storedSupplierId = uni.getStorageSync('supplierId');
   if (storedSupplierId) {
      supplierId.value = storedSupplierId;
   }
};
@@ -114,9 +113,11 @@
   }
   const param = {
      supplierId: supplierId.value,
      current: -1,
      size: -1
   };
   paymentLedgerList(param).then((res) => {
      tableData.value = res.data;
      tableData.value = res.data.records;
   }).catch(() => {
      uni.showToast({
         title: '查询失败',