|
@@ -1296,21 +1296,21 @@ module.exports = app => {
|
|
|
*/
|
|
|
_checkStageCanModifyRe(ctx) {
|
|
|
// 检查登录用户,是否可操作
|
|
|
- if (ctx.stage.readOnly) {
|
|
|
- if (ctx.stage.status === auditConst.status.checked) {
|
|
|
- // 当前期状态为完成,且提交人是审核列表中的则可再次上传
|
|
|
- if (ctx.stage.user_id === ctx.session.sessionUser.accountId || ctx.stage.auditors.findIndex(auditor => auditor.aid === ctx.session.sessionUser.accountId) !== -1) {
|
|
|
- // 再次上传的图片要给个标识,方便给前端进行编辑操作
|
|
|
- // ctx.reUploadPermission = true;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- throw '该计量期当前您无权操作';
|
|
|
-
|
|
|
- } else {
|
|
|
- throw '该计量期当前您无权操作';
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (ctx.stage.readOnly) {
|
|
|
+ // if (ctx.stage.status === auditConst.status.checked) {
|
|
|
+ // // 当前期状态为完成,且提交人是审核列表中的则可再次上传
|
|
|
+ // if (ctx.stage.user_id === ctx.session.sessionUser.accountId || ctx.stage.auditors.findIndex(auditor => auditor.aid === ctx.session.sessionUser.accountId) !== -1) {
|
|
|
+ // // 再次上传的图片要给个标识,方便给前端进行编辑操作
|
|
|
+ // // ctx.reUploadPermission = true;
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // throw '该计量期当前您无权操作';
|
|
|
+
|
|
|
+ // } else {
|
|
|
+ // throw '该计量期当前您无权操作';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (ctx.stage.revising) {
|
|
|
throw '台账修订中,请勿修改提交期数据';
|
|
|
}
|