feature/2.9.42310.01-工资单发放导出PDF

This commit is contained in:
黎永顺 2023-09-27 14:35:37 +08:00
parent 3d8bef9147
commit 486254601f
1 changed files with 21 additions and 15 deletions

View File

@ -323,25 +323,31 @@ export default class PayrollGrant extends React.Component {
onClick={() => this.handleWithdraw({ ids: [record.id] })}>
撤回
</a>
<a
href="javascript:void(0);"
onClick={() => {
window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
}}>
{getLabel(111, "导出PDF")}
</a>
{
salarySendDetailBaseInfo.showPdfBtn &&
<a
href="javascript:void(0);"
onClick={() => {
window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
}}>
{getLabel(111, "导出PDF")}
</a>
}
</React.Fragment>
);
} else {
return (
<React.Fragment>
<a
href="javascript:void(0);"
onClick={() => {
window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
}}>
{getLabel(111, "导出PDF")}
</a>
{
salarySendDetailBaseInfo.showPdfBtn &&
<a
href="javascript:void(0);"
onClick={() => {
window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
}}>
{getLabel(111, "导出PDF")}
</a>
}
</React.Fragment>
);
}
@ -393,7 +399,7 @@ export default class PayrollGrant extends React.Component {
<Menu.Item key="3">全部导出</Menu.Item>
<Menu.Item key="4">导出选中</Menu.Item>
{
selectedKey === "1" &&
selectedKey === "1" && salarySendDetailBaseInfo.showPdfBtn &&
<Menu.Item key="5">{getLabel(111, "导出PDF")}</Menu.Item>
}
</Menu>