From d613f1080234e13d12f2bad22650733b4477aa84 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 09 十二月 2025 16:52:40 +0800
Subject: [PATCH] 在制品报表添加厚度和相关功能

---
 north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgress.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgress.vue b/north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgress.vue
index ec19396..5e01eef 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgress.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgress.vue
@@ -143,6 +143,7 @@
   }
   request.post(`/report/workInProgress/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}/${terminationVals}`, filterData.value).then((res) => {
     if (res.code == 200) {
+
       total.value = res.data.total
       produceList = deepClone(res.data.data)
       produceList.forEach(item => {
@@ -180,10 +181,10 @@
   request.post(`/report/workInProgress/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}/${terminationVals}`, filterData.value).then((res) => {
 
     if (res.code == 200) {
-      total.dataTotal = res.data.total.total * 1
-      total.pageTotal = res.data.total.pageTotal
-      pageTotal.value = res.data.total
-      total.value = res.data.total
+      total.value = res.data.total;
+      total.dataTotal = res.data.total.total * 1;
+      total.pageTotal = res.data.total.pageTotal;
+      pageTotal.value = res.data.total;
       res.data.data.forEach(item => {
         // 濡傛灉 shape 鍙兘鏄瓧绗︿覆灏辩敤 ==锛屽鏋滀竴瀹氭槸鏁板瓧灏辩敤 ===
         item.shape = (item.shape == 2) ? t('order.alien') : t('order.universalShape');
@@ -246,10 +247,10 @@
   request.post(`/report/workInProgress/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}/${terminationVals}`, filterData.value).then((res) => {
 
     if (res.code == 200) {
-      total.dataTotal = res.data.total.total * 1
-      total.pageTotal = res.data.total.pageTotal
-      pageTotal.value = res.data.total
-      total.value = res.data.total
+      total.value = res.data.total;
+      total.dataTotal = res.data.total.total * 1;
+      total.pageTotal = res.data.total.pageTotal;
+      pageTotal.value = res.data.total;
       produceList = deepClone(res.data.data)
       produceList.forEach(item => {
         // 濡傛灉 shape 鍙兘鏄瓧绗︿覆灏辩敤 ==锛屽鏋滀竴瀹氭槸鏁板瓧灏辩敤 ===
@@ -359,6 +360,7 @@
       slots: {filter: 'num1_filter'},},
     {field: 'childHeight', width: 120, title: t('order.height'),visible: true,filters: [{data: ''}],
       slots: {filter: 'num1_filter'},},
+    {field: 'thickness',width: 90, title: t('order.totalThickness'),visible: true},
     {field: 'stockNum', width: 120, title: t('productStock.inventoryQuantity'),visible: true,filters: [{data: ''}],
       slots: {filter: 'num1_filter'},},
     {field: 'stockArea', width: 120, title: t('report.inventoryArea'),visible: true,filters: [{data: ''}],
@@ -394,7 +396,7 @@
         const List = ["quantity",'stockNum','stockArea',]
         if (List.includes(column.field)) {
           //return footSum(data, column.field)
-          return footSum(data, column.field)
+          return total.value?.[column.field] ?? 0
         }
         return ''
       })

--
Gitblit v1.8.0