myClient.jsx 111 KB

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