queryCustomer.jsx 124 KB

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