产品-工资单发放操作按钮的详细权限设置

This commit is contained in:
黎永顺 2023-06-16 17:36:45 +08:00
parent 7d07af3a22
commit 55bdfa2c45
2 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ export default class SalarySendList extends React.Component {
title: "操作",
key: "operate",
render: (text, record) => {
const { sendNum, sendTotal, salaryAcctType, haveBackCalc } = record;
const { sendNum, sendTotal, salaryAcctType, haveBackCalc, canSeeDetail } = record;
//显示发放
const showGrant = haveBackCalc === 1 && salaryAcctType === 0;
return (
@ -100,7 +100,7 @@ export default class SalarySendList extends React.Component {
<a href="javascript:void(0);" onClick={() => this.handleGrant(record)}
style={{ marginRight: 10 }}>发放</a>
{
!showGrant &&
canSeeDetail &&
<a href="javascript:void(0);" onClick={() => this.handleShowDetail(record)}
style={{ marginRight: 10 }}>查看详情</a>
}

View File

@ -310,7 +310,7 @@ export default class PayrollGrant extends React.Component {
dataIndex: "",
display: true,
render: (text, record) => {
if (record.sendStatus === "1" && !notShowGrantOrWithdraw) {
if (record.sendStatus === "1" && salarySendDetailBaseInfo.canSend) {
return (
<a
href="javascript:void(0);"
@ -318,7 +318,7 @@ export default class PayrollGrant extends React.Component {
撤回
</a>
);
} else if (!notShowGrantOrWithdraw) {
} else if (salarySendDetailBaseInfo.canSend) {
return (
<a
href="javascript:void(0);"
@ -370,7 +370,7 @@ export default class PayrollGrant extends React.Component {
更多
</Dropdown.Button>
];
if (selectedKey === "0" && !notShowGrantOrWithdraw) {
if (selectedKey === "0" && salarySendDetailBaseInfo.canSend) {
btnDom = [
<ButtonSelect
datas={[
@ -384,7 +384,7 @@ export default class PayrollGrant extends React.Component {
/>,
...btnDom
];
} else if (selectedKey === "1" && !notShowGrantOrWithdraw) {
} else if (selectedKey === "1" && salarySendDetailBaseInfo.canSend) {
btnDom = [
<ButtonSelect
datas={[