queryCustomer.jsx 126 KB

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