diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js index 1893e77e..280eb144 100644 --- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js +++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js @@ -24,7 +24,7 @@ import "../index.less"; const WeaTableComx = WeaTableNew.WeaTable; const { getLabel } = WeaLocaleProvider; -@inject("attendanceStore") +@inject("attendanceStore", "taxAgentStore") @observer class SalaryDetails extends Component { constructor(props) { @@ -256,7 +256,8 @@ class SalaryDetails extends Component { const { loading, dataSource, transferDialog, tempDialog, tempPageList, templateId, tempManageDialog, tempManageQuery } = this.state; - const { dateRange, showSearchAd } = this.props; + const { taxAgentStore: { PageAndOptAuth }, dateRange, showSearchAd } = this.props; + const { isOpenDevolution, isChief } = PageAndOptAuth; const { dialogType } = transferDialog; return (
@@ -289,7 +290,7 @@ class SalaryDetails extends Component { transferDialog: { ...transferDialog, completeURL: "", visible: false } })} buttons={ - dialogType === "temp" ? [ + dialogType === "temp" && isOpenDevolution && isChief ? [ ,