queryCustomer.jsx 123 KB

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