Parcourir la source

合同支付,删除报表

MaiXinRong il y a 4 mois
Parent
commit
137caa5602
2 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 0
      app/service/phase_pay.js
  2. 0 1
      app/view/phase_pay/sub_menu_list.ejs

+ 7 - 0
app/service/phase_pay.js

@@ -261,6 +261,13 @@ module.exports = app => {
             if (await this._checkRelaStageConflict(relaStage, data)) throw '选择的计量期,已被调用,请刷新页面后选择计量期新增合同支付';
 
             const prePhase = maxOrder > 0 ? await this.getPhasePayByOrder(tid, maxOrder) : null;
+            if (prePhase) {
+                data.end_calc_tp = this.ctx.helper.add(prePhase.calc_tp, prePhase.pre_calc_tp);
+                data.end_pay_tp = this.ctx.helper.add(prePhase.pay_tp, prePhase.pre_pay_tp);
+                data.end_cut_tp = this.ctx.helper.add(prePhase.cut_tp, prePhase.pre_cut_tp);
+                data.end_sf_tp = this.ctx.helper.add(prePhase.sf_tp, prePhase.pre_sf_tp);
+                data.end_yf_tp = this.ctx.helper.add(prePhase.yf_tp, prePhase.pre_yf_tp);
+            }
             const calcBase = await this.getCalcBase(relaStage, prePhase);
             data.calc_base = JSON.stringify(calcBase);
             const transaction = await this.db.beginTransaction();

+ 0 - 1
app/view/phase_pay/sub_menu_list.ejs

@@ -1,4 +1,3 @@
 <nav-menu title="返回" url="/tender/<%= ctx.tender.id %>/pay" tclass="text-primary" ml="1" icon="fa-chevron-left"></nav-menu>
 <nav-menu title="支付明细" url="/tender/<%= ctx.tender.id %>/pay/<%= ctx.phasePay.phase_order + '/detail'%>" ml="3" active="<%= (ctx.url.indexOf('detail') >= 0 ? 1 : -1) %>"></nav-menu>
-<nav-menu title="输出报表" url="/tender/<%= ctx.tender.id %>/pay/<%= ctx.phasePay.phase_order + '/report'%>" ml="3" active="<%= (ctx.url.indexOf('report') >= 0 ? 1 : -1) %>"></nav-menu>
 <% include ./audit_btn.ejs %>