myClient.jsx 108 KB

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