|
@@ -2024,7 +2024,7 @@ module.exports = app => {
|
|
|
auditConst: audit.changeProject,
|
|
|
fileList,
|
|
|
whiteList,
|
|
|
- returnUrl: ctx.request.headers.referer,
|
|
|
+ returnUrl: this.app._.indexOf(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/project') !== -1 ? ctx.request.headers.referer : null,
|
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.project_information),
|
|
|
preUrl: '/tender/' + ctx.tender.id + '/change/project/' + ctx.change.id + '/information',
|
|
|
};
|
|
@@ -2534,11 +2534,11 @@ module.exports = app => {
|
|
|
throw '当前未打开标段';
|
|
|
}
|
|
|
const data = JSON.parse(ctx.request.body.data);
|
|
|
- if (!data.code || data.code === '') {
|
|
|
+ if (!data.code || data.code === '' || !data.name || data.name === '') {
|
|
|
throw '变更申请编号不能为空';
|
|
|
}
|
|
|
|
|
|
- const change = await ctx.service.changeApply.add(tenderId, ctx.session.sessionUser.accountId, data.code, data.project_code);
|
|
|
+ const change = await ctx.service.changeApply.add(tenderId, ctx.session.sessionUser.accountId, data.code, data.project_code, data.name);
|
|
|
|
|
|
ctx.body = { err: 0, msg: '', data: change };
|
|
|
} catch (err) {
|
|
@@ -2604,7 +2604,7 @@ module.exports = app => {
|
|
|
auditConst: audit.changeApply,
|
|
|
fileList,
|
|
|
whiteList,
|
|
|
- returnUrl: ctx.request.headers.referer,
|
|
|
+ returnUrl: this.app._.indexOf(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/apply') !== -1 ? ctx.request.headers.referer : null,
|
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.apply_information),
|
|
|
preUrl: '/tender/' + ctx.tender.id + '/change/apply/' + ctx.change.id + '/information',
|
|
|
};
|
|
@@ -2640,7 +2640,7 @@ module.exports = app => {
|
|
|
changeConst,
|
|
|
auditConst: audit.changeApply,
|
|
|
fileList,
|
|
|
- returnUrl: ctx.request.headers.referer,
|
|
|
+ returnUrl: this.app._.indexOf(ctx.request.headers.referer, '/tender/' + ctx.tender.id + '/change/apply') !== -1 ? ctx.request.headers.referer : null,
|
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.apply_information_notice),
|
|
|
preUrl: '/tender/' + ctx.tender.id + '/change/apply/' + ctx.change.id + '/information/notice',
|
|
|
};
|