diff --git a/pc4mobx/hrmSalary/pages/salary/components/personalScope.js b/pc4mobx/hrmSalary/pages/salary/components/personalScope.js index 37356d3d..fa392444 100644 --- a/pc4mobx/hrmSalary/pages/salary/components/personalScope.js +++ b/pc4mobx/hrmSalary/pages/salary/components/personalScope.js @@ -157,7 +157,8 @@ class PersonalScope extends Component { selectedKey, searchValue, rowKeys, personalAddModal, importParams, previewDataSource, extEmpsWitch, loading } = this.state; - const { taxAgentStore: { hideIconInTax, showSalaryItemBtn }, taxAgentId } = this.props; + const { taxAgentStore: { PageAndOptAuth }, taxAgentId } = this.props; + const showOperateBtn = PageAndOptAuth.opts.includes("admin"); const topTab = [ { title: "管理范围", @@ -172,7 +173,7 @@ class PersonalScope extends Component { viewcondition: "listExt" } ]; - const btns = (hideIconInTax || showSalaryItemBtn) ? [ + const btns = showOperateBtn ? [ - ]; - break; - case 1: - const tmpV = []; - const tmpJ = [ - , - - ]; - CurrentDom = isEdit ? tmpV : [...tmpV, ...tmpJ]; - break; - case 2: - CurrentDom = (!isEdit && salaryOn) ? - [] - : []; - break; - default: - break; - } - } - return CurrentDom; - }; handleSubmit = (selectKey) => { const { taxFilingInfoDialofg, taxAgentId } = this.state; const { fieldForm } = this.taxInfoRef.state; @@ -299,7 +243,7 @@ class TaxAgentSlide extends Component { key: 2, title: getLabel(124810, "人员范围"), createBtns: [ + onClick={() => this.setState({ current: !salaryOn ? current - 2 : current - 1 })}>{getLabel(1876, "上一步")} ], editBtns: [], children: @@ -311,7 +255,8 @@ class TaxAgentSlide extends Component { current === o.key).createBtns}/> : + !this.props.taxAgentId ? + current === o.key).createBtns}/> : current === o.key).editBtns : []} tabDatas={tabs} selectedKey={String(current)} title={title} onChange={cur => this.setState({ current: parseInt(cur) })}/>