myClient.jsx 110 KB

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