|
|
@@ -47,9 +47,10 @@
|
|
|
<script>
|
|
|
const stageId = <%- ctx.stage.id %>;
|
|
|
const stageUserId = <%- ctx.stage.user_id %>;
|
|
|
- const readOnly = <%- ctx.stage.readOnly || ctx.stage.revising || (ctx.stage.order > 1 && (!ctx.stage.preCheckedStage || ctx.stage.preCheckedStage.order < ctx.stage.order - 1)) %>;
|
|
|
+ const readOnly = <%- (ctx.stage.readOnly && !ctx.session.sessionUser.is_admin) || ctx.stage.revising || (ctx.stage.order > 1 && (!ctx.stage.preCheckedStage || ctx.stage.preCheckedStage.order < ctx.stage.order - 1)) %>;
|
|
|
const whiteList = JSON.parse('<%- JSON.stringify(ctx.app.config.multipart.whitelist) %>');
|
|
|
const thousandth = <%- ctx.tender.info.display.thousandth %>;
|
|
|
const stageChecked = <%- ctx.stage.status === auditConst.status.checked %>;
|
|
|
const deleteFilePermission = <%- deleteFilePermission %>;
|
|
|
+ const isA = <%- (ctx.session.sessionUser.is_admin ? 1 : 0) %>;
|
|
|
</script>
|