|
@@ -419,10 +419,6 @@ 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;
|
|
|
- const [change_tp, change_p_tp, change_n_tp] = await ctx.service.change.getChangeTp(tender.id);
|
|
|
- tender.change_tp = change_tp;
|
|
|
- tender.change_p_tp = change_p_tp;
|
|
|
- tender.change_n_tp = change_n_tp;
|
|
|
tender.qc_ratio = ctx.helper.mul(ctx.helper.div(tender.end_qc_tp, ctx.tender.info.deal_param.contractPrice, 2), 100);
|
|
|
tender.sum = ctx.helper.add(tender.total_price, tender.change_tp);
|
|
|
tender.pre_ratio = ctx.helper.mul(ctx.helper.div(tender.pre_gather_tp, tender.sum, 2), 100);
|
|
@@ -468,6 +464,10 @@ module.exports = app => {
|
|
|
tender.status_users = status_name ? status_name.name : '';
|
|
|
}
|
|
|
}
|
|
|
+ const [change_tp, change_p_tp, change_n_tp] = await ctx.service.change.getChangeTp(tender.id);
|
|
|
+ tender.change_tp = change_tp;
|
|
|
+ tender.change_p_tp = change_p_tp;
|
|
|
+ tender.change_n_tp = change_n_tp;
|
|
|
|
|
|
const tiModel = new tenderInfoModel(ctx);
|
|
|
const gclChapter = await tiModel.gatherChapter();
|