salary-management-front/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/baseInfo.js

61 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Author: 黎永顺
* name: 人员信息报送-基础信息
* Description:
* Date: 2023/8/14
*/
import React, { Component } from "react";
import { WeaLocaleProvider } from "ecCom";
import { getQueryString } from "../../../util/url";
import EmployeeDeclareDetailCalcDialog from "./employeeDeclareDetailCalcDialog";
const { getLabel } = WeaLocaleProvider;
class BaseInfo extends Component {
constructor(props) {
super(props);
this.state = {
declareCalcDialog: {
visible: false
}
};
}
handleOpenFailDialog = () => {
this.setState({
declareCalcDialog: {
visible: true
}
});
};
render() {
const { declareCalcDialog } = this.state;
return (
<div className="base-info">
<div className="left"><span>{getLabel(537996, "个税扣缴义务人")}{getQueryString("taxName")}</span></div>
<div className="right">
<div className="header-declare-info">
<a href="javascript:void(0);" className="fail"
onClick={this.handleOpenFailDialog}>{getLabel(111, "报送失败")}:&nbsp;&nbsp;0</a>
<span className="not">{getLabel(111, "未报送")}:&nbsp;&nbsp;0</span>
</div>
</div>
{/*报送失败数据查看*/}
<EmployeeDeclareDetailCalcDialog
{...declareCalcDialog}
onCancel={() => {
this.setState({
declareCalcDialog: {
visible: false
}
});
}}
/>
</div>
);
}
}
export default BaseInfo;