custom-艾志工业-合并个税

This commit is contained in:
lys 2025-05-20 16:45:53 +08:00
parent c1269e7dd3
commit 3be80d9ab2
2 changed files with 5 additions and 4 deletions

View File

@ -24,7 +24,7 @@ import "../index.less";
const WeaTableComx = WeaTableNew.WeaTable; const WeaTableComx = WeaTableNew.WeaTable;
const { getLabel } = WeaLocaleProvider; const { getLabel } = WeaLocaleProvider;
@inject("attendanceStore") @inject("attendanceStore", "taxAgentStore")
@observer @observer
class SalaryDetails extends Component { class SalaryDetails extends Component {
constructor(props) { constructor(props) {
@ -256,7 +256,8 @@ class SalaryDetails extends Component {
const { const {
loading, dataSource, transferDialog, tempDialog, tempPageList, templateId, tempManageDialog, tempManageQuery loading, dataSource, transferDialog, tempDialog, tempPageList, templateId, tempManageDialog, tempManageQuery
} = this.state; } = this.state;
const { dateRange, showSearchAd } = this.props; const { taxAgentStore: { PageAndOptAuth }, dateRange, showSearchAd } = this.props;
const { isOpenDevolution, isChief } = PageAndOptAuth;
const { dialogType } = transferDialog; const { dialogType } = transferDialog;
return (<React.Fragment> return (<React.Fragment>
<div className="query-div"> <div className="query-div">
@ -289,7 +290,7 @@ class SalaryDetails extends Component {
transferDialog: { ...transferDialog, completeURL: "", visible: false } transferDialog: { ...transferDialog, completeURL: "", visible: false }
})} })}
buttons={ buttons={
dialogType === "temp" ? [ dialogType === "temp" && isOpenDevolution && isChief ? [
<Button type="primary" <Button type="primary"
onClick={this.handelAddTemp}>{getLabel(111, "存为模板")}</Button>, onClick={this.handelAddTemp}>{getLabel(111, "存为模板")}</Button>,
<Button type="ghost" onClick={() => this.setState({ <Button type="ghost" onClick={() => this.setState({

View File

@ -328,7 +328,7 @@ class Index extends Component {
{ key: "salaryDetail", title: getLabel(111, "薪资明细") } { key: "salaryDetail", title: getLabel(111, "薪资明细") }
]; ];
dropMenuDatas = selectedKey === "salaryDetail" ? dropMenuDatas.slice(-1) : dropMenuDatas.slice(0, 1); dropMenuDatas = selectedKey === "salaryDetail" ? dropMenuDatas.slice(-1) : dropMenuDatas.slice(0, 1);
isOpenDevolution && !isChief && dropMenuDatas.shift(); // isOpenDevolution && !isChief && dropMenuDatas.shift();
return ( return (
<WeaReqTop <WeaReqTop
title={getLabel(111, "薪酬统计报表")} icon={<i className="icon-coms-fa"/>} selectedKey={selectedKey} title={getLabel(111, "薪酬统计报表")} icon={<i className="icon-coms-fa"/>} selectedKey={selectedKey}