From b99a2069d44f97a8ce9d2c527b2c54f66f971a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 11 Sep 2024 18:37:01 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.15.1.2407.01-=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/apis/taxAgent.js | 2 +- pc4mobx/hrmSalary/config.js | 6 ++ pc4mobx/hrmSalary/layout.js | 11 ++- .../hrmSalary/pages/calculate/calculate.js | 8 +- .../components/calculateTablelist/index.js | 7 +- .../pages/calculate/doCalc/layout.js | 30 ++++--- .../pages/calculateDetail/compareDetail.js | 22 +++-- .../hrmSalary/pages/calculateDetail/index.js | 20 +++-- .../LedgerBackCalculatedSalaryItemTable.js | 6 +- .../ledgerPage/components/copyLedgerModal.js | 46 +++++------ .../components/ledgerAssociatedPersonnel.js | 10 +-- .../components/ledgerBaseSetting.js | 38 +++++---- .../components/ledgerSalaryAdjustmentRules.js | 6 +- .../components/ledgerSalaryItemNormal.js | 4 +- .../ledgerPage/components/ledgerSearchComp.js | 47 ++++++----- .../ledgerPage/components/ledgerSlide.js | 6 +- .../ledgerPage/components/ledgerTable.js | 16 ++-- pc4mobx/hrmSalary/pages/ledgerPage/config.js | 1 + pc4mobx/hrmSalary/pages/ledgerPage/index.js | 26 ++---- pc4mobx/hrmSalary/pages/ledgerPage/index.less | 1 - .../components/salaryFileList/index.js | 12 +-- .../pages/payrollFiles/config/index.js | 6 +- .../pages/payrollFiles/salaryFiles.js | 11 +-- .../standingBook/index.js | 80 +++++++++---------- pc4mobx/hrmSalary/pages/taxAgent/index.js | 10 +-- pc4mobx/hrmSalary/stores/taxAgent.js | 8 ++ 26 files changed, 214 insertions(+), 226 deletions(-) create mode 100644 pc4mobx/hrmSalary/config.js diff --git a/pc4mobx/hrmSalary/apis/taxAgent.js b/pc4mobx/hrmSalary/apis/taxAgent.js index aa74fd63..390bcf7a 100644 --- a/pc4mobx/hrmSalary/apis/taxAgent.js +++ b/pc4mobx/hrmSalary/apis/taxAgent.js @@ -12,7 +12,7 @@ export const taxAgentRangeSync = (params) => { // 系统管理员权限 export const getPermission = (params) => { - return WeaTools.callApi("/api/bs/hrmsalary/taxAgent/permission", "GET", params); + return WeaTools.callApi("/api/bs/hrmsalary/auth/permission", "GET", params); }; //获取个税扣缴义务人表单 diff --git a/pc4mobx/hrmSalary/config.js b/pc4mobx/hrmSalary/config.js new file mode 100644 index 00000000..6c9eaaa5 --- /dev/null +++ b/pc4mobx/hrmSalary/config.js @@ -0,0 +1,6 @@ +export const PAGE = { + "salaryArchive": ["/hrmSalary/salaryFile"], //薪资档案 + "salarySob": ["/hrmSalary/ledger"], //薪资账套 + "salaryAcct": ["/hrmSalary/calculate", "/hrmSalary/calcView"], //薪资核算 + "salaryBill": ["/hrmSalary/payroll", "/hrmSalary/payrollGrant", "/hrmSalary/payrollDetail"] //工资单 +}; diff --git a/pc4mobx/hrmSalary/layout.js b/pc4mobx/hrmSalary/layout.js index f1ad9a67..816934d6 100644 --- a/pc4mobx/hrmSalary/layout.js +++ b/pc4mobx/hrmSalary/layout.js @@ -8,12 +8,16 @@ * @description: */ import React, { Component } from "react"; +import { inject, observer } from "mobx-react"; import { WeaLocaleProvider, WeaTools } from "ecCom"; +import Authority from "./pages/mySalary/authority"; import stores from "./stores"; const { ls } = WeaTools; const { getLabel } = WeaLocaleProvider; +@inject("taxAgentStore") +@observer class Layout extends Component { constructor(props) { super(props); @@ -44,9 +48,10 @@ class Layout extends Component { } render() { - return ( - {this.props.children} - ); + const { taxAgentStore: { PageAndOptAuth, loading } } = this.props; + return ( + {this.props.children} + ); } } diff --git a/pc4mobx/hrmSalary/pages/calculate/calculate.js b/pc4mobx/hrmSalary/pages/calculate/calculate.js index e6207394..5d7b516d 100644 --- a/pc4mobx/hrmSalary/pages/calculate/calculate.js +++ b/pc4mobx/hrmSalary/pages/calculate/calculate.js @@ -40,8 +40,9 @@ class Calculate extends Component { } renderCalculateOpts = () => { - const { taxAgentStore: { showOperateBtn } } = this.props; + const { taxAgentStore: { PageAndOptAuth } } = this.props; const { queryParams, isRefresh } = this.state; + const admin = PageAndOptAuth.opts.includes("admin"); let calculateOpts = [