111 lines
5.3 KiB
JavaScript
111 lines
5.3 KiB
JavaScript
import React from 'react'
|
||
import { WeaSteps, WeaDatePicker, WeaInput, WeaSelect } from 'ecCom';
|
||
import { inject, observer } from 'mobx-react';
|
||
import { Upload, Icon, Row, Col, Button } from "antd";
|
||
import uploadImg from './upload.svg'
|
||
|
||
const Dragger = Upload.Dragger;
|
||
|
||
@inject("taxAgentStore")
|
||
@observer
|
||
export default class ModalStep1 extends React.Component {
|
||
constructor(props) {
|
||
super(props)
|
||
this.state = {
|
||
datetime: "",
|
||
taxAgentId: ""
|
||
}
|
||
}
|
||
|
||
componentWillMount() { // 初始化渲染页面
|
||
const { taxAgentStore: {fetchTaxAgentOption} } = this.props;
|
||
fetchTaxAgentOption();
|
||
}
|
||
|
||
render() {
|
||
const { datetime, taxAgentId } = this.state
|
||
const { taxAgentStore: {taxAgentOption} } = this.props;
|
||
return (
|
||
<div style={{ height: "550px", display: "flex", flexFlow: "column"}}>
|
||
<div style={{ flex: "1", overflow: "scroll" }}>
|
||
<div className="stepInformItem">
|
||
<div className="stepInformTitle" style={{ margin: "10px 0 10px 0" }}>
|
||
导入选项
|
||
</div>
|
||
<div className="formWrapper" style={{ border: "1px solid #eee", borderRadiu: "5px", padding: "10px" }}>
|
||
<Row>
|
||
<Col span={12}>
|
||
<span className="formLabel" style={{ lineHeight: "30px", marginRight: "10px" }}>税款所属期</span>
|
||
<WeaDatePicker
|
||
format="yyyy-MM"
|
||
value={datetime}
|
||
onChange={value => this.setState({ datetime: value })}
|
||
/>
|
||
</Col>
|
||
<Col span={12}>
|
||
<span className="formLabel" style={{ lineHeight: "30px", marginRight: "10px" }}>个税扣缴义务人</span>
|
||
<WeaSelect
|
||
showSearch // 设置select可搜索
|
||
style={{ width: 200 }}
|
||
options={taxAgentOption}
|
||
value={taxAgentId}
|
||
onChange={v => {
|
||
this.setState({ taxAgentId: v });
|
||
}}
|
||
/>
|
||
</Col>
|
||
</Row>
|
||
</div>
|
||
</div>
|
||
|
||
<div className="stepInformItem">
|
||
<div className="stepInformTitle" style={{ margin: "10px 0 10px 0" }}>
|
||
导入excel
|
||
</div>
|
||
<div>
|
||
<Dragger>
|
||
<div style={{ padding: '25px 0' }}>
|
||
<p className="ant-upload-drag-icon">
|
||
<Icon type="inbox" />
|
||
</p>
|
||
<p className="ant-upload-text">点击或将文件拖拽到此区域上传</p>
|
||
<p className="ant-upload-hint">支持单个或批量上传,严禁上传公司内部资料及其他违禁文件</p>
|
||
</div>
|
||
</Dragger>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div className="stepInformItem">
|
||
<div className="stepInformTitle" style={{ margin: "10px 0 10px 0" }}>
|
||
操作步骤
|
||
</div>
|
||
|
||
<div style={{ lineHeight: "30px" }}>
|
||
<p>1. 第一步,请选择导出的Excel文件或 <a href="/api/bs/hrmsalary/addUpDeduction/downloadTemplate">点击这里下载模板</a>;</p>
|
||
<p>2. 第二步,请一定要确定Excel文档中的格式是模板中的格式,没有被修改掉;</p>
|
||
<p>3. 第三步,选择填写好的Excel文档,点击“下一步”按钮进行数据预览;</p>
|
||
<p>4. 第四步,如果以上步骤和Excel文档正确的话,数据会被正确导入,导入成功会有提示。如果有问题,则会提示Excel文档的错误之处。</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div className="stepInformItem">
|
||
<div className="stepInformTitle" style={{ margin: "10px 0 10px 0" }}>
|
||
Excel文件说明
|
||
</div>
|
||
|
||
<div style={{ lineHeight: "30px" }}>
|
||
1. 后缀名为xls或者xlsx;<br />
|
||
2. 数据请勿放在合并的单元格中;<br />
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<div className="footerBtnWrapper" style={{ overflow: "hidden", height: "30px" }}>
|
||
<Button type="primary" style={{ float: "right" }} onClick={this.props.onStep1Next}>下一步</Button>
|
||
</div>
|
||
</div>
|
||
)
|
||
}
|
||
} |