feature/2.12.1.2403.02-个税-外籍人员信息报送

This commit is contained in:
黎永顺 2024-04-11 09:48:37 +08:00
parent 10af6ff5ae
commit 4984d04d43
2 changed files with 9 additions and 7 deletions

View File

@ -27,12 +27,13 @@ class LeftTab extends Component {
}
getTaxReports = () => {
const { onChangeTab } = this.props;
const { onChangeTab, onCollapse } = this.props;
API.getTaxReports({ id: getQueryString("id") }).then(({ status, data: dataSource }) => {
if (status) this.setState({
dataSource, selectedKeys: !_.isEmpty(dataSource) ? _.head(dataSource).id + "" : ""
}, () => {
!_.isEmpty(this.state.dataSource) && onChangeTab(_.head(this.state.dataSource).reportType);
onCollapse(!_.isEmpty(this.state.dataSource) && this.state.dataSource.length > 1);
});
});
};

View File

@ -25,8 +25,7 @@ import {
taxdeclarationRefreshData,
taxdeclaratioUpdateCancel,
taxdeclaratioUpdateDeclare,
taxPaymentVoucherStatusSync,
taxPaymentWithheldVoucherGet
taxPaymentVoucherStatusSync
} from "../../apis/declare";
import { convertToUrlString, getQueryString } from "../../util/url";
import IncomeTaxDeclarationPersonnelSlide from "./components/incomeTaxDeclarationPersonnelSlide";
@ -62,7 +61,7 @@ class Index extends Component {
},
intelCalcSalaryStatus: false, //智能算薪 总开关是否开启
declareInfo: {}, pageInfo: { current: 0, pageSize: 10, total: 0 },
reportType: ""
reportType: "", showLeft: false
};
this.timer = null;
this.taxDeclareRef = null;
@ -347,7 +346,7 @@ class Index extends Component {
render() {
const {
tabs, selectedKey, loading, declareInfo, intelCalcSalaryStatus, taxDecPersonSlide,
editTabVisible, reportType
editTabVisible, reportType, showLeft
} = this.state;
const [__, taxDeclarationId] = selectedKey.split("%%");
let btns = [
@ -424,10 +423,12 @@ class Index extends Component {
}
return (
<WeaLeftRightLayout
showLeft={showLeft}
leftWidth={210}
leftCom={<LeftTab
onChangeTab={(reportType, isInit = false) => this.setState({ reportType }, () => isInit && this.init())}/>}
>
onChangeTab={(reportType, isInit = false) => this.setState({ reportType }, () => isInit && this.init())}
onCollapse={showLeft => this.setState({ showLeft })}/>}
onCollapse={showLeft => this.setState({ showLeft })}>
<div className="declareDetail-layout">
<TaxDeclarationInfo declareInfo={declareInfo} onOperate={fun => this[fun]()}/>
<div className="declareDetail-layout-content">