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 { 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 (<React.Fragment>
<div className="query-div">
@ -289,7 +290,7 @@ class SalaryDetails extends Component {
transferDialog: { ...transferDialog, completeURL: "", visible: false }
})}
buttons={
dialogType === "temp" ? [
dialogType === "temp" && isOpenDevolution && isChief ? [
<Button type="primary"
onClick={this.handelAddTemp}>{getLabel(111, "存为模板")}</Button>,
<Button type="ghost" onClick={() => this.setState({

View File

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