From 3be80d9ab2f80824befaaf957cb03de67f63ba42 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Tue, 20 May 2025 16:45:53 +0800 Subject: [PATCH] =?UTF-8?q?custom-=E8=89=BE=E5=BF=97=E5=B7=A5=E4=B8=9A-?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=AA=E7=A8=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../analysisOfSalaryStatistics/components/salaryDetails.js | 7 ++++--- .../hrmSalary/pages/analysisOfSalaryStatistics/index.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 ? [ ,