|
@@ -449,7 +449,7 @@ var rationGLJOprObj = {
|
|
|
});
|
|
|
let roundPrice = scMathUtil.roundTo(labourPrice, -2);
|
|
|
rst.labourPrice = roundPrice;
|
|
|
- rationBasePrc += roundPrice;
|
|
|
+ rationBasePrc = scMathUtil.roundTo(rationBasePrc + roundPrice, -2);
|
|
|
}
|
|
|
if(price.gljType2.length > 0){
|
|
|
let materialPrice = 0;
|
|
@@ -458,7 +458,7 @@ var rationGLJOprObj = {
|
|
|
});
|
|
|
let roundPrice = scMathUtil.roundTo(materialPrice, -2);
|
|
|
rst.materialPrice = roundPrice;
|
|
|
- rationBasePrc += roundPrice;
|
|
|
+ rationBasePrc = scMathUtil.roundTo(rationBasePrc + roundPrice, -2);
|
|
|
}
|
|
|
if(price.gljType3.length > 0){
|
|
|
let machinePrice = 0;
|
|
@@ -467,7 +467,7 @@ var rationGLJOprObj = {
|
|
|
});
|
|
|
let roundPrice = scMathUtil.roundTo(machinePrice, -2);
|
|
|
rst.machinePrice = roundPrice;
|
|
|
- rationBasePrc += roundPrice;
|
|
|
+ rationBasePrc = scMathUtil.roundTo(rationBasePrc + roundPrice, -2);
|
|
|
}
|
|
|
rst.rationBasePrc = rationBasePrc;
|
|
|
}
|