expertReview.jsx 122 KB

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