myClient.jsx 114 KB

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