Browse Source

增加本期实付

ellisran 1 năm trước cách đây
mục cha
commit
cf7724991f
2 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 1 0
      app/controller/tender_controller.js
  2. 8 0
      app/view/tender/detail.ejs

+ 1 - 0
app/controller/tender_controller.js

@@ -378,6 +378,7 @@ module.exports = app => {
                     tender.end_gather_tp = ctx.helper.add(tender.end_contract_tp, tender.end_qc_tp);
                     tender.pre_gather_tp = ctx.helper.add(lastStage.pre_contract_tp, lastStage.pre_qc_tp);
                     tender.yf_tp = lastStage.yf_tp;
+                    tender.sf_tp = lastStage.sf_tp;
                     tender.qc_ratio = ctx.helper.mul(ctx.helper.div(tender.end_qc_tp, ctx.tender.info.deal_param.contractPrice, 2), 100);
                     tender.pre_ratio = ctx.helper.mul(ctx.helper.div(tender.pre_gather_tp, tender.sum, 2), 100);
                     tender.cur_ratio = ctx.helper.mul(ctx.helper.div(tender.gather_tp, tender.sum, 2), 100);

+ 8 - 0
app/view/tender/detail.ejs

@@ -166,6 +166,14 @@
                                             </div>
                                         </div>
                                     </div>
+                                    <div class="col-auto pl-0">
+                                        <div class="card text-center <% if (!ctx.tender.info.display.dayMode) { %>bg-dark text-white<% } %>">
+                                            <div class="card-body">
+                                                <h5 class="card-title card-big-title"><%- ctx.helper.formatMoney(tender.sf_tp) %></h5>
+                                                <p class="card-text text-muted">本期实付</p>
+                                            </div>
+                                        </div>
+                                    </div>
                                 </div>
                             </div>
                         </div>