From 99d0bb96043ba5d6db66bbfb00f67ca4e09f3ffb Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 07 三月 2025 09:08:33 +0800
Subject: [PATCH] 小片尺寸和成品尺寸不相同时,打印显示小片信息

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 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 950ae7f..8bf68e4 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
@@ -147,10 +147,10 @@
   },
   formConfig: {
     data: {
-      shelfThickness: 2000,
+      shelfThickness: 800,
       spacerThickness: 0,
       inWeight: 4000,
-      inMaxQuantity: 1,
+      inMaxQuantity: 20,
       inLenMin:400,
       inLenMax:3500,
       inShortMax:2500,
@@ -164,6 +164,9 @@
         { required: true, message: t('delivery.pleaseEnterANumericalValueGreaterThanOrEqualTo0'),type:'number',pattern:/^[0-9]\d*$/ }
       ],
       inWeight: [
+        { required: true, message: t('basicData.msg.greater0'),type:'number',pattern:/^[1-9]\d*$/ }
+      ],
+      inMaxQuantity: [
         { required: true, message: t('basicData.msg.greater0'),type:'number',pattern:/^[1-9]\d*$/ }
       ]
     },
@@ -792,6 +795,7 @@
             if (item.baiscQuantity === 0) {
               $grid.remove(item)
             }
+            $gridLeft.reloadData([...$gridLeft.getTableData().fullData])
             //delete item._X_ROW_KEY
           } else {
             item.quantity = checkedNum.value
@@ -843,9 +847,8 @@
       checkedList.forEach((item) => {
         item.processId = checkedListLeft[0].processId
         item.landingSequence = checkedListLeft[0].landingSequence
-        item.quantity = checkedListLeft[0].baiscQuantity
+        item.quantity = item.baiscQuantity
         item.computeGrossArea = (item.computeGrossArea - checkedListLeft[0].width * checkedListLeft[0].height * checkedListLeft[0].baiscQuantity / 1000000).toFixed(2)
-
         delete item._X_ROW_KEY
       })
       $gridLeft.insertAt(checkedList)

--
Gitblit v1.8.0