From ea1a0a7522dbe869e02cdde1042fe2596d413bef Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 05 三月 2026 11:37:05 +0800
Subject: [PATCH] 坤泰修改产出统计

---
 src/views/productionManagement/productStatistics/index.vue |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/views/productionManagement/productStatistics/index.vue b/src/views/productionManagement/productStatistics/index.vue
index 763f271..2434d0b 100644
--- a/src/views/productionManagement/productStatistics/index.vue
+++ b/src/views/productionManagement/productStatistics/index.vue
@@ -26,6 +26,12 @@
                 :page="page"
                 :tableLoading="tableLoading"
                 @pagination="pagination">
+        <template #inputQuantitySlot="{ row }">
+          {{ row.inputQuantity === 0 ? '-' : row.inputQuantity }}
+        </template>
+        <template #outputQuantitySlot="{ row }">
+          {{ row.outputQuantity === 0 ? '-' : row.inputQuantity }}
+        </template>
       </PIMTable>
     </div>
   </div>
@@ -57,11 +63,15 @@
     label: "鎶曞叆鏁伴噺",
     prop: "inputQuantity",
     width: "140",
+    dataType: 'slot',
+    slot: 'inputQuantitySlot',
   },
   {
     label: "浜у嚭鏁伴噺",
     prop: "outputQuantity",
     width: "140",
+    dataType: 'slot',
+    slot: 'outputQuantitySlot',
   }
 ]);
 const tableData = ref([]);
@@ -118,10 +128,12 @@
 <style scoped lang="scss">
 .search_form {
   margin-bottom: 20px;
+
   .search-row {
     display: flex;
     gap: 20px;
     align-items: center;
+
     .search-item {
       display: flex;
       align-items: center;
@@ -141,26 +153,32 @@
   display: flex;
   gap: 20px;
   height: 350px;
+
   .transfer-card-info {
     flex: 1;
     overflow: auto;
+
     .info-group {
       width: 50%;
       float: left;
     }
+
     .info-item {
       display: flex;
       margin-bottom: 15px;
+
       .info-label {
         width: 120px;
         font-weight: bold;
         margin-right: 20px;
       }
+
       .info-value {
         flex: 1;
       }
     }
   }
+
   .transfer-card-qr {
     width: 240px;
     display: flex;
@@ -171,7 +189,7 @@
 }
 </style>
 
-<style  lang="scss">
+<style lang="scss">
 @media print {
   @page {
     size: landscape;
@@ -219,20 +237,24 @@
   }
   .transfer-card-info {
     flex: 1;
+
     .info-group {
       width: 100%;
       float: none;
       margin-bottom: 20px;
     }
+
     .info-item {
       display: flex;
       margin-bottom: 10px;
+
       .info-label {
         width: 100px;
         font-weight: bold;
         margin-right: 15px;
         white-space: nowrap;
       }
+
       .info-value {
         flex: 1;
         word-break: break-word;
@@ -251,4 +273,4 @@
     height: 140px !important;
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3