import React, { PureComponent } from 'react'; import style from 'styled-components'; import { Modal, Button, Alert, Card, List, Avatar, Icon, Form, Input, Select } from 'antd'; import { systemComVaseInfoGet //获取公司的省份信息 } from '../../../services/api'; import './InsuranceMangerment.less'; const productlistdata = [ { title: '安保无忧全年意外险(60万计划)' } ]; const FormItem = Form.Item; const { Option } = Select; @Form.create() // @connect(state => ({ // profile: state.profile // })) export default class InsurancePurchase extends PureComponent { // 获取方案书 constructor(props, context) { super(props, context); this.state = { policyHolder: '百川信(厦门)网络信息服务有限公司', //投保人 contacts: '', //联系人 contactsinformation: '', //联系方式 enterprises: '', //企业人数 premium: [], //保障金额 amountmoney: [], //保费 accessbookvisible: false, //获取方案书 disabled: true, productvisible: false, //选择产品 insurancetipvisible: false, //通知-购买引导 guranteevisible: false, bookvisible: false, //通知-方案书 insurancetipsvisible: false, //提示模板 choosecheckvisible1: false, choosecheckvisible2: false, choosecheckvisible3: false, choosecheckvisible4: false, buyinsurance: false, //是否购买保险 fillinformation: true, //是否填写信息 // permiunaccord:true,//保障金额是否符合要求 regProvinceId: '', //企业所在省份 regProvinceName: '', //所在省份对应的落地项目 regProvinceAllName: '' //所在省份对应的落地项目(全称) }; } /******************************生命周期******************************/ componentDidMount() { //450000-->广西壮族自治区,610000-->陕西省,640000-->宁夏回族自治区 systemComVaseInfoGet({}).then( response => { const regProvince = response.data.regProvince; const regProvinceName = regProvince === 450000 ? '广西' : regProvince === 610000 ? '陕西省' : regProvince === 640000 ? '宁夏' : ''; const regProvinceAllName = regProvince === 450000 ? '广西壮族自治区' : regProvince === 610000 ? '陕西省' : regProvince === 640000 ? '宁夏回族自治区' : ''; this.setState({ regProvinceName, regProvinceId: regProvince, regProvinceAllName }); }, err => { console.log(err); } ); } // 温馨提示 showsurancetipsModal = () => { this.setState({ insurancetipsvisible: true }); }; handlesuranceOk = e => { this.setState({ insurancetipsvisible: false, buyinsurance: true, fillinformation: true, accessbookvisible: true }); }; handleonline = e => { this.setState({ insurancetipsvisible: false, buyinsurance: true, fillinformation: true, productvisible: false }); }; handlesurancetipxCancel = e => { this.setState({ insurancetipsvisible: false, buyinsurance: true, fillinformation: true // insurancetipvisible:true, }); }; handlesurancetipCancel = e => { this.setState({ // insurancetipvisible: false, insurancetipsvisible: false, buyinsurance: true, fillinformation: true }); this.props.history.push( // "/InsuranceManagement/InsuranceScheme" // 跳转到1-4-4 '/Company/InsuranceBasic' ); }; // 温馨提示1 showguranteeModal = () => { this.setState({ guranteevisible: true }); }; handleguranteeOk = e => { this.setState({ guranteevisible: false }); }; handleguranteeCancel = e => { this.setState({ guranteevisible: false }); }; handleOk = e => { this.setState({ // visible: false, insurancetipvisible: false, bookvisible: false }); }; handleCancel = e => { this.setState({ // visible: false, insurancetipvisible: false, bookvisible: false }); }; // 选择产品 showproductModal = () => { this.setState({ productvisible: true }); }; handleproductOk = e => { this.setState({ productvisible: false }); this.props.history.push('/InsuranceManagement/InsuranceScheme'); }; handleproductxCancel = e => { this.setState({ productvisible: false }); }; handleproductCancel = e => { this.setState({ productvisible: false, accessbookvisible: true }); }; showsurancetipModal = () => { this.setState({ insurancetipvisible: true }); }; // 通知-方案书 showbookModal; showbookModal = () => { this.setState({ bookvisible: true }); }; // state = { accessbookvisible:false, } // 获取方案书 showaccessbookModal = () => { this.setState({ accessbookvisible: true }); }; handlereducepeopleOk = e => { this.setState({ accessbookvisible: false, productvisible: true }); }; handlereducepeopleCancel = e => { this.setState({ accessbookvisible: false }); }; handleSubmit = e => { e.preventDefault(); this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { console.log('表单提交中.........', values); } }); }; // 选择产品(1个) choosecheck1 = () => { if (this.state.choosecheckvisible1 === false) { this.setState({ choosecheckvisible1: true, choosecheckvisible2: false, choosecheckvisible3: false, choosecheckvisible4: false }); } else { this.setState({ choosecheckvisible1: false }); } }; choosecheck2 = () => { if (this.state.choosecheckvisible2 === false) { this.setState({ choosecheckvisible1: false, choosecheckvisible2: true, choosecheckvisible3: false, choosecheckvisible4: false }); } else { this.setState({ choosecheckvisible2: false }); } }; choosecheck3 = () => { if (this.state.choosecheckvisible3 === false) { this.setState({ choosecheckvisible1: false, choosecheckvisible2: false, choosecheckvisible3: true, choosecheckvisible4: false }); } else { this.setState({ choosecheckvisible3: false }); } }; choosecheck4 = () => { if (this.state.choosecheckvisible4 === false) { this.setState({ choosecheckvisible1: false, choosecheckvisible2: false, choosecheckvisible3: false, choosecheckvisible4: true }); } else { this.setState({ choosecheckvisible4: false }); } }; render() { const { submitting } = this.props; const { getFieldDecorator } = this.props.form; const identification = this.state.regProvinceId === 610000 ? '陕公治〔2017〕182 号' : this.state.regProvinceId === 450000 ? '桂公网传〔2017〕110 号' : ''; const reparations = this.state.regProvinceId === 450000 ? '37' : this.state.regProvinceId === 610000 ? '38' : this.state.regProvinceId === 640000 ? '30' : ''; const formItemLayout = { labelCol: { xs: { span: 7 }, sm: { span: 7 } }, wrapperCol: { xs: { span: 15 }, sm: { span: 15 }, md: { span: 15 } } }; const submitFormLayout = { wrapperCol: { xs: { span: 15, offset: 7 }, sm: { span: 15, offset: 7 } } }; const amountmoney = [ { code: 0, price: '20万' }, { code: 1, price: '40万' }, { code: 2, price: '60万' } ]; const premium = [ { code: 0, price: '600元(不含600元)' }, { code: 1, price: '400元(不含400元)' }, { code: 2, price: '200元(不含200元)' } ]; return (
{/* */} 上一步 , ]} >
( } title={{item.title}} description={
专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...
保费:360 元/人 保障金额:60 {this.state.choosecheckvisible1 === true ? ( ) : ( )}
} />
)} />
( } title={{item.title}} description={
专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...
保费:360 元/人 保障金额:60 {this.state.choosecheckvisible2 === true ? ( ) : ( )}
} />
)} />
( } title={{item.title}} description={
专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...
保费:360 元/人 保障金额:60 {this.state.choosecheckvisible3 === true ? ( ) : ( )}
} />
)} />
( } title={{item.title}} description={
专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...专为保安公司量身定制,市场少有高额度全保障,365天7X24小时意外身故(伤残)+意外医疗+住院津贴,保安人员的...
保费:360 元/人 保障金额:60 {this.state.choosecheckvisible4 === true ? ( ) : ( )}
} />
)} />
{/* 提示模板 */}
{} {this.state.buyinsurance == false || this.state.fillinformation == false ? this.setState({ insurancetipsvisible: true }) : this.setState({ insurancetipsvisible: false })} 已购买保险 , // , ] : [ // , ] } >

