personalManages.jsx 125 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293
  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. callnub:'1',
  950. selectedRowKeys: [],
  951. rowId: record.id,
  952. })
  953. },
  954. VisitRowClick(record, index) {
  955. this.state.keys = false;
  956. this.state.RowData = record;
  957. this.visitModify(record.followId);
  958. this.setState({
  959. selectedRowKeys: [],
  960. delectId: record.followId,
  961. })
  962. },
  963. //基本信息提交
  964. newSubmit(e) {
  965. e.preventDefault();
  966. if(!this.state.industry) {
  967. message.warning('请选择行业');
  968. return false;
  969. };
  970. if(!this.state.societyTag) {
  971. message.warning('请选择社会性质');
  972. return false;
  973. };
  974. if(!this.state.ProvinceCity[1]) {
  975. message.warning('请选择地区');
  976. return false;
  977. };
  978. var reg=/^[1-9]\d*$|^0$/;
  979. if(this.state.consultationPrice){
  980. if(this.state.consultationPrice.length>6) {
  981. message.warning('咨询费用不超过6位数');
  982. this.refs.consul.focus();
  983. return false;
  984. };
  985. if(!reg.test(this.state.consultationPrice)){
  986. message.warning('咨询费用只能输入数字 ');
  987. this.refs.consul.focus();
  988. return false;
  989. }
  990. }
  991. this.setState({
  992. selectedRowKeys: [],
  993. });
  994. this.props.form.validateFields((err, values) => {
  995. let theorgCodeUrl = [];
  996. if(this.state.headPortraitUrl.length) {
  997. let picArr = [];
  998. this.state.headPortraitUrl.map(function(item) {
  999. if ( item.response && item.response.data && item.response.data.length ){
  1000. picArr.push(item.response.data);
  1001. }
  1002. });
  1003. theorgCodeUrl = picArr.join(",");
  1004. };
  1005. let thecompanyLogoUrl = [];
  1006. if(this.state.positiveIdUrl.length) {
  1007. let picArr = [];
  1008. this.state.positiveIdUrl.map(function(item) {
  1009. if ( item.response && item.response.data && item.response.data.length ){
  1010. picArr.push(item.response.data);
  1011. }
  1012. });
  1013. thecompanyLogoUrl = picArr.join(",");
  1014. };
  1015. let thecompanyLogoUrls = [];
  1016. if(this.state.oppositeIdUrl.length) {
  1017. let picArr = [];
  1018. this.state.oppositeIdUrl.map(function(item) {
  1019. if ( item.response && item.response.data && item.response.data.length ){
  1020. picArr.push(item.response.data);
  1021. }
  1022. });
  1023. thecompanyLogoUrls = picArr.join(",");
  1024. };
  1025. if(!err) {
  1026. let years = [];
  1027. let yearMonth = new Date(this.state.yearMonth).toLocaleDateString();
  1028. years = yearMonth.split('/');
  1029. this.setState({
  1030. loading: true
  1031. });
  1032. $.ajax({
  1033. method: "post",
  1034. dataType: "json",
  1035. url: globalConfig.context + '/api/admin/customer/updatePersonalCustomer',
  1036. data: {
  1037. id: this.state.InformationId,
  1038. uid: this.state.InformationUid,
  1039. societyTag: this.state.societyTag,
  1040. identifyName: this.state.identifyName,
  1041. industry: this.state.industry,
  1042. dateOfBirthYear: years[0], //出生年
  1043. dateOfBirthMonth: years[1], //出生月
  1044. province: (this.state.ProvinceCity)[0], //省-
  1045. city: (this.state.ProvinceCity)[1], //市
  1046. area: (this.state.ProvinceCity)[2], //区
  1047. sex: this.state.sex,
  1048. expert: this.state.expert,
  1049. celebrity: this.state.celebrity,
  1050. international: this.state.international,
  1051. fixedTel: this.state.fixedTel,
  1052. consultationPrice: this.state.consultationPrice,
  1053. qq: this.state.qq,
  1054. contacts: this.state.contacts,
  1055. contactMobile: this.state.contactMobile,
  1056. idNumber: this.state.idNumber,
  1057. email: this.state.email,
  1058. isMember: this.state.isMember,
  1059. consultant: this.state.consultant,
  1060. postalAddress: this.state.postalAddress,
  1061. introduction: this.state.introduction,
  1062. positiveIdUrl: thecompanyLogoUrl,
  1063. oppositeIdUrl: thecompanyLogoUrls,
  1064. headPortraitUrl: theorgCodeUrl,
  1065. investment: this.state.investment,
  1066. professionalTitle: this.state.professionalTitle,
  1067. workUnit: this.state.workUnit,
  1068. education: this.state.education,
  1069. graduateSchool: this.state.graduateSchool,
  1070. majorCategory: this.state.majorCategory,
  1071. qualification: this.state.qualification,
  1072. businessAudit:this.state.businessAudit,
  1073. auditStatus:this.state.auditStatus
  1074. }
  1075. }).done(function(data) {
  1076. this.setState({
  1077. loading: false
  1078. });
  1079. if(!data.error.length) {
  1080. message.success('保存成功!');
  1081. this.detailsModal()
  1082. this.loadData();
  1083. } else {
  1084. message.warning(data.error[0].message);
  1085. }
  1086. }.bind(this));
  1087. }
  1088. })
  1089. },
  1090. //点击整行查看详情
  1091. //查看基本详情基本信息
  1092. loadInformation(record) {
  1093. this.RowClick;
  1094. $.ajax({
  1095. method: "get",
  1096. dataType: "json",
  1097. crossDomain: false,
  1098. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  1099. data: {
  1100. uid: record
  1101. },
  1102. success: function(data) {
  1103. let thisData = data.data;
  1104. if(!thisData) {
  1105. if(data.error && data.error.length) {
  1106. message.warning(data.error[0].message);
  1107. };
  1108. thisData = {};
  1109. };
  1110. let ProvinceCityArr = [];
  1111. let ProvinceS = thisData.province; //getprovince
  1112. let citys = thisData.city;
  1113. let Areas = thisData.area;
  1114. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1115. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1116. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  1117. this.setState({
  1118. proviceCityArea: ProvinceS ? cityArea : '',
  1119. InformationId: thisData.id,
  1120. InformationUid: thisData.uid,
  1121. identifyName: thisData.identifyName,
  1122. listed: thisData.listed,
  1123. highTechZone: thisData.highTechZone,
  1124. consultant: thisData.consultant,
  1125. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1126. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1127. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1128. dataInformation: thisData,
  1129. idNumber: thisData.idNumber,
  1130. ProvinceCity: ProvinceCityArr,
  1131. industry: String(thisData.industry),
  1132. societyTag: thisData.societyTag,
  1133. sex: thisData.sex,
  1134. contacts: thisData.contacts,
  1135. contactMobile: thisData.contactMobile,
  1136. yearMonth: month,
  1137. postalAddress: thisData.postalAddress,
  1138. fixedTel: thisData.fixedTel,
  1139. consultationPrice: thisData.consultationPrice,
  1140. email: thisData.email,
  1141. qq: thisData.qq,
  1142. introduction: thisData.introduction,
  1143. expert: thisData.expert,
  1144. celebrity: thisData.celebrity,
  1145. international: thisData.international,
  1146. investment: thisData.investment,
  1147. professionalTitle: thisData.professionalTitle,
  1148. workUnit: thisData.workUnit,
  1149. education: thisData.education,
  1150. graduateSchool: thisData.graduateSchool,
  1151. majorCategory: thisData.majorCategory,
  1152. qualification: thisData.qualification,
  1153. businessAudit:thisData.businessAudit,
  1154. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  1155. });
  1156. }.bind(this),
  1157. }).always(function() {
  1158. this.setState({
  1159. loading: false
  1160. });
  1161. }.bind(this));
  1162. },
  1163. //tab3账户信息请求数据
  1164. httpAccount(record) {
  1165. this.RowClick;
  1166. $.ajax({
  1167. method: "get",
  1168. dataType: "json",
  1169. crossDomain: false,
  1170. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1171. data: {
  1172. uid: record
  1173. },
  1174. success: function(data) {
  1175. let thisData = data.data;
  1176. if(!thisData) {
  1177. if(data.error && data.error.length) {
  1178. message.warning(data.error[0].message);
  1179. };
  1180. thisData = {};
  1181. };
  1182. let sourcecustomer = ''
  1183. switch(String(thisData.source)) {
  1184. case '0':
  1185. sourcecustomer = '注册客户'
  1186. break;
  1187. case '1':
  1188. sourcecustomer = '录入客户'
  1189. break;
  1190. }
  1191. this.setState({
  1192. Accountuid: thisData.id,
  1193. mobile: thisData.mobile,
  1194. nickname: thisData.nickname,
  1195. email: thisData.email,
  1196. type: getcustomerTyp(String(thisData.type)),
  1197. source: sourcecustomer,
  1198. isMember: thisData.isMember,
  1199. currentMemberStatus: String(thisData.currentMemberStatus),
  1200. lvl: String(thisData.lvl),
  1201. status: String(thisData.status),
  1202. createTimes: thisData.createTimes,
  1203. });
  1204. }.bind(this),
  1205. }).always(function() {
  1206. this.setState({
  1207. loading: false
  1208. });
  1209. }.bind(this));
  1210. },
  1211. detailsModalOk(e) {
  1212. this.setState({ modal5Visible: true }); //需要一个请求数据
  1213. },
  1214. //点击消失函数
  1215. detailsModal(e) {
  1216. this.setState({
  1217. modal5Visible: false
  1218. });
  1219. },
  1220. //拜访modul函数
  1221. visitOk(e) {
  1222. this.setState({
  1223. visitModul: false
  1224. });
  1225. this.loadVisit()
  1226. },
  1227. visitCancel(e) {
  1228. this.setState({
  1229. visitModul: false
  1230. });
  1231. },
  1232. //拜访保存函数
  1233. visitSubmit(e) {
  1234. e.preventDefault();
  1235. if(this.state.contactType == undefined) {
  1236. message.warning('请选择拜访方式')
  1237. return false;
  1238. };
  1239. if(this.state.keys) {
  1240. if(this.state.lastName == undefined) {
  1241. message.warning('请选择联系人')
  1242. return false;
  1243. }
  1244. };
  1245. this.setState({
  1246. selectedRowKeys: [],
  1247. });
  1248. this.setState({
  1249. loading: true
  1250. });
  1251. let contactsId = '';
  1252. if(this.state.keys) {
  1253. let conts = this.state.lastName;
  1254. contactsId = this.state.contactsIdArr[conts].id;
  1255. }
  1256. //新增
  1257. $.ajax({
  1258. method: "post",
  1259. dataType: "json",
  1260. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1261. data: this.state.keys ? {
  1262. userBusinessList: JSON.stringify(this.state.data),
  1263. uid: this.state.uid,
  1264. ocbId: contactsId,
  1265. contactType: this.state.contactType,
  1266. result: this.state.result,
  1267. followTime: this.state.followTime,
  1268. } : {
  1269. followId: this.state.followIds,
  1270. userBusinessList: JSON.stringify(this.state.data),
  1271. uid: this.state.uid,
  1272. contactType: this.state.contactType,
  1273. result: this.state.result,
  1274. followTime: this.state.followTime,
  1275. }
  1276. }).done(function(data) {
  1277. this.setState({
  1278. loading: false
  1279. });
  1280. if(!data.error.length) {
  1281. message.success('保存成功!');
  1282. this.loadVisit(); //
  1283. this.loadData();
  1284. this.visitCancel();
  1285. } else {
  1286. message.warning(data.error[0].message);
  1287. }
  1288. }.bind(this));
  1289. },
  1290. //当选择联系人的列表变化时,则执行
  1291. hundleName(e) {
  1292. let changNub = this.state.telNum[e];
  1293. this.setState({
  1294. nub: this.state.telNum[e],
  1295. lastName: e,
  1296. });
  1297. },
  1298. //添加新业务及单位客户详情新增
  1299. addNew() {
  1300. this.state.data.push({
  1301. customerStatus: undefined,
  1302. businessGlossoryId: undefined,
  1303. followSituation: undefined,
  1304. remarks: '',
  1305. });
  1306. this.setState({
  1307. data: this.state.data
  1308. })
  1309. },
  1310. //tab2新增联系人
  1311. addcontact() {
  1312. this.state.contactList.push({
  1313. id: null,
  1314. name: '',
  1315. mobile: '',
  1316. email: '',
  1317. qq: '',
  1318. wechat: '',
  1319. depatrment: '',
  1320. position: '',
  1321. });
  1322. this.setState({
  1323. contactList: this.state.contactList
  1324. })
  1325. },
  1326. //tab5进入修改时
  1327. //进入修改时
  1328. listFollowUp(e) {
  1329. $.ajax({
  1330. method: "get",
  1331. dataType: "json",
  1332. crossDomain: false,
  1333. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1334. data: {
  1335. ufbId: e
  1336. },
  1337. success: function(data) {
  1338. let thedata = data.data;
  1339. if(!thedata) {
  1340. if(data.error && data.error.length) {
  1341. message.warning(data.error[0].message);
  1342. };
  1343. thedata = {};
  1344. };
  1345. this.setState({
  1346. businessGlossoryIds: thedata.businessGlossoryId,
  1347. followSituations: thedata.followSituation,
  1348. customerStatuss: thedata.customerStatus,
  1349. followTimes: thedata.followTime,
  1350. createTimes: thedata.createTime,
  1351. identifyNames: thedata.identifyName,
  1352. contactTypes: parseInt(thedata.contactType),
  1353. results: thedata.result,
  1354. remarkss: thedata.remarks,
  1355. adminNames: thedata.adminName,
  1356. contactss: thedata.contacts,
  1357. contactMobiles: thedata.contactMobile,
  1358. ufbId: thedata.ufbId,
  1359. followIds: thedata.followId,
  1360. });
  1361. }.bind(this),
  1362. }).always(function() {
  1363. this.setState({
  1364. loading: false
  1365. });
  1366. }.bind(this));
  1367. },
  1368. //修改密码Modul
  1369. modifyPassworld() {
  1370. this.setState({
  1371. passworldModul: true
  1372. });
  1373. },
  1374. passworldOk(e) {
  1375. this.setState({
  1376. passworldModul: false
  1377. });
  1378. },
  1379. passworldCancel(e) {
  1380. this.setState({
  1381. passworldModul: false
  1382. });
  1383. },
  1384. //修改密码保存
  1385. passworldSubmit(e) {
  1386. e.preventDefault();
  1387. this.passworldCancel()
  1388. },
  1389. //新增联系人
  1390. addcontactModulOK() {
  1391. this.setState({
  1392. addcontactModul: false
  1393. });
  1394. },
  1395. addcontactModulcancel() {
  1396. this.setState({
  1397. addcontactModul: false
  1398. });
  1399. },
  1400. //点击新增详情
  1401. newContacts() {
  1402. this.state.newsex =undefined;
  1403. this.state.newname ='';
  1404. this.state.newmobile='';
  1405. this.state.newwechat='';
  1406. this.state.newqq='';
  1407. this.state.newdepatrment='';
  1408. this.state.newposition='';
  1409. this.state.newemail='';
  1410. this.setState({
  1411. uids: this.state.uid,
  1412. addcontactModul: true
  1413. });
  1414. },
  1415. //新增联系人保存函数
  1416. submitcontactman() {
  1417. this.setState({
  1418. loading: true
  1419. })
  1420. $.ajax({
  1421. method: "post",
  1422. dataType: "json",
  1423. crossDomain: false,
  1424. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1425. data: {
  1426. uid: this.state.uids,
  1427. name: this.state.newname,
  1428. mobile: this.state.newmobile,
  1429. email: this.state.newemail,
  1430. wechat: this.state.newwechat,
  1431. depatrment: this.state.newdepatrment,
  1432. position: this.state.newposition,
  1433. sex: this.state.newsex,
  1434. qq: this.state.newqq
  1435. },
  1436. success: function(data) {
  1437. if(!data.error.length) {
  1438. this.addcontactModulOK()
  1439. this.getNewWoman(this.state.uids)
  1440. this.setState({
  1441. loading: false,
  1442. })
  1443. } else {
  1444. message.warning(data.error[0].message);
  1445. };
  1446. }.bind(this)
  1447. });
  1448. },
  1449. //获取联系人下拉框
  1450. getNewWoman(ids) {
  1451. this.state.data = []
  1452. $.ajax({
  1453. method: "get",
  1454. dataType: "json",
  1455. crossDomain: false,
  1456. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1457. data: {
  1458. uid: ids,
  1459. },
  1460. success: function(data) {
  1461. let theArr = [];
  1462. let thedata = data.data;
  1463. if(!thedata) {
  1464. if(data.error && data.error.length) {
  1465. message.warning(data.error[0].message);
  1466. };
  1467. thedata = {};
  1468. };
  1469. var telNum = [];
  1470. var contactIds = [];
  1471. thedata.map(function(item, index) {
  1472. contactIds.push(thedata[index].id);
  1473. telNum.push(thedata[index].mobile);
  1474. });
  1475. for(let item in data.data) {
  1476. let theData = data.data[item];
  1477. theArr.push(
  1478. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1479. );
  1480. };
  1481. this.setState({
  1482. contactsIdArr: thedata,
  1483. telNum: telNum,
  1484. orderStatusOption: theArr,
  1485. });
  1486. }.bind(this),
  1487. }).always(function() {
  1488. this.setState({
  1489. deletId: ids,
  1490. loading: false
  1491. });
  1492. }.bind(this));
  1493. },
  1494. //拜访意向服务列表单个删除
  1495. intentionDelet(e, index) {
  1496. if(!this.state.keys) {
  1497. let detId = this.state.followIds;
  1498. if(e.id) {
  1499. this.setState({
  1500. selectedRowKeys: [],
  1501. });
  1502. $.ajax({
  1503. method: "get",
  1504. dataType: "json",
  1505. crossDomain: false,
  1506. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1507. data: {
  1508. ufbId: e.id
  1509. }
  1510. }).done(function(data) {
  1511. if(!data.error.length) {
  1512. message.success('删除成功');
  1513. this.setState({
  1514. loading: false,
  1515. });
  1516. } else {
  1517. message.warning(data.error[0].message);
  1518. };
  1519. this.visitModify(detId);
  1520. }.bind(this));
  1521. } else {
  1522. this.visitModify(detId);
  1523. }
  1524. } else {
  1525. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1526. this.setState({
  1527. selectedRowKeys: [],
  1528. });
  1529. }
  1530. },
  1531. //tab5意向业务
  1532. //意向业务查看列表单个详情
  1533. businessIntentionDetails(e) {
  1534. $.ajax({
  1535. method: "get",
  1536. dataType: "json",
  1537. crossDomain: false,
  1538. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1539. data: {
  1540. businessId: e.businessId
  1541. },
  1542. success: function(data) {
  1543. let thisData = data.data;
  1544. if(!thisData) {
  1545. if(data.error && data.error.length) {
  1546. message.warning(data.error[0].message);
  1547. };
  1548. thisData = {};
  1549. };
  1550. this.setState({
  1551. businessGlossoryId: thisData.businessGlossoryId,
  1552. identifyName: thisData.identifyName,
  1553. uid: thisData.uid,
  1554. businessId: thisData.businessId,
  1555. followSituation: thisData.followSituation,
  1556. customerStatus: thisData.customerStatus,
  1557. createTime: thisData.createTime,
  1558. followTime: thisData.followTime,
  1559. adminName: thisData.adminName,
  1560. remarks: thisData.remarks,
  1561. result: thisData.result,
  1562. });
  1563. }.bind(this),
  1564. }).always(function() {
  1565. this.loadVisit();
  1566. this.setState({
  1567. loading: false
  1568. });
  1569. }.bind(this));
  1570. this.setState({
  1571. businessModul: true
  1572. })
  1573. },
  1574. //查看跟进记录列表
  1575. loadVisit(pageNo) {
  1576. this.setState({
  1577. loading: true
  1578. });
  1579. $.ajax({
  1580. method: "get",
  1581. dataType: "json",
  1582. crossDomain: false,
  1583. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1584. data: {
  1585. pageNo: pageNo || 1,
  1586. pageSize: this.state.paginations.pageSize,
  1587. uid: this.state.rowId, //名称1
  1588. businessGlossoryId: this.state.businessGlossoryId,
  1589. },
  1590. success: function(data) {
  1591. let theArr = [];
  1592. if(data.error.length || data.data.list == "") {
  1593. if(data.error && data.error.length) {
  1594. message.warning(data.error[0].message);
  1595. };
  1596. } else {
  1597. for(let i = 0; i < data.data.list.length; i++) {
  1598. let thisdata = data.data.list[i];
  1599. theArr.push({
  1600. followId: thisdata.followId,
  1601. followTime: thisdata.followTime,
  1602. identifyName: thisdata.identifyName,
  1603. contacts: thisdata.contacts,
  1604. contactMobile: thisdata.contactMobile,
  1605. result: thisdata.result,
  1606. ufbId: thisdata.ufbId,
  1607. adminName: thisdata.adminName,
  1608. followSituation: thisdata.followSituation,
  1609. customerStatus: thisdata.customerStatus,
  1610. contactType: thisdata.contactType
  1611. });
  1612. };
  1613. this.state.paginations.current = data.data.pageNo;
  1614. this.state.paginations.total = data.data.totalCount;
  1615. };
  1616. this.setState({
  1617. visitArrList: theArr,
  1618. paginations: this.state.paginations
  1619. });
  1620. }.bind(this),
  1621. }).always(function() {
  1622. this.setState({
  1623. loading: false
  1624. });
  1625. }.bind(this));
  1626. },
  1627. //tab3拜访记录
  1628. loadBfVisit(pageNo, ids) {
  1629. this.setState({
  1630. loading: true
  1631. });
  1632. $.ajax({
  1633. method: "get",
  1634. dataType: "json",
  1635. crossDomain: false,
  1636. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1637. data: {
  1638. pageNo: pageNo || 1,
  1639. pageSize: this.state.paginationsy.pageSize,
  1640. uid: ids ? ids : this.state.rowId, //名称1
  1641. },
  1642. success: function(data) {
  1643. let theArr = [];
  1644. if(data.error.length || data.data.list == "") {
  1645. if(data.error && data.error.length) {
  1646. message.warning(data.error[0].message);
  1647. };
  1648. } else {
  1649. for(let i = 0; i < data.data.list.length; i++) {
  1650. let thisdata = data.data.list[i];
  1651. theArr.push({
  1652. followId: thisdata.followId,
  1653. followTime: thisdata.followTime,
  1654. identifyName: thisdata.identifyName,
  1655. contacts: thisdata.contacts,
  1656. contactMobile: thisdata.contactMobile,
  1657. result: thisdata.result,
  1658. ufbId: thisdata.ufbId,
  1659. adminName: thisdata.adminName,
  1660. followSituation: thisdata.followSituation,
  1661. customerStatus: thisdata.customerStatus,
  1662. contactType: thisdata.contactType
  1663. });
  1664. };
  1665. this.state.paginationsy.current = data.data.pageNo;
  1666. this.state.paginationsy.total = data.data.totalCount;
  1667. };
  1668. this.setState({
  1669. visitArrList: theArr,
  1670. paginationsy: this.state.paginationsy
  1671. });
  1672. }.bind(this),
  1673. }).always(function() {
  1674. this.setState({
  1675. loading: false
  1676. });
  1677. }.bind(this));
  1678. },
  1679. businessIntentionOk() {
  1680. this.setState({
  1681. businessGlossoryId: '',
  1682. businessModul: false
  1683. })
  1684. },
  1685. businessIntentionCancel() {
  1686. this.setState({
  1687. businessGlossoryId: '',
  1688. businessModul: false
  1689. })
  1690. },
  1691. //业务跟进查看跟多
  1692. businessFollowDetails(e) {
  1693. this.listFollowUp(e.ufbId)
  1694. this.setState({
  1695. businessFollowModul: true
  1696. })
  1697. },
  1698. businessFollowOk(e) {
  1699. this.setState({
  1700. businessFollowModul: false
  1701. })
  1702. },
  1703. businessFollowCancel(e) {
  1704. this.setState({
  1705. businessFollowModul: false
  1706. })
  1707. },
  1708. //tab2联系人保存
  1709. contactSave() {
  1710. let err = '';
  1711. let contactArr = this.state.contactList;
  1712. contactArr.map(function(item) {
  1713. if(!item.name) {
  1714. err = '客户姓名不能为空!';
  1715. }
  1716. if(!item.mobile) {
  1717. err = '手机号码不能为空!';
  1718. }
  1719. return err;
  1720. })
  1721. if(err) {
  1722. message.warning(err)
  1723. return false;
  1724. };
  1725. $.ajax({
  1726. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1727. method: 'post',
  1728. data: {
  1729. uid: this.state.rowId,
  1730. contactList: JSON.stringify(this.state.contactList)
  1731. }
  1732. }).done(function(data) {
  1733. this.setState({
  1734. loading: false
  1735. });
  1736. if(!data.error.length) {
  1737. message.success('保存成功!');
  1738. this.detailsModal()
  1739. this.loadData();
  1740. } else {
  1741. message.warning(data.error[0].message);
  1742. }
  1743. }.bind(this));
  1744. },
  1745. //详情tab切换数据处理
  1746. callback(e) {
  1747. if(e == '1') {
  1748. this.loadInformation(this.state.rowId)
  1749. }
  1750. if(e == '2') {
  1751. this.contactLists(this.state.rowId)
  1752. }
  1753. if(e == '3') {
  1754. this.httpAccount(this.state.rowId)
  1755. }
  1756. if(e == '4') {
  1757. this.loadBfVisit(1, this.state.rowId);
  1758. }
  1759. if(e == '5') {
  1760. this.BusinessList(1, this.state.rowId);
  1761. }
  1762. if(e == '6') {
  1763. }
  1764. if(e == '7') {
  1765. }
  1766. if(e == '8') {
  1767. }
  1768. if(e == '9') {
  1769. }
  1770. this.setState({
  1771. callnub: e,
  1772. })
  1773. },
  1774. //账户信息保存
  1775. accountSave(e) {
  1776. e.preventDefault();
  1777. this.state.data = [];
  1778. this.setState({
  1779. selectedRowKeys: [],
  1780. });
  1781. this.setState({
  1782. loading: true
  1783. });
  1784. $.ajax({
  1785. method: "post",
  1786. dataType: "json",
  1787. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1788. data: {
  1789. id: this.state.Accountuid,
  1790. mobile: this.state.mobile,
  1791. nickname: this.state.nickname,
  1792. email: this.state.email,
  1793. isMember: this.state.isMember,
  1794. currentMemberStatus: this.state.currentMemberStatus,
  1795. lvl: this.state.lvl,
  1796. status: this.state.status,
  1797. }
  1798. }).done(function(data) {
  1799. this.setState({
  1800. loading: false
  1801. });
  1802. if(!data.error.length) {
  1803. message.success('保存成功!');
  1804. this.detailsModal();
  1805. this.loadData();
  1806. } else {
  1807. message.warning(data.error[0].message);
  1808. }
  1809. }.bind(this));
  1810. },
  1811. //tab2删除
  1812. confirmDelet(e) {
  1813. this.setState({
  1814. loading: true
  1815. });
  1816. if(e.id) {
  1817. $.ajax({
  1818. method: "get",
  1819. dataType: "json",
  1820. crossDomain: false,
  1821. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1822. data: {
  1823. ocbId: e.id, //删除的ID
  1824. }
  1825. }).done(function(data) {
  1826. if(!data.error.length) {
  1827. message.success('删除成功!');
  1828. this.setState({
  1829. loading: false,
  1830. });
  1831. } else {
  1832. message.warning(data.error[0].message);
  1833. };
  1834. this.contactLists(this.state.rowId);
  1835. }.bind(this));
  1836. } else {
  1837. this.contactLists(this.state.rowId);
  1838. }
  1839. },
  1840. //tab5业务意向
  1841. BusinessList(pageNo, uids) {
  1842. this.setState({
  1843. loading: true
  1844. });
  1845. $.ajax({
  1846. method: "post",
  1847. dataType: "json",
  1848. crossDomain: false,
  1849. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1850. data: {
  1851. pageNo: pageNo || 1,
  1852. pageSize: this.state.paginationt.pageSize,
  1853. uid: uids ? uids : this.state.rowId
  1854. },
  1855. success: function(data) {
  1856. let theArr = [];
  1857. if(data.error.length || data.data.list == "") {
  1858. if(data.error && data.error.length) {
  1859. message.warning(data.error[0].message);
  1860. };
  1861. } else {
  1862. for(let i = 0; i < data.data.list.length; i++) {
  1863. let thisdata = data.data.list[i];
  1864. theArr.push({
  1865. key: i,
  1866. businessId: thisdata.businessId,
  1867. businessName: thisdata.businessName,
  1868. identifyName: thisdata.identifyName,
  1869. followSituation: thisdata.followSituation,
  1870. customerStatus: thisdata.customerStatus,
  1871. adminName: thisdata.adminName,
  1872. createTime: thisdata.createTime
  1873. });
  1874. };
  1875. this.state.paginationt.current = data.data.pageNo;
  1876. this.state.paginationt.total = data.data.totalCount;
  1877. };
  1878. this.setState({
  1879. dataBusiness: theArr,
  1880. paginationt: this.state.paginationt
  1881. });
  1882. }.bind(this),
  1883. }).always(function() {
  1884. this.setState({
  1885. loading: false
  1886. });
  1887. }.bind(this));
  1888. },
  1889. componentWillReceiveProps(nextProps) {
  1890. if(!this.props.visible && nextProps.visible) {
  1891. if(nextProps.data && nextProps.data.id) {
  1892. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1893. };
  1894. this.state.data = {};
  1895. this.state.companyLogoUrl = [];
  1896. this.state.orgCodeUrl = [];
  1897. };
  1898. },
  1899. render() {
  1900. const FormItem = Form.Item
  1901. const rowSelection = {
  1902. selectedRowKeys: this.state.selectedRowKeys,
  1903. onChange: (selectedRowKeys, selectedRows) => {
  1904. this.setState({
  1905. selectedRows: selectedRows.slice(-1),
  1906. selectedRowKeys: selectedRowKeys.slice(-1)
  1907. });
  1908. },
  1909. onSelect: (recordt, selected, selectedRows) => {
  1910. this.setState({
  1911. recordt: recordt.id
  1912. })
  1913. },
  1914. };
  1915. const rowSelections = {
  1916. selectedRowKeys: this.state.selectedRowKey,
  1917. onChange: (selectedRowKey, selectedRow) => {
  1918. this.setState({
  1919. selectedRow: selectedRow.slice(-1),
  1920. selectedRowKey: selectedRowKey.slice(-1)
  1921. });
  1922. },
  1923. onSelect: (records, selected, selectedRow) => {
  1924. this.setState({
  1925. selectedRow: selectedRow.slice(-1),
  1926. records: records.id,
  1927. })
  1928. },
  1929. };
  1930. const hasSelected = this.state.selectedRowKeys.length > 0;
  1931. const { RangePicker, MonthPicker } = DatePicker;
  1932. const { getFieldDecorator } = this.props.form;
  1933. const formItemLayout = {
  1934. labelCol: { span: 8 },
  1935. wrapperCol: { span: 14 },
  1936. };
  1937. const theInformation = this.state.dataInformation || {}
  1938. const contactsOption = "";
  1939. const formItemLayput = {
  1940. labelCol: { span: 10 },
  1941. wrapperCol: { span: 14 },
  1942. };
  1943. const contacts = this.state.contacts || '';
  1944. return(
  1945. <div className="user-content" >
  1946. <div className="content-title">
  1947. <span>个人客户管理</span>
  1948. </div>
  1949. <div className="user-search">
  1950. <Input placeholder="客户姓名"
  1951. value={this.state.nameSearch}
  1952. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1953. <Select placeholder="省"
  1954. style={{ width: 80 }}
  1955. value={this.state.provinceSearch}
  1956. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1957. {this.state.Provinces}
  1958. </Select>
  1959. <span style={{marginRight:'10px'}}>
  1960. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1961. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1962. </span>
  1963. <span style={{marginRight:'10px'}}>客户类型:</span>
  1964. <Select placeholder="选择客户类型"
  1965. style={{ width: 100 }}
  1966. value={this.state.shareTypeSearch}
  1967. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1968. <Select.Option value="" >所有客户</Select.Option>
  1969. <Select.Option value="1" >公共客户</Select.Option>
  1970. </Select>
  1971. <Button type="primary" onClick={this.search}>搜索</Button>
  1972. <Button onClick={this.reset}>重置</Button>
  1973. {adminData.isSuperAdmin?<Button type='danger' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1974. disabled={!hasSelected}
  1975. onClick={this.delectRow}>删除<Icon type="minus" />
  1976. </Button>:''}
  1977. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1978. <div className='clearfix' style={{marginTop:'5px'}}>
  1979. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1980. <RangePicker
  1981. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1982. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1983. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1984. <Select placeholder="客户状态"
  1985. style={{ width: 100 }}
  1986. value={this.state.statusSearch}
  1987. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1988. <Select.Option value="0" >正常</Select.Option>
  1989. <Select.Option value="2" >锁定</Select.Option>
  1990. </Select>
  1991. <Select placeholder="行业"
  1992. style={{ width: 100 }}
  1993. value={this.state.industrySearch}
  1994. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1995. {this.state.intentionalOption}
  1996. </Select>
  1997. <span>认证:</span>
  1998. <Select placeholder="业务认证"
  1999. style={{ width: 100 }}
  2000. value={this.state.serviceCertificationSearch}
  2001. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2002. <Select.Option value="0" >未认证</Select.Option>
  2003. <Select.Option value="1" >已认证</Select.Option>
  2004. </Select>
  2005. <Select placeholder="实名认证"
  2006. style={{ width: 100 }}
  2007. value={this.state.userCertificationSearch}
  2008. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2009. {
  2010. auditStatusL.map(function (item) {
  2011. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2012. })
  2013. }
  2014. </Select>
  2015. <span>专家:</span>
  2016. <Select placeholder="专家"
  2017. style={{ width: 60 }}
  2018. value={this.state.expertSearch}
  2019. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  2020. <Select.Option value="0" >否</Select.Option>
  2021. <Select.Option value="1" >是</Select.Option>
  2022. </Select>
  2023. <span>明星:</span>
  2024. <Select placeholder="明星"
  2025. style={{ width: 60 }}
  2026. value={this.state.celebritySearch}
  2027. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  2028. <Select.Option value="0" >否</Select.Option>
  2029. <Select.Option value="1" >是</Select.Option>
  2030. </Select>
  2031. <span>国际:</span>
  2032. <Select placeholder="国际"
  2033. style={{ width: 60 }}
  2034. value={this.state.internationalSearch}
  2035. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2036. <Select.Option value="0" >否</Select.Option>
  2037. <Select.Option value="1" >是</Select.Option>
  2038. </Select>
  2039. <span>会员:</span>
  2040. <Select placeholder="会员等级"
  2041. style={{ width: 100 }}
  2042. value={this.state.lvlSearch}
  2043. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2044. {this.state.lvlArrOption}
  2045. </Select>
  2046. <Select placeholder="会员状态"
  2047. style={{ width: 100 }}
  2048. value={this.state.currentMemberStatusSearch}
  2049. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2050. {this.state.currentMemberArrOption}
  2051. </Select>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <div className="patent-table">
  2056. <Spin spinning={this.state.loading}>
  2057. <Table columns={this.state.columns}
  2058. dataSource={this.state.dataSource}
  2059. rowSelection={rowSelection}
  2060. pagination={this.state.pagination}
  2061. onRowClick={this.tableRowClick}
  2062. />
  2063. </Spin>
  2064. </div>
  2065. <Modal
  2066. className="customeDetails"
  2067. title="个人客户详情"
  2068. width='1200px'
  2069. visible={this.state.modal5Visible}
  2070. onOk={this.detailsModal}
  2071. onCancel={this.detailsModal}
  2072. footer=''
  2073. >
  2074. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  2075. <TabPane tab="基本信息" key="1">
  2076. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2077. <Spin spinning={this.state.loading}>
  2078. <div className="clearfix" >
  2079. <FormItem className="half-item"
  2080. {...formItemLayout}
  2081. label="客户姓名"
  2082. >
  2083. <span>{theInformation.identifyName}</span>
  2084. </FormItem>
  2085. </div>
  2086. <div className="clearfix" >
  2087. <FormItem className="half-item"
  2088. {...formItemLayout}
  2089. label="行业">
  2090. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2091. onChange={(e)=>{this.setState({industry:e})}}>
  2092. {
  2093. industry.map(function (item) {
  2094. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2095. })
  2096. }
  2097. </Select>
  2098. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2099. </FormItem>
  2100. <FormItem className="half-item"
  2101. {...formItemLayout}
  2102. label="社会属性"
  2103. >
  2104. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  2105. onChange={(e)=>{this.setState({societyTag:e})}}>
  2106. {
  2107. socialAttribute.map(function (item) {
  2108. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2109. })
  2110. }
  2111. </Select>
  2112. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2113. </FormItem>
  2114. <FormItem className="half-item"
  2115. {...formItemLayout}
  2116. label="省-市-区"
  2117. >
  2118. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2119. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2120. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2121. </FormItem>
  2122. <FormItem className="half-item"
  2123. {...formItemLayout}
  2124. label="出生日期"
  2125. >
  2126. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2127. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2128. }
  2129. </FormItem>
  2130. <FormItem className="half-item"
  2131. {...formItemLayout}
  2132. label="身份证号码"
  2133. >
  2134. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  2135. this.setState({ idNumber: e.target.value })}}/>
  2136. </FormItem>
  2137. <FormItem className="half-item"
  2138. {...formItemLayout}
  2139. label="主要联系人"
  2140. >
  2141. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  2142. this.setState({ contacts: e.target.value })}}/>
  2143. </FormItem>
  2144. <FormItem className="half-item"
  2145. {...formItemLayout}
  2146. label="主要联系人号码"
  2147. >
  2148. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  2149. this.setState({ contactMobile: e.target.value })}}/>
  2150. </FormItem>
  2151. <FormItem className="half-item"
  2152. {...formItemLayout}
  2153. label="职称名字"
  2154. >
  2155. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  2156. this.setState({ professionalTitle: e.target.value })}}/>
  2157. </FormItem>
  2158. <FormItem className="half-item"
  2159. {...formItemLayout}
  2160. label="就业单位"
  2161. >
  2162. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  2163. this.setState({ workUnit: e.target.value })}}/>
  2164. </FormItem>
  2165. <FormItem className="half-item"
  2166. {...formItemLayout}
  2167. label="学历"
  2168. >
  2169. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  2170. this.setState({ education: e.target.value })}}/>
  2171. </FormItem>
  2172. <FormItem className="half-item"
  2173. {...formItemLayout}
  2174. label="毕业院校"
  2175. >
  2176. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  2177. this.setState({ graduateSchool: e.target.value })}}/>
  2178. </FormItem>
  2179. <FormItem className="half-item"
  2180. {...formItemLayout}
  2181. label="专业类别"
  2182. >
  2183. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  2184. this.setState({ majorCategory: e.target.value })}}/>
  2185. </FormItem>
  2186. <FormItem className="half-item"
  2187. {...formItemLayout}
  2188. label="职业资格"
  2189. >
  2190. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  2191. this.setState({ qualification: e.target.value })}}/>
  2192. </FormItem>
  2193. <FormItem className="half-item"
  2194. {...formItemLayout}
  2195. label="通信地址"
  2196. >
  2197. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2198. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  2199. </FormItem>
  2200. <FormItem className="half-item"
  2201. {...formItemLayout}
  2202. label="固定电话"
  2203. >
  2204. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  2205. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  2206. </FormItem>
  2207. <FormItem className="half-item"
  2208. {...formItemLayout}
  2209. label="客户QQ"
  2210. >
  2211. <Input placeholder="客户QQ" value={this.state.qq}
  2212. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  2213. </FormItem>
  2214. <FormItem className="half-item"
  2215. {...formItemLayout}
  2216. label="电子邮箱"
  2217. >
  2218. <Input placeholder="客户电子邮箱" value={this.state.email}
  2219. onChange={(e) => {this.setState({email: e.target.value })}}/>
  2220. </FormItem>
  2221. <FormItem className="half-item"
  2222. {...formItemLayout}
  2223. label="咨询费用"
  2224. >
  2225. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  2226. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  2227. </FormItem>
  2228. <FormItem className="half-item"
  2229. {...formItemLayout}
  2230. label="实名认证"
  2231. >
  2232. <Select placeholder="实名认证"
  2233. value={this.state.auditStatus}
  2234. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2235. {
  2236. auditStatusL.map(function (item) {
  2237. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2238. })
  2239. }
  2240. </Select>
  2241. </FormItem>
  2242. <div className='clearfix'>
  2243. <FormItem
  2244. labelCol={{ span: 4 }}
  2245. wrapperCol={{ span: 18 }}
  2246. label="客户简介" >
  2247. <Input type="textarea" rows={4} value={this.state.introduction}
  2248. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  2249. </FormItem>
  2250. </div>
  2251. <div className="clearfix">
  2252. <FormItem className="half-item"
  2253. {...formItemLayout}
  2254. label="业务认证"
  2255. >
  2256. <Radio.Group value={this.state.businessAudit} onChange={(e) => {
  2257. this.setState({ businessAudit: e.target.value })
  2258. }}>
  2259. <Radio value={0}>未认证</Radio>
  2260. <Radio value={1}>已认证</Radio>
  2261. </Radio.Group>
  2262. </FormItem>
  2263. <FormItem className="half-item"
  2264. {...formItemLayout}
  2265. label="国际化"
  2266. >
  2267. <Radio.Group value={this.state.international} onChange={(e) => {
  2268. this.setState({ international: e.target.value })
  2269. }}>
  2270. <Radio value={0}>否</Radio>
  2271. <Radio value={1}>是</Radio>
  2272. </Radio.Group>
  2273. </FormItem>
  2274. <FormItem className="half-item"
  2275. {...formItemLayout}
  2276. label="性别"
  2277. >
  2278. <Radio.Group value={this.state.sex} onChange={(e) => {
  2279. this.setState({sex:e.target.value})
  2280. }}>
  2281. <Radio value={'男'}>男</Radio>
  2282. <Radio value={'女'}>女</Radio>
  2283. </Radio.Group>
  2284. </FormItem>
  2285. </div>
  2286. <div className="clearfix pictures">
  2287. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2288. labelCol={{ span: 8 }}
  2289. wrapperCol={{ span: 10 }}
  2290. label="身份证正面" >
  2291. <PicturesWall
  2292. pictureSign="ID"
  2293. fileList={this.getPositiveIdUrl}
  2294. pictureUrl={this.state.positiveIdUrl} />
  2295. <p>建议:图片要清晰。</p>
  2296. </FormItem>
  2297. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2298. labelCol={{ span: 8 }}
  2299. wrapperCol={{ span: 10 }}
  2300. label="身份证反面" >
  2301. <PicturesWall
  2302. pictureSign="ID"
  2303. fileList={this.getOppositeIdUrl}
  2304. pictureUrl={this.state.oppositeIdUrl} />
  2305. <p>建议:图片要清晰。</p>
  2306. </FormItem>
  2307. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2308. labelCol={{ span: 8 }}
  2309. wrapperCol={{ span: 10 }}
  2310. label="客户照片" >
  2311. <PicturesWall
  2312. pictureSign="portrait"
  2313. fileList={this.getHeadPortraitUrl}
  2314. pictureUrl={this.state.headPortraitUrl} />
  2315. <p>建议:图片要清晰。</p>
  2316. </FormItem>
  2317. </div>
  2318. <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'146px',marginBottom:'30px'}}>保存</Button>
  2319. <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
  2320. </div>
  2321. </Spin>
  2322. </Form>:
  2323. <Form horizontal id="demand-form">
  2324. <Spin spinning={this.state.loading}>
  2325. <div className="clearfix" >
  2326. <FormItem className="half-item"
  2327. {...formItemLayout}
  2328. label="客户姓名"
  2329. >
  2330. <span>{theInformation.identifyName}</span>
  2331. </FormItem>
  2332. </div>
  2333. <div className="clearfix" >
  2334. <FormItem className="half-item"
  2335. {...formItemLayout}
  2336. label="行业"
  2337. >
  2338. <span>{getIndustryType(this.state.industry)}</span>
  2339. </FormItem>
  2340. <FormItem className="half-item"
  2341. {...formItemLayout}
  2342. label="社会属性"
  2343. >
  2344. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2345. </FormItem>
  2346. <FormItem className="half-item"
  2347. {...formItemLayout}
  2348. label="业务认证"
  2349. >
  2350. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  2351. </FormItem>
  2352. <FormItem className="half-item"
  2353. {...formItemLayout}
  2354. label="实名认证"
  2355. >
  2356. <span>{getAuditStatus(this.state.auditStatus)}</span>
  2357. </FormItem>
  2358. <FormItem className="half-item"
  2359. {...formItemLayout}
  2360. label="专家"
  2361. >
  2362. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  2363. </FormItem>
  2364. <FormItem className="half-item"
  2365. {...formItemLayout}
  2366. label="明星"
  2367. >
  2368. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  2369. </FormItem>
  2370. <FormItem className="half-item"
  2371. {...formItemLayout}
  2372. label="会员"
  2373. >
  2374. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  2375. </FormItem>
  2376. <FormItem className="half-item"
  2377. {...formItemLayout}
  2378. label="咨询师"
  2379. >
  2380. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  2381. </FormItem>
  2382. <FormItem className="half-item"
  2383. {...formItemLayout}
  2384. label="国际化"
  2385. >
  2386. <span>{parseInt(this.state.international)?'是':'否'}</span>
  2387. </FormItem>
  2388. <FormItem className="half-item"
  2389. {...formItemLayout}
  2390. label="性别"
  2391. >
  2392. <span>{this.state.sex}</span>
  2393. </FormItem>
  2394. <FormItem className="half-item"
  2395. {...formItemLayout}
  2396. label="出生日期"
  2397. >
  2398. <span>{this.state.yearMonth}</span>
  2399. </FormItem>
  2400. <FormItem className="half-item"
  2401. {...formItemLayout}
  2402. label="身份证号码"
  2403. >
  2404. <span>{theInformation.legalPersonIdCard}</span>
  2405. </FormItem>
  2406. <FormItem className="half-item"
  2407. {...formItemLayout}
  2408. label="主要联系人"
  2409. >
  2410. <span>{theInformation.contacts}</span>
  2411. </FormItem>
  2412. <FormItem className="half-item"
  2413. {...formItemLayout}
  2414. label="主要联系人号码"
  2415. >
  2416. <span>{theInformation.contactMobile}</span>
  2417. </FormItem>
  2418. <FormItem className="half-item"
  2419. {...formItemLayout}
  2420. label="省-市-区"
  2421. >
  2422. <span>{this.state.proviceCityArea}</span>
  2423. </FormItem>
  2424. <FormItem className="half-item"
  2425. {...formItemLayout}
  2426. label="投资机构"
  2427. >
  2428. <span>{this.state.investment?'是':'否'}</span>
  2429. </FormItem>
  2430. <FormItem className="half-item"
  2431. {...formItemLayout}
  2432. label="职称名字"
  2433. >
  2434. <span>{this.state.professionalTitle}</span>
  2435. </FormItem>
  2436. <FormItem className="half-item"
  2437. {...formItemLayout}
  2438. label="就业单位"
  2439. >
  2440. <span>{this.state.workUnit}</span>
  2441. </FormItem>
  2442. <FormItem className="half-item"
  2443. {...formItemLayout}
  2444. label="学历"
  2445. >
  2446. <span>{this.state.education}</span>
  2447. </FormItem>
  2448. <FormItem className="half-item"
  2449. {...formItemLayout}
  2450. label="毕业院校"
  2451. >
  2452. <span>{this.state.graduateSchool}</span>
  2453. </FormItem>
  2454. <FormItem className="half-item"
  2455. {...formItemLayout}
  2456. label="专业类别"
  2457. >
  2458. <span>{this.state.majorCategory}</span>
  2459. </FormItem>
  2460. <FormItem className="half-item"
  2461. {...formItemLayout}
  2462. label="职业资格"
  2463. >
  2464. <span>{this.state.qualification}</span>
  2465. </FormItem>
  2466. <FormItem className="half-item"
  2467. {...formItemLayout}
  2468. label="通信地址"
  2469. >
  2470. <span>{theInformation.postalAddress}</span>
  2471. </FormItem>
  2472. <FormItem className="half-item"
  2473. {...formItemLayout}
  2474. label="手机号码"
  2475. >
  2476. <span>{theInformation.modile}</span>
  2477. </FormItem>
  2478. <FormItem className="half-item"
  2479. {...formItemLayout}
  2480. label="客户传真"
  2481. >
  2482. <span>{theInformation.contactsFax}</span>
  2483. </FormItem>
  2484. <FormItem className="half-item"
  2485. {...formItemLayout}
  2486. label="固定电话"
  2487. >
  2488. <span>{theInformation.contactsFixedTel}</span>
  2489. </FormItem>
  2490. <FormItem className="half-item"
  2491. {...formItemLayout}
  2492. label="客户QQ"
  2493. >
  2494. <span>{theInformation.qq}</span>
  2495. </FormItem>
  2496. <FormItem className="half-item"
  2497. {...formItemLayout}
  2498. label="电子邮箱"
  2499. >
  2500. <span>{theInformation.email}</span>
  2501. </FormItem>
  2502. <FormItem className="half-item"
  2503. {...formItemLayout}
  2504. label="咨询费用"
  2505. >
  2506. <span>{theInformation.consultationPrice}</span>
  2507. </FormItem>
  2508. <div className='clearfix'>
  2509. <FormItem
  2510. labelCol={{ span: 4 }}
  2511. wrapperCol={{ span: 18 }}
  2512. label="客户简介" >
  2513. <span>{theInformation.introduction}</span>
  2514. </FormItem>
  2515. </div>
  2516. <div className="clearfix pictures">
  2517. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2518. labelCol={{ span: 8 }}
  2519. wrapperCol={{ span: 10 }}
  2520. label="身份证正面" >
  2521. <div className="clearfix">
  2522. <Upload className="demandDetailShow-upload"
  2523. listType="picture-card"
  2524. fileList={this.state.orgCodeUrl}
  2525. onPreview={(file) => {
  2526. this.setState({
  2527. previewImage: file.url || file.thumbUrl,
  2528. previewVisible: true,
  2529. });
  2530. }} >
  2531. </Upload>
  2532. <Modal maskClosable={false} footer={null}
  2533. visible={this.state.previewVisible}
  2534. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2535. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2536. </Modal>
  2537. </div>
  2538. </FormItem>
  2539. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2540. labelCol={{ span: 8 }}
  2541. wrapperCol={{ span: 10 }}
  2542. label="身份证反面" >
  2543. <div className="clearfix">
  2544. <Upload className="demandDetailShow-upload"
  2545. listType="picture-card"
  2546. fileList={this.state.companyLogoUrl}
  2547. onPreview={(file) => {
  2548. this.setState({
  2549. previewImage: file.url || file.thumbUrl,
  2550. previewVisible: true,
  2551. });
  2552. }} >
  2553. </Upload>
  2554. <Modal maskClosable={false} footer={null}
  2555. visible={this.state.previewVisible}
  2556. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2557. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2558. </Modal>
  2559. </div>
  2560. </FormItem>
  2561. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2562. labelCol={{ span: 8 }}
  2563. wrapperCol={{ span: 10 }}
  2564. label="客户照片" >
  2565. <div className="clearfix">
  2566. <Upload className="demandDetailShow-upload"
  2567. listType="picture-card"
  2568. fileList={this.state.companyLogoUrls}
  2569. onPreview={(file) => {
  2570. this.setState({
  2571. previewImage: file.url || file.thumbUrl,
  2572. previewVisible: true,
  2573. });
  2574. }} >
  2575. </Upload>
  2576. <Modal maskClosable={false} footer={null}
  2577. visible={this.state.previewVisible}
  2578. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2579. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  2580. </Modal>
  2581. </div>
  2582. </FormItem>
  2583. </div>
  2584. </div>
  2585. </Spin>
  2586. </Form>
  2587. }
  2588. </TabPane>
  2589. <TabPane tab="联系人信息" key="2">
  2590. <div className="clearfix" style={{display:adminData.isSuperAdmin?'block':'none'}}>
  2591. <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
  2592. </div>
  2593. <div className="clearfix">
  2594. <Spin spinning={this.state.loading}>
  2595. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2596. <Table
  2597. pagination={false}
  2598. columns={this.state.ContactsLists}
  2599. dataSource={this.state.contactList}
  2600. />
  2601. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2602. <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
  2603. <Button type="ghost" onClick={this.detailsModal} style={{fontSize:'18px'}}>取消</Button>
  2604. </div>
  2605. </Form>
  2606. </Spin>
  2607. </div>
  2608. </TabPane>
  2609. <TabPane tab="账户信息" key="3">
  2610. <div className="clearfix">
  2611. {adminData.isSuperAdmin?<Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2612. <Spin spinning={this.state.loading} >
  2613. <FormItem className="half-item"
  2614. {...formItemLayout}
  2615. label="注册手机号" >
  2616. <Input value={this.state.mobile} disabled
  2617. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2618. <Button onClick={this.modifyPassworld}>修改密码</Button>
  2619. </FormItem>
  2620. <FormItem className="half-item"
  2621. {...formItemLayout}
  2622. label="注册用户名" >
  2623. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  2624. </FormItem>
  2625. <FormItem className="half-item"
  2626. {...formItemLayout}
  2627. label="注册邮箱" >
  2628. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  2629. </FormItem>
  2630. <div className="clearfix">
  2631. <FormItem className="half-item"
  2632. {...formItemLayout}
  2633. label="客户来源" >
  2634. <span>{this.state.source}</span>
  2635. </FormItem>
  2636. <FormItem className="half-item"
  2637. {...formItemLayout}
  2638. label="客户类型" >
  2639. <span>{this.state.type}</span>
  2640. </FormItem>
  2641. <FormItem className="half-item"
  2642. {...formItemLayout}
  2643. label="创建时间" >
  2644. <span>{this.state.createTimes}</span>
  2645. </FormItem>
  2646. <FormItem className="half-item"
  2647. {...formItemLayout}
  2648. label="账户状态"
  2649. >
  2650. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2651. {
  2652. statuslist.map(function (item) {
  2653. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2654. })
  2655. }
  2656. </Select>
  2657. </FormItem>
  2658. </div>
  2659. <div className="clearfix">
  2660. <FormItem className="half-item"
  2661. {...formItemLayout}
  2662. label="会员"
  2663. >
  2664. <Radio.Group value={this.state.isMember} onChange={(e) => {
  2665. this.setState({ isMember: e.target.value })
  2666. }}>
  2667. <Radio value={0}>否</Radio>
  2668. <Radio value={1}>是</Radio>
  2669. </Radio.Group>
  2670. </FormItem>
  2671. <FormItem className="half-item"
  2672. {...formItemLayout}
  2673. label="会员等级"
  2674. >
  2675. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2676. {
  2677. lvl.map(function (item) {
  2678. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2679. })
  2680. }
  2681. </Select>
  2682. </FormItem>
  2683. <FormItem className="half-item"
  2684. {...formItemLayout}
  2685. label="会员状态"
  2686. >
  2687. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2688. {
  2689. currentMember.map(function (item) {
  2690. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2691. })
  2692. }
  2693. </Select>
  2694. </FormItem>
  2695. </div>
  2696. <div className="clearfix">
  2697. <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
  2698. <Button type="ghost" onClick={this.detailsModal}>取消</Button>
  2699. </div>
  2700. </Spin>
  2701. </Form> :
  2702. <Form horizontal id="demand-form" >
  2703. <Spin spinning={this.state.loading} >
  2704. <FormItem className="half-item"
  2705. {...formItemLayout}
  2706. label="注册手机号" >
  2707. <span>{this.state.mobile}</span>
  2708. </FormItem>
  2709. <FormItem className="half-item"
  2710. {...formItemLayout}
  2711. label="注册用户名" >
  2712. <span>{this.state.nickname}</span>
  2713. </FormItem>
  2714. <FormItem className="half-item"
  2715. {...formItemLayout}
  2716. label="注册邮箱" >
  2717. <span>{this.state.email}</span>
  2718. </FormItem>
  2719. <div className="clearfix">
  2720. <FormItem className="half-item"
  2721. {...formItemLayout}
  2722. label="客户来源" >
  2723. <span>{this.state.source}</span>
  2724. </FormItem>
  2725. <FormItem className="half-item"
  2726. {...formItemLayout}
  2727. label="客户类型" >
  2728. <span>{this.state.type}</span>
  2729. </FormItem>
  2730. <FormItem className="half-item"
  2731. {...formItemLayout}
  2732. label="创建时间" >
  2733. <span>{this.state.createTimes}</span>
  2734. </FormItem>
  2735. <FormItem className="half-item"
  2736. {...formItemLayout}
  2737. label="账户状态"
  2738. >
  2739. <span>{getStatuslist(this.state.status)}</span>
  2740. </FormItem>
  2741. </div>
  2742. <div className="clearfix">
  2743. <FormItem className="half-item"
  2744. {...formItemLayout}
  2745. label="专家"
  2746. >
  2747. <span>{this.state.isMembers?'是':'否'}</span>
  2748. </FormItem>
  2749. <FormItem className="half-item"
  2750. {...formItemLayout}
  2751. label="明星"
  2752. >
  2753. <span>{this.state.star?'是':'否'}</span>
  2754. </FormItem>
  2755. <FormItem className="half-item"
  2756. {...formItemLayout}
  2757. label="会员"
  2758. >
  2759. <span>{this.state.isMember?'是':'否'}</span>
  2760. </FormItem>
  2761. <FormItem className="half-item"
  2762. {...formItemLayout}
  2763. label="会员等级"
  2764. >
  2765. <span>{getLvl(this.state.lvl)}</span>
  2766. </FormItem>
  2767. <FormItem className="half-item"
  2768. {...formItemLayout}
  2769. label="会员状态"
  2770. >
  2771. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2772. </FormItem>
  2773. </div>
  2774. <FormItem className="half-item"
  2775. {...formItemLayout}
  2776. label="业务认证"
  2777. >
  2778. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2779. </FormItem>
  2780. <FormItem className="half-item"
  2781. {...formItemLayout}
  2782. label="实名认证"
  2783. >
  2784. <span>{getAuditStatus(this.state.userCertification)}</span>
  2785. </FormItem>
  2786. </Spin>
  2787. </Form>
  2788. }
  2789. </div>
  2790. </TabPane>
  2791. <TabPane tab="客户拜访" key="4">
  2792. <div className="clearfix">
  2793. <Spin spinning={this.state.loading}>
  2794. <Table
  2795. pagination={false}
  2796. columns={this.state.visitsList}
  2797. dataSource={this.state.visitArrList}
  2798. onRowClick={this.VisitRowClick}
  2799. />
  2800. </Spin>
  2801. </div>
  2802. </TabPane>
  2803. <TabPane tab="业务意向" key="5">
  2804. <div className="clearfix">
  2805. <Spin spinning={this.state.loading}>
  2806. <Table
  2807. pagination={this.state.paginationt}
  2808. columns={this.state.businessIntentionList}
  2809. dataSource={this.state.dataBusiness}
  2810. />
  2811. </Spin>
  2812. </div>
  2813. </TabPane>
  2814. <TabPane tab="业务订单" key="6">
  2815. </TabPane>
  2816. <TabPane tab="技术需求" key="7">
  2817. </TabPane>
  2818. <TabPane tab="技术成果" key="8">
  2819. </TabPane>
  2820. <TabPane tab="技术专家" key="9">
  2821. </TabPane>
  2822. </Tabs>
  2823. </Modal>
  2824. <Modal
  2825. className="customeDetails"
  2826. footer=''
  2827. title="拜访详情"
  2828. width='1000px'
  2829. visible={this.state.visitModul}
  2830. onOk={this.visitOk}
  2831. onCancel={this.visitCancel}
  2832. >
  2833. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2834. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2835. <div className="clearfix">
  2836. <FormItem className="half-item"
  2837. {...formItemLayout}
  2838. label="拜访方式" >
  2839. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2840. this.setState({ contactType: e.target.value })
  2841. }}>
  2842. <Radio value={0}>外出</Radio>
  2843. <Radio value={1}>电话</Radio>
  2844. <Radio value={2}>QQ</Radio>
  2845. <Radio value={3}>微信</Radio>
  2846. <Radio value={4}>邮箱</Radio>
  2847. </Radio.Group>
  2848. </FormItem>
  2849. <FormItem className="half-item"
  2850. {...formItemLayout}
  2851. >
  2852. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2853. </FormItem>
  2854. <div className="clearfix">
  2855. <FormItem className="half-item"
  2856. {...formItemLayout}
  2857. label="客户姓名"
  2858. >
  2859. <span>{this.state.identifyName}</span>
  2860. </FormItem>
  2861. <FormItem className="half-item"
  2862. {...formItemLayout}
  2863. label="拜访人"
  2864. >
  2865. <span>{this.state.adminName}</span>
  2866. </FormItem>
  2867. <FormItem className="half-item"
  2868. {...formItemLayout}
  2869. label="当前联系人"
  2870. >
  2871. <span>{this.state.contacts}</span>
  2872. </FormItem>
  2873. {this.state.contacts?<span></span>:
  2874. <FormItem className="half-item"
  2875. {...formItemLayout}
  2876. label="联系人"
  2877. >
  2878. <Select placeholder="选择联系人" style={{ width: 140 }}
  2879. value={this.state.lastName}
  2880. onChange={this.hundleName}>
  2881. {this.state.orderStatusOption}
  2882. </Select>
  2883. </FormItem>
  2884. }
  2885. <FormItem className="half-item"
  2886. {...formItemLayout}
  2887. label="拜访时间"
  2888. >
  2889. <span>{this.state.followTime}</span>
  2890. </FormItem>
  2891. <FormItem className="half-item"
  2892. {...formItemLayout}
  2893. label="联系电话"
  2894. >
  2895. <span>{this.state.nub}</span>
  2896. </FormItem>
  2897. </div>
  2898. <div className="clearfix">
  2899. <FormItem
  2900. labelCol={{ span: 4 }}
  2901. wrapperCol={{ span: 16 }}
  2902. label="拜访备注" >
  2903. <Input type="textarea" rows={4} value={this.state.result}
  2904. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2905. </FormItem>
  2906. </div>
  2907. <div className="clearfix">
  2908. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2909. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2910. <Spin spinning={this.state.loading}>
  2911. <Table
  2912. rowKey={record => record.id}
  2913. pagination={false}
  2914. columns={this.state.intentionList}
  2915. dataSource={this.state.data}
  2916. />
  2917. </Spin>
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 35px 35px 120px'}}>保存</Button>
  2922. <Button size="large" onClick={this.visitCancel}>取消</Button>
  2923. </Spin>:<Spin spinning={this.state.loading}>
  2924. <div className="clearfix">
  2925. <FormItem className="half-item"
  2926. {...formItemLayout}
  2927. label="拜访方式" >
  2928. <span>{getContactType(String(this.state.contactType))}</span>
  2929. </FormItem>
  2930. <div className="clearfix">
  2931. <FormItem className="half-item"
  2932. {...formItemLayout}
  2933. label="客户姓名"
  2934. >
  2935. <span>{this.state.identifyName}</span>
  2936. </FormItem>
  2937. <FormItem className="half-item"
  2938. {...formItemLayout}
  2939. label="拜访人"
  2940. >
  2941. <span>{this.state.adminName}</span>
  2942. </FormItem>
  2943. <FormItem className="half-item"
  2944. {...formItemLayout}
  2945. label="当前联系人"
  2946. >
  2947. <span>{this.state.contacts}</span>
  2948. </FormItem>
  2949. <FormItem className="half-item"
  2950. {...formItemLayout}
  2951. label="拜访时间"
  2952. >
  2953. <span>{this.state.followTime}</span>
  2954. </FormItem>
  2955. <FormItem className="half-item"
  2956. {...formItemLayout}
  2957. label="联系电话"
  2958. >
  2959. <span>{this.state.nub}</span>
  2960. </FormItem>
  2961. </div>
  2962. <div className="clearfix">
  2963. <FormItem
  2964. labelCol={{ span: 4 }}
  2965. wrapperCol={{ span: 16 }}
  2966. label="拜访备注" >
  2967. <span>{this.state.result}</span>
  2968. </FormItem>
  2969. </div>
  2970. <div className="clearfix">
  2971. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2972. <Spin spinning={this.state.loading}>
  2973. <Table
  2974. rowKey={record => record.id}
  2975. pagination={false}
  2976. columns={this.state.intentionList}
  2977. dataSource={this.state.data}
  2978. />
  2979. </Spin>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </Spin>}
  2984. </Form>
  2985. </Modal>
  2986. <Modal
  2987. footer=''
  2988. title="修改密码"
  2989. width='600px'
  2990. visible={this.state.passworldModul}
  2991. onOk={this.passworldOk}
  2992. onCancel={this.passworldCancel}
  2993. >
  2994. <div className="clearfix">
  2995. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  2996. <Spin spinning={this.state.loading}>
  2997. <div className="clearfix">
  2998. <FormItem className="half-item"
  2999. {...formItemLayout}
  3000. label="原密码" >
  3001. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  3002. </FormItem>
  3003. </div>
  3004. <div className="clearfix">
  3005. <FormItem className="half-item"
  3006. {...formItemLayout}
  3007. label="新密码" >
  3008. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  3009. </FormItem>
  3010. </div>
  3011. <div className="clearfix">
  3012. <FormItem className="half-item"
  3013. {...formItemLayout}
  3014. label="确认密码" >
  3015. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  3016. </FormItem>
  3017. </div>
  3018. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 95px'}}>保存</Button>
  3019. <Button size="large" onClick={this.passworldCancel}>取消</Button>
  3020. </Spin>
  3021. </Form>
  3022. </div>
  3023. </Modal>
  3024. <Modal
  3025. footer=''
  3026. width='800px'
  3027. title="新增联系人"
  3028. visible={this.state.addcontactModul}
  3029. onOk={this.addcontactModulOK}
  3030. onCancel={this.addcontactModulcancel}
  3031. >
  3032. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  3033. <Spin spinning={this.state.loading}>
  3034. <Row>
  3035. <FormItem
  3036. labelCol={{ span: 3 }}
  3037. wrapperCol={{ span: 14 }}
  3038. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  3039. <Radio.Group value={this.state.newsex} onChange={(e) => {
  3040. this.setState({ newsex: e.target.value })
  3041. }}>
  3042. <Radio value='男'>男</Radio>
  3043. <Radio value='女'>女</Radio>
  3044. </Radio.Group>
  3045. </FormItem>
  3046. </Row>
  3047. <Row style={{ paddingLeft:'50px' }}>
  3048. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  3049. <Col span={8}>
  3050. <Input value={this.state.newname} required="required"
  3051. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  3052. </Col>
  3053. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  3054. <Col span={8}>
  3055. <Input value={this.state.newmobile} required="required"
  3056. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  3057. </Col>
  3058. </Row>
  3059. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3060. <Col span={2}>微信:</Col>
  3061. <Col span={8}>
  3062. <Input value={this.state.newwechat}
  3063. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  3064. </Col>
  3065. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  3066. <Col span={8}>
  3067. <Input value={this.state.newqq}
  3068. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  3069. </Col>
  3070. </Row>
  3071. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  3072. <Col span={2}>部门:</Col>
  3073. <Col span={8}>
  3074. <Input value={this.state.newdepatrment}
  3075. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  3076. </Col>
  3077. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  3078. <Col span={8}>
  3079. <Input value={this.state.newposition}
  3080. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  3081. </Col>
  3082. </Row>
  3083. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3084. <Col span={2}>邮箱:</Col>
  3085. <Col span={8}>
  3086. <Input value={this.state.newemail}
  3087. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  3088. </Col>
  3089. </Row>
  3090. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  3091. <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginLeft:'60px'}}>保存</Button>
  3092. <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
  3093. </Row>
  3094. </Spin>
  3095. </Form>
  3096. </Modal>
  3097. <Modal
  3098. footer=''
  3099. title="业务意向详情"
  3100. width='1000px'
  3101. visible={this.state.businessModul}
  3102. onOk={this.businessIntentionOk}
  3103. onCancel={this.businessIntentionCancel}
  3104. >
  3105. <div className="clearfix">
  3106. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3107. <Spin spinning={this.state.loading}>
  3108. <div className="clearfix">
  3109. <FormItem className="half-item"
  3110. {...formItemLayout}
  3111. label="意向业务名称" >
  3112. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3113. </FormItem>
  3114. <FormItem className="half-item"
  3115. {...formItemLayout}
  3116. label="意向时间" >
  3117. <span>{this.state.createTime}</span>
  3118. </FormItem>
  3119. <FormItem className="half-item"
  3120. {...formItemLayout}
  3121. label="客户姓名" >
  3122. <span>{this.state.identifyName}</span>
  3123. </FormItem>
  3124. <FormItem className="half-item"
  3125. {...formItemLayout}
  3126. label="营销员" >
  3127. <span>{this.state.adminName}</span>
  3128. </FormItem>
  3129. <FormItem className="half-item"
  3130. {...formItemLayout}
  3131. label="意向业务进度" >
  3132. <span>{getfllowSituation(this.state.followSituation)}</span>
  3133. </FormItem>
  3134. <FormItem className="half-item"
  3135. {...formItemLayout}
  3136. label="业务客户状态" >
  3137. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3138. </FormItem>
  3139. </div>
  3140. <div className="clearfix">
  3141. <FormItem className="half-item"
  3142. {...formItemLayout}
  3143. label="业务意向说明" >
  3144. <span>{this.state.remarks}</span>
  3145. </FormItem>
  3146. </div>
  3147. <div className="clearfix">
  3148. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3149. <div className="clearfix">
  3150. <Spin spinning={this.state.loading}>
  3151. <Table
  3152. pagination={this.state.paginations}
  3153. columns={this.state.businessFollowList}
  3154. dataSource={this.state.visitArrList}
  3155. />
  3156. </Spin>
  3157. </div>
  3158. </div>
  3159. </Spin>
  3160. </Form>
  3161. </div>
  3162. </Modal>
  3163. <Modal
  3164. footer=''
  3165. title="业务跟进详情"
  3166. width='600px'
  3167. visible={this.state.businessFollowModul}
  3168. onOk={this.businessFollowOk}
  3169. onCancel={this.businessFollowCancel}
  3170. >
  3171. <div className="clearfix">
  3172. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3173. <Spin spinning={this.state.loading}>
  3174. <div className="clearfix">
  3175. <FormItem className="half-item"
  3176. {...formItemLayout}
  3177. label="意向业务名称" >
  3178. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3179. </FormItem>
  3180. <FormItem className="half-item"
  3181. {...formItemLayout}
  3182. label="意向时间" >
  3183. <span>{this.state.createTimes}</span>
  3184. </FormItem>
  3185. <FormItem className="half-item"
  3186. {...formItemLayout}
  3187. label="客户姓名" >
  3188. <span>{this.state.identifyNames}</span>
  3189. </FormItem>
  3190. <FormItem className="half-item"
  3191. {...formItemLayout}
  3192. label="营销员" >
  3193. <span>{this.state.adminNames}</span>
  3194. </FormItem>
  3195. <FormItem className="half-item"
  3196. {...formItemLayout}
  3197. label="意向业务进度" >
  3198. <span>{getfllowSituation(this.state.followSituations)}</span>
  3199. </FormItem>
  3200. <FormItem className="half-item"
  3201. {...formItemLayout}
  3202. label="业务客户状态" >
  3203. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3204. </FormItem>
  3205. </div>
  3206. <div className="clearfix">
  3207. <FormItem className="half-item"
  3208. {...formItemLayout}
  3209. label="业务意向说明" >
  3210. <span>{this.state.remarkss}</span>
  3211. </FormItem>
  3212. </div>
  3213. <div className="clearfix">
  3214. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3215. <FormItem className="half-item"
  3216. {...formItemLayout}
  3217. label="拜访方式" >
  3218. <span>{getContactType(this.state.contactTypes)}</span>
  3219. </FormItem>
  3220. <FormItem className="half-item"
  3221. {...formItemLayout}
  3222. label="联系人" >
  3223. <span>{this.state.contactss}</span>
  3224. </FormItem>
  3225. <FormItem className="half-item"
  3226. {...formItemLayout}
  3227. label="联系电话" >
  3228. <span>{this.state.contactMobiles}</span>
  3229. </FormItem>
  3230. <FormItem className="half-item"
  3231. {...formItemLayout}
  3232. label="拜访时间" >
  3233. <span>{this.state.followTimes}</span>
  3234. </FormItem>
  3235. <FormItem className="half-item"
  3236. {...formItemLayout}
  3237. label="拜访人" >
  3238. <span>{this.state.adminNames}</span>
  3239. </FormItem>
  3240. <div className="clearfix">
  3241. <FormItem className="half-item"
  3242. {...formItemLayout}
  3243. label="拜访备注" >
  3244. <span>{this.state.results}</span>
  3245. </FormItem>
  3246. </div>
  3247. </div>
  3248. </Spin>
  3249. </Form>
  3250. </div>
  3251. </Modal>
  3252. </div >
  3253. );
  3254. }
  3255. }));
  3256. export default QueryCustomer;