diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js index b6d505a2..ff091152 100644 --- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js @@ -323,25 +323,31 @@ export default class PayrollGrant extends React.Component { onClick={() => this.handleWithdraw({ ids: [record.id] })}> 撤回 - { - window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank"); - }}> - {getLabel(111, "导出PDF")} - + { + salarySendDetailBaseInfo.showPdfBtn && + { + window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank"); + }}> + {getLabel(111, "导出PDF")} + + } ); } else { return ( - { - window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank"); - }}> - {getLabel(111, "导出PDF")} - + { + salarySendDetailBaseInfo.showPdfBtn && + { + window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank"); + }}> + {getLabel(111, "导出PDF")} + + } ); } @@ -393,7 +399,7 @@ export default class PayrollGrant extends React.Component { 全部导出 导出选中 { - selectedKey === "1" && + selectedKey === "1" && salarySendDetailBaseInfo.showPdfBtn && {getLabel(111, "导出PDF")} }