| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886 | 
							- import React from 'react';
 
- import { Tabs, Table, Icon, Tooltip, Modal, message, AutoComplete, Spin, DatePicker,Upload, Input, InputNumber, Select, Button, Radio, Form, Cascader, Tag, Switch } from 'antd';
 
- import './myClient.less';
 
- import ajax from 'jquery/src/ajax/xhr.js';
 
- import moment from 'moment';
 
- import $ from 'jquery/src/ajax';
 
- import { areaSelect } from '../../NewDicProvinceList';
 
- import { maturityList, innovationList, transferModeList,cityArr ,newFollow,customerStatus,intentionalService} from '../../dataDic';
 
- import { IndustryObject, getIndustryCategory } from '../../DicIndustryList.js';
 
- import { beforeUploadFile, splitUrl, companySearch, getTransferMode, getAchievementCategory, getTechAuditStatus, getDemandType, getMaturity, getInnovation,beforeUpload, getBase64,getsex,getCompanyIntention,getcityArr,getfllowSituation,getcustomerStatue} from '../../tools.js';
 
- import throttle from '../../throttle.js';
 
- const KeyWordTagGroup = React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             tags: [],
 
-             inputVisible: false,
 
-             inputValue: ''
 
-         };
 
-     },
 
-     handleClose(removedTag) {
 
-         const tags = this.state.tags.filter(tag => tag !== removedTag);
 
-         this.props.tagsArr(tags);
 
-         this.setState({ tags });
 
-     },
 
-     showInput() {
 
-         this.setState({ inputVisible: true }, () => this.input.focus());
 
-     },
 
-     handleInputChange(e) {
 
-         this.setState({ inputValue: e.target.value });
 
-     },
 
-     handleInputConfirm() {
 
-         const state = this.state;
 
-         const inputValue = state.inputValue;
 
-         let tags = state.tags;
 
-         if (inputValue && tags.indexOf(inputValue) === -1 && inputValue.replace(/(^\s*)|(\s*$)/g, "").length != 0) {
 
-             tags = [...tags, inputValue.replace(/(^\s*)|(\s*$)/g, "")];
 
-         };
 
-         this.props.tagsArr(tags);
 
-         this.setState({
 
-             tags,
 
-             inputVisible: false,
 
-             inputValue: '',
 
-         });
 
-     },
 
-     componentWillMount() {
 
-         this.state.tags = this.props.keyWordArr;
 
-     },
 
-     componentWillReceiveProps(nextProps) {
 
-         if (this.props.keyWordArr != nextProps.keyWordArr) {
 
-             this.state.tags = nextProps.keyWordArr;
 
-         };
 
-     },
 
-     render() {
 
-         const { tags, inputVisible, inputValue } = this.state;
 
-         return (
 
-             <div className="keyWord-tips">
 
-                 {tags.map((tag, index) => {
 
-                     const isLongTag = tag.length > 10;
 
-                     const tagElem = (
 
-                         <Tag key={tag} closable={index !== -1} afterClose={() => this.handleClose(tag)}>
 
-                             {isLongTag ? `${tag.slice(0, 10)}...` : tag}
 
-                         </Tag>
 
-                     );
 
-                     return isLongTag ? <Tooltip key={tag} title={tag}>{tagElem}</Tooltip> : tagElem;
 
-                 })}
 
-                 {inputVisible && (
 
-                     <Input
 
-                         ref={input => this.input = input}
 
-                         type="text"
 
-                         style={{ width: 78 }}
 
-                         value={inputValue}
 
-                         onChange={this.handleInputChange}
 
-                         onBlur={this.handleInputConfirm}
 
-                         onPressEnter={this.handleInputConfirm}
 
-                     />
 
-                 )}
 
-                 {!inputVisible && <Button className="addtips" type="dashed" disabled={tags.length > 9 ? true : false} onClick={this.showInput}>+ 新关键词</Button>}
 
-             </div>
 
-         );
 
-     }
 
- });
 
- const PicturesWall = React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             previewVisible: false,
 
-             previewImage: '',
 
-             fileList: [],
 
-         }
 
-     },
 
-     handleCancel() {
 
-         this.setState({ previewVisible: false })
 
-     },
 
-     handlePreview(file) {
 
-         this.setState({
 
-             previewImage: file.url || file.thumbUrl,
 
-             previewVisible: true,
 
-         });
 
-     },
 
-     handleChange(info) {
 
-         let fileList = info.fileList;
 
-         this.setState({ fileList });
 
-         this.props.fileList(fileList);
 
-     },
 
-     componentWillReceiveProps(nextProps) {
 
-         this.state.fileList = nextProps.pictureUrl;
 
-     },
 
-     render() {
 
-         const { previewVisible, previewImage, fileList } = this.state;
 
-         const uploadButton = (
 
-             <div>
 
-                 <Icon type="plus" />
 
-                 <div className="ant-upload-text">点击上传</div>
 
-             </div>
 
-         );
 
-         return (
 
-             <div className="clearfix">
 
-                 <Upload
 
-                     action={globalConfig.context + "/api/admin/achievement/uploadPicture"}
 
-                     data={{ 'sign': this.props.pictureSign }}
 
-                     listType="picture-card"
 
-                     fileList={fileList}
 
-                     onPreview={this.handlePreview}
 
-                     onChange={this.handleChange} >
 
-                     {fileList.length >= 5 ? null : uploadButton}
 
-                 </Upload>
 
-                 <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
 
-                     <img alt="example" style={{ width: '100%' }} src={previewImage} />
 
-                 </Modal>
 
-             </div>
 
-         );
 
-     }
 
- });
 
- const AchievementDetailShow = Form.create()(React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             loading: false,
 
-             buttonLoading: false,
 
-             contactsObj: {},
 
-             data: {},
 
-             tags: [],
 
-             technicalPictureUrl: [],
 
-             coverImg: [],
 
-             maturityPictureUrl: [],           
 
-             textFileList: [],
 
-             techPlanFileList: [],
 
-             businessPlanFileList: []
 
-         };
 
-     },
 
-     loadData(id, detailApiUrl) {
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + detailApiUrl,
 
-             data: {
 
-                 id: id
 
-             },
 
-             success: function (data) {
 
-                 let thisData = data.data;
 
-                 if (!thisData) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                     thisData = {};
 
-                 };
 
-                 this.setState({
 
-                     data: thisData,
 
-                     orgDisplay: thisData.ownerType,
 
-                     switchValue: Boolean(!thisData.ownerId),
 
-                     radios:thisData.hot==='1'?true:false,
 
-                     tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
 
-                     technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
 
-                     coverImg: thisData.coverImg ? splitUrl(thisData.coverImg, ',', globalConfig.avatarHost + '/upload') : [],
 
-                     maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],                  
 
-                 });
 
-                 if (thisData.ownerId) {
 
-                     this.getContactsList(thisData.ownerId);
 
-                 };
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     offShelf() {
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         $.ajax({
 
-             method: "post",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/achievement/offShelf",
 
-             data: { "id": this.props.data.id }
 
-         }).done(function (data) {
 
-             if (!data.error.length) {
 
-                 message.success('撤销成功!');
 
-                 this.setState({
 
-                     visible: false,
 
-                     releaseSubmitVisible: false
 
-                 });
 
-                 this.props.handleOk();
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             }
 
-         }.bind(this));
 
-     },
 
