| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626 | import React from 'react';import { Radio,Icon, Popconfirm,Button, AutoComplete ,Input,Select,Spin,Table, Switch, message, DatePicker, Modal,Form ,Row,Col,TimePicker} from 'antd';import ajax from 'jquery/src/ajax/xhr.js';import $ from 'jquery/src/ajax';import moment from 'moment';const Option = AutoComplete.Option;const OptGroup = AutoComplete.OptGroup;import './myClient.less';const { Column, ColumnGroup } = Table;import {socialAttribute,newFollow,lvl, customerStatus,intentionalService} from '../../../dataDic.js';import {getcustomerStatue,getprovince,getCompanyIntention,getfllowSituation,getContactType } from '../../../tools.js';const MyBusiness = Form.create()(React.createClass({	    loadData(pageNo, apiUrl) {        this.state.data = [];        this.setState({            loading: true,            ispage:pageNo,        });              $.ajax({            method: "post",            dataType: "json",            crossDomain: false,                      url:globalConfig.context + '/api/admin/customer/listManageBusiness',            data: { 				                pageNo: pageNo || 1,                pageSize: this.state.pagination.pageSize,                               businessGlossoryId: this.state.businessIdS, //业务意向                  identifyName:this.state.identifyNameS,                followSituation:this.state.followSituationS,                customerStatus:this.state.customerStatusS,			    adminName: this.state.adminNameS,				startDate: this.state.releaseDate[0],                endDate: this.state.releaseDate[1],                            },            success: function (data) {            	                let theArr = [];                 if (data.error.length || data.data.list=="") {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };                                   } else {                      for (let i = 0; i < data.data.list.length; i++) {                        let thisdata = data.data.list[i];                                                theArr.push({                            key: i,                                                       id: thisdata.id,                                                                              businessId:thisdata.businessId,                            businessName:thisdata.businessName,                            identifyName:thisdata.identifyName,                            followSituation:thisdata.followSituation,                            customerStatus:thisdata.customerStatus,                            customerStatust:thisdata.customerStatus,                            adminName:thisdata.adminName,                   			createTime:thisdata.createTime,                   			updateTime:thisdata.updateTime,                        });                    };                     this.state.pagination.current = data.data.pageNo;               	    this.state.pagination.total = data.data.totalCount;                };              if(data.data&&data.data.list&&!data.data.list.length){					this.state.pagination.current=0;					this.state.pagination.total=0;				}                this.setState({                    dataSource: theArr,                    pagination: this.state.pagination,                    selectedRowKeys:[]                });            }.bind(this),        }).always(function () {            this.setState({                loading: false            });        }.bind(this));    },      	//点击出现函数	setModal2VisibleOk(e) {			    this.setState({ 	    	modal2Visible:true	    		    });		},	//点击消失函数	setModal2Visiblecancel(e) {	    this.setState({ 	    	modal2Visible:false	    });	   	    	},		getPictureUrl(e) {    this.setState({pictureUrl: e });    },       handleOk(e){	   	    this.setState({	      visible: false,	    });	},	handleCancel(e){	   	    this.setState({	      visible: false,	    });	},	    getInitialState() {        return {         	dataSources:[],        	customerName:[],        	orgCodeUrl:[],            companyLogoUrl:[],        	visible: false ,            searchMore: true,                       releaseDate: [],                        releaseDate: [],            selectedRowKeys: [],            selectedRowKey: [],            selectedRows: [],            loading: false,            pagination: {                defaultCurrent: 1,                defaultPageSize: 10,                showQuickJumper: true,                pageSize: 10,                onChange: function (page) {                    this.loadData(page);                }.bind(this),                showTotal: function (total) {                    return '共' + total + '条数据';                }            },            paginations: {                defaultCurrent: 1,                defaultPageSize: 10,                showQuickJumper: true,                pageSize: 10,                onChange: function (page) {                    this.loadVisit(page);                }.bind(this),                showTotal: function (total) {                    return '共' + total + '条数据';                }            },	          businessFollowList: [                               {                    title: '跟进时间',                    dataIndex: 'followTime',                    key: 'followTime',                                                        }, {                    title: '营销员',                    dataIndex: 'adminName',                    key: 'adminName',                }, {                    title: '意向进度',                    dataIndex: 'followSituation',                    key: 'followSituation',                     render:text=>{return getfllowSituation(text)}                }, {                    title: '客户状态',                    dataIndex: 'customerStatus',                    key: 'customerStatus',                      render:text=>{return getcustomerStatue(text)}                },                 {                    title: '拜访方式',                    dataIndex: 'contactType',                    key:'contactType',                    render:text=>{return getContactType(text)}                }, {                    title: '联系人',                    dataIndex: 'contacts',                    key: 'contacts',                                    },                 {                    title: '联系电话',                    dataIndex: 'contactMobile',                    key:'contactMobile',                                   },                {                    title: '操作',                    dataIndex: 'ccc',                    key:'ccc',   					render: (text, record, index) => {                    	                        return <div>                            <Popconfirm title="是否删除?" onConfirm={(e)=>{this.intentionDelet(record)}} okText="删除" cancelText="不删除">							        <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}} onClick={(e)=>{e.stopPropagation()}}>删除</Button>							</Popconfirm>                        </div>                    }                }                ],            columns: [                               {                    title: '业务名称',                    dataIndex: 'businessName',                    key: 'businessName',                                                        }, {                    title: '意向时间',                    dataIndex: 'createTime',                    key: 'createTime',                }, {                    title: '更新时间',                    dataIndex: 'updateTime',                    key: 'updateTime',                }, {                    title: '客户名称',                    dataIndex: 'identifyName',                    key: 'identifyName',                 }, {                    title: '营销员',                    dataIndex: 'adminName',                    key: 'adminName',                                    },                 {                    title: '意向进度',                    dataIndex: 'followSituation',                    key:'followSituation',                      render: text => { return getfllowSituation(text) }                },                 {                    title: '客户状态',                    dataIndex: 'customerStatus',                    key: 'customerStatus',                    render: text => { return getcustomerStatue(text) }                },                {                    title: '操作',                    dataIndex: 'abc',                    key: 'abc',                    render: (text, record, index) => {                    	                        return <div>                        	<Button onClick={(e) =>{ e.stopPropagation(), this.addModify(record); }} type="primary" style={{marginRight:'10px',}} disabled={record.customerStatust=='6'?true:false}>跟进</Button>                             <Popconfirm title="是否停止?" onConfirm={(e)=>{this.followStop(record)}} okText="停止" cancelText="不停止">							    <Button type="primary" style={{marginRight:'10px'}} onClick={(e) =>{ e.stopPropagation()}} disabled={record.customerStatust=='6'?true:false}>停止</Button>							</Popconfirm>                        </div>                    }                }             ],            dataSource: [],            searchTime: [,]        };    },    //删除跟进记录    intentionDelet(uids){    	 this.setState({	       		loading:true	        });        $.ajax({            method: "get",            dataType: "json",            crossDomain: false,                       url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",            data: {                ufbId: uids.ufbId,//删除的ID                }        }).done(function (data) {            if (!data.error.length) {                message.success('删除成功!');                this.setState({                    loading: false,                });            } else {                message.warning(data.error[0].message);            };            this.loadVisit();            this.loadData(this.state.ispage);        }.bind(this));    },    //更多操作    ModalOperation(){    	this.setState({        visible: true,      });    },           //列表删除功能    delectRow() {    	let deletedIds;                      for (let idx = 0; idx < this.state.selectedRows.length; idx++) {            let rowItem = this.state.selectedRows[idx];                                      if (rowItem.businessId) {                deletedIds=rowItem.businessId;                                };                    };         this.setState({        	            selectedRowKeys: [],                    });               $.ajax({            method: "get",            dataType: "json",            crossDomain: false,                       url: globalConfig.context + "/api/admin/customer/deleteBusiness",            data: {                businessId: deletedIds,//删除的ID                }        }).done(function (data) {            if (!data.error.length) {                message.success('删除成功!');                this.setState({                    loading: false,                });            } else {                message.warning(data.error[0].message);            };            this.loadData(this.state.ispage);        }.bind(this));      },    //停止跟进    followStop(uids) {	        this.setState({	       		loading:true	        });	        $.ajax({	            method: "get",	            dataType: "json",	            crossDomain: false,           	            url: globalConfig.context + "/api/admin/customer/stopBusiness",	            data: {	                businessId: uids.businessId,//删除的ID    	            }	        }).done(function (data) {	            if (!data.error.length) {	                message.success('成功停止跟进!');	                this.setState({	                    loading: false,	                });	            } else {	                message.warning(data.error[0].message);	            };	            this.loadData(this.state.ispage);	        }.bind(this));    },    getOrgCodeUrl(e) {        this.setState({ orgCodeUrl: e });    },    getCompanyLogoUrl(e) {        this.setState({ companyLogoUrl: e });    },    componentWillMount() {                              //意向服务        let intentionalArr = [];        newFollow.map(function (item) {            intentionalArr.push(                <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>            )        });            this.state.intentionalOption = intentionalArr;        this.loadData();            }, 	//新建	    addClick() {    	this.state.businessGlossoryId=undefined;        this.state.followSituation='0';        this.state.customerStatus='0';        this.state.contactType=undefined;        this.state.remarks='';        this.state.result='';        this.state.keys=false;        this.state.lastName=undefined;        this.addTime();         this.setState({            showDesc: true,                   });           },        addClickOk(){    	this.setState({    		businessId:'',            showDesc: false,                   });    },    addClickCancel(){    	this.setState({    		businessId:'',            showDesc: false,                   });    },    search() {        this.loadData();    },    reset() {    	this.state.businessIdS=undefined; //名称1           this.state.identifyNameS='';                this.state.followSituationS=undefined;        this.state.customerStatusS=undefined;        this.state.adminNameS='';	    this.state.releaseDate[0]=undefined;        this.state.releaseDate[1]=undefined;        this.loadData();     },    searchSwitch() {        this.setState({            searchMore: !this.state.searchMore        });    },    //详情保存函数    detailsSubmint(){    	this.setState({    		modal5Visible:false,    	})    },    //基本信息提交    newSubmit(e){    	e.preventDefault();         this.setState({        	            selectedRowKeys: [],                   });    	this.props.form.validateFields((err, values) => {    		if (!err) {            	this.setState({                  loading: true            	}); 	                $.ajax({                    method: "post",                    dataType: "json",                    url:globalConfig.context + '/api/admin/customer/updateBusiness',                    data: {         	                    	businessId:this.state.rowId,                     	followSituation:this.state.followSituation,                     	customerStatus:this.state.customerStatus,                     	remarks:this.state.remarks, 	                    }                }).done(function (data) {                 	 this.setState({                        loading: false                    });                    if (!data.error.length) {                        message.success('保存成功!');                        this.detailsModal() ;                        this.loadData(this.state.ispage);                    } else {                        message.warning(data.error[0].message);                    }        			;                }.bind(this));			}    	})    },    //查看基本详情基本信息    loadInformation(record){    	$.ajax({            method: "get",            dataType: "json",            crossDomain: false,            url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',            data: {                businessId: record            },            success: function (data) {                let thisData = data.data;                                if (!thisData) {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };                    thisData = {};                };                 this.setState({                	uids:thisData.uid,                	dataInformation:thisData,                	followSituation:thisData.followSituation,                	businessGlossoryId:thisData.businessGlossoryId,                	customerStatus:thisData.customerStatus,                	remarks:thisData.remarks,	                });                              }.bind(this),        }).always(function () {        	this.loadVisit();            this.setState({            	                loading: false            });        }.bind(this));           },   	detailsModalOk(e) {  	  this.setState({ modal5Visible:true });//需要一个请求数据  	  this.loadInformation(e.businessId)    },    //点击消失函数	  detailsModal(e) {			    this.setState({ 	    	modal5Visible:false	    });	 	   	  },	//拜访保存函数    visitSubmit(){    	this.setState({    		visitModul:false,    	})    },	//新增联系人	addcontactModulOK(){		this.setState({ 	    	addcontactModul:false	    });	},	addcontactModulcancel(){		this.setState({ 	    	addcontactModul:false	    });	},	businessFollowOk(){		this.setState({ 	    	businessFollowModul:false	    });	},	businessFollowCancel(){		this.setState({ 	    	businessFollowModul:false	    });	},	//点击新增详情	newContacts(){		if(this.state.uids||this.state.khId){		this.state.newsex =undefined;		this.state.newname ='';		this.state.newmobile='';		this.state.newwechat='';		this.state.newqq='';		this.state.newdepatrment='';		this.state.newposition='';		this.state.newemail='';		this.setState({			uids:this.state.uids?this.state.uids:this.state.khId,	    	addcontactModul:true	   });		  }else{		  	 message.warning('请输入客户名称')		  }	},	//新增联系人保存函数	submitcontactman(e){		e.preventDefault();		this.setState({			loading:true		})		$.ajax({                method: "post",                dataType: "json",                crossDomain: false,                url: globalConfig.context + "/api/admin/customer/addOneContact",                data:{                   uid:this.state.uids,                   name:this.state.newname,                   mobile:this.state.newmobile,                   email:this.state.newemail,                   wechat:this.state.newwechat,                   depatrment:this.state.newdepatrment,                   position:this.state.newposition,                    sex:this.state.newsex,                   qq:this.state.newqq                },                success: function (data) {                	                  		if (!data.error.length) {                			this.addcontactModulOK()                			this.getNewWoman(this.state.uids)			                this.setState({			                    loading: false,			                })		            } else {		                message.warning(data.error[0].message);		            };		        }.bind(this)		     });	},	//跟进    addModify(e) {        this.addTime();         this.HttpFollowUp(e.businessId);        this.state.keys=true;        this.setState({            showDesc: true,                   });     }, 		//当选择联系人的列表变化时,则执行    hundleName(e){		    	       let changNub=this.state.telNum[e];           this.setState({       		       	  nub:this.state.telNum[e],	      lastName: e,	   });	},		//新建保存	addSubmit(e){		e.preventDefault();		if(this.state.businessGlossoryId==undefined){		  		message.warning('请选择业务意向')		  		return false;		}		if(!this.state.businessId){			if(!this.state.theTypes){			  		message.warning('客户名为空或不存在')			  		return false;			}		}		if(this.state.contactType==undefined){    		message.warning('请选择联系方式')    		return false;    	}    	if(this.state.lastName==undefined){		  		message.warning('请选择联系人')		  		return false;		}			this.props.form.validateFields((err, values) => {                                             if (!err) {                this.setState({                    loading: true                });                 let conts=this.state.lastName;           		let contactsId= this.state.contactsIdArr[conts].id;                $.ajax({                    method: "post",                    dataType: "json",                    crossDomain: false,                    url:!this.state.keys?globalConfig.context + '/api/admin/customer/addBusinessAndFollow':globalConfig.context + '/api/admin/customer/addFollowOneBusiness ',                    data:!this.state.businessId?{                    	uid:this.state.khId,                        businessGlossoryId: this.state.businessGlossoryId,                         followSituation:this.state.followSituation,                        customerStatus: this.state.customerStatus,                        contactType: this.state.contactType,                        ocbId: contactsId,                        createTime:this.state.createYear+''+this.state.creatMent,                        followTime:this.state.followTime,                        remarks: this.state.remarks,                        result: this.state.result,                    }:{                    	uid:this.state.uids,                    	businessId:this.state.businessId,                        businessGlossoryId: this.state.businessGlossoryId,                         followSituation:this.state.followSituation,                        customerStatus: this.state.customerStatus,                        contactType: this.state.contactType,                        ocbId: contactsId,                        followTime:this.state.followTime,                        remarks: this.state.remarks,                        result: this.state.result,                    }                }).done(function (data) {                     this.setState({                        loading: false                    });                    if (!data.error.length) {                        message.success('保存成功!');                         this.addClickCancel();                        this.loadData(this.state.ispage);                         this.state.businessId='';                    } else {                        message.warning(data.error[0].message);                    }                }.bind(this));            }        });	},	//列表保存	addlistSubmit(e){		e.preventDefault();		this.props.form.validateFields((err, values) => {                                             if (!err) {                this.setState({                    loading: true                });                 let conts=this.state.lastName;           		let contactsId= conts?this.state.contactsIdArr[conts].id:'';                $.ajax({                    method: "post",                    dataType: "json",                    crossDomain: false,                    url:globalConfig.context + '/api/admin/customer/updateFollowOneBusiness',                    data:{                    	ufbId:this.state.ufbIds,                    	followId:this.state.followId,                        customerStatus: this.state.customerStatusV,                         followSituation:this.state.followSituationV,                        contactType: this.state.contactTypeV,                        ocbId:contactsId,                        remarks: this.state.remarksV,                        result: this.state.resultV,                    }                }).done(function (data) {                     this.setState({                        loading: false                    });                    if (!data.error.length) {                        message.success('保存成功!');                         this.businessFollowCancel();                        this.loadVisit()                    } else {                        message.warning(data.error[0].message);                    }                }.bind(this));            }        });	},	//进入修改时	listFollowUp(e){			$.ajax({             method: "get",             dataType: "json",             crossDomain: false,             url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",             data:{            	ufbId:e.ufbId             },             success: function (data) {                	  				       let thedata=data.data;				    if (!thedata) {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };	                    thedata = {};             }; 					this.setState({						businessGlossoryId:thedata.businessGlossoryId,						followSituationV:thedata.followSituation,						customerStatusV:thedata.customerStatus,						followTime:thedata.followTime,						createTime:thedata.createTime,						identifyName:thedata.identifyName,						contactTypeV:parseInt(thedata.contactType),						resultV:thedata.result,						remarksV:thedata.remarks,						adminName:thedata.adminName,						contacts:thedata.contacts,						contactMobile:thedata.contactMobile,						ufbId:thedata.ufbId,						followId:thedata.followId,                    });				}.bind(this),			}).always(function () {			this.getNewWoman(this.state.uids)            this.setState({            	ufbIds:e.ufbId,                loading: false            });       }.bind(this));   	},	//新建HTTP获取数据	addTime(){        $.ajax({            method: "get",            dataType: "json",            crossDomain: false,            url: globalConfig.context + "/api/admin/customer/toAddBusinessAndFollow",            data:{            	            },            success: function (data) {                	              		let theArr = [];				    let thedata=data.data;				    if (!thedata) {	                    if (data.error && data.error.length) {	                        message.warning(data.error[0].message);	                    };		                    thedata = {}; 	              };   						let creatMent=thedata.createTime.substr(10,9); 				    let createYear=thedata.createTime.substr(0,10);					this.setState({							createTime:thedata.createTime,						creatMent:creatMent,						createYear:createYear,						followTime:thedata.followTime,	                    adminName: thedata.adminName,                    });				}.bind(this),			}).always(function () {            this.setState({                loading: false            });        }.bind(this));  	},		//客户名称初始加载	customerList(e){ 		$.ajax({            method: "get",            dataType: "json",            crossDomain: false,            url: globalConfig.context + "/api/admin/customer/findCustomerByName",            data:{            	name:e            },            success: function (data) {                	  				       let thedata=data.data;				    if (!thedata) {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };	                    thedata = {};               }; 					this.setState({						uids:thedata.id,						customerArr:thedata,	                    });				}.bind(this),			}).always(function () {            this.setState({                loading: false            });        }.bind(this));  		},		//值改变时请求客户名称		httpChange(e){			if(e.length>=2){				this.customerList(e); 			}			},		//选择值时值匹配及联系人函数加载		autoChange(e){			let theType='';			let contactLists=this.state.customerArr||[];				if (e) {	            contactLists.map(function (item) {	                if (item.name == e.toString()) {	                    theType = item.id;	                }	           });     	   		}				this.setState({				  khId:theType			})			this.getNewWoman(theType) 	 		},		//客户输入框失去焦点是判断客户是否存在		blurChange(e){			let theType='';			let contactLists=this.state.customerArr||[];				if (e) {	            contactLists.map(function (item) {	                if (item.name == e.toString()) {	                    theType = item.id;	                }	           });     	   		}						this.setState({				theTypes:theType			})		},		//点击跟进时数据处理	    HttpFollowUp(e){			$.ajax({             method: "get",             dataType: "json",             crossDomain: false,             url: globalConfig.context + "/api/admin/customer/toAddFollowOneBusiness",             data:{            	businessId:e             },             success: function (data) {                	  				       let thedata=data.data;				    if (!thedata) {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };	                    thedata = {};             }; 					this.setState({						uids:thedata.uid,						businessId:thedata.businessId,						businessGlossoryId:thedata.businessGlossoryId,						followSituation:thedata.followSituation,						customerStatus:thedata.customerStatus,						followTime:thedata.followTime,						createTime:thedata.createTime,						identifyName:thedata.identifyName,						contactType:undefined,						result:'',						remarks:'',                    });				}.bind(this),			}).always(function () {			this.getNewWoman(this.state.uids)            this.setState({                loading: false            });        }.bind(this));                	},	//获取联系人下拉框	getNewWoman(ids) {      	this.state.data = []         $.ajax({                method: "get",                dataType: "json",                crossDomain: false,                url: globalConfig.context + "/api/admin/customer/findCustomerContacts",                data:{                   uid:ids,                },                success: function (data) {                	                  		let theArr = [];					    let thedata=data.data;					    if (!thedata) {		                    if (data.error && data.error.length) {		                        message.warning(data.error[0].message);		                    };			                    thedata = {}; 		               };   					    var telNum=[];					    var contactIds=[];				        thedata.map(function (item,index) {				            	telNum.push(thedata[index].mobile);					          				        });					        for (let item in data.data) {		                    let theData = data.data[item];		                    theArr.push(		                        <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>		                    );		                };						this.setState({							    contactsIdArr:thedata,						   						  	        	    					        	telNum:telNum,		                    orderStatusOption: theArr, 	                    });					}.bind(this),				}).always(function () {	            this.setState({	                loading: false	            });	        }.bind(this));	},	//获取拜访详情ajax	loadVisit(pageNo) {        this.setState({            loading: true        });              $.ajax({            method: "get",            dataType: "json",            crossDomain: false,                      url:globalConfig.context + '/api/admin/customer/listFollowHistory',            data: {            	pageNo: pageNo || 1,                pageSize: this.state.paginations.pageSize,                uid: this.state.uids, //名称1                businessGlossoryId:this.state.businessGlossoryId,            },            success: function (data) {            	                let theArr = [];                 if (data.error.length || data.data.list=="") {                    if (data.error && data.error.length) {                        message.warning(data.error[0].message);                    };                                   } else {                      for (let i = 0; i < data.data.list.length; i++) {                        let thisdata = data.data.list[i];                                                theArr.push({                            followId:thisdata.followId,                            followTime:thisdata.followTime,                            identifyName:thisdata.identifyName,                             contacts:thisdata.contacts,                            contactMobile:thisdata.contactMobile,                            result:thisdata.result,                            ufbId:thisdata.ufbId,                            adminName:thisdata.adminName,                            followSituation:thisdata.followSituation,                            customerStatus:thisdata.customerStatus,                            contactType:thisdata.contactType                        });                    };                    this.state.paginations.current = data.data.pageNo;                    this.state.paginations.total = data.data.totalCount;                };                               this.setState({                    visitArrList: theArr,                    paginations: this.state.paginations                });            }.bind(this),        }).always(function () {            this.setState({	                loading: false            });        }.bind(this));    },    componentWillReceiveProps(nextProps) {        if (!this.props.visible && nextProps.visible) {            if (nextProps.data && nextProps.data.id) {                this.loadData(nextProps.data.id, nextProps.detailApiUrl);            };            this.state.data = {};            this.state.companyLogoUrl = [];            this.state.orgCodeUrl = [];         };    },    tableRowClick(record, index) {         this.state.RowData = record;         this.detailsModalOk(record);        this.setState({        	selectedRowKeys:[],        	rowId:record.businessId,        })        },    followRowClick(record, index) {         this.state.RowData = record;         this.listFollowUp(record);        this.setState({            businessFollowModul: true,             selectedRowKeys:[],        });        },    render() {    	const FormItem = Form.Item        const rowSelection = {            selectedRowKeys: this.state.selectedRowKeys,            onChange: (selectedRowKeys, selectedRows) => {                this.setState({                    selectedRows: selectedRows.slice(-1),                    selectedRowKeys: selectedRowKeys.slice(-1)                });            },            onSelect: (recordt, selected, selectedRows) => {			   			    this.setState({			    	recordt:recordt.id			    })			},        };        const rowSelections = {         	selectedRowKeys: this.state.selectedRowKey,            onChange: (selectedRowKey, selectedRow) => {                this.setState({                    selectedRow: selectedRow.slice(-1),                    selectedRowKey: selectedRowKey.slice(-1)                });                            },            onSelect: (records, selected, selectedRow) => {			   			    this.setState({			    	selectedRow: selectedRow.slice(-1),			    	records:records.id,			    				    })			  			},			        };		        const hasSelected = this.state.selectedRowKeys.length > 0;        const { RangePicker } = DatePicker;  	      	const { getFieldDecorator } = this.props.form;    	  const formItemLayout = {            labelCol: { span: 8 },            wrapperCol: { span: 14 },       };        const theInformation=this.state.dataInformation || {}      	const contactsOption="";    	        	        const formItemLayput = {            labelCol: { span: 10 },            wrapperCol: { span: 14 },        };         const businessIds=this.state.businessId||'';        const dataSources=this.state.customerArr || [];        const options = dataSources.map((group) =>				      <Option key={group.id} value={group.name}>{group.name}</Option>				     )        return (            <div className="user-content" >                <div className="content-title">                                      <span>业务管理</span>                </div>                <div className="user-search">                                        <Input placeholder="客户名称"                        value={this.state.identifyNameS}                        onChange={(e) => { this.setState({ identifyNameS: e.target.value }); }} />                    <Select placeholder="服务意向" value={this.state.businessIdS} onChange={(e) => {								        this.setState({businessIdS:e})}} style={{width:'150px'}}>	                      {	                        intentionalService.map(function (item) {	                            return <Select.Option key={item.value} >{item.key}</Select.Option>	                        })	                      }                    </Select>                    <Button type="primary" onClick={this.search}>搜索</Button>                    <Button onClick={this.reset}>重置</Button> 	                <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">					     <Button style={{ marginRight:'10px' ,marginLeft:'10px'}} type='danger'                   			 disabled={!hasSelected}                     		 >删除<Icon type="minus" />           			     </Button>					</Popconfirm>	                <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>                    <div className='clearfix' style={{marginTop:'5px'}}>	                  <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>                    			                  			                <RangePicker		                        value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,		                        this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}		                        onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />   	                        <Select placeholder="客户状态"	                            style={{ width: 150 }}	                            value={this.state.customerStatusS}	                            onChange={(e) => { this.setState({ customerStatusS: e }) }}>	                            {                                customerStatus.map(function (item) {                                    return <Select.Option key={item.value} >{item.key}</Select.Option>                                })                                }	                        </Select>	                        <Select placeholder="业务进度"	                            style={{ width: 150 }}	                            value={this.state.followSituationS}	                            onChange={(e) => { this.setState({ followSituationS: e }) }}>	                            {this.state.intentionalOption}	                        </Select>	                        <Input placeholder="营销员" style={{width:'150px'}}		                        value={this.state.adminNameS}		                        onChange={(e) => { this.setState({ adminNameS: e.target.value }); }} />				            </div>  		            </div>                </div>                                                               <div className="patent-table">                    <Spin spinning={this.state.loading}>                        <Table columns={this.state.columns}                            dataSource={this.state.dataSource}                                rowSelection={rowSelection}                            pagination={this.state.pagination}                            onRowClick={this.tableRowClick}                           />                    </Spin>                </div>                			<Modal					      footer=''			          title="我的业务"			          width='1000px'			          visible={this.state.showDesc}			          onOk={this.addClickOk}					  onCancel={this.addClickCancel}							          							          			        >				    					    <Form horizontal id="demand-form" onSubmit={this.addSubmit}>			    			<Spin spinning={this.state.loading}>			    			   	<div className="clearfix">			    			   		{businessIds!=''?<div><FormItem className="half-item"						                            {...formItemLayout}						                             label="意向名称"						                             >					    			    <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>					    			</FormItem>			    			    	<FormItem className="half-item"			                           {...formItemLayout}			                             >					                	<Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>					                </FormItem>			    			    	<FormItem className="half-item"				                            {...formItemLayout}				                             label="意向时间"				                             >			    			     		<span>{this.state.createTime}</span>			    			    	</FormItem>			    			    	<FormItem className="half-item"				                            {...formItemLayout}				                             label="客户名称"				                             >			    			     		<span>{this.state.identifyName}</span>			    			    	</FormItem></div>										:<div><FormItem className="half-item"			                           {...formItemLayout}			                           label="意向名称"		                               > 			                          <Select placeholder="服务意向名称" value={this.state.businessGlossoryId} onChange={(e) => {											this.setState({businessGlossoryId:e})}} style={{width:'150px'}}>					                       {					                        intentionalService.map(function (item) {					                            return <Select.Option key={item.value} >{item.key}</Select.Option>					                        })					                      }						               </Select>			    			           <span style={{color:'red'}}> *</span>	                   		            </FormItem>				    			   	    <FormItem className="half-item"				                           {...formItemLayout}				                             >						                	<Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>						                </FormItem>						                <div className="clearfix">					    			   		<FormItem className="half-item"					                            {...formItemLayout}					                            label="意向时间" >						                               <DatePicker placeholder="更新日期" value={moment(this.state.createYear,'YYYY-MM-DD')} onChange={(time) => {this.setState({createYear: time});}}/>					                               			                               		                           							                       <TimePicker placeholder="更新时间" value={moment(this.state.creatMent, 'HH:mm:ss')} onChange={(time) => { this.setState({creatMent: time}); }}/>					            				</FormItem> 			    			   		        <FormItem className="half-item"				                            {...formItemLayout}				                             label="客户名称"				                             >						                    <AutoComplete											        className="certain-category-search"											        dropdownClassName="certain-category-search-dropdown"											        dropdownMatchSelectWidth={false}											        dropdownStyle={{ width: 300 }}											        size="large"											        style={{ width: '200px' }}											        dataSource={options}											        placeholder="输入名称"											        optionLabelProp="value"											        onChange={this.httpChange}											        onSelect={this.autoChange}											        filterOption={true}											        onBlur={this.blurChange}											      >											        <Input style={{width:'200px'}}/>											      </AutoComplete>			    			    				  <span style={{color:'red'}}> *</span>											      							                </FormItem>			    			    	    </div>						            </div>										}				    			     	<FormItem className="half-item"				                            {...formItemLayout}				                             label="营销员"				                             >			    			     		<span>{this.state.adminName}</span>			    			    	</FormItem>			    			   		<FormItem className="half-item" 			                           {...formItemLayout}			                           label="意向进度"		                               > 									             <Select  placeholder="意向进度" value={this.state.followSituation}	                           				 onChange={(e) => { this.setState({ followSituation: e }) }}>		                                    {		                                        newFollow.map(function (item) {		                                            return <Select.Option key={item.value} >{item.key}</Select.Option>		                                        })		                                    }                                       </Select>  		                   		    </FormItem>					    			<FormItem className="half-item" 			                           {...formItemLayout}			                           label="客户状态"	                                   > 									    <Select placeholder="客户状态" value={this.state.customerStatus}	                       				 	onChange={(e) => { this.setState({ customerStatus: e }) }}>	                                        {	                                        customerStatus.map(function (item) {	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>	                                        })	                                        }                                        </Select>                                   		                   		    </FormItem>		                   		    <div className="clearfix">			                   		    <FormItem					                        labelCol={{ span: 4 }}					                        wrapperCol={{ span: 16 }}					                        label="意向说明" >					                        					                        <Input type="textarea" rows={4} placeholder="意向说明" value={this.state.remarks}	                           				 	onChange={(e) => { this.setState({ remarks: e.target.value }) }}/>					                           					                    </FormItem>					                </div>    		                   		    <div style={{fontSize:'18px',marginLeft:'30px'}}>拜访情况</div>	                   		    	<div className="clearfix">				    			   		<FormItem className="half-item"				                            labelCol={{ span: 8 }}					                        wrapperCol={{ span: 16 }}				                            label="拜访方式" >				    			   			<Radio.Group value={this.state.contactType} onChange={(e) => {											        this.setState({ contactType: e.target.value }) 							                    }}>							                        <Radio value={0}>外出</Radio>							                        <Radio value={1}>电话</Radio>							                        <Radio value={2}>QQ</Radio>							                        <Radio value={3}>微信</Radio>							                        <Radio value={4}>邮箱</Radio>							                  </Radio.Group>						                </FormItem> 					                </div>					                					                <FormItem className="half-item" 			                           {...formItemLayout}			                           label="联系人"		                               > 				                        <Select placeholder="联系人姓名"  style={{ width: 140 }}						                        value={this.state.lastName}						                        onChange={this.hundleName}>						                        {this.state.orderStatusOption}				                    	</Select>		                   		    </FormItem>		                   		    					                <FormItem className="half-item"			                            {...formItemLayout}			                             label="联系电话"			                            >					                	<span>{this.state.nub}</span>					                </FormItem>					                <div className="clearfix">						                <FormItem className="half-item"				                            {...formItemLayout}				                             label="拜访人"				                            >						                	<span>{this.state.adminName}</span>						                </FormItem>						                <FormItem className="half-item"				                            {...formItemLayout}				                            label="拜访时间" >			                                				                              <span>{this.state.followTime}</span>		            					</FormItem>	            					</div>					               					                <div className="clearfix">					                	<FormItem					                        labelCol={{ span: 4 }}							                wrapperCol={{ span: 16 }}					                        label="拜访备注" >					                        <Input type="textarea" rows={4} value={this.state.result}  placeholder="来电备注" 						                          onChange={(e) => { this.setState({ result: e.target.value }); }}/>   					                    </FormItem>					                </div>   			    			   	</div>							    <Button  type="primary" size="large" htmlType="submit" style={{margin:'15px  15px 20px 160px'}}>保存</Button>					           	<Button  size="large" onClick={this.addClickCancel}>取消</Button>					   		</Spin>					    </Form>    			</Modal>     			<Modal					      className="customeDetails"				      			          title="我的业务意向详情"			          width='1000px'			          visible={this.state.modal5Visible}			          onOk={this.detailsModal}			          onCancel={this.detailsModal}			          footer=''			        >				    			        <Form horizontal onSubmit={this.newSubmit} id="demand-form">		                <Spin spinning={this.state.loading}>			               	<div className="clearfix">		                    	<FormItem className="half-item"				                   {...formItemLayout}				                    label="意向名称"			                        >			                        <span>{getCompanyIntention(theInformation.businessGlossoryId)}</span>			                    </FormItem>			                    <FormItem className="half-item"				                    {...formItemLayout}				                    label="意向时间"			                        >			                        <span>{theInformation.createTime}</span>			                    </FormItem>			                    <FormItem className="half-item"				                    {...formItemLayout}				                    label="客户名称"			                        >			                        <span>{theInformation.identifyName}</span>			                    </FormItem>			                    <FormItem className="half-item"				                   {...formItemLayout}				                    label="营销员"			                        >			                        <span>{theInformation.adminName}</span>			                    </FormItem>								<FormItem className="half-item" 		                           {...formItemLayout}		                           label="意向进度"	                               > 								               <Select  placeholder="意向进度" value={this.state.followSituation}                           				 onChange={(e) => { this.setState({ followSituation: e }) }}>	                                    {	                                        newFollow.map(function (item) {	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>	                                        })	                                    }                                </Select>  	                   		    </FormItem>				    			<FormItem className="half-item" 			                           {...formItemLayout}			                           label="客户状态"		                               > 									 <Select placeholder="客户状态" value={this.state.customerStatus} disabled={this.state.customerStatus=='6'?true:false}                           			onChange={(e) => { this.setState({ customerStatus: e }) }}>	                                {	                                   customerStatus.map(function (item) {	                                        return <Select.Option key={item.value} >{item.key}</Select.Option>	                                    })	                                }                                  </Select>                                                      		        </FormItem>	                   		    <div className="clearfix">		                   		    <FormItem				                        labelCol={{ span: 4 }}				                        wrapperCol={{ span: 16 }}				                        label="意向说明" >					                        				                        <Input type="textarea" rows={4} placeholder="意向说明" value={this.state.remarks}                           				 	onChange={(e) => { this.setState({ remarks: e.target.value }) }}/>					                           				                    </FormItem>				                </div>			                    <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'160px',marginBottom:'30px'}}>保存</Button>  		                        <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>		                  </div>			                  <div className="clearfix">		                  		<div style={{fontSize:'18px',marginLeft:'40px',marginBottom:'20px'}}>业务跟进</div>	                        	<div className="clearfix" style={{paddingLeft:'40px',paddingRight:'40px'}}>	                			    <Spin spinning={this.state.loading}>								      <Table 						            	 pagination={this.state.paginations}						            	 columns={this.state.businessFollowList} 						            	 dataSource={this.state.visitArrList}						            	 onRowClick={this.followRowClick}						            	 />								    </Spin> 								</div>			                  </div>					    </Spin>					</Form>						</Modal>			    <Modal				      footer=''				      width='800px'			          title="新增联系人"			          visible={this.state.addcontactModul}			          onOk={this.addcontactModulOK}			          onCancel={this.addcontactModulcancel}						          							          						        >				        <Form horizontal onSubmit={this.submitcontactman} id="demand-form">					      <Spin spinning={this.state.loading}> 											             					        <Row>				                    <FormItem 			                        labelCol={{ span: 3 }}			                        wrapperCol={{ span: 14 }}			                        label="性别:"  style={{marginRight:'10px',marginTop: '-15px'}}>			                        <Radio.Group value={this.state.newsex} onChange={(e) => {					                    this.setState({ newsex: e.target.value }) 					                    }}>					                        <Radio value='男'>男</Radio>					                        <Radio value='女'>女</Radio>				                    </Radio.Group>			                    </FormItem>								</Row>								               					        <Row style={{ paddingLeft:'50px' }}>		                        <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>                                <Col span={8}>                                    <Input value={this.state.newname} required="required"                                        onChange={(e) => { this.setState({ newname: e.target.value }) }} />                                </Col>                                <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>                                <Col span={8}>                                    <Input value={this.state.newmobile} required="required"                                        onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />                                </Col>                                                            </Row>		                    <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>                                <Col span={2}>微信:</Col>                                	<Col span={8}>                                    <Input value={this.state.newwechat}                                        onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />                                </Col>                                <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>                                <Col span={8}>                                    <Input value={this.state.newqq}                                        onChange={(e) => { this.setState({ newqq: e.target.value }) }} />                                </Col>                            </Row>                            <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>                        		<Col span={2}>部门:</Col>                        		<Col span={8}>                           		 	<Input value={this.state.newdepatrment}                               		 onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />                                </Col>                                <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>                                <Col span={8}>                                    <Input value={this.state.newposition}                                        onChange={(e) => { this.setState({ newposition: e.target.value }) }} />                                </Col>                            </Row>	                            <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>						                                                       <Col span={2}>邮箱:</Col>                                <Col span={8}>                                    <Input value={this.state.newemail}                                        onChange={(e) => { this.setState({ newemail: e.target.value }) }} />                                </Col>                            </Row>                            <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>                          <Button className="set-submit" type="primary" htmlType="submit"  id="change_keep" style={{marginLeft:'60px'}}>保存</Button>			              <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>			            	</Row>			            </Spin>			        </Form>   			    </Modal>    			<Modal					      footer=''			          title="业务跟进详情"			          width='1000px'			          visible={this.state.businessFollowModul}			          onOk={this.businessFollowOk}					  onCancel={this.businessFollowCancel}							          							          			        >				    					    <div className="clearfix">			    			<Form horizontal id="demand-form" onSubmit={this.addlistSubmit}>			    			<Spin spinning={this.state.loading}>			    			   	<div className="clearfix">			    			   		<FormItem className="half-item"						                            {...formItemLayout}						                             label="意向名称"						                             >					    			    <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>					    			</FormItem>			    			    	<FormItem className="half-item"			                           {...formItemLayout}			                             >					                	<Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>					                </FormItem>			    			    	<FormItem className="half-item"				                            {...formItemLayout}				                             label="意向时间"				                             >			    			     		<span>{this.state.createTime}</span>			    			    	</FormItem>			    			    	<FormItem className="half-item"				                            {...formItemLayout}				                             label="客户名称"				                             >			    			     		<span>{this.state.identifyName}</span>			    			    	</FormItem>			    			     	<FormItem className="half-item"				                            {...formItemLayout}				                             label="营销员"				                             >			    			     		<span>{this.state.adminName}</span>			    			    	</FormItem>			    			   		<FormItem className="half-item" 			                           {...formItemLayout}			                           label="意向进度"		                               > 									             <Select  placeholder="意向进度" value={this.state.followSituationV}	                           				 onChange={(e) => { this.setState({ followSituationV: e }) }}>		                                    {		                                        newFollow.map(function (item) {		                                            return <Select.Option key={item.value} >{item.key}</Select.Option>		                                        })		                                    }                                       </Select>  		                   		    </FormItem>					    			<FormItem className="half-item" 			                           {...formItemLayout}			                           label="客户状态"	                                   > 									    <Select placeholder="客户状态" value={this.state.customerStatusV}	                       				 	onChange={(e) => { this.setState({ customerStatusV: e }) }}>	                                        {	                                        customerStatus.map(function (item) {	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>	                                        })	                                        }                                        </Select>                                   		                   		    </FormItem>		                   		    <div className="clearfix">			                   		    <FormItem					                        labelCol={{ span: 4 }}					                        wrapperCol={{ span: 16 }}					                        label="意向说明" >					                        					                        <Input type="textarea" rows={4} placeholder="意向说明" value={this.state.remarksV}	                           				 	onChange={(e) => { this.setState({ remarksV: e.target.value }) }}/>					                           					                    </FormItem>					                </div>    		                   		    <div style={{fontSize:'18px',marginLeft:'30px'}}>拜访情况</div>	                   		    	<div className="clearfix">				    			   		<FormItem className="half-item"				                            labelCol={{ span: 8 }}					                        wrapperCol={{ span: 16 }}				                            label="拜访方式" >				    			   			<Radio.Group value={this.state.contactTypeV} onChange={(e) => {											        this.setState({ contactTypeV: e.target.value }) 							                    }}>							                        <Radio value={0}>外出</Radio>							                        <Radio value={1}>电话</Radio>							                        <Radio value={2}>QQ</Radio>							                        <Radio value={3}>微信</Radio>							                        <Radio value={4}>邮箱</Radio>							                  </Radio.Group>						                </FormItem> 					                </div>					                					                <FormItem className="half-item" 			                           {...formItemLayout}			                           label="联系人"		                               > 				                        <Select placeholder="联系人姓名"  style={{ width: 140 }}						                        value={this.state.lastName}						                        onChange={this.hundleName}>						                        {this.state.orderStatusOption}				                    	</Select>		                   		    </FormItem>		                   		    <FormItem className="half-item" 			                           {...formItemLayout}			                           label="当前联系人"		                               > 				                        <span>{this.state.contacts}</span>		                   		    </FormItem>					                <FormItem className="half-item"			                            {...formItemLayout}			                             label="联系电话"			                            >					                	<span>{this.state.nub}</span>					                </FormItem>					                <div className="clearfix">						                <FormItem className="half-item"				                            {...formItemLayout}				                             label="拜访人"				                            >						                	<span>{this.state.adminName}</span>						                </FormItem>						                <FormItem className="half-item"				                            {...formItemLayout}				                            label="拜访时间" >			                                				                              <span>{this.state.followTime}</span>		            					</FormItem>	            					</div>					               					                <div className="clearfix">					                	<FormItem					                        labelCol={{ span: 4 }}							                wrapperCol={{ span: 16 }}					                        label="拜访备注" >					                        <Input type="textarea" rows={4} value={this.state.resultV}  placeholder="来电备注" 						                          onChange={(e) => { this.setState({ resultV: e.target.value }); }}/>   					                    </FormItem>					                </div>   			    			   	</div>							    <Button  type="primary" size="large" htmlType="submit" style={{margin:'15px  15px 20px 160px'}}>保存</Button>					           	<Button  size="large" onClick={this.businessFollowCancel}>取消</Button>					   		</Spin>					    </Form> 						</div>	                        			</Modal>          </div >        );    }}));export default MyBusiness;
 |