From b5be6d85c9927a378abca172ea6bef2933657f8e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 29 六月 2026 14:35:08 +0800
Subject: [PATCH] 客户往来数据源修改

---
 src/pages/sales/receiptPaymentLedger/index.vue |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/src/pages/sales/receiptPaymentLedger/index.vue b/src/pages/sales/receiptPaymentLedger/index.vue
index 7daa076..90a0c9c 100644
--- a/src/pages/sales/receiptPaymentLedger/index.vue
+++ b/src/pages/sales/receiptPaymentLedger/index.vue
@@ -9,7 +9,7 @@
         <view class="search-input">
           <up-input class="search-text"
                     placeholder="璇疯緭鍏ュ鎴峰悕绉�"
-                    v-model="searchForm.searchText"
+                    v-model="searchForm.customerName"
                     @change="searchChange"
                     clearable />
         </view>
@@ -47,16 +47,16 @@
           <up-divider></up-divider>
           <view class="item-details">
             <view class="detail-row">
-              <text class="detail-label">寮�绁ㄩ噾棰�(鍏�)</text>
-              <text class="detail-value">{{ formattedNumber(item.invoiceTotal) }}</text>
+              <text class="detail-label">鍚堝悓閲戦(鍏�)</text>
+              <text class="detail-value">{{ formattedNumber(item.contractAmounts) }}</text>
             </view>
             <view class="detail-row">
-              <text class="detail-label">鍥炴閲戦(鍏�)</text>
-              <text class="detail-value">{{ formattedNumber(item.receiptPaymentAmount) }}</text>
+              <text class="detail-label">宸插嚭搴撻噾棰�(鍏�)</text>
+              <text class="detail-value">{{ formattedNumber(item.shippedAmount) }}</text>
             </view>
             <view class="detail-row">
-              <text class="detail-label">搴旀敹閲戦(鍏�)</text>
-              <text class="detail-value highlight danger">{{ formattedNumber(item.unReceiptPaymentAmount) }}</text>
+              <text class="detail-label">鏈嚭搴撻噾棰�(鍏�)</text>
+              <text class="detail-value highlight danger">{{ formattedNumber(item.unshippedAmount) }}</text>
             </view>
           </view>
         </view>
@@ -72,19 +72,18 @@
 <script setup>
   import { onMounted, ref, reactive, toRefs } from "vue";
   import { onShow } from "@dcloudio/uni-app";
-  import { invoiceLedgerSalesAccount } from "@/api/salesManagement/invoiceLedger";
+  import { customewTransactions } from "@/api/salesManagement/receiptPayment.js";
 
   const tableData = ref([]);
 
   const page = reactive({
-    current: -1,
-    size: -1,
+    current: 1,
+    size: 100,
   });
 
   const data = reactive({
     searchForm: {
-      searchText: "",
-      invoiceDate: "",
+      customerName: "",
     },
   });
 
@@ -96,7 +95,7 @@
   };
   // 鎼滅储妗嗗彉鍖栨椂瑙﹀彂
   const searchChange = val => {
-    searchForm.value.searchText = val;
+    searchForm.value.customerName = val;
     getList();
   };
   // 鏌ヨ鍒楄〃
@@ -106,9 +105,9 @@
 
   const getList = () => {
     showLoadingToast("鍔犺浇涓�...");
-    invoiceLedgerSalesAccount({ ...searchForm.value, ...page })
+    customewTransactions({ ...searchForm.value, ...page })
       .then(res => {
-        tableData.value = res.data.records;
+        tableData.value = res?.data?.records || res?.data || res?.records || [];
         closeToast();
       })
       .catch(() => {
@@ -139,7 +138,7 @@
 
   const rowClickMethod = row => {
     // 浣跨敤 uni.setStorageSync 瀛樺偍瀹㈡埛淇℃伅
-    uni.setStorageSync("customerId", row.id);
+    uni.setStorageSync("customerId", row.customerId);
     // 璺宠浆鍒板洖娆捐褰曟槑缁嗛〉闈�
     uni.navigateTo({
       url: "/pages/sales/receiptPaymentLedger/detail",
@@ -164,4 +163,4 @@
     color: #ff4757; // 涓庡叕鍏辨牱寮忎腑鐨� #ee0a24 涓嶅悓
     font-weight: 500;
   }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3