expertRelease.jsx 118 KB

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