|
|
@@ -3651,7 +3651,7 @@ module.exports = app => {
|
|
|
// 判断是否被变更申请调用了,是则无法发起修订
|
|
|
const projectInfo = await ctx.service.changePlan.getDataByCondition({ tid: ctx.tender.id, apply_code: ctx.change.code });
|
|
|
if (projectInfo) {
|
|
|
- throw '该变更申请已被变更方案调用,无法发起重新审批';
|
|
|
+ throw '该变更申请已被' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '调用,无法发起重新审批';
|
|
|
}
|
|
|
if (ctx.session.sessionUser.loginStatus === 0) {
|
|
|
const code = ctx.request.body.code;
|
|
|
@@ -3705,7 +3705,7 @@ module.exports = app => {
|
|
|
// 判断是否被变更申请调用了,是则无法发起修订
|
|
|
const projectInfo = await ctx.service.changePlan.getDataByCondition({ tid: ctx.tender.id, apply_code: ctx.change.code });
|
|
|
if (projectInfo) {
|
|
|
- throw '该变更申请已被变更方案调用,无法发起修订';
|
|
|
+ throw '该变更申请已被' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '调用,无法发起修订';
|
|
|
}
|
|
|
if (ctx.session.sessionUser.loginStatus === 0) {
|
|
|
const code = ctx.request.body.code;
|
|
|
@@ -3951,7 +3951,7 @@ module.exports = app => {
|
|
|
}
|
|
|
const data = JSON.parse(ctx.request.body.data);
|
|
|
if (!data.code || data.code === '') {
|
|
|
- throw '变更方案编号不能为空';
|
|
|
+ throw (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '编号不能为空';
|
|
|
}
|
|
|
|
|
|
// 在生成新变更方案后,需要copy前一个变更方案报表的签名信息
|
|
|
@@ -3975,7 +3975,7 @@ module.exports = app => {
|
|
|
try {
|
|
|
const result = await ctx.service.changePlan.delete(ctx.request.body.cpid);
|
|
|
if (!result) {
|
|
|
- throw '删除变更方案失败';
|
|
|
+ throw '删除' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '失败';
|
|
|
}
|
|
|
ctx.redirect(ctx.request.header.referer);
|
|
|
} catch (err) {
|
|
|
@@ -4337,10 +4337,10 @@ module.exports = app => {
|
|
|
throw '数据错误';
|
|
|
}
|
|
|
if (ctx.change.uid !== ctx.session.sessionUser.accountId) {
|
|
|
- throw '您无权上报该变更方案数据';
|
|
|
+ throw '您无权上报该' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '数据';
|
|
|
}
|
|
|
if (ctx.change.status === auditConst.status.checking || ctx.change.status === auditConst.status.checked) {
|
|
|
- throw '该变更方案数据当前无法上报';
|
|
|
+ throw '该' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '数据当前无法上报';
|
|
|
}
|
|
|
|
|
|
await ctx.service.changePlanAudit.start(ctx.change.id, ctx.change.times);
|
|
|
@@ -4362,7 +4362,7 @@ module.exports = app => {
|
|
|
try {
|
|
|
const auditConst = audit.changePlan;
|
|
|
if (!ctx.change || ctx.change.status !== auditConst.status.checking) {
|
|
|
- throw '当前变更方案数据有误';
|
|
|
+ throw '当前' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '数据有误';
|
|
|
}
|
|
|
if (ctx.change.curAuditorIds.length === 0 || ctx.change.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) === -1) {
|
|
|
throw '您无权进行该操作';
|
|
|
@@ -4502,7 +4502,7 @@ module.exports = app => {
|
|
|
// 判断是否被变更申请调用了,是则无法发起修订
|
|
|
const projectInfo = await ctx.service.change.getDataByCondition({ tid: ctx.tender.id, plan_code: ctx.change.code });
|
|
|
if (projectInfo) {
|
|
|
- throw '该变更方案已被变更令调用,无法发起重新审批';
|
|
|
+ throw '该' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '已被变更令调用,无法发起重新审批';
|
|
|
}
|
|
|
if (ctx.session.sessionUser.loginStatus === 0) {
|
|
|
const code = ctx.request.body.code;
|
|
|
@@ -4556,7 +4556,7 @@ module.exports = app => {
|
|
|
// 判断是否被变更申请调用了,是则无法发起修订
|
|
|
const projectInfo = await ctx.service.change.getDataByCondition({ tid: ctx.tender.id, plan_code: ctx.change.code });
|
|
|
if (projectInfo) {
|
|
|
- throw '该变更方案已被变更令调用,无法发起修订';
|
|
|
+ throw '该' + (ctx.subProject && ctx.subProject.fun_set && ctx.subProject.fun_set.change_plan_name || '变更方案') + '已被变更令调用,无法发起修订';
|
|
|
}
|
|
|
if (ctx.session.sessionUser.loginStatus === 0) {
|
|
|
const code = ctx.request.body.code;
|