From 0ada8e23b09f60d893737cf7d0a9343abe4c045a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 18 八月 2026 14:49:07 +0800
Subject: [PATCH] 酒泉-富边电子 1.隐藏部分展示字段 2.客户往来、供应商往来数据展示不全问题

---
 src/views/salesManagement/receiptPaymentLedger/index.vue |   58 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 36 insertions(+), 22 deletions(-)

diff --git a/src/views/salesManagement/receiptPaymentLedger/index.vue b/src/views/salesManagement/receiptPaymentLedger/index.vue
index 2cec625..cb6fa65 100644
--- a/src/views/salesManagement/receiptPaymentLedger/index.vue
+++ b/src/views/salesManagement/receiptPaymentLedger/index.vue
@@ -11,6 +11,15 @@
           clearable
           prefix-icon="Search"
         />
+        <span class="search_title" style="margin-left: 10px">璁㈠崟鍙凤細</span>
+        <el-input
+          v-model="orderNoSearch"
+          style="width: 240px"
+          placeholder="杈撳叆璁㈠崟鍙锋悳绱�"
+          @change="filterReceiptRecord"
+          clearable
+          prefix-icon="Search"
+        />
         <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
           >鎼滅储</el-button
         >
@@ -41,7 +50,7 @@
 						width="200"
           />
           <el-table-column
-            label="寮�绁ㄩ噾棰�(鍏�)"
+            label="鍚堝悓閲戦(鍏�)"
             prop="invoiceTotal"
             show-overflow-tooltip
             :formatter="formattedNumber"
@@ -93,45 +102,43 @@
           />
           <el-table-column
             label="鍙戠敓鏃ユ湡"
-            prop="happenTime"
+            prop="receiptPaymentDate"
             show-overflow-tooltip
 						width="110"
           />
           <el-table-column
-            label="寮�绁ㄩ噾棰�(鍏�)"
-            prop="invoiceAmount"
+            label="璁㈠崟鍙�"
+            prop="salesContractNo"
+            show-overflow-tooltip
+						width="200"
+          />
+          <el-table-column
+            label="鍚堝悓閲戦(鍏�)"
+            prop="invoiceTotal"
             show-overflow-tooltip
             :formatter="formattedNumber"
 						width="200"
           />
           <el-table-column
             label="鍥炴閲戦(鍏�)"
-            prop="receiptAmount"
+            prop="receiptPaymentAmount"
             show-overflow-tooltip
             :formatter="formattedNumber"
 						width="200"
           />
           <el-table-column
             label="搴旀敹閲戦(鍏�)"
-            prop="unReceiptAmount"
+            prop="unReceiptPaymentAmount"
             show-overflow-tooltip
 						width="200"
           >
             <template #default="{ row, column }">
               <el-text type="danger">
-                {{ formattedNumber(row, column, row.unReceiptAmount) }}
+                {{ formattedNumber(row, column, row.unReceiptPaymentAmount) }}
               </el-text>
             </template>
           </el-table-column>
         </el-table>
-        <pagination
-          v-show="recordTotal > 0"
-          :total="recordTotal"
-          layout="total, sizes, prev, pager, next, jumper"
-          :page="recordPage.current"
-          :limit="recordPage.size"
-          @pagination="recordPaginationChange"
-        />
       </div>
     </div>
   </div>
@@ -162,6 +169,7 @@
     invoiceDate: "",
   },
 });
+const orderNoSearch = ref("");
 const customerId = ref("");
 const { searchForm } = toRefs(data);
 const originReceiptRecord = ref([]);
@@ -172,7 +180,6 @@
   getList();
 };
 const paginationChange = (obj) => {
-  console.log("paginationChange", current, limit);
   page.current = obj.page;
   page.size = obj.limit;
   getList();
@@ -234,8 +241,8 @@
   console.log("param", param);
   customerInteractions(param).then((res) => {
     originReceiptRecord.value = res.data;
-    handlePagination({ page: 1, limit: recordPage.size });
-    recordTotal.value = res.data.length;
+    recordPage.current = 1;
+    filterReceiptRecord();
   });
 };
 
@@ -252,11 +259,18 @@
 const handlePagination = ({ page, limit }) => {
   recordPage.current = page;
   recordPage.size = limit;
+  filterReceiptRecord();
+};
 
-  const start = (page - 1) * limit;
-  const end = start + limit;
-
-  receiptRecord.value = originReceiptRecord.value.slice(start, end);
+// 鏍规嵁璁㈠崟鍙疯繃婊ゅ彸杈硅〃鏍兼暟鎹�
+const filterReceiptRecord = () => {
+  let filteredData = originReceiptRecord.value;
+  if (orderNoSearch.value) {
+    filteredData = originReceiptRecord.value.filter(item => 
+      item.salesContractNo && item.salesContractNo.includes(orderNoSearch.value)
+    );
+  }
+  receiptRecord.value = filteredData;
 };
 
 onMounted(() => {

--
Gitblit v1.9.3