zhangweicheng 6 tahun lalu
induk
melakukan
66eea5220e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;
                                 times = 1;
                             }
                             }
                             rationNode.data.quantity = scMathUtil.roundForObj(ration_value / times,getDecimal("quantity",rationNode));
                             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;
                             rationNode.changed = true;
                             needUpdateChildren.push(rationNode);
                             needUpdateChildren.push(rationNode);
                             if (rationNode.children.length>0){//如果有子工料机
                             if (rationNode.children.length>0){//如果有子工料机