|
@@ -36,13 +36,13 @@ module.exports = app => {
|
|
|
|
|
|
ctx.stage.user = await ctx.service.projectAccount.getAccountInfoById(ctx.stage.user_id);
|
|
|
ctx.stage.auditHistory = [];
|
|
|
- if (ctx.stage.times > 1) {
|
|
|
- for (let i = 1; i < ctx.stage.times; i++) {
|
|
|
+ if (times >= 1) {
|
|
|
+ for (let i = 1; i <= times; i++) {
|
|
|
ctx.stage.auditHistory.push(await ctx.service.stageAudit.getAuditors(ctx.stage.id, i));
|
|
|
}
|
|
|
}
|
|
|
// 获取审批流程中左边列表
|
|
|
- ctx.stage.auditors2 = await ctx.service.stageAudit.getAuditGroupByList(ctx.stage.id, times);
|
|
|
+ ctx.stage.auditors2 = await ctx.service.stageAudit.getAuditGroupByListWithOwner(ctx.stage.id, times);
|
|
|
if (ctx.stage.status === auditConst.stage.status.uncheck || ctx.stage.status === auditConst.stage.status.checkNo) {
|
|
|
ctx.stage.auditorList = await ctx.service.stageAudit.getAuditors(ctx.stage.id, ctx.stage.times);
|
|
|
}
|
|
@@ -175,6 +175,7 @@ module.exports = app => {
|
|
|
const groupList = accountList.filter(item => item.account_group === idx);
|
|
|
return { groupName: item, groupList };
|
|
|
});
|
|
|
+
|
|
|
const renderData = {
|
|
|
accountGroup: newAccountGroup,
|
|
|
accountList,
|