|
@@ -90,6 +90,16 @@ module.exports = app => {
|
|
} else {
|
|
} else {
|
|
stage.curOrder = stage.curAuditor.aid === accountId ? stage.curAuditor.order : stage.curAuditor.order - 1;
|
|
stage.curOrder = stage.curAuditor.aid === accountId ? stage.curAuditor.order : stage.curAuditor.order - 1;
|
|
}
|
|
}
|
|
|
|
+ } else if (this.ctx.tender.isTourist) { // 游客
|
|
|
|
+ stage.readOnly = true;
|
|
|
|
+ stage.curTimes = stage.times;
|
|
|
|
+ if (stage.status === status.uncheck || stage.status === status.checkNo) {
|
|
|
|
+ stage.curOrder = 0;
|
|
|
|
+ } else if (stage.status === status.checked) {
|
|
|
|
+ stage.curOrder = this._.max(this._.map(stage.auditors, 'order'));
|
|
|
|
+ } else {
|
|
|
|
+ stage.curOrder = stage.curAuditor.order;
|
|
|
|
+ }
|
|
} else if (auditorIds.indexOf(accountId) !== -1) { // 审批人
|
|
} else if (auditorIds.indexOf(accountId) !== -1) { // 审批人
|
|
if (stage.status === status.uncheck) {
|
|
if (stage.status === status.uncheck) {
|
|
throw '您无权查看该数据';
|
|
throw '您无权查看该数据';
|
|
@@ -257,7 +267,7 @@ module.exports = app => {
|
|
}
|
|
}
|
|
if (stages.length !== 0) {
|
|
if (stages.length !== 0) {
|
|
const lastStage = stages[0];
|
|
const lastStage = stages[0];
|
|
- if (lastStage.status === auditConst.status.uncheck && !(this.ctx.tender.isTourist || lastStage.user_id === this.ctx.session.sessionUser.accountId)) {
|
|
|
|
|
|
+ if (lastStage.status === auditConst.status.uncheck && lastStage.user_id === this.ctx.session.sessionUser.accountId && !this.ctx.tender.isTourist) {
|
|
stages.splice(0, 1);
|
|
stages.splice(0, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|