|
@@ -2620,8 +2620,8 @@ module.exports = app => {
|
|
|
auditConst: audit.changeApply,
|
|
|
fileList,
|
|
|
whiteList,
|
|
|
- tpUnit: ctx.tender.info.decimal.tp,
|
|
|
- upUnit: ctx.tender.info.decimal.up,
|
|
|
+ tpUnit: ctx.change.applyDecimal ? ctx.change.applyDecimal.tp : ctx.tender.info.decimal.tp,
|
|
|
+ upUnit: ctx.change.applyDecimal ? ctx.change.applyDecimal.up : ctx.tender.info.decimal.up,
|
|
|
changeUnits: changeConst.units,
|
|
|
precision: ctx.tender.info.precision,
|
|
|
returnUrl: this.app._.includes(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/apply') && !this.app._.includes(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/apply/' + ctx.change.id + '/information') ? ctx.request.headers.referer : null,
|
|
@@ -3238,10 +3238,8 @@ module.exports = app => {
|
|
|
auditConst: audit.changeApply,
|
|
|
fileList,
|
|
|
whiteList,
|
|
|
- // tpUnit: change.tp_decimal ? change.tp_decimal : ctx.tender.info.decimal.tp,
|
|
|
- // upUnit: change.up_decimal ? change.up_decimal : ctx.tender.info.decimal.up,
|
|
|
- tpUnit: ctx.tender.info.decimal.tp,
|
|
|
- upUnit: ctx.tender.info.decimal.up,
|
|
|
+ tpUnit: ctx.change.planDecimal ? ctx.change.planDecimal.tp : ctx.tender.info.decimal.tp,
|
|
|
+ upUnit: ctx.change.planDecimal ? ctx.change.planDecimal.up : ctx.tender.info.decimal.up,
|
|
|
changeUnits: changeConst.units,
|
|
|
precision: ctx.tender.info.precision,
|
|
|
returnUrl: this.app._.includes(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/plan') && !this.app._.includes(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/plan/' + ctx.change.id + '/information') ? ctx.request.headers.referer : null,
|