| | |
| | | |
| | | import React from 'react'; |
| | | |
| | | import { Row, Col, Input, DatePicker, Button, Modal, Upload, Icon, message, Divider, TimePicker, Badge, Select, Popconfirm, Spin } from 'antd'; |
| | | import { Row, Col, Input, DatePicker, Button, Modal, Upload, Icon, message, Breadcrumb, TimePicker, Badge, Select, Popconfirm, Spin } from 'antd'; |
| | | const { TextArea } = Input; |
| | | import HeadView from '../view/HeadView'; |
| | | import BusDetailView from '../view/BusDetailView'; |
| | |
| | | }, |
| | | taskType: res.taskType || 1, |
| | | // status: res.activityStatus || '', |
| | | socialTaskObject: res.socialTaskObject?{id:res.socialTaskObject.objectId,objectName:res.socialTaskObject.objectName}:{}, |
| | | socialTaskObject: res.socialTaskObject ? { id: res.socialTaskObject.objectId, objectName: res.socialTaskObject.objectName, taskReport:res.socialTaskObject.taskReport } : {}, |
| | | disabled: res.status ? true : false, |
| | | fileList: res.attachments || [], |
| | | loading: false, |
| | | }); |
| | | }) |
| | |
| | | handleOk = e => { |
| | | const { savedate } = this.state; |
| | | console.log(savedate); |
| | | |
| | | |
| | | this.setState({ |
| | | visible: false, |
| | | visible: false, |
| | | }); |
| | | Fetch.socialUpdate(savedate.id) |
| | | .then(res => { |
| | |
| | | message.error('保存失败,请联系管理员', 2) |
| | | } |
| | | }); |
| | | }; |
| | | }; |
| | | |
| | | getNum = (e) => { |
| | | console.log(e.target.value) |
| | |
| | | <div className="app-page"> |
| | | <Spin spinning={loading}> |
| | | <HeadView history={this.props.history} /> |
| | | <Breadcrumb style={{ padding: '20px' }}> |
| | | <Breadcrumb.Item><a href="index.html#/entry/applyFor">社会关护管理</a></Breadcrumb.Item> |
| | | <Breadcrumb.Item>社会关护管理活动</Breadcrumb.Item> |
| | | </Breadcrumb> |
| | | <BusDetailView type='社会关护管理活动' > |
| | | <div style={divStyle}> |
| | | <Row type="flex" align='middle' justify="space-around"> |
| | |
| | | <Col span={12} pull={0}></Col> |
| | | </Row> |
| | | </div> |
| | | |
| | | { |
| | | savedate.status !== 0 ? |
| | | <div style={divStyle}> |
| | | <Row type="flex" align='middle' justify="space-around"> |
| | | <Col span={6} pull={0} style={{ textAlign: 'center' }}><span>任务汇报</span></Col> |
| | | <Col span={6} push={0} > |
| | | <TextArea disabled={disabled} rows={4} style={{ width: '92%' }} value={socialTaskObject.taskReport || ""} onChange={this.saveInputChange} name='taskReport' /> |
| | | </Col> |
| | | <Col span={12} pull={0}></Col> |
| | | </Row> |
| | | </div> : '' |
| | | } |
| | | |
| | | { |
| | | savedate.status !== 0 ? |
| | | <div style={divStyle}> |
| | | <div style={divStyle}> |
| | | <Row type="flex" align='top' justify="space-around"> |
| | | <Col span={6} pull={0} style={{ textAlign: 'center' }}><span>汇报附件</span></Col> |
| | | <Col span={18} push={0} > |
| | | <Upload disabled={disabled} listType="picture-card" onPreview={this.handlePreview} {...props}> |
| | | |
| | | </Upload> |
| | | </Col> |
| | | </Row> |
| | | </div> |
| | | </div> :'' |
| | | } |
| | | |
| | | { |
| | | |
| | | savedate.status == 2 || savedate.status == 99 ? |