Browse Source

还原工料机数据转换操作

olym 7 years ago
parent
commit
0ad0ba49c0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      modules/glj/models/glj_list_model.js

+ 1 - 3
modules/glj/models/glj_list_model.js

@@ -109,9 +109,7 @@ class GLJListModel extends BaseModel {
             let quantityList = {};
             // 整理数据
             for (let tmp of quantityData) {
-                // 解决js小数点bug
-                let tmpQuantity = tmp.quantity + '';
-                quantityList[tmp.projectGLJID] = parseFloat(tmpQuantity.toFixed(2));
+                quantityList[tmp.projectGLJID] = tmp.quantity;
             }
 
             // 查找组成物的消耗量