根据《关于启用{this.state.regProvinceId === 610000 ? '' : '新版'} {this.state.regProvinceName} {this.state.regProvinceId === 610000 ? '新版' : ''} 保安服务监管信息系统有关工作的通知》{identification} 及《保安服务管理条例》第四章第二十条规定,推进落实保安从业单位根据保安服务岗位的风险程度为保安员投保意外伤害保险,保险保障额度应当不低于 {this.state.regProvinceAllName}人身损害赔偿标准(约{reparations} 万),并通过本系统及时将投保情况实时向公安机关报备。

{/* */} 马上查看 , ]} >

恭喜贵司,已符合陕西西安地区保安从业单位应为保安员投保的相关政策要求,您还可继续投保为员工提高保障额度。

{/* */}
来自: 百保盾SaaS平台
系统安全提示!
12月30日  09:00
} visible={this.state.insurancetipvisible} onOk={this.handleOk} onCancel={this.handleCancel} footer={[ ]} >

根据《关于启用{this.state.regProvinceId === 610000 ? '' : '新版'} {this.state.regProvinceName} {this.state.regProvinceId === 610000 ? '新版' : ''} 保安服务监管信息系统有关工作的通知》{identification} 及《保安服务管理条例》第四章第二十条规定,推进落实保安从业单位根据保安服务岗位的风险程度为保安员投保意外伤害保险,保险保障额度应当不低于 {this.state.regProvinceAllName}人身损害赔偿标准(约{reparations} 万),并通过本系统及时将投保情况实时向公安机关报备。

在线购买保险
申请保险方案书
已购买保险信息完善
来自: 百保盾SaaS平台
安保无忧全年意外险(30万计划)方案书
12月30日  09:00
} visible={this.state.bookvisible} onOk={this.handleOk} onCancel={this.handleCancel} footer={[ ]} >

尊敬的XXXX保安公司:
感谢您对安保无忧全年意外险(30万计划)的亲睐!
为您定制的保险方案书已经生成,可点击以下连接查看。

《安保无忧全年意外险(30万计划)方案书》
在线购买保险
{/* 获取方案书 */}
{/* */}
{getFieldDecorator('policyHolder', { // {} initialValue: this.state.policyHolder, rules: [{ message: '请填写' }] })()} {getFieldDecorator('contacts', { initialValue: this.state.contacts, rules: [ { required: true, message: '限制长度20位数字', max: 20 } ] })()} {getFieldDecorator('contactsinformation', { initialValue: this.state.contactsinformation, rules: [ { required: true, message: '限制长度11位数字', max: 11 } ] })()} {getFieldDecorator('enterprises', { initialValue: this.state.enterprises, rules: [ { message: '限制长度7位数字', type: 'string', max: 7 } ] })()} {getFieldDecorator('amountmoney', { initialValue: this.state.amountmoney, rules: [{ required: true, message: '请选择' }] })( )} {getFieldDecorator('premium', { initialValue: this.state.premium, rules: [{ required: true, message: '请选择' }] })( )}
); } } const Container = style.div` padding:24px; `;