From f227001329d6f267e72a13d03be4c7956885b97a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 10 七月 2025 16:02:50 +0800
Subject: [PATCH] 1.来票台账-前端字段展示错误

---
 src/views/procurementManagement/invoiceEntry/index.vue |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue
index 3f8fcf9..6df2bb0 100644
--- a/src/views/procurementManagement/invoiceEntry/index.vue
+++ b/src/views/procurementManagement/invoiceEntry/index.vue
@@ -24,8 +24,8 @@
           <el-button type="primary" @click="handleAdd('add')">
             鏂板鐧昏
           </el-button>
-          <el-button @click="handleOut">瀵煎嚭</el-button>
-          <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
+<!--          <el-button @click="handleOut">瀵煎嚭</el-button>-->
+<!--          <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>-->
         </div>
       </div>
       <PIMTable
@@ -42,6 +42,7 @@
         :expand-row-keys="expandRowKeys"
         @expand-change="expandChange"
         @selection-change="handleSelectionChange"
+        @pagination="changePage"
       >
         <template #expand="{ row }">
           <ExpandTable ref="expandTableRef" />
@@ -87,6 +88,7 @@
   pagination,
   getTableData,
   resetFilters,
+  onCurrentChange,
 } = usePaginationApi(
   gePurchaseListPage,
   {
@@ -99,20 +101,38 @@
       slot: "expand",
     },
     {
+      label: "閲囪喘璁㈠崟鍙�",
+      prop: "purchaseContractNumber",
+      width:150
+    },
+    {
       label: "閿�鍞悎鍚屽彿",
       prop: "salesContractNo",
+      width:150
     },
     {
       label: "渚涘簲鍟嗗悕绉�",
       prop: "supplierName",
+      width:240
     },
     {
       label: "椤圭洰鍚嶇О",
       prop: "projectName",
+      width:150
+    },
+    {
+      label: "褰曞叆浜�",
+      prop: "recorderName",
+    },
+    {
+      label: "褰曞叆鏃ユ湡",
+      prop: "entryDate",
+      width:100
     },
     {
       label: "鍚堝悓閲戦(鍏�)",
       prop: "contractAmount",
+      width:150,
       formatData: (val) => {
         return val ? parseFloat(val).toFixed(2) : 0;
       },
@@ -120,6 +140,7 @@
     {
       label: "宸插紑绁ㄩ噾棰�(鍏�)",
       prop: "receiptPaymentAmount",
+      width:150,
       formatData: (val) => {
         return val ? parseFloat(val).toFixed(2) : 0;
       },
@@ -127,6 +148,7 @@
     {
       label: "寰呭紑绁ㄩ噾棰�(鍏�)",
       prop: "unReceiptPaymentAmount",
+      width:150,
       formatData: (val) => {
         return val ? parseFloat(val).toFixed(2) : 0;
       },
@@ -164,8 +186,15 @@
 const handleDelete = () => {};
 
 const expandChange = async (row, expandedRows) => {
-  await nextTick();
-  expandTableRef.value.getList(row.id);
+  if (expandedRows.length > 0) {
+    await nextTick();
+    expandTableRef.value.getList(row.id);
+  }
+};
+
+const changePage = ({ page }) => {
+  pagination.currentPage = page;
+  onCurrentChange(page);
 };
 
 onMounted(() => {

--
Gitblit v1.9.3