zhangweicheng 6 年之前
父節點
當前提交
66eea5220e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/building_saas/main/js/models/quantity_detail.js

+ 1 - 1
web/building_saas/main/js/models/quantity_detail.js

@@ -746,7 +746,7 @@ var quantity_detail = {
                                 times = 1;
                             }
                             rationNode.data.quantity = scMathUtil.roundForObj(ration_value / times,getDecimal("quantity",rationNode));
-                            rationNode.data.contain = scMathUtil.roundForObj(rationNode.data.quantity/value,getDecimal("process"));
+                            rationNode.data.contain = value?scMathUtil.roundForObj(rationNode.data.quantity/value,getDecimal("process")):0;
                             rationNode.changed = true;
                             needUpdateChildren.push(rationNode);
                             if (rationNode.children.length>0){//如果有子工料机