/* * *@params personApplyId *@params onClose */ import React, { Component } from 'react'; import { connect } from 'dva'; import { Button, Drawer, Form, Input, notification } from 'antd'; import PSelect from '../../../../components/Pro/PSelect'; import { adapt_trainAdaptApplyInfo } from '../../../../services/bkt/apis'; import { publicCommonFileFilePreview } from '../../../../services/api'; const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 7 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 20 }, md: { span: 16 } } }; @connect(state => ({ companyInfo: state.global.companyInfo })) @Form.create() export default class SubDrawer extends Component { constructor(props) { super(props); this.state = { comName: this.props.companyInfo.comName, info: null, //申报详情 // contracInfo: {}, //合同详情 certInfo: {}, //证书详情 imgs: [] }; } componentWillMount() { // this.__getDistrict(); } componentDidMount() { } componentWillReceiveProps(nextProps) { if (!!nextProps.personApplyId) { this.__getDetailInfo(nextProps.personApplyId); } } __getDetailInfo = (personApplyId) => { adapt_trainAdaptApplyInfo({ data: { personApplyId } }).then(res => { this.setState({ info: res.data }); }); } render() { const { getFieldDecorator } = this.props.form; const { info } = this.state; return ( {info &&
{ info.materialApproveStatus == '2' &&

材料核对不通过原因: {info.materialApproveFailReason}

} { info.approveStatus == '2' &&

审核不通过原因: {info.approveFailReason}

}
} {/* form表单 */} { info &&
{getFieldDecorator('fullname', { initialValue: info.fullname })()} {getFieldDecorator('identitynumber', { initialValue: info.identitynumber })()} {getFieldDecorator('residentType', { initialValue: info.residentType })()} {getFieldDecorator('residentPlaceType', { initialValue: info.residentPlaceType })()} {getFieldDecorator('householdAddress', { initialValue: info.householdAddress })()} {getFieldDecorator('actualAddress', { initialValue: info.actualAddress })()} {/* * */} 该人员在本企业连续3个月及以上社保缴费凭证: { if(info.socialSecurityProveUrl) { publicCommonFileFilePreview({ url: info.socialSecurityProveUrl, isLoad: '1' }) .then(data => { if (data.data) { window.open(data.data); } }); }else { notification.warning({ message: '该合同未上传附件!', description: '请先上传合同文件,方可查看。' }); } }} > 点击查看 点击下载 {/* {getFieldDecorator('contractUrl' , { initialValue: info.contractUrl })( )} */} {/* --------------- */}

合同信息

{getFieldDecorator('contractName', { initialValue: info.contractName })()} {getFieldDecorator('effectStartDate', { initialValue: `${info.effectStartDate}~${info.effectEndDate}` })()} { if(info.contractUrl) { publicCommonFileFilePreview({ url: info.contractUrl, isLoad: '1' }) .then(data => { if (data.data) { window.open(data.data); } }); }else { notification.warning({ message: '该合同未上传附件!', description: '请先上传合同文件,方可查看。' }); } }} > 点击查看 点击下载 {/* {getFieldDecorator('contractUrl' , { initialValue: info.contractUrl })( )} */}

报名承诺

* 我司( {info.learnName||this.props.companyInfo.comName} )承诺,由我司报名代理人{info.agentName}({info.agentIdCardNo},{info.agentPhone})提交的报名信息真实有效,对因填报信息错误造成不符合培训及补贴申报条件的,由本企业自行承担相应责任和损失。
} {/* 底部提交按钮 */}
); } }