From 9360d4618e0f873eabb4e4a739d6b477b7461ce1 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 10 六月 2026 17:19:52 +0800
Subject: [PATCH] 台账数据展示页面调整是按照订单状态区分。并且可以参考一下企业目前使用的系统的操作界面按钮布局(不能和企业现在使用的软件界面做的一模一样)。

---
 src/views/procurementManagement/procurementLedger/index.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index 9a76e2a..86fb433 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -84,7 +84,7 @@
                 show-summary
                 :summary-method="summarizeMainTable"
                 @expand-change="expandChange"
-                height="calc(100vh - 21.5em)">
+                height="calc(100vh - 25em)">
         <el-table-column align="center"
                          type="selection"
                          width="55" />
@@ -108,8 +108,8 @@
                                prop="quantity" />
               <el-table-column label="鍙敤鏁伴噺"
                                prop="availableQuality" />
-              <el-table-column label="閫�璐ф暟閲�"
-                               prop="returnQuality" />
+              <!-- <el-table-column label="閫�璐ф暟閲�"
+                               prop="returnQuality" /> -->
               <el-table-column label="鍏ュ簱鐘舵��"
                                width="100px"
                                align="center">
@@ -117,6 +117,16 @@
                   <el-tag :type="getProductStockStatusType(scope.row.productStockStatus)"
                           size="small">
                     {{ stockStatusText[scope.row.productStockStatus] || '鏈叆搴�' }}
+                  </el-tag>
+                </template>
+              </el-table-column>
+              <el-table-column label="鏄惁璐ㄦ"
+                               width="100px"
+                               align="center">
+                <template #default="scope">
+                  <el-tag :type="getCheckedType(scope.row.isChecked)"
+                          size="small">
+                    {{ scope.row.isChecked ? '鏄�' : '鍚�' }}
                   </el-tag>
                 </template>
               </el-table-column>
@@ -865,6 +875,14 @@
       0: "info",
       1: "warning",
       2: "success",
+    };
+    return typeMap[status] || "info";
+  };
+  // 鑾峰彇鏄惁璐ㄦ鏍囩绫诲瀷
+  const getCheckedType = status => {
+    const typeMap = {
+      0: "info",
+      1: "success",
     };
     return typeMap[status] || "info";
   };
@@ -2015,7 +2033,8 @@
               canvas.width - horizontalPad * 2
             );
             const textBlockHeight = lines.length * lineHeight;
-            canvas.height = padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
+            canvas.height =
+              padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
 
             ctx.fillStyle = "#ffffff";
             ctx.fillRect(0, 0, canvas.width, canvas.height);

--
Gitblit v1.9.3