gaoluyang
8 天以前 a26e8d708ab3c8899bee5cae4167ccc3be9b58cd
src/pages/sales/receiptPaymentLedger/detail.vue
@@ -1,14 +1,7 @@
<template>
   <view class="receipt-payment-detail">
      <!-- 页面头部 -->
      <van-nav-bar
         title="客户往来详情"
         left-text="返回"
         left-arrow
         @click-left="goBack"
         fixed
         placeholder
      />
      <!-- 使用通用页面头部组件 -->
      <PageHeader title="客户往来详情" @back="goBack" />
      
      <!-- 统计信息 -->
      <view class="summary-info" v-if="tableData.length > 0">
@@ -96,17 +89,16 @@
// 返回上一页
const goBack = () => {
   uni.removeStorageSync('customerId')
   uni.navigateBack();
};
// 获取页面参数
const getPageParams = () => {
   const pages = getCurrentPages();
   const currentPage = pages[pages.length - 1];
   const options = currentPage.options;
   if (options.customerId) {
      customerId.value = options.customerId;
   // 从本地存储获取客户ID
   const storedCustomerId = uni.getStorageSync('customerId');
   if (storedCustomerId) {
      customerId.value = storedCustomerId;
   }
};
@@ -122,6 +114,8 @@
   
   const param = {
      customerId: customerId.value,
      current: -1,
      size: -1
   };
   
   customerInteractions(param).then((res) => {