瀏覽代碼

还原工料机数据转换操作

olym 7 年之前
父節點
當前提交
0ad0ba49c0
共有 1 個文件被更改,包括 1 次插入3 次删除
  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;
             }
 
             // 查找组成物的消耗量