north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue
@@ -897,8 +897,7 @@ } // 计算 $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*1) { ElMessage.warning(`所选数据的数量总和 (${totalQuantity}) 与订单数量 (${orderQuantity}) 不匹配,请检查后重试!`);