From 46bf33053daa5f2bfe163822ce4f793f669024f8 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期一, 10 三月 2025 08:28:13 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue |    5 ++---
 1 files changed, 2 insertions(+), 3 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 3b11179..b8110eb 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
@@ -897,10 +897,9 @@
             }
 
             // 璁$畻 $table 閲� quantity 瀛楁鐨勬�诲拰
-            let totalQuantity = selectRecords.reduce((sum, record) => sum + (record.quantity || 0), 0);
-
+            let totalQuantity = selectRecords.reduce((sum, record) => sum + (Number(record.quantity) || 0), 0);
             // 瀵规瘮鍏ㄥ眬鍙橀噺 orderQuantity
-            if (totalQuantity !== orderQuantity) {
+            if (totalQuantity !== orderQuantity*1) {
               ElMessage.warning(`鎵�閫夋暟鎹殑鏁伴噺鎬诲拰 (${totalQuantity}) 涓庤鍗曟暟閲� (${orderQuantity}) 涓嶅尮閰嶏紝璇锋鏌ュ悗閲嶈瘯锛乣);
               gridLeftOptions.toolbarConfig.buttons[0].disabled = false;
               return;

--
Gitblit v1.8.0