chenshilong hace 7 años
padre
commit
e079f3da21
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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);