myClient.jsx 118 KB

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