소스 검색

完成度算法更新

laiguoran 3 년 전
부모
커밋
86b4a97fa0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/view/datacollect/index.ejs

+ 1 - 1
app/view/datacollect/index.ejs

@@ -1389,7 +1389,7 @@
                 chart_option2_data.total_price.push(t.total_price ? t.total_price : 0);
                 chart_option2_data.contract_tp.push(t.end_contract_tp ? t.end_contract_tp : 0);
                 chart_option2_data.qc_tp.push(t.end_qc_tp ? t.end_qc_tp : 0);
-                const rate = ZhCalc.mul(ZhCalc.div(ZhCalc.add(t.pre_gather_tp, t.gather_tp), t.total_price, 2), 100, 0);
+                const rate = ZhCalc.mul(ZhCalc.div(ZhCalc.add(t.pre_gather_tp, t.gather_tp), ZhCalc.add(t.total_price, t.end_qc_tp), 2), 100, 0);
                 chart_option3_data.push(rate ? rate : '');
                 if (option1_is_tender) {
                     if(t.total_price) chart_option1_data.push({ value: t.total_price, name: t.name});