-     modifyBroker() {
 
-         this.props.form.validateFields((err, values) => {
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 $.ajax({
 
-                     method: "POST",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url: globalConfig.context + '/api/admin/audit/modifyAchievementTechBroker',
 
-                     data: {
 
-                         id: this.props.data.id,
 
-                         techBrokerId: values.modifyTechBrokerId
 
-                     }
 
-                 }).done(function (data) {
 
-                     this.state.auditStatus = 0;
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     } else {
 
-                         message.success('保存成功!');
 
-                         this.props.handleOk();
 
-                     };
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     formSubmit() {
 
-         this.props.form.validateFields((err, values) => {            
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 $.ajax({
 
-                     method: "POST",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url: globalConfig.context + '/api/admin/audit/achievement',
 
-                     data: {
 
-                         id: this.props.data.id,
 
-                         techBroderId: values.techBrokerId,
 
-                         auditStatus: values.auditStatus
 
-                     }
 
-                 }).done(function (data) {
 
-                     this.state.auditStatus = 0;
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (!data.error.length) {
 
-                         message.success('保存成功!');
 
-                         this.setState({
 
-                             formSubmitVisible: false
 
-                         });
 
-                         this.props.handleOk();
 
-                     } else {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     handleSubmit(e) {
 
-         e.preventDefault();
 
-         this.props.form.validateFields((err, values) => {
 
-             if (values.auditStatus == 4) {
 
-                 this.setState({
 
-                     formSubmitVisible: true
 
-                 });
 
-             } else {
 
-                 this.formSubmit();
 
-             };
 
-         });
 
-     },
 
-     buildMatchList() {
 
-         this.setState({
 
-             buttonLoading: true
 
-         });
 
-         $.ajax({
 
-             method: "POST",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + '/api/admin/achievement/matchDemand',
 
-             data: {
 
-                 id: this.props.data.id,
 
-             }
 
-         }).done(function (data) {
 
-             this.setState({
 
-                 buttonLoading: false
 
-             });
 
-             if (!data.error.length) {
 
-                 message.success('匹配完成!匹配到' + data.data + '条记录');
 
-             } else {
 
-                 message.warning(data.error[0].message);
 
-             };
 
-         }.bind(this));
 
-     },
 
-     getContactsList(theUid) {
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/findCustomer",
 
-             data: {
 
-                 id: theUid
 
-             },
 
-             success: function (data) {
 
-                 if (!data.data) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                         return;
 
-                     };
 
-                 } else {
 
-                     this.setState({
 
-                         contactsObj: data.data || {}
 
-                     });
 
-                 };
 
-             }.bind(this),
 
-         });
 
-     },
 
-     componentWillMount() {
 
-         this.loadData(this.props.data.id, this.props.detailApiUrl);
 
-     },
 
-     componentWillReceiveProps(nextProps) {
 
-         if (!this.props.visible && nextProps.visible) {
 
-             this.loadData(nextProps.data.id, nextProps.detailApiUrl);
 
-             this.state.textFileList = [];
 
-             this.state.techPlanFileList = [];
 
-             this.state.businessPlanFileList = [];
 
-             this.props.form.resetFields();
 
-         };
 
-     },
 
-     render() {
 
-         const theData = this.state.data || {};
 
-         const { getFieldDecorator } = this.props.form;
 
-         const FormItem = Form.Item
 
-         const formItemLayout = {
 
-             labelCol: { span: 8 },
 
-             wrapperCol: { span: 14 },
 
-         };
 
-         return (
 
-             <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
 
-                 <Spin spinning={this.state.loading}>
 
-                 	<div className="clearfix">
 
-                 		<FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="客户类型" >
 
-                             {(() => {
 
-                                 switch (theData.customerTyp) {
 
-                                     case "0":
 
-                                         return <span>个人客户</span>;
 
-                                     case "1":
 
-                                         return <span>公司客户</span>;                                   
 
-                                 }
 
-                             })()}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="编号" >
 
-                             <span>{theData.id}</span>
 
-                         </FormItem>
 
-                         <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>	
 
-                		</div>
 
-                     <FormItem className="half-item"
 
- 	                        {...formItemLayout}
 
- 	                        label="录入时间" >
 
- 	                        {getFieldDecorator('createTime', {
 
- 	                        initialValue: theData.createTime ? moment(theData.createTime) : null
 
- 	                        })(
 
- 	                        <DatePicker />
 
- 	                        )}
 
- 	                 </FormItem>
 
-                     <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="跟单人" >
 
- 	                            {getFieldDecorator('ownerId', {
 
- 	                                initialValue: theData.ownerId
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                
 
-                     <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>	                    		                           	                                                       	                                               
 
-                     <div>
 
-                      <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="公司名称" >
 
- 	                            {getFieldDecorator('companyName', {
 
- 	                                rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.companyName
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                 <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="公司行业" >
 
- 	                            {getFieldDecorator('companyIndustry', {	                                
 
- 	                                initialValue: theData.companyIndustry
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>        
 
-                      <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="意向服务" >
 
- 	                            {getFieldDecorator('companyIntention', {
 
- 	                            	rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.companyIntention
 
- 	                            })(
 
- 	                               <Select placeholder="选择服务类型" >
 
- 	                                    {
 
- 	                                        intentionalService.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>
 
-                      <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="地区" >
 
- 	                            {getFieldDecorator('locationProvince', {
 
- 	                                initialValue: theData.locationProvince
 
- 	                            })(
 
- 	                                <Select placeholder="选择地区" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        cityArr.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="最新跟进" >
 
- 	                            {getFieldDecorator('followSituation', {
 
- 	                                initialValue: theData.followSituation
 
- 	                            })(
 
- 	                                <Select placeholder="选择跟进进度" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        newFollow.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                 <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="客户状态" >
 
- 	                            {getFieldDecorator('customerStatue', {
 
- 	                                initialValue: theData.customerStatue
 
- 	                            })(
 
- 	                                <Select placeholder="选择客户状态" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        customerStatus.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>	         
 
-                      <FormItem className="half-item"
 
- 		                            {...formItemLayout}
 
- 		                            label="详细地址" >
 
- 		                            {getFieldDecorator('adress', {		                            	
 
- 		                                initialValue: theData.adress
 
- 		                            })(
 
- 		                                <Input />
 
- 		                                )}
 
- 		                    </FormItem>
 
-                      <div  className="clearfix">		                        
 
- 				                <FormItem
 
- 			                        labelCol={{ span: 4 }}
 
- 			                        wrapperCol={{ span: 18 }}
 
- 			                        label="备注" >
 
- 			                        {getFieldDecorator('remarks', {
 
- 			                            initialValue: theData.remarks
 
- 			                        })(
 
- 			                            <Input type="textarea" rows={4} />
 
- 			                            )}
 
- 			                    </FormItem>
 
- 			                </div>
 
-                     </div>  
 
-                     <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>联系资料:</div>
 
-                     <div>
 
-                     <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="姓名" >
 
- 	                            {getFieldDecorator('name', {
 
- 	                                rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.name
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
-                      <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="性别" >
 
-                                 {getFieldDecorator('sex', {
 
-                                 	rules: [{ required: true, message: '此项为必填项!' }],
 
-                                     initialValue:getsex(theData.sex)
 
-                                 })(
 
-                                     <Radio.Group>
 
-                                         <Radio value="0">男</Radio>
 
-                                         <Radio value="1">女</Radio>
 
-                                     </Radio.Group>
 
-                                     )}
 
-                        		</FormItem>
 
-                     <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="手机号码" >
 
- 	                            {getFieldDecorator('telNum', {	
 
- 	                            	rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.telNum 
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                 <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="座机号" >
 
- 	                            {getFieldDecorator('mobile', {	                              
 
- 	                                initialValue: theData.mobile
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>        
 
- 	                <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="QQ号码" >
 
- 	                            {getFieldDecorator('qq', {	                              
 
- 	                                initialValue: theData.qq
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="邮箱号" >
 
- 	                            {getFieldDecorator('email', {	                              
 
- 	                                initialValue: theData.email
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="微信" >
 
- 	                            {getFieldDecorator('wechat', {	                              
 
- 	                                initialValue: theData.wechat
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="部门" >
 
- 	                            {getFieldDecorator('depatrment', {	                              
 
- 	                                initialValue: theData.depatrment
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="职位" >
 
- 	                            {getFieldDecorator('customerPosition', {	                              
 
- 	                                initialValue: theData.customerPosition
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	               
 
-  					</div>        
 
- 	                <FormItem wrapperCol={{ span: 12, offset: 4 }}>
 
-                        <Button className="set-submit" type="primary" htmlType="submit" id="change_keep">保存</Button>
 
-                         <Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem'>取消</Button>
 
-                     </FormItem>    
 
-                     
 
-                   {/*  <FormItem wrapperCol={{ span: 12, offset: 4 }}>
 
-                         {theData.auditStatus == 2 ? <Button className="set-submit" type="primary" htmlType="submit">保存</Button> : <span></span>}
 
-                         {theData.auditStatus == 3 ? <Button className="set-submit" type="primary" onClick={() => { this.modifyBroker(); }}>保存</Button> : <span></span>}
 
-                         <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button> */}
 
-                         {/*{window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList}>生成匹配列表</Button> : <span></span>}*/}
 
-                     {/* </FormItem>  
 
-                     */}
 
-                     
 
-                 </Spin>
 
-             </Form >
 
-         )
 
-     }
 
- }));
 
- const AchievementDetailForm = Form.create()(React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             loading: false,
 
-             auditStatus: 0,
 
-             textFileList: [],
 
-             switchValue: false,
 
-             radios: false,
 
-             techPlanFileList: [],
 
-             data: {},
 
-             tags: [],
 
-             technicalPictureUrl: [],
 
-             coverImg: [],
 
-             maturityPictureUrl: [],            
 
-             businessPlanFileList: [],
 
-             dataSource: [],
 
-         };
 
-     },
 
-     loadData(id, detailApiUrl) {
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + detailApiUrl,
 
-             data: {
 
-                 id: id
 
-             },
 
-             success: function (data) {
 
-                 let thisData = data.data;
 
-                 if (!thisData) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                     thisData = {};
 
-                 };
 
-                 this.setState({
 
-                     data: thisData,
 
-                     orgDisplay: thisData.ownerType,
 
-                     switchValue: Boolean(!thisData.ownerId),
 
-                     radios: thisData.hot == '1' ? true : false,
 
-                     transferPriceDis: thisData.transferMode == 1 ? true : false,
 
-                     tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
 
-                     technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
 
-                     coverImg: thisData.coverImg ? splitUrl(thisData.coverImg, ',', globalConfig.avatarHost + '/upload') : [],
 
-                     maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],                                      
 
-                 });
 
-                 if (thisData.ownerType == "1" && thisData.ownerId) {
 
-                     this.getContactsList(thisData.ownerId);
 
-                 };
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     getContactsList(theUid) {
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/getContacts",
 
-             data: {
 
-                 uid: theUid
 
-             },
 
-             success: function (data) {
 
-                 let theOption = [];
 
-                 if (!data.data) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                         return;
 
-                     };
 
-                 };
 
-                 for (let item in data.data) {
 
-                     let theData = data.data[item];
 
-                     theOption.push(
 
-                         <Select.Option value={item} key={theData}>{theData}</Select.Option>
 
-                     );
 
-                 };
 
-                 this.setState({
 
-                     contactsOption: theOption
 
-                 });
 
-             }.bind(this),
 
-         });
 
-     },
 
-     getTagsArr(e) {
 
-         this.setState({ tags: e });
 
-     },
 
-     getMaturityPictureUrl(e) {
 
-         this.setState({ maturityPictureUrl: e });
 
-     },
 
-     getTechnicalPictureUrl(e) {
 
-         this.setState({ technicalPictureUrl: e });
 
-     },
 
-     getcoverImg(e) {
 
-         this.setState({coverImg: e });
 
-     },
 
-     handleSearch(e) {
 
-         if (this.props.detailApiUrl.indexOf('org') != -1) {
 
-             $.ajax({
 
-                 method: "get",
 
-                 dataType: "json",
 
-                 crossDomain: false,
 
-                 url: globalConfig.context + "/api/admin/achievement/orgOwner",
 
-                 data: { name: e },
 
-                 success: function (data) {
 
-                     let theArr = [];
 
-                     let theObj = {};
 
-                     if (!data.data) {
 
-                         if (data.error && data.error.length) {
 
-                             message.warning(data.error[0].message);
 
-                         };
 
-                     } else if (!$.isEmptyObject(data.data)) {
 
-                         data.data.map(function (item) {
 
-                             theArr.push(item.unitName);
 
-                             theObj[item.unitName] = item.uid;
 
-                         });
 
-                     };
 
-                     this.setState({
 
-                         dataSource: theArr,
 
-                         dataSourceObj: theObj
 
-                     });
 
-                 }.bind(this),
 
-             });
 
-         } else {
 
-             $.ajax({
 
-                 method: "get",
 
-                 dataType: "json",
 
-                 crossDomain: false,
 
-                 url: globalConfig.context + "/api/admin/achievement/userOwner",
 
-                 data: { name: e },
 
-                 success: function (data) {
 
-                     let theArr = [];
 
-                     let theObj = {};
 
-                     if (!data.data) {
 
-                         if (data.error && data.error.length) {
 
-                             message.warning(data.error[0].message);
 
-                         };
 
-                     } else if (!$.isEmptyObject(data.data)) {
 
-                         for (let item in data.data) {
 
-                             theArr.push(data.data[item]);
 
-                             theObj[data.data[item]] = item;
 
-                         };
 
-                     };
 
-                     this.setState({
 
-                         dataSource: theArr,
 
-                         dataSourceObj: theObj
 
-                     });
 
-                 }.bind(this),
 
-             });
 
-         };
 
-     },
 
-     handleSubmit(e) {
 
-         e.preventDefault();
 
-         this.props.form.validateFields((err, values) => {                                 
 
-             //url转化
 
-             let theTechnicalPictureUrl = [];
 
-             if (this.state.technicalPictureUrl.length) {
 
-                 let picArr = [];
 
-                 this.state.technicalPictureUrl.map(function (item) {
 
-                     picArr.push(item.response.data);
 
-                 });
 
-                 theTechnicalPictureUrl = picArr.join(",");
 
-             };
 
-             let thecoverImg = [];
 
-             if (this.state.coverImg.length) {
 
-                 let picArr = [];
 
-                 this.state.coverImg.map(function (item) {
 
-                     picArr.push(item.response.data);
 
-                 });
 
-                 thecoverImg = picArr.join(",");
 
-             };
 
-             let theMaturityPictureUrl = [];
 
-             if (this.state.maturityPictureUrl.length) {
 
-                 let picArr = [];
 
-                 this.state.maturityPictureUrl.map(function (item) {
 
-                     picArr.push(item.response.data);
 
-                 });
 
-                 theMaturityPictureUrl = picArr.join(",");
 
-             };
 
-             if (!err) {
 
-                 this.setState({
 
-                     loading: true
 
-                 });
 
-                 $.ajax({
 
-                     method: "POST",
 
-                     dataType: "json",
 
-                     crossDomain: false,
 
-                     url: this.props.data.id ?  globalConfig.context + '/api/admin/customer/updCustomer' : globalConfig.context + '/api/admin/customer/addCustomer',
 
-                     data: {
 
-                         id: this.props.data.id, //编号
 
-                         customerTyp :values.customerTyp ,//客户信息  1                       
 
-                         createTime: values.createTime ? values.createTime.format('YYYY-MM-DD') : undefined,//时间 1\                    
 
-                         companyIntention: this.props.data.companyIntention,
 
-                         companyName: values.companyName,//公司名称  1
 
-                         companyIndustry: values.companyIndustry,//公司行业  
 
-                         companyIntention: values.companyIntention,//公司意向1
 
-                         locationProvince: values.locationProvince,//省份1
 
-                         adress: values.adress,//详细地址1
 
-                         remarks: values.remarks,//备注1
 
-                         followSituation: values.followSituation,//最新跟进1
 
-                         customerStatue: values.customerStatue,//客户状态1
 
-                         name: values.name,//客户姓名1                        
 
-                         mobile: values.mobile,//座机1
 
-                         telNum: values.telNum,//手机号码1
 
-                         sex: values.sex,//性别1
 
-                         customerPosition: values.customerPosition,//职位1
 
-                         wechat: values.wechat,//微信号1
 
-                         qq: values.qq,//qq     1                 
 
-                         depatrment: values.depatrment,//部门             1
 
-                         email: values.email,//邮箱     1                   
 
-                        	shareTyp:1,
 
-                         
 
- //                      keyword: this.state.tags ? this.state.tags.join(",") : this.props.tags.join(","),
 
- //                      keywords: this.state.tags ? this.state.tags : this.props.tags,
 
- //                      category: values.category,
 
- //                      summary: values.summary,
 
- //                      introduction: values.introduction,
 
- //                      technicalPictureUrl: theTechnicalPictureUrl,
 
- //                      coverImg: thecoverImg,
 
- //                      fieldA: values.field ? values.field[0] : undefined,
 
- //                      fieldB: values.field ? values.field[1] : undefined,
 
- //                      maturity: values.maturity,
 
- //                      maturityPictureUrl: theMaturityPictureUrl,
 
- //                      maturityTextFileUrl: this.state.maturityTextFileUrl,
 
- //                      maturityVideoUrl: values.maturityVideoUrl,
 
- //                      innovation: values.innovation,
 
- //                      //
 
- //                      switchSign: this.state.switchValue ? 1 : 0,
 
- //                      //
 
- //                      ownerId: !this.state.switchValue ? (this.state.dataSourceObj ? this.state.dataSourceObj[values.iOwnerName] : this.state.data.ownerId) : undefined,
 
- //                      contacts: !this.state.switchValue ? values.contacts : undefined,
 
- //                      ownerType: this.props.detailApiUrl.indexOf('org') != -1 ? 1 : 0,
 
- //                      //自定义
 
- //                      ownerName: this.state.switchValue ? values.ownerName : undefined,
 
- //                      ownerIdNumber: this.state.switchValue ? values.ownerIdNumber : undefined,
 
- //                      ownerId: this.state.switchValue ? values.ownerId : undefined,//拥有者
 
- //                      ownerEmail: this.state.switchValue ? values.ownerEmail : undefined,
 
- //                      ownerPostalAddress: this.state.switchValue ? values.ownerPostalAddress : undefined,
 
- //                      //
 
- //                      cooperationMode: values.cooperationMode,
 
- //                      transferMode: values.transferMode,
 
- //                      bargainingMode: values.bargainingMode,
 
- //                      transferPrice: values.transferPrice,
 
- //                      technicalScene: values.technicalScene,
 
- //                      breakthrough: values.breakthrough,
 
- //                      patentCase: values.patentCase,
 
- //                      awards: values.awards,
 
- //                      teamDes: values.teamDes,
 
- //                      parameter: values.parameter,
 
- //                      releaseStatus: values.releaseStatus,
 
- //                      techPlanUrl: this.state.techPlanUrl,
 
- //                      businessPlanUrl: this.state.businessPlanUrl,
 
- //                      auditStatus: this.state.auditStatus,                       
 
- //                      boutique: values.boutique, 
 
- //                      hot: values.hot,                       
 
-                     }
 
-                 }).done(function (data) {
 
-                     this.state.auditStatus = 0;
 
-                     this.setState({
 
-                         loading: false
 
-                     });
 
-                     if (!data.error.length) {
 
-                         message.success('保存成功!');
 
-                         this.props.handleOk();
 
-                     } else {
 
-                         message.warning(data.error[0].message);
 
-                     }
 
-                 }.bind(this));
 
-             }
 
-         });
 
-     },
 
-     componentWillMount() {
 
-         this.state.therottleSearch = throttle(this.handleSearch, 1000, { leading: false }).bind(this);
 
-         if (this.props.data && this.props.data.id) {
 
-             this.loadData(this.props.data.id, this.props.detailApiUrl);
 
-         };  
 
-     },
 
-     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.tags = [];
 
-             this.state.switchValue = false;
 
-             this.state.radios = false;
 
-             this.state.technicalPictureUrl = [];
 
-             this.state.coverImg = [];
 
-             this.state.maturityPictureUrl = [];
 
-             this.state.textFileList = [];
 
-             this.state.techPlanFileList = [];
 
-             this.state.businessPlanFileList = [];
 
-             this.props.form.resetFields();
 
-         };
 
-     },
 
-    
 
-     render() {
 
-         const theData = this.state.data || {};
 
-         const { getFieldDecorator } = this.props.form;
 
-         const FormItem = Form.Item
 
-         const formItemLayout = {
 
-             labelCol: { span: 8 },
 
-             wrapperCol: { span: 14 },
 
-         };
 
-         return (
 
-             <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
 
-                 <Spin spinning={this.state.loading}>
 
-                     <div className="clearfix">
 
-                     	<FormItem className="half-item"
 
- 		                            {...formItemLayout}
 
- 		                            label="客户类型" >
 
- 		                            {getFieldDecorator('customerTyp', {
 
- 		                                rules: [{ required: true, message: '此项为必填项!' }],
 
- 		                                initialValue: theData.customerTyp
 
- 		                            })(
 
- 		                                <Select placeholder="选择客户类型" style={{ width: 160 }} >
 
- 		                                    <Select.Option value="0" >个人客户</Select.Option>
 
- 		                                    <Select.Option value="1" >公司客户</Select.Option>                                   
 
- 		                                </Select>
 
- 		                                )}
 
- 		                </FormItem>
 
- 		                <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="编号" >
 
-                             <span>{theData.id}</span>
 
-                         </FormItem>
 
-                     	<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>	                    	                       
 
-                         <div>	                    	
 
- 		                    <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="录入时间" >
 
- 	                            {getFieldDecorator('createTime', {
 
- 	                                initialValue: theData.createTime ? moment(theData.createTime) : null
 
- 	                            })(
 
- 	                                <DatePicker />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="跟单人" >
 
- 	                            {getFieldDecorator('ownerId', {
 
- 	                                initialValue: theData.ownerId
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
-                         </div>
 
-                         <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>	                    		                           	                                                       	                                               
 
-                         <div>
 
-                             <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="公司名称" >
 
- 	                            {getFieldDecorator('companyName', {
 
- 	                                rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.companyName
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="公司行业" >
 
- 	                            {getFieldDecorator('companyIndustry', {	                                
 
- 	                                initialValue: theData.companyIndustry
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="意向服务" >
 
- 	                            {getFieldDecorator('companyIntention', {
 
- 	                            	rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: getCompanyIntention(theData.companyIntention)
 
- 	                            })(
 
- 	                               <Select placeholder="选择服务类型" >
 
- 	                                    {
 
- 	                                        intentionalService.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>	                       
 
- 			                <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="地区" >
 
- 	                            {getFieldDecorator('locationProvince', {
 
- 	                                initialValue: getcityArr(theData.locationProvince)
 
- 	                            })(
 
- 	                                <Select placeholder="选择地区" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        cityArr.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="最新跟进" >
 
- 	                            {getFieldDecorator('followSituation', {
 
- 	                                initialValue: getfllowSituation(theData.followSituation)
 
- 	                            })(
 
- 	                                <Select placeholder="选择跟进进度" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        newFollow.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="客户状态" >
 
- 	                            {getFieldDecorator('customerStatue', {
 
- 	                                initialValue: getcustomerStatue(theData.customerStatue)
 
- 	                            })(
 
- 	                                <Select placeholder="选择客户状态" style={{ width: 160 }} >
 
- 	                                    {
 
- 	                                        customerStatus.map(function (item) {
 
- 	                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
 
- 	                                        })
 
- 	                                    }
 
- 	                                </Select>
 
- 	                                )}
 
- 	                        </FormItem>	                       
 
- 	                        <FormItem className="half-item"
 
- 		                            {...formItemLayout}
 
- 		                            label="详细地址" >
 
- 		                            {getFieldDecorator('adress', {		                            	
 
- 		                                initialValue: theData.adress
 
- 		                            })(
 
- 		                                <Input />
 
- 		                                )}
 
- 		                    </FormItem>
 
- 	                        <div  className="clearfix">		                        
 
- 				                <FormItem
 
- 			                        labelCol={{ span: 4 }}
 
- 			                        wrapperCol={{ span: 18 }}
 
- 			                        label="备注" >
 
- 			                        {getFieldDecorator('remarks', {
 
- 			                            initialValue: theData.remarks
 
- 			                        })(
 
- 			                            <Input type="textarea" rows={4} />
 
- 			                            )}
 
- 			                    </FormItem>
 
- 			                </div>
 
-                         </div>  
 
-                         <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>联系资料:</div>
 
-                         <div>
 
-                         	<FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="姓名" >
 
- 	                            {getFieldDecorator('name', {
 
- 	                                rules: [{ required: true, message: '此项为必填项!' }],
 
- 	                                initialValue: theData.name
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="性别" >
 
-                                 {getFieldDecorator('sex', {
 
-                                 	rules: [{ required: true, message: '此项为必填项!' }],
 
-                                     initialValue: getsex(theData.sex)
 
-                                 })(
 
-                                     <Radio.Group>
 
-                                         <Radio value="0">男</Radio>
 
-                                         <Radio value="1">女</Radio>
 
-                                     </Radio.Group>
 
-                                     )}
 
-                        		</FormItem>
 
-                        		<FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="手机号码" >
 
- 	                            {getFieldDecorator('telNum', {	
 
- 	                            	
 
- 	                                initialValue: theData.telNum 
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="座机号" >
 
- 	                            {getFieldDecorator('mobile', {	                              
 
- 	                                initialValue: theData.mobile
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="QQ号码" >
 
- 	                            {getFieldDecorator('qq', {	                              
 
- 	                                initialValue: theData.qq
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="邮箱号" >
 
- 	                            {getFieldDecorator('email', {	                              
 
- 	                                initialValue: theData.email
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="微信" >
 
- 	                            {getFieldDecorator('wechat', {	                              
 
- 	                                initialValue: theData.wechat
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="部门" >
 
- 	                            {getFieldDecorator('depatrment', {	                              
 
- 	                                initialValue: theData.depatrment
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
- 	                        <FormItem className="half-item"
 
- 	                            {...formItemLayout}
 
- 	                            label="职位" >
 
- 	                            {getFieldDecorator('customerPosition', {	                              
 
- 	                                initialValue: theData.customerPosition
 
- 	                            })(
 
- 	                                <Input />
 
- 	                                )}
 
- 	                        </FormItem>
 
-                         </div>
 
-                         
 
-                        {/* <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="编号" >
 
-                             <span>{theData.serialNumber}</span>
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="名称" >
 
-                             {getFieldDecorator('name', {
 
-                                 rules: [{ required: true, message: '此项为必填项!' }],
 
-                                 initialValue: theData.name
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="数据类别" >
 
-                             {getFieldDecorator('dataCategory', {
 
-                                 rules: [{ required: true, message: '此项为必填项!' }],
 
-                                 initialValue: theData.dataCategory
 
-                             })(
 
-                                 <Select placeholder="选择数据类型" style={{ width: 160 }} >
 
-                                     <Select.Option value="0" >成果</Select.Option>
 
-                                     <Select.Option value="1" >技术</Select.Option>
 
-                                     <Select.Option value="2" >项目</Select.Option>
 
-                                 </Select>
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="类型" >
 
-                             {getFieldDecorator('category', {
 
-                                 rules: [{ required: true, message: '此项为必填项!' }],
 
-                                 initialValue: theData.category
 
-                             })(
 
-                                 <Select style={{ width: 160 }} placeholder="请选择成果类型">
 
-                                     {this.props.achievementCategoryOption}
 
-                                 </Select>
 
-                                 )}
 
-                         </FormItem>                                              
 
-                         <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="精品成果" >
 
-                                 {getFieldDecorator('boutique', {
 
-                                     initialValue: theData.boutique
 
-                                 })(
 
-                                     <Radio.Group>
 
-                                         <Radio value="0">否</Radio>
 
-                                         <Radio value="1">是</Radio>
 
-                                     </Radio.Group>
 
-                                     )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="首页展示:" >
 
-                                 {getFieldDecorator('hot', {
 
-                                     initialValue: theData.hot
 
-                                 })(
 
-                                     <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
 
-                                         <Radio value="0">否</Radio>
 
-                                         <Radio value="1">是</Radio>
 
-                                     </Radio.Group>
 
-                                     )}
 
-                         </FormItem>                                           		
 
-                         {this.state.radios==true ? <FormItem
 
- 	                        labelCol={{ span: 4 }}
 
- 	                        wrapperCol={{ span: 18 }}
 
- 	                        label="首页展示图片:" >
 
- 	                        <PicturesWall
 
- 	                            pictureSign="achievement_cover_picture"
 
- 	                            fileList={this.getcoverImg}	                            
 
- 	                            pictureUrl={this.state.coverImg} />
 
- 	                        <p>图片尺寸建议:220X140(像素)</p>
 
- 	                    </FormItem>:<div></div>}
 
- 	                    
 
-                         <div className="clearfix">
 
-                             <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="是否发布" >
 
-                                 {(() => {
 
-                                     switch (theData.releaseStatus) {
 
-                                         case "0":
 
-                                             return <span>未发布</span>;
 
-                                         case "1":
 
-                                             return <span>已发布</span>;
 
-                                     }
 
-                                 })()}
 
-                             </FormItem>
 
-                             <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="发布时间" >
 
-                                 <span>{theData.releaseDateFormattedDate}</span>
 
-                             </FormItem>
 
-                             <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="审核状态" >
 
-                                 <span>{getTechAuditStatus(theData.auditStatus)}</span>
 
-                             </FormItem>
 
-                         </div>
 
-                         */}
 
-                     </div>
 
-                     {/*
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="关键词" >
 
-                         <KeyWordTagGroup
 
-                             keyWordArr={this.state.tags}
 
-                             tagsArr={this.getTagsArr} />
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="摘要" >
 
-                         {getFieldDecorator('summary', {
 
-                             initialValue: theData.summary
 
-                         })(
 
-                             <Input type="textarea" rows={4} />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="成果简介" >
 
-                         {getFieldDecorator('introduction', {
 
-                             initialValue: theData.introduction
 
-                         })(
 
-                             <Input type="textarea" rows={4} placeholder="项目成果简介;项目核心创新点;项目详细用途;预期效益说明;主要技术(性能)指标;市场前景;应用范围;发展历程。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="技术图片" >
 
-                         <PicturesWall
 
-                             pictureSign="achievement_technical_picture"
 
-                             fileList={this.getTechnicalPictureUrl}
 
-                             pictureUrl={this.state.technicalPictureUrl} />
 
-                         <p>图片建议:专利证书或专利申请书图片、技术图纸、样品图片、技术相关网络图片;成熟度处于非研发阶段的项目,必须上传样品图片,如未上传,成熟度将视为处在研发阶段。</p>
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="应用领域" >
 
-                         {getFieldDecorator('field', {
 
-                             rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
 
-                             initialValue: [theData.fieldA, theData.fieldB]
 
-                         })(
 
-                             <Cascader style={{ width: 300 }} options={IndustryObject} placeholder="应用领域" />
 
-                             )}
 
-                     </FormItem>
 
-                     <div className="clearfix">
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="成熟度" >
 
-                             {getFieldDecorator('maturity', {
 
-                                 initialValue: theData.maturity
 
-                             })(
 
-                                 <Select placeholder="选择成熟度" style={{ width: 160 }} >
 
-                                     {
 
-                                         maturityList.map(function (item) {
 
-                                             return <Select.Option key={item.value} >{item.key}</Select.Option>
 
-                                         })
 
-                                     }
 
-                                 </Select>
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="创新度" >
 
-                             {getFieldDecorator('innovation', {
 
-                                 initialValue: theData.innovation
 
-                             })(
 
-                                 <Select placeholder="选择创新度" style={{ width: 160 }} >
 
-                                     {
 
-                                         innovationList.map(function (item) {
 
-                                             return <Select.Option key={item.value} >{item.key}</Select.Option>
 
-                                         })
 
-                                     }
 
-                                 </Select>
 
-                                 )}
 
-                         </FormItem>
 
-                     </div>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="成熟度证明材料(图片)" >
 
-                         <PicturesWall
 
-                             pictureSign="achievement_maturity_picture"
 
-                             fileList={this.getMaturityPictureUrl}
 
-                             pictureUrl={this.state.maturityPictureUrl} />
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 6 }}
 
-                         label="成熟度证明材料(文本)" >
 
-                         <Upload
 
-                             name="ratepay"
 
-                             action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
 
-                             data={{ 'sign': 'achievement_maturity_text_file' }}
 
-                             beforeUpload={beforeUploadFile}
 
-                             fileList={this.state.textFileList}
 
-                             onChange={(info) => {
 
-                                 if (info.file.status !== 'uploading') {
 
-                                     console.log(info.file, info.fileList);
 
-                                 }
 
-                                 if (info.file.status === 'done') {
 
-                                     if (!info.file.response.error.length) {
 
-                                         message.success(`${info.file.name} 文件上传成功!`);
 
-                                     } else {
 
-                                         message.warning(info.file.response.error[0].message);
 
-                                         return;
 
-                                     };
 
-                                     this.state.maturityTextFileUrl = info.file.response.data;
 
-                                 } else if (info.file.status === 'error') {
 
-                                     message.error(`${info.file.name} 文件上传失败。`);
 
-                                 };
 
-                                 this.setState({ textFileList: info.fileList.slice(-1) });
 
-                             }} >
 
-                             <Button><Icon type="upload" /> 上传成熟度证明文本 </Button>
 
-                         </Upload>
 
-                         <p style={{ marginTop: '10px' }}>{theData.maturityTextFileUrl ?
 
-                             <span className="download-file">
 
-                                 <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
 
-                             </span>
 
-                             : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="成熟度证明材料(视频地址)" >
 
-                         {getFieldDecorator('maturityVideoUrl', {
 
-                             initialValue: theData.maturityVideoUrl
 
-                         })(
 
-                             <Input />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="自定义成果所有人" >
 
-                         <Switch checked={this.state.switchValue} onChange={(e) => { this.setState({ switchValue: e }); }} />
 
-                     </FormItem>
 
-                     {this.state.switchValue ? <div className="clearfix" >
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="成果所有人" >
 
-                             {getFieldDecorator('ownerName', {
 
-                                 initialValue: theData.ownerName
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="联系电话" >
 
-                             {getFieldDecorator('ownerMobile', {
 
-                                 initialValue: theData.ownerMobile
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="证件号" >
 
-                             {getFieldDecorator('ownerIdNumber', {
 
-                                 initialValue: theData.ownerIdNumber
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="电子邮箱" >
 
-                             {getFieldDecorator('ownerEmail', {
 
-                                 initialValue: theData.ownerEmail
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="通讯地址" >
 
-                             {getFieldDecorator('ownerPostalAddress', {
 
-                                 initialValue: theData.ownerPostalAddress
 
-                             })(
 
-                                 <Input />
 
-                                 )}
 
-                         </FormItem>
 
-                     </div> : <div className="clearfix" >
 
-                             <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="成果所有人" >
 
-                                 {getFieldDecorator('iOwnerName', {
 
-                                     initialValue: theData.iOwnerName || ''
 
-                                 })(
 
-                                     <AutoComplete
 
-                                         dataSource={this.state.dataSource}
 
-                                         style={{ width: 200 }}
 
-                                         onSearch={this.state.therottleSearch}
 
-                                         placeholder="输入成果所有人"
 
-                                         onSelect={(e) => {
 
-                                             this.getContactsList(this.state.dataSourceObj[e]);
 
-                                         }} />
 
-                                     )}
 
-                             </FormItem>
 
-                             {this.props.detailApiUrl.indexOf('org') >= 0 ? <FormItem className="half-item"
 
-                                 {...formItemLayout}
 
-                                 label="联系人" >
 
-                                 {getFieldDecorator('contacts', {
 
-                                     initialValue: theData.contacts
 
-                                 })(
 
-                                     <Select style={{ width: 260 }}
 
-                                         placeholder="请选择联系人"
 
-                                         notFoundContent="未获取到联系人列表"
 
-                                         showSearch
 
-                                         filterOption={companySearch}>
 
-                                         {this.state.contactsOption}
 
-                                     </Select>
 
-                                     )}
 
-                             </FormItem> : <div></div>}
 
-                         </div>}
 
-                     <div className="clearfix">
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="合作方式" >
 
-                             {getFieldDecorator('cooperationMode', {
 
-                                 rules: [{ required: true, message: '此项为必填项!' }],
 
-                                 initialValue: theData.cooperationMode
 
-                             })(
 
-                                 <Radio.Group>
 
-                                     <Radio value="0">技术转让</Radio>
 
-                                     <Radio value="1">授权生产</Radio>
 
-                                 </Radio.Group>
 
-                                 )}
 
-                         </FormItem>
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="转让方式" >
 
-                             {getFieldDecorator('transferMode', {
 
-                                 initialValue: theData.transferMode
 
-                             })(
 
-                                 <Select placeholder="选择转让方式" style={{ width: 160 }} >
 
-                                     {
 
-                                         transferModeList.map(function (item) {
 
-                                             return <Select.Option key={item.value} >{item.key}</Select.Option>
 
-                                         })
 
-                                     }
 
-                                 </Select>
 
-                                 )}
 
-                         </FormItem>
 
-                     </div>
 
-                     <div className="clearfix">
 
-                         <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="议价方式" >
 
-                             {getFieldDecorator('bargainingMode', {
 
-                                 initialValue: theData.bargainingMode
 
-                             })(
 
-                                 <Radio.Group onChange={(e) => {
 
-                                     this.setState({
 
-                                         transferPriceDis: (e.target.value == 1 ? true : false)
 
-                                     })
 
-                                 }}>
 
-                                     <Radio value="0">面议</Radio>
 
-                                     <Radio value="1">定价</Radio>
 
-                                 </Radio.Group>
 
-                                 )}
 
-                         </FormItem>
 
-                         {this.state.transferPriceDis ? <FormItem className="half-item"
 
-                             {...formItemLayout}
 
-                             label="转让价格" >
 
-                             {getFieldDecorator('transferPrice', {
 
-                                 initialValue: theData.transferPrice || 0
 
-                             })(
 
-                                 <InputNumber min={0} max={999999} step={0.01} />
 
-                                 )}
 
-                             <span style={{ marginLeft: '20px' }}>万元</span>
 
-                         </FormItem> : <div></div>}
 
-                     </div>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="技术场景" >
 
-                         {getFieldDecorator('technicalScene', {
 
-                             initialValue: theData.technicalScene
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="说明解决了什么问题。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="技术突破" >
 
-                         {getFieldDecorator('breakthrough', {
 
-                             initialValue: theData.breakthrough
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="说明该技术成果突破性的研究。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="专利情况" >
 
-                         {getFieldDecorator('patentCase', {
 
-                             initialValue: theData.patentCase
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="一个“技术”可能由多个专利构成,需要说明技术-专利的关系。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="获奖情况" >
 
-                         {getFieldDecorator('awards', {
 
-                             initialValue: theData.awards
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="一个“技术”可能存在社会奖励情况,需要说明社会奖励情况。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="技术团队情况" >
 
-                         {getFieldDecorator('teamDes', {
 
-                             initialValue: theData.teamDes
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="一个“技术”、“项目”可能存在团队,需要说明团队情况。" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 18 }}
 
-                         label="技术参数" >
 
-                         {getFieldDecorator('parameter', {
 
-                             initialValue: theData.parameter
 
-                         })(
 
-                             <Input type="textarea" rows={2} placeholder="描述技术参数信息" />
 
-                             )}
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 6 }}
 
-                         label="技术方案" >
 
-                         <Upload
 
-                             name="ratepay"
 
-                             action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
 
-                             data={{ 'sign': 'achievement_tech_plan' }}
 
-                             beforeUpload={beforeUploadFile}
 
-                             fileList={this.state.techPlanFileList}
 
-                             onChange={(info) => {
 
-                                 if (info.file.status !== 'uploading') {
 
-                                     console.log(info.file, info.fileList);
 
-                                 }
 
-                                 if (info.file.status === 'done') {
 
-                                     if (!info.file.response.error.length) {
 
-                                         message.success(`${info.file.name} 文件上传成功!`);
 
-                                     } else {
 
-                                         message.warning(info.file.response.error[0].message);
 
-                                         return;
 
-                                     };
 
-                                     this.state.techPlanUrl = info.file.response.data;
 
-                                 } else if (info.file.status === 'error') {
 
-                                     message.error(`${info.file.name} 文件上传失败。`);
 
-                                 };
 
-                                 this.setState({ techPlanFileList: info.fileList.slice(-1) });
 
-                             }} >
 
-                             <Button><Icon type="upload" /> 上传技术方案文件 </Button>
 
-                         </Upload>
 
-                         <p style={{ marginTop: '10px' }}>{theData.techPlanUrl ?
 
-                             <span className="download-file">
 
-                                 <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
 
-                             </span>
 
-                             : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
 
-                     </FormItem>
 
-                     <FormItem
 
-                         labelCol={{ span: 4 }}
 
-                         wrapperCol={{ span: 6 }}
 
-                         label="商业计划书" >
 
-                         <Upload
 
-                             name="ratepay"
 
-                             action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
 
-                             data={{ 'sign': 'achievement_business_plan' }}
 
-                             beforeUpload={beforeUploadFile}
 
-                             fileList={this.state.businessPlanFileList}
 
-                             onChange={(info) => {
 
-                                 if (info.file.status !== 'uploading') {
 
-                                     console.log(info.file, info.fileList);
 
-                                 }
 
-                                 if (info.file.status === 'done') {
 
-                                     if (!info.file.response.error.length) {
 
-                                         message.success(`${info.file.name} 文件上传成功!`);
 
-                                     } else {
 
-                                         message.warning(info.file.response.error[0].message);
 
-                                         return;
 
-                                     };
 
-                                     this.state.businessPlanUrl = info.file.response.data;
 
-                                 } else if (info.file.status === 'error') {
 
-                                     message.error(`${info.file.name} 文件上传失败。`);
 
-                                 };
 
-                                 this.setState({ businessPlanFileList: info.fileList.slice(-1) });
 
-                             }} >
 
-                             <Button><Icon type="upload" /> 上传商业计划书文件 </Button>
 
-                         </Upload>
 
-                         <p style={{ marginTop: '10px' }}>{theData.businessPlanUrl ?
 
-                             <span className="download-file">
 
-                                 <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
 
-                             </span>
 
-                             : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
 
-                     </FormItem>
 
-                      */}
 
-                     <FormItem wrapperCol={{ span: 12, offset: 4 }}>
 
-                         <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
 
-                         {/*<Button className="set-submit" type="ghost" onClick={(e) => { this.state.auditStatus = 1; }} htmlType="submit">发布</Button>*/}
 
-                         <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button>
 
-                     </FormItem>
 
-                    
 
-                 </Spin>
 
-             </Form >
 
-         )
 
-     }
 
- }));
 
- const AchievementDetail = React.createClass({
 
-     getInitialState() {
 
-         return {
 
-             visible: false,
 
-             tabsKey: 1,
 
-             loading: false,
 
-             columns: [
 
-                 {
 
-                     title: '客户信息',
 
-                     dataIndex: 'id',
 
-                     key: 'id',
 
-                     render: text => {
 
-                         switch (text) {
 
-                             case "0":
 
-                                 return <span>个人客户</span>;
 
-                             case "1":
 
-                                 return <span>公司客户</span>;                           
 
-                         }
 
-                     }
 
-                 }, {
 
-                     title: '名称',
 
-                     dataIndex: 'companyNmae',
 
-                     key: 'companyNmae',
 
-                 }, {
 
-                     title: '关键字',
 
-                     dataIndex: 'keyword',
 
-                     key: 'keyword',
 
-                 }, {
 
-                     title: '类型',
 
-                     dataIndex: 'demandType',
 
-                     key: 'demandType',
 
-                     render: text => { return getDemandType(text); }
 
-                 }, {
 
-                     title: '所有人名称',
 
-                     dataIndex: 'theName',
 
-                     key: 'theName',
 
-                 }, {
 
-                     title: '发布时间',
 
-                     dataIndex: 'releaseDateFormattedDate',
 
-                     key: 'releaseDateFormattedDate',
 
-                 }, {
 
-                     title: '有效期限',
 
-                     dataIndex: 'validityPeriodFormattedDate',
 
-                     key: 'validityPeriodFormattedDate',
 
-                 },
 
-             ],
 
-             dataSource: [],
 
-         };
 
-     },
 
-     getTechBrodersList() {
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/audit/techBroders",
 
-             success: function (data) {
 
-                 if (!data.data) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     }
 
-                     return;
 
-                 };
 
-                 let _me = this, theArr = [];
 
-                 for (var item in data.data) {
 
-                     theArr.push(
 
-                         <Select.Option key={item}>{data.data[item]}</Select.Option>
 
-                     )
 
-                 };
 
-                 this.setState({
 
-                     techBrodersOption: theArr,
 
-                     techBrodersObj: data.data
 
-                 });
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     getTableList() {
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/achievement/achievementDemand",
 
-             data: { id: this.props.data.id },
 
-             success: function (data) {
 
-                 let theArr = [];
 
-                 if (!data.data) {
 
-                     if (data.error && data.error.length) {
 
-                         message.warning(data.error[0].message);
 
-                     };
 
-                 } else if (data.data.length) {
 
-                     for (let i = 0; i < data.data.length; i++) {
 
-                         let thisdata = data.data[i];
 
-                         theArr.push({
 
-                             key: i,
 
-                             id: thisdata.id,
 
-                             serialNumber: thisdata.serialNumber,
 
-                             createTime: thisdata.createTime,
 
-                             name: thisdata.name,
 
-                             keyword: thisdata.keyword,
 
-                             demandType: thisdata.demandType,
 
-                             theName: thisdata.username || thisdata.unitName,
 
-                             releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
 
-                             validityPeriodFormattedDate: thisdata.validityPeriodFormattedDate,
 
-                             coverImg: thisdata.coverImg,
 
-                             hot: thisdata.hot,
 
-                         });
 
-                     };
 
-                 };
 
-                 this.setState({
 
-                     dataSource: theArr,
 
-                 });
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     tableRowClick(record, index) {
 
-         window.open(globalConfig.context + '/portal/detail/demandDetail.html?id=' + record.id + '&type=' + record.dataCategory);
 
-     },
 
-     handleCancel(e) {
 
-         this.setState({
 
-             visible: false,
 
-         });
 
-         this.props.closeDesc(false);
 
-     },
 
-     handleOk(e) {
 
-         this.setState({
 
-             visible: false,
 
-         });
 
-         this.props.closeDesc(false, true);
 
-     },
 
-     componentWillMount() {
 
-         this.getTechBrodersList();
 
-     },
 
-     componentWillReceiveProps(nextProps) {
 
-         if (!this.state.visible && nextProps.showDesc) {
 
-             this.state.tabsKey = "1";
 
-         };
 
-         this.state.visible = nextProps.showDesc;
 
-     },
 
-     render() {
 
-         if (this.props.data) {
 
-             return (
 
-                 <div className="patent-desc">
 
-                     <Modal maskClosable={false} visible={this.state.visible}
 
-                         onOk={this.checkPatentProcess} onCancel={this.handleCancel}
 
-                         width='1000px'
 
-                         footer=''
 
-                         className="admin-desc-content">
 
-                         <Spin spinning={this.state.loading}>
 
-                             <Tabs activeKey={this.state.tabsKey}
 
-                                 onChange={(e) => {
 
-                                     this.setState({ tabsKey: e });
 
-                                     if (e == "2") {
 
-                                         this.getTableList();
 
-                                     };
 
-                                 }} >
 
-                                 <Tabs.TabPane tab="客户详情" key="1">
 
-                                     {(() => {
 
-                                         if (this.props.data.id && this.props.data.auditStatus != "0" && this.props.data.auditStatus != "4") {
 
-                                             return <AchievementDetailShow
 
-                                                 data={this.props.data}
 
-                                                 detailApiUrl={this.props.detailApiUrl}
 
-                                                 techBrodersOption={this.state.techBrodersOption}
 
-                                                 techBrodersObj={this.state.techBrodersObj}
 
-                                                 closeDesc={this.handleCancel}
 
-                                                 visible={this.state.visible}
 
-                                                 handleOk={this.handleOk} />
 
-                                         } else {
 
-                                             return <AchievementDetailForm
 
-                                                 data={this.props.data}
 
-                                                 detailApiUrl={this.props.detailApiUrl}
 
-                                                 achievementCategoryOption={this.props.achievementCategoryOption}
 
-                                                 techBrodersObj={this.state.techBrodersObj}
 
-                                                 closeDesc={this.handleCancel}
 
-                                                 visible={this.state.visible}
 
-                                                 handleOk={this.handleOk} />
 
-                                         };
 
-                                     })()}
 
-                                 </Tabs.TabPane>                                
 
-                             </Tabs>
 
-                         </Spin>
 
-                     </Modal>
 
-                 </div>
 
-             );
 
-         } else {
 
-             return <div></div>
 
-         }
 
-     },
 
- });
 
- export default AchievementDetail;
 
 
  |