From c5151996182a7342bed2d62fcbd99349b9b2e3a1 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 03 七月 2024 14:58:28 +0800
Subject: [PATCH] 提交

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
index 88a8e0d..6431867 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
@@ -146,7 +146,7 @@
   align: 'center',//鏂囧瓧灞呬腑
   stripe: true,//鏂戦┈绾�
   rowConfig: {isCurrent: true, isHover: true, height: 30, useKey: false},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
-  id: 'CustomerList',
+  id: 'CustomerListRight',
   showFooter: true,//鏄剧ず鑴�
   printConfig: {},
   importConfig: {},
@@ -222,20 +222,38 @@
   },
   data: [],//table body瀹為檯鏁版嵁
   //鑴氶儴姹傚拰
+
+  weighAllAmount(data) {
+    let count = 0
+    data.forEach(row => {
+      count += row.weight
+    })
+    return count
+  },
   footerMethod ({ columns, data }) {//椤佃剼鍑芥暟
+    let count = 0
+
     return[
       columns.map((column, columnIndex) => {
         if (columnIndex === 0) {
           return t('basicData.total')
         }
-        const List = ["baiscQuantity",'computeGrossArea','weight','perimeter']
+
+        const List = ["baiscQuantity",'computeGrossArea']
         if (List.includes(column.field)) {
           return footSum(data, column.field)
         }
+        if (column.field === 'weight'){
+          data.forEach(row => {
+            count += weightSum(row)
+          })
+          return  parseFloat(count.toFixed(2))
+        }
+
         return ''
       })
     ]
-  }
+  },
 
 })
 
@@ -289,7 +307,7 @@
     },
     {
       field: 'landingSequence',
-      title: '钀芥灦椤哄簭',
+      title: t('processCard.landingSequence'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged
@@ -325,7 +343,7 @@
         if (columnIndex === 0) {
           return t('basicData.total')
         }
-        const List = ["quantity",'goodsQuantity','area','perimeter']
+        const List = ["quantity",'goodsQuantity','area']
         if (List.includes(column.field)) {
           return footSum(data, column.field)
         }

--
Gitblit v1.8.0