|
|
@@ -2399,9 +2399,9 @@ module.exports = app => {
|
|
|
if (exist) {
|
|
|
throw '该审核人已存在,请勿重复添加';
|
|
|
}
|
|
|
- const shenpiInfo = await ctx.service.shenpiAudit.getDataByCondition({ tid: ctx.tender.id, sp_type: shenpiConst.sp_type.change, sp_status: shenpiConst.sp_status.gdzs });
|
|
|
- const is_gdzs = shenpiInfo && ctx.tender.info.shenpi.change === shenpiConst.sp_status.gdzs ? 1 : 0;
|
|
|
- const result = await ctx.service.changeProjectAudit.addAuditor(ctx.change.id, id, ctx.change.times, is_gdzs);
|
|
|
+ // const shenpiInfo = await ctx.service.shenpiAudit.getDataByCondition({ tid: ctx.tender.id, sp_type: shenpiConst.sp_type.change, sp_status: shenpiConst.sp_status.gdzs });
|
|
|
+ // const is_gdzs = shenpiInfo && ctx.tender.info.shenpi.change === shenpiConst.sp_status.gdzs ? 1 : 0;
|
|
|
+ const result = await ctx.service.changeProjectAudit.addAuditor(ctx.change.id, id, ctx.change.times);
|
|
|
if (!result) {
|
|
|
throw '添加审核人失败';
|
|
|
}
|