From 2c98be64470f8298d3083ce337b0ffb948bee5f7 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 09 六月 2025 16:45:34 +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 | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 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 f845e9a..98a9ca4 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
@@ -948,19 +948,22 @@
let quantit = ref('')
let weight = ref('')
-const handleCheckboxChange = ({row}) => {
- const $grid = xGrid.value
- //鑾峰彇鍙宠竟琛ㄦ牸checkbox閫変腑鐨勬暟鎹�
- const checkedList = $grid.getCheckboxRecords()
+const handleCheckboxChange = ({ row }) => {
+ const $grid = xGrid.value;
+ // 鑾峰彇鍙宠竟琛ㄦ牸 checkbox 閫変腑鐨勬暟鎹�
+ const checkedList = $grid.getCheckboxRecords();
let quantitySum = 0;
let weightsum = 0;
+
checkedList.forEach(item => {
- quantitySum += item.baiscQuantity;
+ quantitySum += Number(item.baiscQuantity) || 0; // 纭繚杞崲涓烘暟瀛�
weightsum += weightSum(item);
});
- quantit.value = quantitySum;
+
+ quantit.value = Number(quantitySum) || 0; // 纭繚鏈�缁堝�兼槸鏁板瓧
weight.value = parseFloat(weightsum.toFixed(2));
-}
+};
+
</script>
<template>
--
Gitblit v1.8.0