|
@@ -53,7 +53,7 @@ module.exports = options => {
|
|
const accountId = this.session.sessionUser.accountId, auditorIds = _.map(stage.auditors, 'aid'), shareIds = [];
|
|
const accountId = this.session.sessionUser.accountId, auditorIds = _.map(stage.auditors, 'aid'), shareIds = [];
|
|
if (accountId === stage.user_id) { // 原报
|
|
if (accountId === stage.user_id) { // 原报
|
|
stage.readOnly = stage.status !== status.uncheck && stage.status !== status.checkNo;
|
|
stage.readOnly = stage.status !== status.uncheck && stage.status !== status.checkNo;
|
|
- stage.curTimes = stage.status === status.checkNo ? stage.times + 1 : stage.times;
|
|
|
|
|
|
+ stage.curTimes = stage.times;
|
|
if (stage.status === status.uncheck || stage.status === status.checkNo) {
|
|
if (stage.status === status.uncheck || stage.status === status.checkNo) {
|
|
stage.curOrder = 0;
|
|
stage.curOrder = 0;
|
|
} else if (stage.status === status.checked) {
|
|
} else if (stage.status === status.checked) {
|
|
@@ -66,7 +66,7 @@ module.exports = options => {
|
|
throw '您无权查看该数据';
|
|
throw '您无权查看该数据';
|
|
}
|
|
}
|
|
stage.readOnly = (stage.status === status.checking || stage.status === status.checkNoPre) && accountId !== stage.curAuditor.aid;
|
|
stage.readOnly = (stage.status === status.checking || stage.status === status.checkNoPre) && accountId !== stage.curAuditor.aid;
|
|
- stage.curTimes = stage.times;
|
|
|
|
|
|
+ stage.curTimes = stage.status === status.checkNo ? stage.times - 1 : stage.times;
|
|
if (stage.status === status.checked) {
|
|
if (stage.status === status.checked) {
|
|
stage.curOrder = _.max(_.map(stage.auditors, 'order'));
|
|
stage.curOrder = _.max(_.map(stage.auditors, 'order'));
|
|
} else if (stage.status === status.checkNo) {
|
|
} else if (stage.status === status.checkNo) {
|
|
@@ -82,7 +82,7 @@ module.exports = options => {
|
|
throw '您无权查看该数据';
|
|
throw '您无权查看该数据';
|
|
}
|
|
}
|
|
stage.readOnly = true;
|
|
stage.readOnly = true;
|
|
- stage.curTimes = stage.times;
|
|
|
|
|
|
+ stage.curTimes = stage.status === status.checkNo ? stage.times - 1 : stage.times;
|
|
stage.curOrder = stage.status === status.checked ? _.max(_.map(stage.auditors, 'order')) : stage.curAuditor.order - 1;
|
|
stage.curOrder = stage.status === status.checked ? _.max(_.map(stage.auditors, 'order')) : stage.curAuditor.order - 1;
|
|
} else { // 其他不可见
|
|
} else { // 其他不可见
|
|
throw '您无权查看该数据';
|
|
throw '您无权查看该数据';
|