|
|
@@ -182,7 +182,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<% if(![-600].includes(stg_id)) { %>
|
|
|
- <div class="panel" <% if (pageShow === null || parseInt(pageShow.showArchive) === 0 || isNaN(parseInt(pageShow.showArchive))) { %> style="display:none" <% } %>>
|
|
|
+ <div class="panel" id="archiveTopDiv" <% if (pageShow === null || parseInt(pageShow.showArchive) === 0 || isNaN(parseInt(pageShow.showArchive))) { %> style="display:none" <% } %>>
|
|
|
<div class="panel-body">
|
|
|
<div class="btn-group" role="group">
|
|
|
<button id="btnArchiveRpt" type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#guidang" disabled><i class="fa fa-archive"></i> 归档报表</button>
|
|
|
@@ -370,6 +370,7 @@
|
|
|
<script src="/public/js/sub_menu.js"></script>
|
|
|
<script src="/public/js/div_resizer.js"></script>
|
|
|
<script>
|
|
|
+ const IS_ADMIN = <%- isAdmin %>;
|
|
|
$.subMenu({
|
|
|
menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
|
|
|
toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
|
|
|
@@ -449,7 +450,7 @@
|
|
|
SOURCE_TYPE = 10;
|
|
|
current_advance_id = -1;
|
|
|
current_material_id = -1;
|
|
|
- bk_current_stage_id = current_stage_id;
|
|
|
+ if (current_stage_id > 0) bk_current_stage_id = current_stage_id;
|
|
|
current_stage_id = -400;
|
|
|
rptArchiveObj.toggleBtn(true);
|
|
|
advancePayClick( $('#prepay-select-item a')[0]);
|
|
|
@@ -466,13 +467,14 @@
|
|
|
current_advance_id = -1;
|
|
|
current_advance_type = '';
|
|
|
current_material_id = -1;
|
|
|
- bk_current_stage_id = current_stage_id;
|
|
|
+ if (current_stage_id > 0) bk_current_stage_id = current_stage_id;
|
|
|
current_stage_id = -500;
|
|
|
rptArchiveObj.toggleBtn(true);
|
|
|
buildMaterialSelection();
|
|
|
filterReportsByType(ALL_COMMON_TREE_NODES, ALL_INDIVI_TREE_NODES, CURRENT_SELECTED_BIZ_TYPE, TOP_TREE_NODES, CUST_TREE_NODES);
|
|
|
zTreeOprObj.getReportTemplateTree();
|
|
|
}
|
|
|
+ setupArchiveShow();
|
|
|
});
|
|
|
|
|
|
$.divResizer({
|
|
|
@@ -599,7 +601,7 @@
|
|
|
const CHNAGE_APPLY_ID = BGL_OBJ?.change_apply?.id || '-1';
|
|
|
const CHNAGE_APPLY_TIMES = BGL_OBJ?.change_apply?.times || '-1';
|
|
|
|
|
|
- const PAGE_SHOW = {closeWatermark: 0, closeExportPdf: 0, closeExportExcel: 0, showArchive: 0, closeShowAllCustomized: 0, isTextSignature: 0, closeArchiveSignature: 0};
|
|
|
+ const PAGE_SHOW = {closeWatermark: 0, closeExportPdf: 0, closeExportExcel: 0, showArchive: 0, closeShowAllCustomized: 0, isTextSignature: 0, closeArchiveSignature: 0, onlyOrgAdminArchivePDF: 0};
|
|
|
<% if (pageShow !== null) { %>
|
|
|
<% if (parseInt(pageShow.closeWatermark) === 1) { %>
|
|
|
PAGE_SHOW['closeWatermark'] = 1;
|
|
|
@@ -622,6 +624,9 @@
|
|
|
<% if (parseInt(pageShow.closeArchiveSignature) === 1) { %>
|
|
|
PAGE_SHOW['closeArchiveSignature'] = 1;
|
|
|
<% } %>
|
|
|
+ <% if (parseInt(pageShow.onlyOrgAdminArchivePDF) === 1) { %>
|
|
|
+ PAGE_SHOW['onlyOrgAdminArchivePDF'] = 1;
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
|
|
|
// PAGE_SHOW['closeWatermark'] = 0; //测试用,check in 前要屏蔽
|
|
|
@@ -930,6 +935,7 @@
|
|
|
}
|
|
|
}
|
|
|
getReportArchive();
|
|
|
+ setupArchiveShow();
|
|
|
}
|
|
|
|
|
|
function getReportArchive() {
|