|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
let gljComponentOprObj = {
|
|
|
workBook: null,
|
|
|
+ processDecimal: -6,
|
|
|
setting: {
|
|
|
owner: "gljComponent",
|
|
|
header:[
|
|
@@ -507,7 +508,7 @@ let gljComponentOprObj = {
|
|
|
let roundBasePrc = scMathUtil.roundTo(parseFloat(component[i].basePrice), -2);
|
|
|
let roundConsumeAmt = scMathUtil.roundTo(parseFloat(component[i].consumeAmt), -3);
|
|
|
//gljBasePrc = scMathUtil.roundTo(scMathUtil.roundTo(roundBasePrc * parseFloat(component[i].consumeAmt), -2) + gljBasePrc, -2); 旧算法
|
|
|
- gljBasePrc = roundBasePrc * roundConsumeAmt + gljBasePrc;
|
|
|
+ gljBasePrc = scMathUtil.roundTo(scMathUtil.roundTo(roundBasePrc * roundConsumeAmt, me.processDecimal) + gljBasePrc, me.processDecimal);
|
|
|
}
|
|
|
return scMathUtil.roundTo(gljBasePrc, -2);
|
|
|
}
|