30 lines
961 B
JavaScript
30 lines
961 B
JavaScript
import React from 'react'
|
|
import { Modal, Button, Row, Col } from 'antd'
|
|
import { WeaInput } from 'ecCom'
|
|
|
|
export default class CopyFormModal extends React.Component {
|
|
constructor(props) {
|
|
super(props)
|
|
this.state = {
|
|
name: ""
|
|
}
|
|
}
|
|
render() {
|
|
return (
|
|
<Modal
|
|
width={600}
|
|
visible={this.props.visible}
|
|
title="复制账套"
|
|
onCancel={() => this.props.onCancel()}
|
|
footer={<Button type="primary" onClick={() => {this.props.onSave(this.state.name)}}>保存</Button>}
|
|
>
|
|
<Row>
|
|
<Col span={6}>账套名称</Col>
|
|
<Col span={18}>
|
|
<WeaInput style={{width: "200px"}} value={this.state.name} onChange={(value) => {this.setState({name: value})}} />
|
|
</Col>
|
|
</Row>
|
|
</Modal>
|
|
)
|
|
}
|
|
} |