From d876aa06f04d7b93f849e944cca5df64b6a28ee2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 09 十二月 2025 10:19:29 +0800
Subject: [PATCH] 1.南洋电缆小数点修改

---
 src/views/procurementManagement/procurementInvoiceLedger/index.vue |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index 3ac73e5..e08cb8d 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -47,20 +47,20 @@
         :tableLoading="loading"
         :tableData="dataList"
         :isSelection="true"
-        height="calc(100vh - 15em)"
+        height="calc(100vh - 19.5em)"
         :isShowSummary="true"
         :summaryMethod="summarizeMainTable"
         :page="{
           current: pagination.currentPage,
           size: pagination.pageSize,
-          total: 0,
+          total: pagination.total,
         }"
         @selection-change="handleSelectionChange"
         @pagination="changePage"
       >
         <template #commonFilesRef="{ row }">
           <el-dropdown @command="(command) => handleCommand(command, row)">
-            <el-button link :icon="Files" type="danger"> 闄勪欢 </el-button>
+            <el-button link :icon="Files" :type="row.commonFiles.length !== 0 ? 'success' : 'danger'"> 闄勪欢 </el-button>
             <template #dropdown>
               <el-dropdown-menu>
                 <el-dropdown-item
@@ -81,15 +81,13 @@
           <el-button
             type="primary"
             text
-            @click="openEdit(row.id)"
-						:disabled="row.issUerId !== userStore.id"
+            @click="openEdit(row)"
           >
             缂栬緫
           </el-button>
           <el-button
             type="primary"
             text
-						:disabled="row.issUerId !== userStore.id"
             @click="handleDelete(row)"
           >
             鍒犻櫎
@@ -162,8 +160,8 @@
       width: 150,
     },
     {
-      label: "瀹㈡埛鍚嶇О",
-      prop: "customerName",
+      label: "椤圭洰鍚嶇О",
+      prop: "projectName",
       width: 240,
     },
     {
@@ -186,11 +184,11 @@
       prop: "taxInclusiveTotalPrice",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? parseFloat(cell).toFixed(5) : 0;
       },
     },
     {
-      label: "寮�绁ㄦ棩鏈�",
+      label: "鏉ョエ鏃ユ湡",
       prop: "createdAt",
       width: 110,
     },
@@ -199,7 +197,7 @@
       prop: "ticketsAmount",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? parseFloat(cell).toFixed(5) : 0;
       },
     },
     {
@@ -207,7 +205,7 @@
       prop: "unTicketsPrice",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? parseFloat(cell).toFixed(5) : 0;
       },
     },
     {
@@ -289,8 +287,9 @@
   });
 };
 
-const changePage = ({ page }) => {
+const changePage = ({ page, limit }) => {
   pagination.currentPage = page;
+	pagination.pageSize = limit;
   onCurrentChange(page);
 };
 
@@ -310,8 +309,8 @@
   modalRef.value.handleImport(id);
 };
 
-const openEdit = (id) => {
-  editmodalRef.value.open(id);
+const openEdit = (row) => {
+  editmodalRef.value.open(row);
 };
 
 // 涓婁紶鎴愬姛鍚庡仛浠�涔�

--
Gitblit v1.9.3