chenshilong 7 năm trước cách đây
mục cha
commit
e079f3da21
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      web/building_saas/main/js/models/ration_glj.js

+ 4 - 1
web/building_saas/main/js/models/ration_glj.js

@@ -78,7 +78,10 @@ var ration_glj = {
             }
             for (let ration of rations) {
                 if (ration.type == rationType.volumePrice || ration.type == rationType.gljRation){
-                    result.push(ration);
+                    let glj = JSON.parse(JSON.stringify(ration));
+                    glj.type = glj.subType;
+                    glj.totalQuantity = parseFloatPlus(ration.quantity);
+                    result.push(glj);
                 }
                 else{
                     let rationGljs = this.getGljArrByRation(ration);