myClient.jsx 117 KB

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