queryCustomer.jsx 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330
  1. import React from 'react';
  2. import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import './myClient.less';
  7. import { citySelect, provinceList, areaSelect } from '../../../NewDicProvinceList';
  8. const { Column, ColumnGroup } = Table;
  9. const TabPane = Tabs.TabPane;
  10. const monthFormat = 'YYYY/MM';
  11. import CustomerDetail from './myClientDesc.jsx';
  12. import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
  13. import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
  14. //图片组件
  15. const PicturesWall = React.createClass({
  16. getInitialState() {
  17. return {
  18. previewVisible: false,
  19. previewImage: '',
  20. fileList: [],
  21. }
  22. },
  23. handleCancel() {
  24. this.setState({ previewVisible: false })
  25. },
  26. handlePreview(file) {
  27. this.setState({
  28. previewImage: file.url || file.thumbUrl,
  29. previewVisible: true,
  30. });
  31. },
  32. handleChange(info) {
  33. let fileList = info.fileList;
  34. this.setState({ fileList });
  35. this.props.fileList(fileList);
  36. },
  37. componentWillReceiveProps(nextProps) {
  38. this.state.fileList = nextProps.pictureUrl;
  39. },
  40. render() {
  41. const { previewVisible, previewImage, fileList } = this.state;
  42. const uploadButton = (
  43. <div>
  44. <Icon type="plus" />
  45. <div className="ant-upload-text">点击上传</div>
  46. </div>
  47. );
  48. return(
  49. <div style={{display:"inline-block"}}>
  50. <Upload
  51. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  52. data={{ 'sign': '' }}
  53. listType="picture-card"
  54. fileList={fileList}
  55. onPreview={this.handlePreview}
  56. onChange={this.handleChange} >
  57. {fileList.length >= 1 ? null : uploadButton}
  58. </Upload>
  59. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  60. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  61. </Modal>
  62. </div>
  63. );
  64. }
  65. });
  66. const QueryCustomer = Form.create()(React.createClass({
  67. loadData(pageNo, apiUrl) {
  68. this.state.data = [];
  69. this.setState({
  70. loading: true
  71. });
  72. $.ajax({
  73. method: "post",
  74. dataType: "json",
  75. crossDomain: false,
  76. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  77. data: {
  78. pageNo: pageNo || 1,
  79. pageSize: this.state.pagination.pageSize,
  80. type: this.state.typeSearch, //名称1
  81. name: this.state.nameSearch,
  82. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  83. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  84. status: this.state.statusSearch,
  85. industry: this.state.industrySearch,
  86. businessAudit: this.state.serviceCertificationSearch,
  87. auditStatus: this.state.userCertificationSearch,
  88. currentMemberStatus: this.state.currentMemberStatusSearch,
  89. lvl: this.state.lvlSearch,
  90. listed: this.state.listedSearch, //是否上市
  91. highTechZone: this.state.highTechZoneSearch, //是否高新
  92. startDate: this.state.releaseDate[0],
  93. endDate: this.state.releaseDate[1],
  94. isMember: this.state.isMemberSearch,
  95. international: this.state.internationalSearch,
  96. celebrity: this.state.celebritySearch,
  97. expert: this.state.expertSearch,
  98. industry: this.state.industrySearch,
  99. shareType: this.state.shareTypeSearch,
  100. },
  101. success: function(data) {
  102. let theArr = [];
  103. if(data.error.length || data.data.list == "") {
  104. if(data.error && data.error.length) {
  105. message.warning(data.error[0].message);
  106. };
  107. } else {
  108. for(let i = 0; i < data.data.list.length; i++) {
  109. let thisdata = data.data.list[i];
  110. theArr.push({
  111. key: i,
  112. id: thisdata.uid,
  113. type: thisdata.type,
  114. name: thisdata.name,
  115. status: thisdata.status,
  116. contacts: thisdata.contacts,
  117. contactMobile: thisdata.contactMobile,
  118. industry: thisdata.industry,
  119. createTime: thisdata.createTime,
  120. businessAudit: thisdata.businessAudit,
  121. auditStatus: thisdata.auditStatus,
  122. lvl: thisdata.lvl,
  123. shareType: thisdata.shareType,
  124. isMember: thisdata.isMember,
  125. consultant: thisdata.consultant,
  126. societyTag: thisdata.societyTag,
  127. currentMemberStatus: thisdata.currentMemberStatus,
  128. international: thisdata.international,
  129. listed: thisdata.listed,
  130. international: thisdata.international,
  131. expert: thisdata.expert,
  132. celebrity: thisdata.celebrity,
  133. adminName: thisdata.adminName,
  134. highTechZone: thisdata.highTechZone,
  135. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  136. });
  137. };
  138. this.state.pagination.current = data.data.pageNo ;
  139. this.state.pagination.total = data.data.totalCount ;
  140. };
  141. if(!data.data.list.length){
  142. this.state.pagination.current=0
  143. this.state.pagination.total=0
  144. }
  145. this.setState({
  146. dataSource: theArr,
  147. pagination: this.state.pagination,
  148. selectedRowKeys:[]
  149. });
  150. }.bind(this),
  151. }).always(function() {
  152. this.setState({
  153. loading: false
  154. });
  155. }.bind(this));
  156. },
  157. //点击出现函数
  158. setModal2VisibleOk(e) {
  159. this.setState({
  160. modal2Visible: true
  161. });
  162. },
  163. //点击消失函数
  164. setModal2Visiblecancel(e) {
  165. this.setState({
  166. modal2Visible: false
  167. });
  168. },
  169. getPictureUrl(e) {
  170. this.setState({ pictureUrl: e });
  171. },
  172. handleOk(e) {
  173. this.setState({
  174. visible: false,
  175. });
  176. },
  177. handleCancel(e) {
  178. this.setState({
  179. visible: false,
  180. });
  181. },
  182. getInitialState() {
  183. return {
  184. addressSearch: [],
  185. positiveIdUrl: [],
  186. oppositeIdUrl: [],
  187. headPortraitUrl: [],
  188. visible: false,
  189. searchMore: true,
  190. releaseDate: [],
  191. releaseDate: [],
  192. selectedRowKeys: [],
  193. selectedRowKey: [],
  194. selectedRows: [],
  195. loading: false,
  196. pagination: {
  197. defaultCurrent: 1,
  198. defaultPageSize: 10,
  199. showQuickJumper: true,
  200. pageSize: 10,
  201. onChange: function(page) {
  202. this.loadData(page);
  203. }.bind(this),
  204. showTotal: function(total) {
  205. return '共' + total + '条数据';
  206. }
  207. },
  208. paginations: {
  209. defaultCurrent: 1,
  210. defaultPageSize: 10,
  211. showQuickJumper: true,
  212. pageSize: 10,
  213. onChange: function(page) {
  214. this.loadVisit(page);
  215. }.bind(this),
  216. showTotal: function(total) {
  217. return '共' + total + '条数据';
  218. }
  219. },
  220. paginationsy: {
  221. defaultCurrent: 1,
  222. defaultPageSize: 10,
  223. showQuickJumper: true,
  224. pageSize: 10,
  225. onChange: function(page) {
  226. this.loadBfVisit(page, false);
  227. }.bind(this),
  228. showTotal: function(total) {
  229. return '共' + total + '条数据';
  230. }
  231. },
  232. paginationt: {
  233. defaultCurrent: 1,
  234. defaultPageSize: 10,
  235. showQuickJumper: true,
  236. pageSize: 10,
  237. onChange: function(page) {
  238. this.BusinessList(page, false);
  239. }.bind(this),
  240. showTotal: function(total) {
  241. return '共' + total + '条数据';
  242. }
  243. },
  244. //业务意向列表
  245. intentionList: [{
  246. title: '业务名称',
  247. dataIndex: 'businessGlossoryId',
  248. key: 'businessGlossoryId',
  249. render: (text, record, index) => {
  250. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  251. {
  252. intentionalService.map(function (item) {
  253. return <Select.Option key={item.value} >{item.key}</Select.Option>
  254. })
  255. }
  256. </Select> : <span>{getCompanyIntention(text)}</span>
  257. }
  258. },
  259. {
  260. title: '最新进度',
  261. dataIndex: 'followSituation',
  262. key: 'followSituation',
  263. render: (text, record, index) => {
  264. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  265. {
  266. newFollow.map(function (item) {
  267. return <Select.Option key={item.value} >{item.key}</Select.Option>
  268. })
  269. }
  270. </Select> : <span>{getfllowSituation(text)}</span>
  271. }
  272. }, {
  273. title: '最新状态',
  274. dataIndex: 'customerStatus',
  275. key: 'customerStatus',
  276. render: (text, record, index) => {
  277. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  278. {
  279. customerStatus.map(function (item) {
  280. return <Select.Option key={item.value} >{item.key}</Select.Option>
  281. })
  282. }
  283. </Select> : <span>{getcustomerStatue(text)}</span>
  284. }
  285. }, {
  286. title: '跟进说明',
  287. dataIndex: 'remarks',
  288. key: 'remarks',
  289. render: (text, record, index) => {
  290. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  291. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  292. style={{width:'120px'}}/> : <span>{text}</span>
  293. }
  294. }, {
  295. title: '操作',
  296. dataIndex: 'rrr',
  297. key: 'rrr',
  298. render: (text, record, index) => {
  299. return <div style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  300. <Popconfirm title="是否删除?" onConfirm={(e)=>{this.intentionDelet(record,index)}} okText="删除" cancelText="不删除">
  301. <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
  302. </Popconfirm>
  303. </div>
  304. }
  305. }
  306. ],
  307. businessIntentionList: [{
  308. title: '意向时间',
  309. dataIndex: 'createTime',
  310. key: 'createTime'
  311. }, {
  312. title: '客户姓名',
  313. dataIndex: 'identifyName',
  314. key: 'identifyName'
  315. }, {
  316. title: '业务名',
  317. dataIndex: 'businessName',
  318. key: 'businessName'
  319. }, {
  320. title: '营销员',
  321. dataIndex: 'adminName',
  322. key: 'adminName'
  323. }, {
  324. title: '业务意向进度',
  325. dataIndex: 'followSituation',
  326. key: 'followSituation',
  327. render: text => { return getfllowSituation(text) }
  328. }, {
  329. title: '客户状态',
  330. dataIndex: 'customerStatus',
  331. key: 'customerStatus',
  332. render: text => { return getcustomerStatue(text) }
  333. }, {
  334. title: '操作',
  335. dataIndex: 'ooo',
  336. key: 'ooo',
  337. render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
  338. }],
  339. businessFollowList: [{
  340. title: '跟进时间',
  341. dataIndex: 'followTime',
  342. key: 'followTime',
  343. }, {
  344. title: '营销员',
  345. dataIndex: 'adminName',
  346. key: 'adminName',
  347. }, {
  348. title: '业务意向进度',
  349. dataIndex: 'followSituation',
  350. key: 'followSituation',
  351. render: text => { return getfllowSituation(text) }
  352. }, {
  353. title: '客户状态',
  354. dataIndex: 'customerStatus',
  355. key: 'customerStatus',
  356. render: text => { return getcustomerStatue(text) }
  357. },
  358. {
  359. title: '拜访方式',
  360. dataIndex: 'contactType',
  361. key: 'contactType',
  362. render: text => { return getContactType(text) }
  363. }, {
  364. title: '联系人',
  365. dataIndex: 'contacts',
  366. key: 'contacts',
  367. },
  368. {
  369. title: '联系电话',
  370. dataIndex: 'contactMobile',
  371. key: 'contactMobile',
  372. }, {
  373. title: '操作',
  374. dataIndex: 'ooo',
  375. key: 'ooo',
  376. render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
  377. }
  378. ],
  379. visitsList: [{
  380. title: '拜访时间',
  381. dataIndex: 'followTime',
  382. key: 'followTime'
  383. }, {
  384. title: '客户姓名',
  385. dataIndex: 'identifyName',
  386. key: 'identifyName'
  387. }, {
  388. title: '拜访方式',
  389. dataIndex: 'contactType',
  390. key: 'contactType',
  391. render: text => { return getContactType(text) }
  392. }, {
  393. title: '联系人',
  394. dataIndex: 'contacts',
  395. key: 'contacts'
  396. }, {
  397. title: '联系电话',
  398. dataIndex: 'contactMobile',
  399. key: 'contactMobile'
  400. }, {
  401. title: '拜访人',
  402. dataIndex: 'adminName',
  403. key: 'adminName'
  404. }, {
  405. title: '拜访说明',
  406. dataIndex: 'result',
  407. key: 'result',
  408. render: text => {
  409. return <span style={{width:'150px',display:'inline-block',overflow:'hidden'}}>{text}</span>
  410. }
  411. }, {
  412. title: '操作',
  413. dataIndex: 'ttt',
  414. key: 'ttt',
  415. render: (text, record, index) => {
  416. return adminData.isSuperAdmin ? <div>
  417. <Popconfirm title="是否删除?" onConfirm={(e)=>{this.visitDelet(record)}} okText="删除" cancelText="不删除">
  418. <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}} onClick={(e)=>{e.stopPropagation()}}>删除</Button>
  419. </Popconfirm>
  420. </div> : <span></span>
  421. }
  422. }],
  423. ContactsLists: [{
  424. title: '姓名',
  425. dataIndex: 'name',
  426. key: 'name',
  427. render: (text, record, index) => {
  428. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id}
  429. onChange={(e) => { record.name = e.target.value;
  430. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  431. }
  432. }, {
  433. title: '联系人部门',
  434. dataIndex: 'depatrment',
  435. key: 'depatrment',
  436. render: (text, record, index) => {
  437. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  438. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  439. }
  440. }, {
  441. title: '联系人职务',
  442. dataIndex: 'position',
  443. key: 'position',
  444. render: (text, record, index) => {
  445. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  446. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  447. }
  448. }, {
  449. title: '手机号码',
  450. dataIndex: 'mobile',
  451. key: 'mobile',
  452. render: (text, record, index) => {
  453. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id}
  454. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  455. }
  456. }, {
  457. title: '微信',
  458. dataIndex: 'wechat',
  459. key: 'wechat',
  460. render: (text, record, index) => {
  461. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  462. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  463. }
  464. }, {
  465. title: '联系人QQ',
  466. dataIndex: 'qq',
  467. key: 'qq',
  468. render: (text, record, index) => {
  469. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  470. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  471. }
  472. }, {
  473. title: '电子邮箱',
  474. dataIndex: 'email',
  475. key: 'email',
  476. render: (text, record, index) => {
  477. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  478. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  479. }
  480. },
  481. {
  482. title: '操作',
  483. dataIndex: 'dels',
  484. key: 'dels',
  485. render: (text, record, index) => {
  486. return adminData.isSuperAdmin ? <div>
  487. <Popconfirm title="是否删除?" onConfirm={(e)=>{this.confirmDelet(record)}} okText="删除" cancelText="不删除">
  488. <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
  489. </Popconfirm>
  490. </div> : <span>无权限</span>
  491. }
  492. }
  493. ],
  494. columnsman: [{
  495. title: '姓名',
  496. dataIndex: 'name',
  497. key: 'name'
  498. }, {
  499. title: '手机号码',
  500. dataIndex: 'mobile',
  501. key: 'mobile'
  502. }],
  503. columns: [{
  504. title: '客户姓名',
  505. dataIndex: 'name',
  506. key: 'name',
  507. }, {
  508. title: '地区',
  509. dataIndex: 'locationProvince',
  510. key: 'locationProvince',
  511. },
  512. {
  513. title: '公共客户',
  514. dataIndex: 'shareType',
  515. key: 'shareType',
  516. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  517. },
  518. {
  519. title: '行业',
  520. dataIndex: 'industry',
  521. key: 'industry',
  522. },
  523. {
  524. title: '社会性质',
  525. dataIndex: 'societyTag',
  526. key: 'societyTag',
  527. render: text => { return getSocialAttribute(text) }
  528. },
  529. {
  530. title: '创建时间',
  531. dataIndex: 'createTime',
  532. key: 'createTime',
  533. },{
  534. title: '所属人',
  535. dataIndex: 'adminName',
  536. key: 'adminName',
  537. },
  538. {
  539. title: '业务认证',
  540. dataIndex: 'businessAudit',
  541. key: 'businessAudit',
  542. render: text => { return getCertification(text) }
  543. },
  544. {
  545. title: '实名认证',
  546. dataIndex: 'auditStatus',
  547. key: 'auditStatus',
  548. render: text => { return getAuditStatus(text) }
  549. },
  550. {
  551. title: '是否专家',
  552. dataIndex: 'expert',
  553. key: 'expert',
  554. render: text => { return getWhether(text) }
  555. }, {
  556. title: '是否明星',
  557. dataIndex: 'celebrity',
  558. key: 'celebrity',
  559. render: text => { return getWhether(text) }
  560. },
  561. {
  562. title: '是否会员',
  563. dataIndex: 'isMember',
  564. key: 'isMember',
  565. render: text => { return getWhether(text) }
  566. },
  567. {
  568. title: '是否咨询师',
  569. dataIndex: 'consultant',
  570. key: 'consultant',
  571. render: text => { return getWhether(text) }
  572. },
  573. {
  574. title: '是否国际',
  575. dataIndex: 'international',
  576. key: 'international',
  577. render: text => { return getWhether(text) }
  578. },
  579. {
  580. title: '会员等级',
  581. dataIndex: 'lvl',
  582. key: 'lvl',
  583. render: text => { return getLvl(text) }
  584. },
  585. {
  586. title: '会员状态',
  587. dataIndex: 'currentMemberStatus',
  588. key: 'currentMemberStatus',
  589. render: text => { return getCurrentMember(text) }
  590. },
  591. {
  592. title: '状态',
  593. dataIndex: 'status',
  594. key: 'status',
  595. render: text => { return getStatuslist(text) }
  596. },
  597. {
  598. title: '操作',
  599. dataIndex: 'abc',
  600. key: 'abc',
  601. render: (text, record, index) => {
  602. return record.shareType == '1' ? <div>
  603. <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
  604. onClick={(e)=>{e.stopPropagation(),this.changeRow(record)}}>领取<Icon /></Button>
  605. </div> : <span>无权限</span>
  606. }
  607. }
  608. ],
  609. data: [],
  610. dataman: [],
  611. dataSource: [],
  612. visitArrList: [],
  613. searchTime: [, ]
  614. };
  615. },
  616. //更多操作
  617. ModalOperation() {
  618. this.setState({
  619. visible: true,
  620. });
  621. },
  622. //tab2获取联系人详情
  623. contactLists(ids) {
  624. this.setState({
  625. loading: true
  626. });
  627. $.ajax({
  628. method: "get",
  629. dataType: "json",
  630. crossDomain: false,
  631. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  632. data: {
  633. uid: ids, //名称1
  634. },
  635. success: function(data) {
  636. let theArr = [];
  637. if(data.error.length || data.data.list == "") {
  638. if(data.error && data.error.length) {
  639. message.warning(data.error[0].message);
  640. };
  641. } else {
  642. for(let i = 0; i < data.data.length; i++) {
  643. let thisdata = data.data[i];
  644. theArr.push({
  645. id: thisdata.id,
  646. name: thisdata.name,
  647. mobile: thisdata.mobile,
  648. email: thisdata.email,
  649. qq: thisdata.qq,
  650. wechat: thisdata.wechat,
  651. depatrment: thisdata.depatrment,
  652. position: thisdata.position,
  653. });
  654. };
  655. };
  656. this.setState({
  657. contactList: theArr,
  658. });
  659. }.bind(this),
  660. }).always(function() {
  661. this.setState({
  662. loading: false
  663. });
  664. }.bind(this));
  665. },
  666. //刷新新增拜访记录刷新
  667. deletelist(e) {
  668. $.ajax({
  669. method: "get",
  670. dataType: "json",
  671. url: globalConfig.context + '/api/admin/customer/toAddFollow',
  672. data: {
  673. uid: e,
  674. },
  675. success: function(data) {
  676. let listArr = [];
  677. let thedata = data.data;
  678. if(!thedata) {
  679. if(data.error && data.error.length) {
  680. message.warning(data.error[0].message);
  681. };
  682. thedata = {};
  683. };
  684. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  685. let thisdata = data.data.userBusinessList[i];
  686. listArr.push({
  687. id: thisdata.id,
  688. businessGlossoryId: String(thisdata.businessGlossoryId),
  689. followSituation: String(thisdata.followSituation),
  690. customerStatus: String(thisdata.customerStatus),
  691. remarks: thisdata.remarks,
  692. });
  693. };
  694. this.setState({
  695. contacts: thedata.contacts,
  696. uid: thedata.uid,
  697. data: listArr,
  698. identifyName: thedata.identifyName,
  699. followTime: thedata.followTime,
  700. businessGlossoryId: thedata.businessGlossoryId,
  701. followSituation: thedata.followSituation,
  702. customerStatus: thedata.customerStatus,
  703. remarks: thedata.remarks,
  704. });
  705. }.bind(this),
  706. }).always(function() {
  707. this.setState({
  708. loading: false
  709. });
  710. }.bind(this));
  711. },
  712. //拜访记录删除
  713. visitDelet(e) {
  714. this.setState({
  715. loading: true
  716. });
  717. $.ajax({
  718. method: "get",
  719. dataType: "json",
  720. crossDomain: false,
  721. url: globalConfig.context + "/api/admin/customer/deleteFollow",
  722. data: {
  723. followId: e.followId, //删除的ID
  724. }
  725. }).done(function(data) {
  726. if(!data.error.length) {
  727. message.success('删除成功!');
  728. this.setState({
  729. loading: false,
  730. });
  731. } else {
  732. message.warning(data.error[0].message);
  733. };
  734. this.loadVisit();
  735. }.bind(this));
  736. },
  737. //进入修改拜访记录
  738. visitModify(e) {
  739. this.setState({
  740. visitModul: true,
  741. loading: true
  742. });
  743. $.ajax({
  744. method: "get",
  745. dataType: "json",
  746. url: globalConfig.context + '/api/admin/customer/toUpdateFollow',
  747. data: {
  748. followId: e,
  749. },
  750. success: function(data) {
  751. let theArr = [];
  752. let thedata = data.data;
  753. if(!thedata) {
  754. if(data.error && data.error.length) {
  755. message.warning(data.error[0].message);
  756. };
  757. thedata = {};
  758. };
  759. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  760. let thisdata = data.data.userBusinessList[i];
  761. theArr.push({
  762. id: thisdata.id,
  763. businessGlossoryId: String(thisdata.businessGlossoryId),
  764. followSituation: String(thisdata.followSituation),
  765. customerStatus: String(thisdata.customerStatus),
  766. remarks: thisdata.remarks,
  767. });
  768. };
  769. this.setState({
  770. followIds: thedata.followId,
  771. contacts: thedata.contacts,
  772. uid: thedata.uid,
  773. data: theArr,
  774. nub: thedata.contactMobile,
  775. result: thedata.result,
  776. contactType: parseInt(thedata.contactType),
  777. identifyName: thedata.identifyName,
  778. followTime: thedata.followTime,
  779. businessGlossoryId: thedata.businessGlossoryId,
  780. followSituation: thedata.followSituation,
  781. customerStatus: thedata.customerStatus,
  782. adminName: thedata.adminName,
  783. });
  784. }.bind(this),
  785. }).always(function() {
  786. this.setState({
  787. loading: false
  788. });
  789. }.bind(this));
  790. },
  791. //列表删除功能
  792. delectRow() {
  793. let deletedIds;
  794. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  795. let rowItem = this.state.selectedRows[idx];
  796. if(rowItem.id) {
  797. deletedIds = rowItem.id;
  798. };
  799. };
  800. this.setState({
  801. selectedRowKeys: [],
  802. });
  803. $.ajax({
  804. method: "get",
  805. dataType: "json",
  806. crossDomain: false,
  807. url: globalConfig.context + "/api/admin/customer/deleteCustomer",
  808. data: {
  809. uid: deletedIds, //删除的ID
  810. }
  811. }).done(function(data) {
  812. if(!data.error.length) {
  813. message.success('删除成功!');
  814. this.setState({
  815. loading: false,
  816. });
  817. } else {
  818. message.warning(data.error[0].message);
  819. };
  820. this.loadData();
  821. }.bind(this));
  822. },
  823. //领取
  824. changeRow(e) {
  825. this.setState({
  826. loading: true,
  827. selectedRowKeys: [],
  828. });
  829. $.ajax({
  830. method: "get",
  831. dataType: "json",
  832. crossDomain: false,
  833. url: globalConfig.context + "/api/admin/customer/receiveCustomer",
  834. data: {
  835. uid: e.id,
  836. }
  837. }).done(function(data) {
  838. if(!data.error.length) {
  839. message.success('已领取!');
  840. this.setState({
  841. loading: false,
  842. });
  843. } else {
  844. message.warning(data.error[0].message);
  845. };
  846. this.loadData();
  847. }.bind(this));
  848. },
  849. getHeadPortraitUrl(e) {
  850. this.setState({ headPortraitUrl: e });
  851. },
  852. getPositiveIdUrl(e) {
  853. this.setState({ positiveIdUrl: e });
  854. },
  855. getOppositeIdUrl(e) {
  856. this.setState({ oppositeIdUrl: e });
  857. },
  858. componentWillMount() {
  859. //城市
  860. let Province = [];
  861. provinceList.map(function(item) {
  862. var id = String(item.id)
  863. Province.push(
  864. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  865. )
  866. });
  867. //行业
  868. let intentionalArr = [];
  869. industry.map(function(item) {
  870. intentionalArr.push(
  871. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  872. )
  873. });
  874. //会员等级
  875. let lvlArr = [];
  876. lvl.map(function(item) {
  877. lvlArr.push(
  878. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  879. )
  880. });
  881. //会员状态customerStatus
  882. let currentMemberArr = [];
  883. currentMember.map(function(item) {
  884. currentMemberArr.push(
  885. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  886. )
  887. });
  888. //客户状态
  889. let customerStatusArr = [];
  890. customerStatus.map(function(item) {
  891. customerStatusArr.push(
  892. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  893. )
  894. });
  895. this.state.Provinces = Province;
  896. this.state.intentionalOption = intentionalArr;
  897. this.state.lvlArrOption = lvlArr;
  898. this.state.currentMemberArrOption = currentMemberArr;
  899. this.state.customerStatusArrOption = customerStatusArr;
  900. this.loadData();
  901. },
  902. search() {
  903. this.loadData();
  904. },
  905. reset() {
  906. this.state.expertSearch = undefined;
  907. this.state.celebritySearch = undefined;
  908. this.state.shareTypeSearch = undefined;
  909. this.state.typeSearch = undefined; //名称1
  910. this.state.nameSearch = '';
  911. this.state.addressSearch = [];
  912. this.state.provinceSearch = undefined;
  913. this.state.citySearch = undefined;
  914. this.state.statusSearch = undefined;
  915. this.state.contactsSearch = undefined;
  916. this.state.contactMobileSearch = undefined;
  917. this.state.industrySearch = undefined;
  918. this.state.serviceCertificationSearch = undefined;
  919. this.state.userCertificationSearch = undefined;
  920. this.state.currentMemberStatusSearch = undefined;
  921. this.state.lvlSearch = undefined;
  922. this.state.listedSearch = undefined;
  923. this.state.highTechZoneSearch = undefined;
  924. this.state.releaseDate[0] = undefined;
  925. this.state.releaseDate[1] = undefined;
  926. this.loadData();
  927. },
  928. searchSwitch() {
  929. this.setState({
  930. searchMore: !this.state.searchMore
  931. });
  932. },
  933. //详情保存函数
  934. detailsSubmint() {
  935. this.setState({
  936. modal5Visible: false,
  937. })
  938. },
  939. //整行点击
  940. tableRowClick(record, index) {
  941. this.state.RowData = record;
  942. this.detailsModalOk(record);
  943. this.loadInformation(record.id)
  944. this.httpAccount(record.id);
  945. this.loadBfVisit(1, record.id);
  946. this.BusinessList(1, record.id);
  947. this.contactLists(record.id);
  948. this.setState({
  949. selectedRowKeys: [],
  950. rowId: record.id,
  951. })
  952. },
  953. VisitRowClick(record, index) {
  954. this.state.keys = false;
  955. this.state.RowData = record;
  956. this.visitModify(record.followId);
  957. this.setState({
  958. selectedRowKeys: [],
  959. delectId: record.followId,
  960. })
  961. },
  962. //基本信息提交
  963. newSubmit(e) {
  964. e.preventDefault();
  965. if(!this.state.industry) {
  966. message.warning('请选择行业');
  967. return false;
  968. };
  969. if(!this.state.societyTag) {
  970. message.warning('请选择社会性质');
  971. return false;
  972. };
  973. if(!this.state.ProvinceCity[1]) {
  974. message.warning('请选择地区');
  975. return false;
  976. };
  977. var reg=/^[1-9]\d*$|^0$/;
  978. if(this.state.consultationPrice.length>6) {
  979. message.warning('咨询费用不超过6位数');
  980. this.refs.consul.focus();
  981. return false;
  982. };
  983. if(!reg.test(this.state.consultationPrice)){
  984. message.warning('咨询费用只能输入数字 ');
  985. this.refs.consul.focus();
  986. return false;
  987. }
  988. this.setState({
  989. selectedRowKeys: [],
  990. });
  991. this.props.form.validateFields((err, values) => {
  992. let theorgCodeUrl = [];
  993. if(this.state.headPortraitUrl.length) {
  994. let picArr = [];
  995. this.state.headPortraitUrl.map(function(item) {
  996. if ( item.response && item.response.data && item.response.data.length ){
  997. picArr.push(item.response.data);
  998. }
  999. });
  1000. theorgCodeUrl = picArr.join(",");
  1001. };
  1002. let thecompanyLogoUrl = [];
  1003. if(this.state.positiveIdUrl.length) {
  1004. let picArr = [];
  1005. this.state.positiveIdUrl.map(function(item) {
  1006. if ( item.response && item.response.data && item.response.data.length ){
  1007. picArr.push(item.response.data);
  1008. }
  1009. });
  1010. thecompanyLogoUrl = picArr.join(",");
  1011. };
  1012. let thecompanyLogoUrls = [];
  1013. if(this.state.oppositeIdUrl.length) {
  1014. let picArr = [];
  1015. this.state.oppositeIdUrl.map(function(item) {
  1016. if ( item.response && item.response.data && item.response.data.length ){
  1017. picArr.push(item.response.data);
  1018. }
  1019. });
  1020. thecompanyLogoUrls = picArr.join(",");
  1021. };
  1022. if(!err) {
  1023. let years = [];
  1024. let yearMonth = new Date(this.state.yearMonth).toLocaleDateString();
  1025. years = yearMonth.split('/');
  1026. this.setState({
  1027. loading: true
  1028. });
  1029. $.ajax({
  1030. method: "post",
  1031. dataType: "json",
  1032. url: globalConfig.context + '/api/admin/customer/updatePersonalCustomer',
  1033. data: {
  1034. id: this.state.InformationId,
  1035. uid: this.state.InformationUid,
  1036. societyTag: this.state.societyTag,
  1037. identifyName: this.state.identifyName,
  1038. industry: this.state.industry,
  1039. dateOfBirthYear: years[0], //出生年
  1040. dateOfBirthMonth: years[1], //出生月
  1041. province: (this.state.ProvinceCity)[0], //省-
  1042. city: (this.state.ProvinceCity)[1], //市
  1043. area: (this.state.ProvinceCity)[2], //区
  1044. sex: this.state.sex,
  1045. expert: this.state.expert,
  1046. celebrity: this.state.celebrity,
  1047. international: this.state.international,
  1048. fixedTel: this.state.fixedTel,
  1049. consultationPrice: this.state.consultationPrice,
  1050. qq: this.state.qq,
  1051. contacts: this.state.contacts,
  1052. contactMobile: this.state.contactMobile,
  1053. idNumber: this.state.idNumber,
  1054. email: this.state.email,
  1055. isMember: this.state.isMember,
  1056. consultant: this.state.consultant,
  1057. postalAddress: this.state.postalAddress,
  1058. introduction: this.state.introduction,
  1059. positiveIdUrl: thecompanyLogoUrl,
  1060. oppositeIdUrl: thecompanyLogoUrls,
  1061. headPortraitUrl: theorgCodeUrl,
  1062. investment: this.state.investment,
  1063. professionalTitle: this.state.professionalTitle,
  1064. workUnit: this.state.workUnit,
  1065. education: this.state.education,
  1066. graduateSchool: this.state.graduateSchool,
  1067. majorCategory: this.state.majorCategory,
  1068. qualification: this.state.qualification,
  1069. businessAudit:this.state.businessAudit,
  1070. auditStatus:this.state.auditStatus
  1071. }
  1072. }).done(function(data) {
  1073. this.setState({
  1074. loading: false
  1075. });
  1076. if(!data.error.length) {
  1077. message.success('保存成功!');
  1078. this.detailsModal()
  1079. this.loadData();
  1080. } else {
  1081. message.warning(data.error[0].message);
  1082. }
  1083. }.bind(this));
  1084. }
  1085. })
  1086. },
  1087. //点击整行查看详情
  1088. //查看基本详情基本信息
  1089. loadInformation(record) {
  1090. this.RowClick;
  1091. $.ajax({
  1092. method: "get",
  1093. dataType: "json",
  1094. crossDomain: false,
  1095. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  1096. data: {
  1097. uid: record
  1098. },
  1099. success: function(data) {
  1100. let thisData = data.data;
  1101. if(!thisData) {
  1102. if(data.error && data.error.length) {
  1103. message.warning(data.error[0].message);
  1104. };
  1105. thisData = {};
  1106. };
  1107. let ProvinceCityArr = [];
  1108. let ProvinceS = thisData.province; //getprovince
  1109. let citys = thisData.city;
  1110. let Areas = thisData.area;
  1111. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1112. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1113. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  1114. this.setState({
  1115. proviceCityArea: ProvinceS ? cityArea : '',
  1116. InformationId: thisData.id,
  1117. InformationUid: thisData.uid,
  1118. identifyName: thisData.identifyName,
  1119. listed: thisData.listed,
  1120. highTechZone: thisData.highTechZone,
  1121. consultant: thisData.consultant,
  1122. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1123. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1124. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1125. dataInformation: thisData,
  1126. idNumber: thisData.idNumber,
  1127. ProvinceCity: ProvinceCityArr,
  1128. industry: String(thisData.industry),
  1129. societyTag: thisData.societyTag,
  1130. sex: thisData.sex,
  1131. contacts: thisData.contacts,
  1132. contactMobile: thisData.contactMobile,
  1133. yearMonth: month,
  1134. postalAddress: thisData.postalAddress,
  1135. fixedTel: thisData.fixedTel,
  1136. consultationPrice: thisData.consultationPrice,
  1137. email: thisData.email,
  1138. qq: thisData.qq,
  1139. introduction: thisData.introduction,
  1140. expert: thisData.expert,
  1141. celebrity: thisData.celebrity,
  1142. international: thisData.international,
  1143. investment: thisData.investment,
  1144. professionalTitle: thisData.professionalTitle,
  1145. workUnit: thisData.workUnit,
  1146. education: thisData.education,
  1147. graduateSchool: thisData.graduateSchool,
  1148. majorCategory: thisData.majorCategory,
  1149. qualification: thisData.qualification,
  1150. businessAudit:thisData.businessAudit,
  1151. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  1152. });
  1153. }.bind(this),
  1154. }).always(function() {
  1155. this.setState({
  1156. loading: false
  1157. });
  1158. }.bind(this));
  1159. },
  1160. //tab3账户信息请求数据
  1161. httpAccount(record) {
  1162. this.RowClick;
  1163. $.ajax({
  1164. method: "get",
  1165. dataType: "json",
  1166. crossDomain: false,
  1167. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1168. data: {
  1169. uid: record
  1170. },
  1171. success: function(data) {
  1172. let thisData = data.data;
  1173. if(!thisData) {
  1174. if(data.error && data.error.length) {
  1175. message.warning(data.error[0].message);
  1176. };
  1177. thisData = {};
  1178. };
  1179. let sourcecustomer = ''
  1180. switch(String(thisData.source)) {
  1181. case '0':
  1182. sourcecustomer = '注册客户'
  1183. break;
  1184. case '1':
  1185. sourcecustomer = '录入客户'
  1186. break;
  1187. }
  1188. this.setState({
  1189. Accountuid: thisData.id,
  1190. mobile: thisData.mobile,
  1191. nickname: thisData.nickname,
  1192. email: thisData.email,
  1193. type: getcustomerTyp(String(thisData.type)),
  1194. source: sourcecustomer,
  1195. isMember: thisData.isMember,
  1196. currentMemberStatus: String(thisData.currentMemberStatus),
  1197. lvl: String(thisData.lvl),
  1198. status: String(thisData.status),
  1199. createTimes: thisData.createTimes,
  1200. });
  1201. }.bind(this),
  1202. }).always(function() {
  1203. this.setState({
  1204. loading: false
  1205. });
  1206. }.bind(this));
  1207. },
  1208. detailsModalOk(e) {
  1209. this.setState({ modal5Visible: true }); //需要一个请求数据
  1210. },
  1211. //点击消失函数
  1212. detailsModal(e) {
  1213. this.setState({
  1214. modal5Visible: false
  1215. });
  1216. },
  1217. //拜访modul函数
  1218. visitOk(e) {
  1219. this.setState({
  1220. visitModul: false
  1221. });
  1222. this.loadVisit()
  1223. },
  1224. visitCancel(e) {
  1225. this.setState({
  1226. visitModul: false
  1227. });
  1228. },
  1229. //拜访保存函数
  1230. visitSubmit(e) {
  1231. e.preventDefault();
  1232. if(this.state.contactType == undefined) {
  1233. message.warning('请选择拜访方式')
  1234. return false;
  1235. };
  1236. if(this.state.keys) {
  1237. if(this.state.lastName == undefined) {
  1238. message.warning('请选择联系人')
  1239. return false;
  1240. }
  1241. };
  1242. this.setState({
  1243. selectedRowKeys: [],
  1244. });
  1245. this.setState({
  1246. loading: true
  1247. });
  1248. let contactsId = '';
  1249. if(this.state.keys) {
  1250. let conts = this.state.lastName;
  1251. contactsId = this.state.contactsIdArr[conts].id;
  1252. }
  1253. //新增
  1254. $.ajax({
  1255. method: "post",
  1256. dataType: "json",
  1257. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1258. data: this.state.keys ? {
  1259. userBusinessList: JSON.stringify(this.state.data),
  1260. uid: this.state.uid,
  1261. ocbId: contactsId,
  1262. contactType: this.state.contactType,
  1263. result: this.state.result,
  1264. followTime: this.state.followTime,
  1265. } : {
  1266. followId: this.state.followIds,
  1267. userBusinessList: JSON.stringify(this.state.data),
  1268. uid: this.state.uid,
  1269. contactType: this.state.contactType,
  1270. result: this.state.result,
  1271. followTime: this.state.followTime,
  1272. }
  1273. }).done(function(data) {
  1274. this.setState({
  1275. loading: false
  1276. });
  1277. if(!data.error.length) {
  1278. message.success('保存成功!');
  1279. this.loadVisit(); //
  1280. this.loadData();
  1281. this.visitCancel();
  1282. } else {
  1283. message.warning(data.error[0].message);
  1284. }
  1285. }.bind(this));
  1286. },
  1287. //当选择联系人的列表变化时,则执行
  1288. hundleName(e) {
  1289. let changNub = this.state.telNum[e];
  1290. this.setState({
  1291. nub: this.state.telNum[e],
  1292. lastName: e,
  1293. });
  1294. },
  1295. //添加新业务及单位客户详情新增
  1296. addNew() {
  1297. this.state.data.push({
  1298. customerStatus: undefined,
  1299. businessGlossoryId: undefined,
  1300. followSituation: undefined,
  1301. remarks: '',
  1302. });
  1303. this.setState({
  1304. data: this.state.data
  1305. })
  1306. },
  1307. //tab2新增联系人
  1308. addcontact() {
  1309. this.state.contactList.push({
  1310. id: null,
  1311. name: '',
  1312. mobile: '',
  1313. email: '',
  1314. qq: '',
  1315. wechat: '',
  1316. depatrment: '',
  1317. position: '',
  1318. });
  1319. this.setState({
  1320. contactList: this.state.contactList
  1321. })
  1322. },
  1323. //tab5进入修改时
  1324. //进入修改时
  1325. listFollowUp(e) {
  1326. $.ajax({
  1327. method: "get",
  1328. dataType: "json",
  1329. crossDomain: false,
  1330. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1331. data: {
  1332. ufbId: e
  1333. },
  1334. success: function(data) {
  1335. let thedata = data.data;
  1336. if(!thedata) {
  1337. if(data.error && data.error.length) {
  1338. message.warning(data.error[0].message);
  1339. };
  1340. thedata = {};
  1341. };
  1342. this.setState({
  1343. businessGlossoryIds: thedata.businessGlossoryId,
  1344. followSituations: thedata.followSituation,
  1345. customerStatuss: thedata.customerStatus,
  1346. followTimes: thedata.followTime,
  1347. createTimes: thedata.createTime,
  1348. identifyNames: thedata.identifyName,
  1349. contactTypes: parseInt(thedata.contactType),
  1350. results: thedata.result,
  1351. remarkss: thedata.remarks,
  1352. adminNames: thedata.adminName,
  1353. contactss: thedata.contacts,
  1354. contactMobiles: thedata.contactMobile,
  1355. ufbId: thedata.ufbId,
  1356. followIds: thedata.followId,
  1357. });
  1358. }.bind(this),
  1359. }).always(function() {
  1360. this.setState({
  1361. loading: false
  1362. });
  1363. }.bind(this));
  1364. },
  1365. //修改密码Modul
  1366. modifyPassworld() {
  1367. this.setState({
  1368. passworldModul: true
  1369. });
  1370. },
  1371. passworldOk(e) {
  1372. this.setState({
  1373. passworldModul: false
  1374. });
  1375. },
  1376. passworldCancel(e) {
  1377. this.setState({
  1378. passworldModul: false
  1379. });
  1380. },
  1381. //修改密码保存
  1382. passworldSubmit(e) {
  1383. e.preventDefault();
  1384. this.passworldCancel()
  1385. },
  1386. //新增联系人
  1387. addcontactModulOK() {
  1388. this.setState({
  1389. addcontactModul: false
  1390. });
  1391. },
  1392. addcontactModulcancel() {
  1393. this.setState({
  1394. addcontactModul: false
  1395. });
  1396. },
  1397. //点击新增详情
  1398. newContacts() {
  1399. this.state.newsex =undefined;
  1400. this.state.newname ='';
  1401. this.state.newmobile='';
  1402. this.state.newwechat='';
  1403. this.state.newqq='';
  1404. this.state.newdepatrment='';
  1405. this.state.newposition='';
  1406. this.state.newemail='';
  1407. this.setState({
  1408. uids: this.state.uid,
  1409. addcontactModul: true
  1410. });
  1411. },
  1412. //新增联系人保存函数
  1413. submitcontactman() {
  1414. this.setState({
  1415. loading: true
  1416. })
  1417. $.ajax({
  1418. method: "post",
  1419. dataType: "json",
  1420. crossDomain: false,
  1421. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1422. data: {
  1423. uid: this.state.uids,
  1424. name: this.state.newname,
  1425. mobile: this.state.newmobile,
  1426. email: this.state.newemail,
  1427. wechat: this.state.newwechat,
  1428. depatrment: this.state.newdepatrment,
  1429. position: this.state.newposition,
  1430. sex: this.state.newsex,
  1431. qq: this.state.newqq
  1432. },
  1433. success: function(data) {
  1434. if(!data.error.length) {
  1435. this.addcontactModulOK()
  1436. this.getNewWoman(this.state.uids)
  1437. this.setState({
  1438. loading: false,
  1439. })
  1440. } else {
  1441. message.warning(data.error[0].message);
  1442. };
  1443. }.bind(this)
  1444. });
  1445. },
  1446. //获取联系人下拉框
  1447. getNewWoman(ids) {
  1448. this.state.data = []
  1449. $.ajax({
  1450. method: "get",
  1451. dataType: "json",
  1452. crossDomain: false,
  1453. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1454. data: {
  1455. uid: ids,
  1456. },
  1457. success: function(data) {
  1458. let theArr = [];
  1459. let thedata = data.data;
  1460. if(!thedata) {
  1461. if(data.error && data.error.length) {
  1462. message.warning(data.error[0].message);
  1463. };
  1464. thedata = {};
  1465. };
  1466. var telNum = [];
  1467. var contactIds = [];
  1468. thedata.map(function(item, index) {
  1469. contactIds.push(thedata[index].id);
  1470. telNum.push(thedata[index].mobile);
  1471. });
  1472. for(let item in data.data) {
  1473. let theData = data.data[item];
  1474. theArr.push(
  1475. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1476. );
  1477. };
  1478. this.setState({
  1479. contactsIdArr: thedata,
  1480. telNum: telNum,
  1481. orderStatusOption: theArr,
  1482. });
  1483. }.bind(this),
  1484. }).always(function() {
  1485. this.setState({
  1486. deletId: ids,
  1487. loading: false
  1488. });
  1489. }.bind(this));
  1490. },
  1491. //拜访意向服务列表单个删除
  1492. intentionDelet(e, index) {
  1493. if(!this.state.keys) {
  1494. let detId = this.state.followIds;
  1495. if(e.id) {
  1496. this.setState({
  1497. selectedRowKeys: [],
  1498. });
  1499. $.ajax({
  1500. method: "get",
  1501. dataType: "json",
  1502. crossDomain: false,
  1503. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1504. data: {
  1505. ufbId: e.id
  1506. }
  1507. }).done(function(data) {
  1508. if(!data.error.length) {
  1509. message.success('删除成功');
  1510. this.setState({
  1511. loading: false,
  1512. });
  1513. } else {
  1514. message.warning(data.error[0].message);
  1515. };
  1516. this.visitModify(detId);
  1517. }.bind(this));
  1518. } else {
  1519. this.visitModify(detId);
  1520. }
  1521. } else {
  1522. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1523. this.setState({
  1524. selectedRowKeys: [],
  1525. });
  1526. }
  1527. },
  1528. //tab5意向业务
  1529. //意向业务查看列表单个详情
  1530. businessIntentionDetails(e) {
  1531. $.ajax({
  1532. method: "get",
  1533. dataType: "json",
  1534. crossDomain: false,
  1535. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1536. data: {
  1537. businessId: e.businessId
  1538. },
  1539. success: function(data) {
  1540. let thisData = data.data;
  1541. if(!thisData) {
  1542. if(data.error && data.error.length) {
  1543. message.warning(data.error[0].message);
  1544. };
  1545. thisData = {};
  1546. };
  1547. this.setState({
  1548. businessGlossoryId: thisData.businessGlossoryId,
  1549. identifyName: thisData.identifyName,
  1550. uid: thisData.uid,
  1551. businessId: thisData.businessId,
  1552. followSituation: thisData.followSituation,
  1553. customerStatus: thisData.customerStatus,
  1554. createTime: thisData.createTime,
  1555. followTime: thisData.followTime,
  1556. adminName: thisData.adminName,
  1557. remarks: thisData.remarks,
  1558. result: thisData.result,
  1559. });
  1560. }.bind(this),
  1561. }).always(function() {
  1562. this.loadVisit();
  1563. this.setState({
  1564. loading: false
  1565. });
  1566. }.bind(this));
  1567. this.setState({
  1568. businessModul: true
  1569. })
  1570. },
  1571. //查看跟进记录列表
  1572. loadVisit(pageNo) {
  1573. this.setState({
  1574. loading: true
  1575. });
  1576. $.ajax({
  1577. method: "get",
  1578. dataType: "json",
  1579. crossDomain: false,
  1580. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1581. data: {
  1582. pageNo: pageNo || 1,
  1583. pageSize: this.state.paginations.pageSize,
  1584. uid: this.state.rowId, //名称1
  1585. businessGlossoryId: this.state.businessGlossoryId,
  1586. },
  1587. success: function(data) {
  1588. let theArr = [];
  1589. if(data.error.length || data.data.list == "") {
  1590. if(data.error && data.error.length) {
  1591. message.warning(data.error[0].message);
  1592. };
  1593. } else {
  1594. for(let i = 0; i < data.data.list.length; i++) {
  1595. let thisdata = data.data.list[i];
  1596. theArr.push({
  1597. followId: thisdata.followId,
  1598. followTime: thisdata.followTime,
  1599. identifyName: thisdata.identifyName,
  1600. contacts: thisdata.contacts,
  1601. contactMobile: thisdata.contactMobile,
  1602. result: thisdata.result,
  1603. ufbId: thisdata.ufbId,
  1604. adminName: thisdata.adminName,
  1605. followSituation: thisdata.followSituation,
  1606. customerStatus: thisdata.customerStatus,
  1607. contactType: thisdata.contactType
  1608. });
  1609. };
  1610. this.state.paginations.current = data.data.pageNo;
  1611. this.state.paginations.total = data.data.totalCount;
  1612. };
  1613. this.setState({
  1614. visitArrList: theArr,
  1615. paginations: this.state.paginations
  1616. });
  1617. }.bind(this),
  1618. }).always(function() {
  1619. this.setState({
  1620. loading: false
  1621. });
  1622. }.bind(this));
  1623. },
  1624. //tab3拜访记录
  1625. loadBfVisit(pageNo, ids) {
  1626. this.setState({
  1627. loading: true
  1628. });
  1629. $.ajax({
  1630. method: "get",
  1631. dataType: "json",
  1632. crossDomain: false,
  1633. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1634. data: {
  1635. pageNo: pageNo || 1,
  1636. pageSize: this.state.paginationsy.pageSize,
  1637. uid: ids ? ids : this.state.rowId, //名称1
  1638. },
  1639. success: function(data) {
  1640. let theArr = [];
  1641. if(data.error.length || data.data.list == "") {
  1642. if(data.error && data.error.length) {
  1643. message.warning(data.error[0].message);
  1644. };
  1645. } else {
  1646. for(let i = 0; i < data.data.list.length; i++) {
  1647. let thisdata = data.data.list[i];
  1648. theArr.push({
  1649. followId: thisdata.followId,
  1650. followTime: thisdata.followTime,
  1651. identifyName: thisdata.identifyName,
  1652. contacts: thisdata.contacts,
  1653. contactMobile: thisdata.contactMobile,
  1654. result: thisdata.result,
  1655. ufbId: thisdata.ufbId,
  1656. adminName: thisdata.adminName,
  1657. followSituation: thisdata.followSituation,
  1658. customerStatus: thisdata.customerStatus,
  1659. contactType: thisdata.contactType
  1660. });
  1661. };
  1662. this.state.paginationsy.current = data.data.pageNo;
  1663. this.state.paginationsy.total = data.data.totalCount;
  1664. };
  1665. this.setState({
  1666. visitArrList: theArr,
  1667. paginationsy: this.state.paginationsy
  1668. });
  1669. }.bind(this),
  1670. }).always(function() {
  1671. this.setState({
  1672. loading: false
  1673. });
  1674. }.bind(this));
  1675. },
  1676. businessIntentionOk() {
  1677. this.setState({
  1678. businessGlossoryId: '',
  1679. businessModul: false
  1680. })
  1681. },
  1682. businessIntentionCancel() {
  1683. this.setState({
  1684. businessGlossoryId: '',
  1685. businessModul: false
  1686. })
  1687. },
  1688. //业务跟进查看跟多
  1689. businessFollowDetails(e) {
  1690. this.listFollowUp(e.ufbId)
  1691. this.setState({
  1692. businessFollowModul: true
  1693. })
  1694. },
  1695. businessFollowOk(e) {
  1696. this.setState({
  1697. businessFollowModul: false
  1698. })
  1699. },
  1700. businessFollowCancel(e) {
  1701. this.setState({
  1702. businessFollowModul: false
  1703. })
  1704. },
  1705. //tab2联系人保存
  1706. contactSave() {
  1707. let err = '';
  1708. let contactArr = this.state.contactList;
  1709. contactArr.map(function(item) {
  1710. if(!item.name) {
  1711. err = '客户姓名不能为空!';
  1712. }
  1713. if(!item.mobile) {
  1714. err = '手机号码不能为空!';
  1715. }
  1716. return err;
  1717. })
  1718. if(err) {
  1719. message.warning(err)
  1720. return false;
  1721. };
  1722. $.ajax({
  1723. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1724. method: 'post',
  1725. data: {
  1726. uid: this.state.rowId,
  1727. contactList: JSON.stringify(this.state.contactList)
  1728. }
  1729. }).done(function(data) {
  1730. this.setState({
  1731. loading: false
  1732. });
  1733. if(!data.error.length) {
  1734. message.success('保存成功!');
  1735. this.detailsModal()
  1736. this.loadData();
  1737. } else {
  1738. message.warning(data.error[0].message);
  1739. }
  1740. }.bind(this));
  1741. },
  1742. //详情tab切换数据处理
  1743. callback(e) {
  1744. if(e == 1) {
  1745. this.loadInformation(this.state.rowId)
  1746. }
  1747. if(e == 2) {
  1748. this.contactLists(this.state.rowId)
  1749. }
  1750. if(e == 3) {
  1751. this.httpAccount(this.state.rowId)
  1752. }
  1753. if(e == 4) {
  1754. this.loadBfVisit(1, this.state.rowId);
  1755. }
  1756. if(e == 5) {
  1757. this.BusinessList(1, this.state.rowId);
  1758. }
  1759. if(e == 6) {
  1760. }
  1761. if(e == 7) {
  1762. }
  1763. if(e == 8) {
  1764. }
  1765. if(e == 9) {
  1766. }
  1767. },
  1768. //账户信息保存
  1769. accountSave(e) {
  1770. e.preventDefault();
  1771. this.state.data = [];
  1772. this.setState({
  1773. selectedRowKeys: [],
  1774. });
  1775. this.setState({
  1776. loading: true
  1777. });
  1778. $.ajax({
  1779. method: "post",
  1780. dataType: "json",
  1781. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1782. data: {
  1783. id: this.state.Accountuid,
  1784. mobile: this.state.mobile,
  1785. nickname: this.state.nickname,
  1786. email: this.state.email,
  1787. isMember: this.state.isMember,
  1788. currentMemberStatus: this.state.currentMemberStatus,
  1789. lvl: this.state.lvl,
  1790. status: this.state.status,
  1791. }
  1792. }).done(function(data) {
  1793. this.setState({
  1794. loading: false
  1795. });
  1796. if(!data.error.length) {
  1797. message.success('保存成功!');
  1798. this.detailsModal();
  1799. this.loadData();
  1800. } else {
  1801. message.warning(data.error[0].message);
  1802. }
  1803. }.bind(this));
  1804. },
  1805. //tab2删除
  1806. confirmDelet(e) {
  1807. this.setState({
  1808. loading: true
  1809. });
  1810. if(e.id) {
  1811. $.ajax({
  1812. method: "get",
  1813. dataType: "json",
  1814. crossDomain: false,
  1815. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1816. data: {
  1817. ocbId: e.id, //删除的ID
  1818. }
  1819. }).done(function(data) {
  1820. if(!data.error.length) {
  1821. message.success('删除成功!');
  1822. this.setState({
  1823. loading: false,
  1824. });
  1825. } else {
  1826. message.warning(data.error[0].message);
  1827. };
  1828. this.contactLists(this.state.rowId);
  1829. }.bind(this));
  1830. } else {
  1831. this.contactLists(this.state.rowId);
  1832. }
  1833. },
  1834. //tab5业务意向
  1835. BusinessList(pageNo, uids) {
  1836. this.setState({
  1837. loading: true
  1838. });
  1839. $.ajax({
  1840. method: "post",
  1841. dataType: "json",
  1842. crossDomain: false,
  1843. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1844. data: {
  1845. pageNo: pageNo || 1,
  1846. pageSize: this.state.paginationt.pageSize,
  1847. uid: uids ? uids : this.state.rowId
  1848. },
  1849. success: function(data) {
  1850. let theArr = [];
  1851. if(data.error.length || data.data.list == "") {
  1852. if(data.error && data.error.length) {
  1853. message.warning(data.error[0].message);
  1854. };
  1855. } else {
  1856. for(let i = 0; i < data.data.list.length; i++) {
  1857. let thisdata = data.data.list[i];
  1858. theArr.push({
  1859. key: i,
  1860. businessId: thisdata.businessId,
  1861. businessName: thisdata.businessName,
  1862. identifyName: thisdata.identifyName,
  1863. followSituation: thisdata.followSituation,
  1864. customerStatus: thisdata.customerStatus,
  1865. adminName: thisdata.adminName,
  1866. createTime: thisdata.createTime
  1867. });
  1868. };
  1869. this.state.paginationt.current = data.data.pageNo;
  1870. this.state.paginationt.total = data.data.totalCount;
  1871. };
  1872. this.setState({
  1873. dataBusiness: theArr,
  1874. paginationt: this.state.paginationt
  1875. });
  1876. }.bind(this),
  1877. }).always(function() {
  1878. this.setState({
  1879. loading: false
  1880. });
  1881. }.bind(this));
  1882. },
  1883. componentWillReceiveProps(nextProps) {
  1884. if(!this.props.visible && nextProps.visible) {
  1885. if(nextProps.data && nextProps.data.id) {
  1886. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1887. };
  1888. this.state.data = {};
  1889. this.state.companyLogoUrl = [];
  1890. this.state.orgCodeUrl = [];
  1891. };
  1892. },
  1893. render() {
  1894. const FormItem = Form.Item
  1895. const rowSelection = {
  1896. selectedRowKeys: this.state.selectedRowKeys,
  1897. onChange: (selectedRowKeys, selectedRows) => {
  1898. this.setState({
  1899. selectedRows: selectedRows.slice(-1),
  1900. selectedRowKeys: selectedRowKeys.slice(-1)
  1901. });
  1902. },
  1903. onSelect: (recordt, selected, selectedRows) => {
  1904. this.setState({
  1905. recordt: recordt.id
  1906. })
  1907. },
  1908. };
  1909. const rowSelections = {
  1910. selectedRowKeys: this.state.selectedRowKey,
  1911. onChange: (selectedRowKey, selectedRow) => {
  1912. this.setState({
  1913. selectedRow: selectedRow.slice(-1),
  1914. selectedRowKey: selectedRowKey.slice(-1)
  1915. });
  1916. },
  1917. onSelect: (records, selected, selectedRow) => {
  1918. this.setState({
  1919. selectedRow: selectedRow.slice(-1),
  1920. records: records.id,
  1921. })
  1922. },
  1923. };
  1924. const hasSelected = this.state.selectedRowKeys.length > 0;
  1925. const { RangePicker, MonthPicker } = DatePicker;
  1926. const { getFieldDecorator } = this.props.form;
  1927. const formItemLayout = {
  1928. labelCol: { span: 8 },
  1929. wrapperCol: { span: 14 },
  1930. };
  1931. const theInformation = this.state.dataInformation || {}
  1932. const contactsOption = "";
  1933. const formItemLayput = {
  1934. labelCol: { span: 10 },
  1935. wrapperCol: { span: 14 },
  1936. };
  1937. const contacts = this.state.contacts || '';
  1938. return(
  1939. <div className="user-content" >
  1940. <div className="content-title">
  1941. <span>我的客户</span>
  1942. </div>
  1943. <div className="user-search">
  1944. <Input placeholder="客户姓名"
  1945. value={this.state.nameSearch}
  1946. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1947. <Select placeholder="省"
  1948. style={{ width: 80 }}
  1949. value={this.state.provinceSearch}
  1950. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1951. {this.state.Provinces}
  1952. </Select>
  1953. <span style={{marginRight:'10px'}}>
  1954. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1955. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1956. </span>
  1957. <span style={{marginRight:'10px'}}>客户类型:</span>
  1958. <Select placeholder="选择客户类型"
  1959. style={{ width: 100 }}
  1960. value={this.state.shareTypeSearch}
  1961. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1962. <Select.Option value="" >所有客户</Select.Option>
  1963. <Select.Option value="1" >公共客户</Select.Option>
  1964. </Select>
  1965. <Button type="primary" onClick={this.search}>搜索</Button>
  1966. <Button onClick={this.reset}>重置</Button>
  1967. {adminData.isSuperAdmin?<Button type='danger' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1968. disabled={!hasSelected}
  1969. onClick={this.delectRow}>删除<Icon type="minus" />
  1970. </Button>:''}
  1971. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1972. <div className='clearfix' style={{marginTop:'5px'}}>
  1973. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1974. <RangePicker
  1975. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1976. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1977. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1978. <Select placeholder="客户状态"
  1979. style={{ width: 100 }}
  1980. value={this.state.statusSearch}
  1981. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1982. <Select.Option value="0" >正常</Select.Option>
  1983. <Select.Option value="2" >锁定</Select.Option>
  1984. </Select>
  1985. <Select placeholder="行业"
  1986. style={{ width: 100 }}
  1987. value={this.state.industrySearch}
  1988. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1989. {this.state.intentionalOption}
  1990. </Select>
  1991. <span>认证:</span>
  1992. <Select placeholder="业务认证"
  1993. style={{ width: 100 }}
  1994. value={this.state.serviceCertificationSearch}
  1995. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1996. <Select.Option value="0" >未认证</Select.Option>
  1997. <Select.Option value="1" >已认证</Select.Option>
  1998. </Select>
  1999. <Select placeholder="实名认证"
  2000. style={{ width: 100 }}
  2001. value={this.state.userCertificationSearch}
  2002. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2003. {
  2004. auditStatusL.map(function (item) {
  2005. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2006. })
  2007. }
  2008. </Select>
  2009. <span>专家:</span>
  2010. <Select placeholder="专家"
  2011. style={{ width: 60 }}
  2012. value={this.state.expertSearch}
  2013. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  2014. <Select.Option value="0" >否</Select.Option>
  2015. <Select.Option value="1" >是</Select.Option>
  2016. </Select>
  2017. <span>明星:</span>
  2018. <Select placeholder="明星"
  2019. style={{ width: 60 }}
  2020. value={this.state.celebritySearch}
  2021. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  2022. <Select.Option value="0" >否</Select.Option>
  2023. <Select.Option value="1" >是</Select.Option>
  2024. </Select>
  2025. <span>国际:</span>
  2026. <Select placeholder="国际"
  2027. style={{ width: 60 }}
  2028. value={this.state.internationalSearch}
  2029. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2030. <Select.Option value="0" >否</Select.Option>
  2031. <Select.Option value="1" >是</Select.Option>
  2032. </Select>
  2033. <span>会员:</span>
  2034. <Select placeholder="会员等级"
  2035. style={{ width: 100 }}
  2036. value={this.state.lvlSearch}
  2037. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2038. {this.state.lvlArrOption}
  2039. </Select>
  2040. <Select placeholder="会员状态"
  2041. style={{ width: 100 }}
  2042. value={this.state.currentMemberStatusSearch}
  2043. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2044. {this.state.currentMemberArrOption}
  2045. </Select>
  2046. </div>
  2047. </div>
  2048. </div>
  2049. <div className="patent-table">
  2050. <Spin spinning={this.state.loading}>
  2051. <Table columns={this.state.columns}
  2052. dataSource={this.state.dataSource}
  2053. rowSelection={rowSelection}
  2054. pagination={this.state.pagination}
  2055. onRowClick={this.tableRowClick}
  2056. />
  2057. </Spin>
  2058. </div>
  2059. <Modal
  2060. className="customeDetails"
  2061. title="单位客户详情"
  2062. width='1200px'
  2063. visible={this.state.modal5Visible}
  2064. onOk={this.detailsModal}
  2065. onCancel={this.detailsModal}
  2066. footer=''
  2067. >
  2068. <Tabs defaultActiveKey="1" onChange={this.callback}>
  2069. <TabPane tab="基本信息" key="1">
  2070. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2071. <Spin spinning={this.state.loading}>
  2072. <div className="clearfix" >
  2073. <FormItem className="half-item"
  2074. {...formItemLayout}
  2075. label="客户姓名"
  2076. >
  2077. <span>{theInformation.identifyName}</span>
  2078. </FormItem>
  2079. </div>
  2080. <div className="clearfix" >
  2081. <FormItem className="half-item"
  2082. {...formItemLayout}
  2083. label="行业">
  2084. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2085. onChange={(e)=>{this.setState({industry:e})}}>
  2086. {
  2087. industry.map(function (item) {
  2088. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2089. })
  2090. }
  2091. </Select>
  2092. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2093. </FormItem>
  2094. <FormItem className="half-item"
  2095. {...formItemLayout}
  2096. label="社会属性"
  2097. >
  2098. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  2099. onChange={(e)=>{this.setState({societyTag:e})}}>
  2100. {
  2101. socialAttribute.map(function (item) {
  2102. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2103. })
  2104. }
  2105. </Select>
  2106. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2107. </FormItem>
  2108. <FormItem className="half-item"
  2109. {...formItemLayout}
  2110. label="省-市-区"
  2111. >
  2112. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2113. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2114. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2115. </FormItem>
  2116. <FormItem className="half-item"
  2117. {...formItemLayout}
  2118. label="出生日期"
  2119. >
  2120. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2121. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2122. }
  2123. </FormItem>
  2124. <FormItem className="half-item"
  2125. {...formItemLayout}
  2126. label="身份证号码"
  2127. >
  2128. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  2129. this.setState({ idNumber: e.target.value })}}/>
  2130. </FormItem>
  2131. <FormItem className="half-item"
  2132. {...formItemLayout}
  2133. label="主要联系人"
  2134. >
  2135. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  2136. this.setState({ contacts: e.target.value })}}/>
  2137. </FormItem>
  2138. <FormItem className="half-item"
  2139. {...formItemLayout}
  2140. label="主要联系人号码"
  2141. >
  2142. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  2143. this.setState({ contactMobile: e.target.value })}}/>
  2144. </FormItem>
  2145. <FormItem className="half-item"
  2146. {...formItemLayout}
  2147. label="职称名字"
  2148. >
  2149. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  2150. this.setState({ professionalTitle: e.target.value })}}/>
  2151. </FormItem>
  2152. <FormItem className="half-item"
  2153. {...formItemLayout}
  2154. label="就业单位"
  2155. >
  2156. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  2157. this.setState({ workUnit: e.target.value })}}/>
  2158. </FormItem>
  2159. <FormItem className="half-item"
  2160. {...formItemLayout}
  2161. label="学历"
  2162. >
  2163. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  2164. this.setState({ education: e.target.value })}}/>
  2165. </FormItem>
  2166. <FormItem className="half-item"
  2167. {...formItemLayout}
  2168. label="毕业院校"
  2169. >
  2170. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  2171. this.setState({ graduateSchool: e.target.value })}}/>
  2172. </FormItem>
  2173. <FormItem className="half-item"
  2174. {...formItemLayout}
  2175. label="专业类别"
  2176. >
  2177. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  2178. this.setState({ majorCategory: e.target.value })}}/>
  2179. </FormItem>
  2180. <FormItem className="half-item"
  2181. {...formItemLayout}
  2182. label="职业资格"
  2183. >
  2184. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  2185. this.setState({ qualification: e.target.value })}}/>
  2186. </FormItem>
  2187. <FormItem className="half-item"
  2188. {...formItemLayout}
  2189. label="通信地址"
  2190. >
  2191. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2192. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  2193. </FormItem>
  2194. <FormItem className="half-item"
  2195. {...formItemLayout}
  2196. label="固定电话"
  2197. >
  2198. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  2199. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  2200. </FormItem>
  2201. <FormItem className="half-item"
  2202. {...formItemLayout}
  2203. label="客户QQ"
  2204. >
  2205. <Input placeholder="客户QQ" value={this.state.qq}
  2206. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  2207. </FormItem>
  2208. <FormItem className="half-item"
  2209. {...formItemLayout}
  2210. label="电子邮箱"
  2211. >
  2212. <Input placeholder="客户电子邮箱" value={this.state.email}
  2213. onChange={(e) => {this.setState({email: e.target.value })}}/>
  2214. </FormItem>
  2215. <FormItem className="half-item"
  2216. {...formItemLayout}
  2217. label="咨询费用"
  2218. >
  2219. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  2220. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  2221. </FormItem>
  2222. <div className='clearfix'>
  2223. <FormItem
  2224. labelCol={{ span: 4 }}
  2225. wrapperCol={{ span: 18 }}
  2226. label="客户简介" >
  2227. <Input type="textarea" rows={4} value={this.state.introduction}
  2228. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  2229. </FormItem>
  2230. </div>
  2231. <div className="clearfix">
  2232. <FormItem className="half-item"
  2233. {...formItemLayout}
  2234. label="实名认证"
  2235. >
  2236. <Select placeholder="实名认证"
  2237. value={this.state.auditStatus}
  2238. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2239. {
  2240. auditStatusL.map(function (item) {
  2241. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2242. })
  2243. }
  2244. </Select>
  2245. </FormItem>
  2246. <FormItem className="half-item"
  2247. {...formItemLayout}
  2248. label="业务认证"
  2249. >
  2250. <Radio.Group value={this.state.businessAudit} onChange={(e) => {
  2251. this.setState({ businessAudit: e.target.value })
  2252. }}>
  2253. <Radio value={0}>未认证</Radio>
  2254. <Radio value={1}>已认证</Radio>
  2255. </Radio.Group>
  2256. </FormItem>
  2257. <FormItem className="half-item"
  2258. {...formItemLayout}
  2259. label="投资机构"
  2260. >
  2261. <Radio.Group value={this.state.investment} onChange={(e) => {
  2262. this.setState({ investment: e.target.value })
  2263. }}>
  2264. <Radio value={0}>否</Radio>
  2265. <Radio value={1}>是</Radio>
  2266. </Radio.Group>
  2267. </FormItem>
  2268. <FormItem className="half-item"
  2269. {...formItemLayout}
  2270. label="专家"
  2271. >
  2272. <Radio.Group value={this.state.expert} onChange={(e) => {
  2273. this.setState({ expert: e.target.value })
  2274. }}>
  2275. <Radio value={0}>否</Radio>
  2276. <Radio value={1}>是</Radio>
  2277. </Radio.Group>
  2278. </FormItem>
  2279. <FormItem className="half-item"
  2280. {...formItemLayout}
  2281. label="明星"
  2282. >
  2283. <Radio.Group value={this.state.celebrity} onChange={(e) => {
  2284. this.setState({ celebrity: e.target.value })
  2285. }}>
  2286. <Radio value={0}>否</Radio>
  2287. <Radio value={1}>是</Radio>
  2288. </Radio.Group>
  2289. </FormItem>
  2290. <FormItem className="half-item"
  2291. {...formItemLayout}
  2292. label="咨询师"
  2293. >
  2294. <Radio.Group value={this.state.consultant} onChange={(e) => {
  2295. this.setState({ consultant: e.target.value })
  2296. }}>
  2297. <Radio value={0}>否</Radio>
  2298. <Radio value={1}>是</Radio>
  2299. </Radio.Group>
  2300. </FormItem>
  2301. <FormItem className="half-item"
  2302. {...formItemLayout}
  2303. label="国际化"
  2304. >
  2305. <Radio.Group value={this.state.international} onChange={(e) => {
  2306. this.setState({ international: e.target.value })
  2307. }}>
  2308. <Radio value={0}>否</Radio>
  2309. <Radio value={1}>是</Radio>
  2310. </Radio.Group>
  2311. </FormItem>
  2312. <FormItem className="half-item"
  2313. {...formItemLayout}
  2314. label="性别"
  2315. >
  2316. <Radio.Group value={this.state.sex} onChange={(e) => {
  2317. this.setState({sex:e.target.value})
  2318. }}>
  2319. <Radio value={'男'}>男</Radio>
  2320. <Radio value={'女'}>女</Radio>
  2321. </Radio.Group>
  2322. </FormItem>
  2323. </div>
  2324. <div className="clearfix pictures">
  2325. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2326. labelCol={{ span: 8 }}
  2327. wrapperCol={{ span: 10 }}
  2328. label="身份证正面" >
  2329. <PicturesWall
  2330. pictureSign="ID"
  2331. fileList={this.getPositiveIdUrl}
  2332. pictureUrl={this.state.positiveIdUrl} />
  2333. <p>建议:图片要清晰。</p>
  2334. </FormItem>
  2335. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2336. labelCol={{ span: 8 }}
  2337. wrapperCol={{ span: 10 }}
  2338. label="身份证反面" >
  2339. <PicturesWall
  2340. pictureSign="ID"
  2341. fileList={this.getOppositeIdUrl}
  2342. pictureUrl={this.state.oppositeIdUrl} />
  2343. <p>建议:图片要清晰。</p>
  2344. </FormItem>
  2345. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2346. labelCol={{ span: 8 }}
  2347. wrapperCol={{ span: 10 }}
  2348. label="客户照片" >
  2349. <PicturesWall
  2350. pictureSign="portrait"
  2351. fileList={this.getHeadPortraitUrl}
  2352. pictureUrl={this.state.headPortraitUrl} />
  2353. <p>建议:图片要清晰。</p>
  2354. </FormItem>
  2355. </div>
  2356. <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'146px',marginBottom:'30px'}}>保存</Button>
  2357. <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
  2358. </div>
  2359. </Spin>
  2360. </Form>:
  2361. <Form horizontal id="demand-form">
  2362. <Spin spinning={this.state.loading}>
  2363. <div className="clearfix" >
  2364. <FormItem className="half-item"
  2365. {...formItemLayout}
  2366. label="客户姓名"
  2367. >
  2368. <span>{theInformation.identifyName}</span>
  2369. </FormItem>
  2370. </div>
  2371. <div className="clearfix" >
  2372. <FormItem className="half-item"
  2373. {...formItemLayout}
  2374. label="行业"
  2375. >
  2376. <span>{getIndustryType(this.state.industry)}</span>
  2377. </FormItem>
  2378. <FormItem className="half-item"
  2379. {...formItemLayout}
  2380. label="社会属性"
  2381. >
  2382. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2383. </FormItem>
  2384. <FormItem className="half-item"
  2385. {...formItemLayout}
  2386. label="业务认证"
  2387. >
  2388. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  2389. </FormItem>
  2390. <FormItem className="half-item"
  2391. {...formItemLayout}
  2392. label="实名认证"
  2393. >
  2394. <span>{getAuditStatus(this.state.auditStatus)}</span>
  2395. </FormItem>
  2396. <FormItem className="half-item"
  2397. {...formItemLayout}
  2398. label="专家"
  2399. >
  2400. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  2401. </FormItem>
  2402. <FormItem className="half-item"
  2403. {...formItemLayout}
  2404. label="明星"
  2405. >
  2406. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  2407. </FormItem>
  2408. <FormItem className="half-item"
  2409. {...formItemLayout}
  2410. label="会员"
  2411. >
  2412. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  2413. </FormItem>
  2414. <FormItem className="half-item"
  2415. {...formItemLayout}
  2416. label="咨询师"
  2417. >
  2418. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  2419. </FormItem>
  2420. <FormItem className="half-item"
  2421. {...formItemLayout}
  2422. label="国际化"
  2423. >
  2424. <span>{parseInt(this.state.international)?'是':'否'}</span>
  2425. </FormItem>
  2426. <FormItem className="half-item"
  2427. {...formItemLayout}
  2428. label="性别"
  2429. >
  2430. <span>{this.state.sex}</span>
  2431. </FormItem>
  2432. <FormItem className="half-item"
  2433. {...formItemLayout}
  2434. label="出生日期"
  2435. >
  2436. <span>{this.state.yearMonth}</span>
  2437. </FormItem>
  2438. <FormItem className="half-item"
  2439. {...formItemLayout}
  2440. label="身份证号码"
  2441. >
  2442. <span>{theInformation.legalPersonIdCard}</span>
  2443. </FormItem>
  2444. <FormItem className="half-item"
  2445. {...formItemLayout}
  2446. label="主要联系人"
  2447. >
  2448. <span>{theInformation.contacts}</span>
  2449. </FormItem>
  2450. <FormItem className="half-item"
  2451. {...formItemLayout}
  2452. label="主要联系人号码"
  2453. >
  2454. <span>{theInformation.contactMobile}</span>
  2455. </FormItem>
  2456. <FormItem className="half-item"
  2457. {...formItemLayout}
  2458. label="省-市-区"
  2459. >
  2460. <span>{this.state.proviceCityArea}</span>
  2461. </FormItem>
  2462. <FormItem className="half-item"
  2463. {...formItemLayout}
  2464. label="投资机构"
  2465. >
  2466. <span>{this.state.investment?'是':'否'}</span>
  2467. </FormItem>
  2468. <FormItem className="half-item"
  2469. {...formItemLayout}
  2470. label="职称名字"
  2471. >
  2472. <span>{this.state.professionalTitle}</span>
  2473. </FormItem>
  2474. <FormItem className="half-item"
  2475. {...formItemLayout}
  2476. label="就业单位"
  2477. >
  2478. <span>{this.state.workUnit}</span>
  2479. </FormItem>
  2480. <FormItem className="half-item"
  2481. {...formItemLayout}
  2482. label="学历"
  2483. >
  2484. <span>{this.state.education}</span>
  2485. </FormItem>
  2486. <FormItem className="half-item"
  2487. {...formItemLayout}
  2488. label="毕业院校"
  2489. >
  2490. <span>{this.state.graduateSchool}</span>
  2491. </FormItem>
  2492. <FormItem className="half-item"
  2493. {...formItemLayout}
  2494. label="专业类别"
  2495. >
  2496. <span>{this.state.majorCategory}</span>
  2497. </FormItem>
  2498. <FormItem className="half-item"
  2499. {...formItemLayout}
  2500. label="职业资格"
  2501. >
  2502. <span>{this.state.qualification}</span>
  2503. </FormItem>
  2504. <FormItem className="half-item"
  2505. {...formItemLayout}
  2506. label="通信地址"
  2507. >
  2508. <span>{theInformation.postalAddress}</span>
  2509. </FormItem>
  2510. <FormItem className="half-item"
  2511. {...formItemLayout}
  2512. label="手机号码"
  2513. >
  2514. <span>{theInformation.modile}</span>
  2515. </FormItem>
  2516. <FormItem className="half-item"
  2517. {...formItemLayout}
  2518. label="客户传真"
  2519. >
  2520. <span>{theInformation.contactsFax}</span>
  2521. </FormItem>
  2522. <FormItem className="half-item"
  2523. {...formItemLayout}
  2524. label="固定电话"
  2525. >
  2526. <span>{theInformation.contactsFixedTel}</span>
  2527. </FormItem>
  2528. <FormItem className="half-item"
  2529. {...formItemLayout}
  2530. label="客户QQ"
  2531. >
  2532. <span>{theInformation.qq}</span>
  2533. </FormItem>
  2534. <FormItem className="half-item"
  2535. {...formItemLayout}
  2536. label="电子邮箱"
  2537. >
  2538. <span>{theInformation.email}</span>
  2539. </FormItem>
  2540. <FormItem className="half-item"
  2541. {...formItemLayout}
  2542. label="咨询费用"
  2543. >
  2544. <span>{theInformation.consultationPrice}</span>
  2545. </FormItem>
  2546. <div className='clearfix'>
  2547. <FormItem
  2548. labelCol={{ span: 4 }}
  2549. wrapperCol={{ span: 18 }}
  2550. label="客户简介" >
  2551. <span>{theInformation.introduction}</span>
  2552. </FormItem>
  2553. </div>
  2554. <div className="clearfix pictures">
  2555. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2556. labelCol={{ span: 8 }}
  2557. wrapperCol={{ span: 10 }}
  2558. label="身份证正面" >
  2559. <div className="clearfix">
  2560. <Upload className="demandDetailShow-upload"
  2561. listType="picture-card"
  2562. fileList={this.state.orgCodeUrl}
  2563. onPreview={(file) => {
  2564. this.setState({
  2565. previewImage: file.url || file.thumbUrl,
  2566. previewVisible: true,
  2567. });
  2568. }} >
  2569. </Upload>
  2570. <Modal maskClosable={false} footer={null}
  2571. visible={this.state.previewVisible}
  2572. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2573. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2574. </Modal>
  2575. </div>
  2576. </FormItem>
  2577. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2578. labelCol={{ span: 8 }}
  2579. wrapperCol={{ span: 10 }}
  2580. label="身份证反面" >
  2581. <div className="clearfix">
  2582. <Upload className="demandDetailShow-upload"
  2583. listType="picture-card"
  2584. fileList={this.state.companyLogoUrl}
  2585. onPreview={(file) => {
  2586. this.setState({
  2587. previewImage: file.url || file.thumbUrl,
  2588. previewVisible: true,
  2589. });
  2590. }} >
  2591. </Upload>
  2592. <Modal maskClosable={false} footer={null}
  2593. visible={this.state.previewVisible}
  2594. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2595. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2596. </Modal>
  2597. </div>
  2598. </FormItem>
  2599. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2600. labelCol={{ span: 8 }}
  2601. wrapperCol={{ span: 10 }}
  2602. label="客户照片" >
  2603. <div className="clearfix">
  2604. <Upload className="demandDetailShow-upload"
  2605. listType="picture-card"
  2606. fileList={this.state.companyLogoUrls}
  2607. onPreview={(file) => {
  2608. this.setState({
  2609. previewImage: file.url || file.thumbUrl,
  2610. previewVisible: true,
  2611. });
  2612. }} >
  2613. </Upload>
  2614. <Modal maskClosable={false} footer={null}
  2615. visible={this.state.previewVisible}
  2616. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2617. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  2618. </Modal>
  2619. </div>
  2620. </FormItem>
  2621. </div>
  2622. </div>
  2623. </Spin>
  2624. </Form>
  2625. }
  2626. </TabPane>
  2627. <TabPane tab="联系人信息" key="2">
  2628. <div className="clearfix" style={{display:adminData.isSuperAdmin?'block':'none'}}>
  2629. <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
  2630. </div>
  2631. <div className="clearfix">
  2632. <Spin spinning={this.state.loading}>
  2633. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2634. <Table
  2635. pagination={false}
  2636. columns={this.state.ContactsLists}
  2637. dataSource={this.state.contactList}
  2638. />
  2639. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2640. <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
  2641. <Button type="ghost" onClick={this.detailsModal} style={{fontSize:'18px'}}>取消</Button>
  2642. </div>
  2643. </Form>
  2644. </Spin>
  2645. </div>
  2646. </TabPane>
  2647. <TabPane tab="账户信息" key="3">
  2648. <div className="clearfix">
  2649. {adminData.isSuperAdmin?<Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2650. <Spin spinning={this.state.loading} >
  2651. <FormItem className="half-item"
  2652. {...formItemLayout}
  2653. label="注册手机号" >
  2654. <Input value={this.state.mobile} disabled
  2655. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2656. <Button onClick={this.modifyPassworld}>修改密码</Button>
  2657. </FormItem>
  2658. <FormItem className="half-item"
  2659. {...formItemLayout}
  2660. label="注册用户名" >
  2661. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  2662. </FormItem>
  2663. <FormItem className="half-item"
  2664. {...formItemLayout}
  2665. label="注册邮箱" >
  2666. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  2667. </FormItem>
  2668. <div className="clearfix">
  2669. <FormItem className="half-item"
  2670. {...formItemLayout}
  2671. label="客户来源" >
  2672. <span>{this.state.source}</span>
  2673. </FormItem>
  2674. <FormItem className="half-item"
  2675. {...formItemLayout}
  2676. label="客户类型" >
  2677. <span>{this.state.type}</span>
  2678. </FormItem>
  2679. <FormItem className="half-item"
  2680. {...formItemLayout}
  2681. label="创建时间" >
  2682. <span>{this.state.createTimes}</span>
  2683. </FormItem>
  2684. <FormItem className="half-item"
  2685. {...formItemLayout}
  2686. label="账户状态"
  2687. >
  2688. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2689. {
  2690. statuslist.map(function (item) {
  2691. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2692. })
  2693. }
  2694. </Select>
  2695. </FormItem>
  2696. </div>
  2697. <div className="clearfix">
  2698. <FormItem className="half-item"
  2699. {...formItemLayout}
  2700. label="会员"
  2701. >
  2702. <Radio.Group value={this.state.isMember} onChange={(e) => {
  2703. this.setState({ isMember: e.target.value })
  2704. }}>
  2705. <Radio value={0}>否</Radio>
  2706. <Radio value={1}>是</Radio>
  2707. </Radio.Group>
  2708. </FormItem>
  2709. <FormItem className="half-item"
  2710. {...formItemLayout}
  2711. label="会员等级"
  2712. >
  2713. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2714. {
  2715. lvl.map(function (item) {
  2716. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2717. })
  2718. }
  2719. </Select>
  2720. </FormItem>
  2721. <FormItem className="half-item"
  2722. {...formItemLayout}
  2723. label="会员状态"
  2724. >
  2725. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2726. {
  2727. currentMember.map(function (item) {
  2728. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2729. })
  2730. }
  2731. </Select>
  2732. </FormItem>
  2733. </div>
  2734. <div className="clearfix">
  2735. <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
  2736. <Button type="ghost" onClick={this.detailsModal}>取消</Button>
  2737. </div>
  2738. </Spin>
  2739. </Form> :
  2740. <Form horizontal id="demand-form" >
  2741. <Spin spinning={this.state.loading} >
  2742. <FormItem className="half-item"
  2743. {...formItemLayout}
  2744. label="注册手机号" >
  2745. <span>{this.state.mobile}</span>
  2746. </FormItem>
  2747. <FormItem className="half-item"
  2748. {...formItemLayout}
  2749. label="注册用户名" >
  2750. <span>{this.state.nickname}</span>
  2751. </FormItem>
  2752. <FormItem className="half-item"
  2753. {...formItemLayout}
  2754. label="注册邮箱" >
  2755. <span>{this.state.email}</span>
  2756. </FormItem>
  2757. <div className="clearfix">
  2758. <FormItem className="half-item"
  2759. {...formItemLayout}
  2760. label="客户来源" >
  2761. <span>{this.state.source}</span>
  2762. </FormItem>
  2763. <FormItem className="half-item"
  2764. {...formItemLayout}
  2765. label="客户类型" >
  2766. <span>{this.state.type}</span>
  2767. </FormItem>
  2768. <FormItem className="half-item"
  2769. {...formItemLayout}
  2770. label="创建时间" >
  2771. <span>{this.state.createTimes}</span>
  2772. </FormItem>
  2773. <FormItem className="half-item"
  2774. {...formItemLayout}
  2775. label="账户状态"
  2776. >
  2777. <span>{getStatuslist(this.state.status)}</span>
  2778. </FormItem>
  2779. </div>
  2780. <div className="clearfix">
  2781. <FormItem className="half-item"
  2782. {...formItemLayout}
  2783. label="专家"
  2784. >
  2785. <span>{this.state.isMembers?'是':'否'}</span>
  2786. </FormItem>
  2787. <FormItem className="half-item"
  2788. {...formItemLayout}
  2789. label="明星"
  2790. >
  2791. <span>{this.state.star?'是':'否'}</span>
  2792. </FormItem>
  2793. <FormItem className="half-item"
  2794. {...formItemLayout}
  2795. label="会员"
  2796. >
  2797. <span>{this.state.isMember?'是':'否'}</span>
  2798. </FormItem>
  2799. <FormItem className="half-item"
  2800. {...formItemLayout}
  2801. label="会员等级"
  2802. >
  2803. <span>{getLvl(this.state.lvl)}</span>
  2804. </FormItem>
  2805. <FormItem className="half-item"
  2806. {...formItemLayout}
  2807. label="会员状态"
  2808. >
  2809. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2810. </FormItem>
  2811. </div>
  2812. <FormItem className="half-item"
  2813. {...formItemLayout}
  2814. label="业务认证"
  2815. >
  2816. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2817. </FormItem>
  2818. <FormItem className="half-item"
  2819. {...formItemLayout}
  2820. label="实名认证"
  2821. >
  2822. <span>{getAuditStatus(this.state.userCertification)}</span>
  2823. </FormItem>
  2824. </Spin>
  2825. </Form>
  2826. }
  2827. </div>
  2828. </TabPane>
  2829. <TabPane tab="客户拜访" key="4">
  2830. <div className="clearfix">
  2831. <Spin spinning={this.state.loading}>
  2832. <Table
  2833. pagination={false}
  2834. columns={this.state.visitsList}
  2835. dataSource={this.state.visitArrList}
  2836. onRowClick={this.VisitRowClick}
  2837. />
  2838. </Spin>
  2839. </div>
  2840. </TabPane>
  2841. <TabPane tab="业务意向" key="5">
  2842. <div className="clearfix">
  2843. <Spin spinning={this.state.loading}>
  2844. <Table
  2845. pagination={this.state.paginationt}
  2846. columns={this.state.businessIntentionList}
  2847. dataSource={this.state.dataBusiness}
  2848. />
  2849. </Spin>
  2850. </div>
  2851. </TabPane>
  2852. <TabPane tab="业务订单" key="6">
  2853. </TabPane>
  2854. <TabPane tab="技术需求" key="7">
  2855. </TabPane>
  2856. <TabPane tab="技术成果" key="8">
  2857. </TabPane>
  2858. <TabPane tab="技术专家" key="9">
  2859. </TabPane>
  2860. </Tabs>
  2861. </Modal>
  2862. <Modal
  2863. className="customeDetails"
  2864. footer=''
  2865. title="拜访详情"
  2866. width='1000px'
  2867. visible={this.state.visitModul}
  2868. onOk={this.visitOk}
  2869. onCancel={this.visitCancel}
  2870. >
  2871. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2872. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2873. <div className="clearfix">
  2874. <FormItem className="half-item"
  2875. {...formItemLayout}
  2876. label="拜访方式" >
  2877. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2878. this.setState({ contactType: e.target.value })
  2879. }}>
  2880. <Radio value={0}>外出</Radio>
  2881. <Radio value={1}>电话</Radio>
  2882. <Radio value={2}>QQ</Radio>
  2883. <Radio value={3}>微信</Radio>
  2884. <Radio value={4}>邮箱</Radio>
  2885. </Radio.Group>
  2886. </FormItem>
  2887. <FormItem className="half-item"
  2888. {...formItemLayout}
  2889. >
  2890. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2891. </FormItem>
  2892. <div className="clearfix">
  2893. <FormItem className="half-item"
  2894. {...formItemLayout}
  2895. label="客户姓名"
  2896. >
  2897. <span>{this.state.identifyName}</span>
  2898. </FormItem>
  2899. <FormItem className="half-item"
  2900. {...formItemLayout}
  2901. label="拜访人"
  2902. >
  2903. <span>{this.state.adminName}</span>
  2904. </FormItem>
  2905. <FormItem className="half-item"
  2906. {...formItemLayout}
  2907. label="当前联系人"
  2908. >
  2909. <span>{this.state.contacts}</span>
  2910. </FormItem>
  2911. {this.state.contacts?<span></span>:
  2912. <FormItem className="half-item"
  2913. {...formItemLayout}
  2914. label="联系人"
  2915. >
  2916. <Select placeholder="选择联系人" style={{ width: 140 }}
  2917. value={this.state.lastName}
  2918. onChange={this.hundleName}>
  2919. {this.state.orderStatusOption}
  2920. </Select>
  2921. </FormItem>
  2922. }
  2923. <FormItem className="half-item"
  2924. {...formItemLayout}
  2925. label="拜访时间"
  2926. >
  2927. <span>{this.state.followTime}</span>
  2928. </FormItem>
  2929. <FormItem className="half-item"
  2930. {...formItemLayout}
  2931. label="联系电话"
  2932. >
  2933. <span>{this.state.nub}</span>
  2934. </FormItem>
  2935. </div>
  2936. <div className="clearfix">
  2937. <FormItem
  2938. labelCol={{ span: 4 }}
  2939. wrapperCol={{ span: 16 }}
  2940. label="拜访备注" >
  2941. <Input type="textarea" rows={4} value={this.state.result}
  2942. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2943. </FormItem>
  2944. </div>
  2945. <div className="clearfix">
  2946. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2947. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2948. <Spin spinning={this.state.loading}>
  2949. <Table
  2950. rowKey={record => record.id}
  2951. pagination={false}
  2952. columns={this.state.intentionList}
  2953. dataSource={this.state.data}
  2954. />
  2955. </Spin>
  2956. </div>
  2957. </div>
  2958. </div>
  2959. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 35px 35px 120px'}}>保存</Button>
  2960. <Button size="large" onClick={this.visitCancel}>取消</Button>
  2961. </Spin>:<Spin spinning={this.state.loading}>
  2962. <div className="clearfix">
  2963. <FormItem className="half-item"
  2964. {...formItemLayout}
  2965. label="拜访方式" >
  2966. <span>{getContactType(String(this.state.contactType))}</span>
  2967. </FormItem>
  2968. <div className="clearfix">
  2969. <FormItem className="half-item"
  2970. {...formItemLayout}
  2971. label="客户姓名"
  2972. >
  2973. <span>{this.state.identifyName}</span>
  2974. </FormItem>
  2975. <FormItem className="half-item"
  2976. {...formItemLayout}
  2977. label="拜访人"
  2978. >
  2979. <span>{this.state.adminName}</span>
  2980. </FormItem>
  2981. <FormItem className="half-item"
  2982. {...formItemLayout}
  2983. label="当前联系人"
  2984. >
  2985. <span>{this.state.contacts}</span>
  2986. </FormItem>
  2987. <FormItem className="half-item"
  2988. {...formItemLayout}
  2989. label="拜访时间"
  2990. >
  2991. <span>{this.state.followTime}</span>
  2992. </FormItem>
  2993. <FormItem className="half-item"
  2994. {...formItemLayout}
  2995. label="联系电话"
  2996. >
  2997. <span>{this.state.nub}</span>
  2998. </FormItem>
  2999. </div>
  3000. <div className="clearfix">
  3001. <FormItem
  3002. labelCol={{ span: 4 }}
  3003. wrapperCol={{ span: 16 }}
  3004. label="拜访备注" >
  3005. <span>{this.state.result}</span>
  3006. </FormItem>
  3007. </div>
  3008. <div className="clearfix">
  3009. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  3010. <Spin spinning={this.state.loading}>
  3011. <Table
  3012. rowKey={record => record.id}
  3013. pagination={false}
  3014. columns={this.state.intentionList}
  3015. dataSource={this.state.data}
  3016. />
  3017. </Spin>
  3018. </div>
  3019. </div>
  3020. </div>
  3021. </Spin>}
  3022. </Form>
  3023. </Modal>
  3024. <Modal
  3025. footer=''
  3026. title="修改密码"
  3027. width='600px'
  3028. visible={this.state.passworldModul}
  3029. onOk={this.passworldOk}
  3030. onCancel={this.passworldCancel}
  3031. >
  3032. <div className="clearfix">
  3033. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3034. <Spin spinning={this.state.loading}>
  3035. <div className="clearfix">
  3036. <FormItem className="half-item"
  3037. {...formItemLayout}
  3038. label="原密码" >
  3039. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  3040. </FormItem>
  3041. </div>
  3042. <div className="clearfix">
  3043. <FormItem className="half-item"
  3044. {...formItemLayout}
  3045. label="新密码" >
  3046. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  3047. </FormItem>
  3048. </div>
  3049. <div className="clearfix">
  3050. <FormItem className="half-item"
  3051. {...formItemLayout}
  3052. label="确认密码" >
  3053. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  3054. </FormItem>
  3055. </div>
  3056. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 95px'}}>保存</Button>
  3057. <Button size="large" onClick={this.passworldCancel}>取消</Button>
  3058. </Spin>
  3059. </Form>
  3060. </div>
  3061. </Modal>
  3062. <Modal
  3063. footer=''
  3064. width='800px'
  3065. title="新增联系人"
  3066. visible={this.state.addcontactModul}
  3067. onOk={this.addcontactModulOK}
  3068. onCancel={this.addcontactModulcancel}
  3069. >
  3070. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  3071. <Spin spinning={this.state.loading}>
  3072. <Row>
  3073. <FormItem
  3074. labelCol={{ span: 3 }}
  3075. wrapperCol={{ span: 14 }}
  3076. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  3077. <Radio.Group value={this.state.newsex} onChange={(e) => {
  3078. this.setState({ newsex: e.target.value })
  3079. }}>
  3080. <Radio value='男'>男</Radio>
  3081. <Radio value='女'>女</Radio>
  3082. </Radio.Group>
  3083. </FormItem>
  3084. </Row>
  3085. <Row style={{ paddingLeft:'50px' }}>
  3086. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  3087. <Col span={8}>
  3088. <Input value={this.state.newname} required="required"
  3089. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  3090. </Col>
  3091. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  3092. <Col span={8}>
  3093. <Input value={this.state.newmobile} required="required"
  3094. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  3095. </Col>
  3096. </Row>
  3097. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3098. <Col span={2}>微信:</Col>
  3099. <Col span={8}>
  3100. <Input value={this.state.newwechat}
  3101. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  3102. </Col>
  3103. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  3104. <Col span={8}>
  3105. <Input value={this.state.newqq}
  3106. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  3107. </Col>
  3108. </Row>
  3109. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  3110. <Col span={2}>部门:</Col>
  3111. <Col span={8}>
  3112. <Input value={this.state.newdepatrment}
  3113. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  3114. </Col>
  3115. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  3116. <Col span={8}>
  3117. <Input value={this.state.newposition}
  3118. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  3119. </Col>
  3120. </Row>
  3121. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3122. <Col span={2}>邮箱:</Col>
  3123. <Col span={8}>
  3124. <Input value={this.state.newemail}
  3125. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  3126. </Col>
  3127. </Row>
  3128. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  3129. <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginLeft:'60px'}}>保存</Button>
  3130. <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
  3131. </Row>
  3132. </Spin>
  3133. </Form>
  3134. </Modal>
  3135. <Modal
  3136. footer=''
  3137. title="业务意向详情"
  3138. width='1000px'
  3139. visible={this.state.businessModul}
  3140. onOk={this.businessIntentionOk}
  3141. onCancel={this.businessIntentionCancel}
  3142. >
  3143. <div className="clearfix">
  3144. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3145. <Spin spinning={this.state.loading}>
  3146. <div className="clearfix">
  3147. <FormItem className="half-item"
  3148. {...formItemLayout}
  3149. label="意向业务名称" >
  3150. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3151. </FormItem>
  3152. <FormItem className="half-item"
  3153. {...formItemLayout}
  3154. label="意向时间" >
  3155. <span>{this.state.createTime}</span>
  3156. </FormItem>
  3157. <FormItem className="half-item"
  3158. {...formItemLayout}
  3159. label="客户姓名" >
  3160. <span>{this.state.identifyName}</span>
  3161. </FormItem>
  3162. <FormItem className="half-item"
  3163. {...formItemLayout}
  3164. label="营销员" >
  3165. <span>{this.state.adminName}</span>
  3166. </FormItem>
  3167. <FormItem className="half-item"
  3168. {...formItemLayout}
  3169. label="意向业务进度" >
  3170. <span>{getfllowSituation(this.state.followSituation)}</span>
  3171. </FormItem>
  3172. <FormItem className="half-item"
  3173. {...formItemLayout}
  3174. label="业务客户状态" >
  3175. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3176. </FormItem>
  3177. </div>
  3178. <div className="clearfix">
  3179. <FormItem className="half-item"
  3180. {...formItemLayout}
  3181. label="业务意向说明" >
  3182. <span>{this.state.remarks}</span>
  3183. </FormItem>
  3184. </div>
  3185. <div className="clearfix">
  3186. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3187. <div className="clearfix">
  3188. <Spin spinning={this.state.loading}>
  3189. <Table
  3190. pagination={this.state.paginations}
  3191. columns={this.state.businessFollowList}
  3192. dataSource={this.state.visitArrList}
  3193. />
  3194. </Spin>
  3195. </div>
  3196. </div>
  3197. </Spin>
  3198. </Form>
  3199. </div>
  3200. </Modal>
  3201. <Modal
  3202. footer=''
  3203. title="业务跟进详情"
  3204. width='600px'
  3205. visible={this.state.businessFollowModul}
  3206. onOk={this.businessFollowOk}
  3207. onCancel={this.businessFollowCancel}
  3208. >
  3209. <div className="clearfix">
  3210. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3211. <Spin spinning={this.state.loading}>
  3212. <div className="clearfix">
  3213. <FormItem className="half-item"
  3214. {...formItemLayout}
  3215. label="意向业务名称" >
  3216. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3217. </FormItem>
  3218. <FormItem className="half-item"
  3219. {...formItemLayout}
  3220. label="意向时间" >
  3221. <span>{this.state.createTimes}</span>
  3222. </FormItem>
  3223. <FormItem className="half-item"
  3224. {...formItemLayout}
  3225. label="客户姓名" >
  3226. <span>{this.state.identifyNames}</span>
  3227. </FormItem>
  3228. <FormItem className="half-item"
  3229. {...formItemLayout}
  3230. label="营销员" >
  3231. <span>{this.state.adminNames}</span>
  3232. </FormItem>
  3233. <FormItem className="half-item"
  3234. {...formItemLayout}
  3235. label="意向业务进度" >
  3236. <span>{getfllowSituation(this.state.followSituations)}</span>
  3237. </FormItem>
  3238. <FormItem className="half-item"
  3239. {...formItemLayout}
  3240. label="业务客户状态" >
  3241. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3242. </FormItem>
  3243. </div>
  3244. <div className="clearfix">
  3245. <FormItem className="half-item"
  3246. {...formItemLayout}
  3247. label="业务意向说明" >
  3248. <span>{this.state.remarkss}</span>
  3249. </FormItem>
  3250. </div>
  3251. <div className="clearfix">
  3252. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3253. <FormItem className="half-item"
  3254. {...formItemLayout}
  3255. label="拜访方式" >
  3256. <span>{getContactType(this.state.contactTypes)}</span>
  3257. </FormItem>
  3258. <FormItem className="half-item"
  3259. {...formItemLayout}
  3260. label="联系人" >
  3261. <span>{this.state.contactss}</span>
  3262. </FormItem>
  3263. <FormItem className="half-item"
  3264. {...formItemLayout}
  3265. label="联系电话" >
  3266. <span>{this.state.contactMobiles}</span>
  3267. </FormItem>
  3268. <FormItem className="half-item"
  3269. {...formItemLayout}
  3270. label="拜访时间" >
  3271. <span>{this.state.followTimes}</span>
  3272. </FormItem>
  3273. <FormItem className="half-item"
  3274. {...formItemLayout}
  3275. label="拜访人" >
  3276. <span>{this.state.adminNames}</span>
  3277. </FormItem>
  3278. <div className="clearfix">
  3279. <FormItem className="half-item"
  3280. {...formItemLayout}
  3281. label="拜访备注" >
  3282. <span>{this.state.results}</span>
  3283. </FormItem>
  3284. </div>
  3285. </div>
  3286. </Spin>
  3287. </Form>
  3288. </div>
  3289. </Modal>
  3290. </div >
  3291. );
  3292. }
  3293. }));
  3294. export default QueryCustomer;