|
@@ -466,6 +466,10 @@ let rptControlObj = {
|
|
|
let params = rptControlObj.creatCommonExportParam(refRptTplIds);
|
|
|
params.rpt_names = rpt_sheet_names;
|
|
|
params.rptName = TENDER_NAME;
|
|
|
+ let chkNodes = zTreeOprObj.treeObj.getCheckedNodes(true);
|
|
|
+ if (chkNodes.length > 0) {
|
|
|
+ delete params.orientation; // 打印时有勾选的话,不需要提供方向
|
|
|
+ }
|
|
|
CommonAjax.postXsrfEx("/tender/report_api/createExcelFilesInOneBook", params, 60000, true, getCookie('csrfToken'), function(result){
|
|
|
if (result) {
|
|
|
let uuIdUrls = [];
|
|
@@ -489,6 +493,10 @@ let rptControlObj = {
|
|
|
params.isOneSheet = true;
|
|
|
params.rpt_names = rpt_names;
|
|
|
params.rptName = 'All';
|
|
|
+ let chkNodes = zTreeOprObj.treeObj.getCheckedNodes(true);
|
|
|
+ if (chkNodes.length > 0) {
|
|
|
+ delete params.orientation; // 打印时有勾选的话,不需要提供方向
|
|
|
+ }
|
|
|
CommonAjax.postXsrfEx("/tender/report_api/createExcelFiles", params, 60000, true, getCookie('csrfToken'), function(result){
|
|
|
if (result) {
|
|
|
let uuIdUrls = [];
|
|
@@ -529,8 +537,9 @@ let rptControlObj = {
|
|
|
let rpt_names = [];
|
|
|
rptControlObj.getTplIdsCommon(refRptTplIds, rpt_names);
|
|
|
const signatureRelArr = [];
|
|
|
- if (refRptTplIds.length > 1) {
|
|
|
+ if (refRptTplIds.length > 0) {
|
|
|
let params = rptControlObj.creatCommonExportParam(refRptTplIds);
|
|
|
+ delete params.orientation; // 打印时有勾选的话,不需要提供方向
|
|
|
CommonAjax.postXsrfEx("/tender/report_api/getMultiReports", params, 60000, true, getCookie('csrfToken'),
|
|
|
function(result){
|
|
|
let pageSize = rptControlObj.getCurrentPageSize();
|