|
@@ -559,7 +559,7 @@ var gljOprObj = {
|
|
|
this.sheet.setRowCount(0);
|
|
|
//console.log(+new Date())
|
|
|
//this.sheet.getRange(0,-1,this.sheet.getRowCount(),-1).visible(true); //这个方法导致加载缓慢
|
|
|
- this.sheetData=_.sortByAll(this.sheetData,['type','code']);
|
|
|
+ this.sheetData=sortRationGLJ(this.sheetData);
|
|
|
this.sumQuantity();//计算总消耗量
|
|
|
this.addMixRatioToShow();//显示组成物信息
|
|
|
this.initRationTree(init);
|
|
@@ -1298,4 +1298,11 @@ function getFormatter(decimal) {
|
|
|
pre += "0"
|
|
|
}
|
|
|
return pre;
|
|
|
+}
|
|
|
+
|
|
|
+function sortRationGLJ(list) {
|
|
|
+ list= _.sortByAll(list,[function (item) {
|
|
|
+ return item.type+"";
|
|
|
+ },"code"])
|
|
|
+ return list;
|
|
|
}
|