|
@@ -377,16 +377,8 @@ module.exports = app => {
|
|
|
responseData.data.tags = await ctx.service.ledgerTag.getDatas(ctx.tender.id, ctx.stage.id);
|
|
|
break;
|
|
|
case 'cooperation':
|
|
|
- const uid = ctx.stage.curAuditor ?
|
|
|
- ctx.stage.curAuditor.aid :
|
|
|
- (ctx.stage.status === auditConst.status.uncheck ||
|
|
|
- (ctx.stage.status === auditConst.status.checkNo && ctx.stage.user_id === ctx.session.sessionUser.accountId) ?
|
|
|
- ctx.stage.user_id : (ctx.stage.status === auditConst.status.checkNo && ctx.stage.user_id !== ctx.session.sessionUser.accountId) ?
|
|
|
- ctx.session.sessionUser.accountId : null);
|
|
|
- responseData.data.cooperation = uid !== null ? await ctx.service.ledgerCooperation.getValidData(
|
|
|
- ctx.tender.id, uid) : [];
|
|
|
- const stageTimes = (ctx.stage.status === auditConst.status.checkNo && ctx.stage.user_id !== ctx.session.sessionUser.accountId) ? ctx.stage.times - 1 : ctx.stage.times;
|
|
|
- responseData.data.cooperationConfirm = uid !== null ? await ctx.service.cooperationConfirm.getValidData(ctx.tender.id, ctx.stage.id, stageTimes, uid) : [];
|
|
|
+ responseData.data.cooperation = await ctx.service.ledgerCooperation.getValidData(ctx.tender.id, ctx.session.sessionUser.accountId);
|
|
|
+ responseData.data.cooperationConfirm = await ctx.service.cooperationConfirm.getValidData(ctx.tender.id, ctx.stage.id, ctx.stage.times, ctx.session.sessionUser.accountId);
|
|
|
responseData.data.locked = await ctx.service.cooperationConfirm.getLockedId(ctx.tender, ctx.stage);
|
|
|
break;
|
|
|
case 'spec':
|