|
@@ -173,17 +173,19 @@ module.exports = app => {
|
|
// const roleRel = (params.stage_status === 3) ? (await ctx.service.roleRptRel.getRoleRptRelByDetailIds(params.tender_id, params.rpt_tpl_id)) : [];
|
|
// const roleRel = (params.stage_status === 3) ? (await ctx.service.roleRptRel.getRoleRptRelByDetailIds(params.tender_id, params.rpt_tpl_id)) : [];
|
|
const roleRel = await ctx.service.roleRptRel.getRoleRptRelByDetailIds(params.tender_id, params.rpt_tpl_id, params.stage_id); // 新需求中,允许在非审核状态下设置签名
|
|
const roleRel = await ctx.service.roleRptRel.getRoleRptRelByDetailIds(params.tender_id, params.rpt_tpl_id, params.stage_id); // 新需求中,允许在非审核状态下设置签名
|
|
const stgAudit = await ctx.service.stageAudit.getStageAudit(params.stage_id, params.stage_times);
|
|
const stgAudit = await ctx.service.stageAudit.getStageAudit(params.stage_id, params.stage_times);
|
|
|
|
+ const stgAuditForOrg = await ctx.service.stageAudit.getStageAudit(params.stage_id, 1);
|
|
// console.log('after role stage!');
|
|
// console.log('after role stage!');
|
|
// console.log(roleRel);
|
|
// console.log(roleRel);
|
|
await encodeSignatureDataUri(roleRel, this.app.baseDir);
|
|
await encodeSignatureDataUri(roleRel, this.app.baseDir);
|
|
await encodeDummySignatureDataUri(pageRst, this.app.baseDir);
|
|
await encodeDummySignatureDataUri(pageRst, this.app.baseDir);
|
|
- const stageFlow = await ctx.service.stageAudit.getAuditors(params.stage_id, 1);
|
|
|
|
|
|
+ const stageFlow = await ctx.service.stageAudit.getAuditGroupByListWithOwner(params.stage_id, params.stage_times);
|
|
|
|
|
|
// console.log('encodeSignatureDataUri!');
|
|
// console.log('encodeSignatureDataUri!');
|
|
return {
|
|
return {
|
|
data: pageRst,
|
|
data: pageRst,
|
|
signatureRelInfo: roleRel,
|
|
signatureRelInfo: roleRel,
|
|
stageAudit: stgAudit,
|
|
stageAudit: stgAudit,
|
|
|
|
+ stageAuditOrg: stgAuditForOrg,
|
|
debugInfo: ctx.app.config.is_debug ? ctx.debugInfo : null,
|
|
debugInfo: ctx.app.config.is_debug ? ctx.debugInfo : null,
|
|
customDefine: rptTpl[JV.NODE_CUSTOM_DEFINE],
|
|
customDefine: rptTpl[JV.NODE_CUSTOM_DEFINE],
|
|
stageFlow,
|
|
stageFlow,
|