소스 검색

小数位问题

laiguoran 4 년 전
부모
커밋
7b2bf27fe0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;