Explorar o código

小数位问题

laiguoran %!s(int64=4) %!d(string=hai) anos
pai
achega
7b2bf27fe0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/stage.js

+ 1 - 1
app/service/stage.js

@@ -592,7 +592,7 @@ module.exports = app => {
                         cb.value = this.ctx.helper.add(sumGcl.contract_tp, sumGcl.qc_tp);
                         break;
                     case 'bqyf':
-                        cb.value = this._.sumBy(stage_list, 'yf_tp');
+                        cb.value = this.ctx.helper.roundNum(this._.sumBy(stage_list, 'yf_tp'), 2);
                         break;
                     default:
                         cb.value = 0;