salary-management-front/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/refereAttendFormModal.js

65 lines
2.4 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.

import React from 'react'
import { Modal, Row, Col, Button } from 'antd'
import { WeaSelect, WeaInput, WeaBrowser, WeaDatePicker } from "ecCom"
import SelectItemModal, {items} from '../../../components/selectItemsModal'
import SelectItemsWrapper from '../../../components/selectItemsModal/selectItemsWrapper'
export default class RefereAttendFormModal extends React.Component {
constructor(props) {
super(props)
this.state = {
headerSetVisible: false
}
}
render() {
return (
<Modal width={600} title="引用考勤数据" footer={
<div style={{display: "inline-block"}}>
<Button type="primary">同步</Button>
<Button type="default" onClick={() => {this.setState({headerSetVisible: true})}}>表头设置</Button>
</div>
} visible={this.props.visible} onCancel={this.props.onCancel}>
<Row style={{marginBottom: "10px"}}>
<Col span={8}>薪资所属月:</Col>
<Col span={16}>
<WeaDatePicker
format="yyyy-MM"
style={{width: 200}}
/>
</Col>
</Row>
<Row style={{marginBottom: "10px"}}>
<Col span={8}>薪资账套</Col>
<Col span={16}>
<WeaSelect
showSearch // 设置select可搜索
style={{ width: 200, display: "inline-block" }}
/>
</Col>
</Row>
<Row style={{marginBottom: "10px"}}>
<Col span={8}>添加账套外人员</Col>
<Col span={16}>
<WeaInput style={{width: 200}} />
</Col>
</Row>
<Row style={{marginBottom: "10px"}}>
<Col span={8}>备注</Col>
<Col span={16}>
<WeaInput style={{width: 200}} />
</Col>
</Row>
<SelectItemModal visible={this.state.headerSetVisible} onCancel={() => this.setState({headerSetVisible: false})}>
<SelectItemsWrapper items={items} title={"考勤模块"}/>
</SelectItemModal>
</Modal>
)
}
}