myBusiness.jsx 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511
  1. import React from 'react';
  2. import { Radio,Icon, Popconfirm,Button, AutoComplete ,Cascader,Input, Tabs,Select,Spin,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. const Option = AutoComplete.Option;
  7. const OptGroup = AutoComplete.OptGroup;
  8. import './myClient.less';
  9. import { areaSelect} from '../../../NewDicProvinceList';
  10. const { Column, ColumnGroup } = Table;
  11. const TabPane = Tabs.TabPane;
  12. import {socialAttribute,newFollow,lvl, customerStatus,intentionalService} from '../../../dataDic.js';
  13. import {getcustomerStatue,getprovince,getCompanyIntention,getfllowSituation} from '../../../tools.js';
  14. const dataSource = [{
  15. name: 'AntDesign',
  16. id: '10000',
  17. }, {
  18. name: 'AntDesign UI',
  19. id: '10600',
  20. }, {
  21. name: 'AntDesign UI 有多好',
  22. id: '60100',
  23. }, {
  24. name: 'AntDesign 是啥',
  25. id: '30010',
  26. }, {
  27. name: 'AntDesign 是一个设计语言',
  28. id: '100000',
  29. }];
  30. const data = [{
  31. id: '1',
  32. name: '长沙科技1',
  33. contacts: '午安行',
  34. contactMobile: '321312311',
  35. expert:'0',
  36. serviceCertification:'0',
  37. userCertification:'0',
  38. locationProvince:'广州',
  39. }, {
  40. id: '2',
  41. name: '上海科技',
  42. contacts: '老王',
  43. contactMobile: '231321311',
  44. expert:'1',
  45. serviceCertification:'1',
  46. userCertification:'0',
  47. locationProvince:'湖南-湘潭',
  48. Province:'1',
  49. city:'38',
  50. eare:'500',
  51. }, {
  52. id: '3',
  53. name: '广州科技',
  54. contacts: '老李',
  55. contactMobile: '1123213123',
  56. expert:'1',
  57. serviceCertification:'0',
  58. userCertification:'1',
  59. locationProvince:'北京',
  60. Province:'6',
  61. city:'24',
  62. eare:'12',
  63. }
  64. ];
  65. //图片组件
  66. const PicturesWall = React.createClass({
  67. getInitialState() {
  68. return {
  69. previewVisible: false,
  70. previewImage: '',
  71. fileList: [],
  72. }
  73. },
  74. handleCancel() {
  75. this.setState({ previewVisible: false })
  76. },
  77. handlePreview(file) {
  78. this.setState({
  79. previewImage: file.url || file.thumbUrl,
  80. previewVisible: true,
  81. });
  82. },
  83. handleChange(info) {
  84. let fileList = info.fileList;
  85. this.setState({ fileList });
  86. this.props.fileList(fileList);
  87. },
  88. componentWillReceiveProps(nextProps) {
  89. this.state.fileList = nextProps.pictureUrl;
  90. },
  91. render() {
  92. const { previewVisible, previewImage, fileList } = this.state;
  93. const uploadButton = (
  94. <div>
  95. <Icon type="plus" />
  96. <div className="ant-upload-text">点击上传</div>
  97. </div>
  98. );
  99. return (
  100. <div style={{display:"inline-block"}}>
  101. <Upload
  102. action={globalConfig.context + "/api/admin/customer/attachmentUpload"}
  103. data={{ 'sign': this.props.pictureSign }}
  104. listType="picture-card"
  105. fileList={fileList}
  106. onPreview={this.handlePreview}
  107. onChange={this.handleChange} >
  108. {fileList.length >= 1 ? null : uploadButton}
  109. </Upload>
  110. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  111. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  112. </Modal>
  113. </div>
  114. );
  115. }
  116. });
  117. const MyBusiness = Form.create()(React.createClass({
  118. loadData(pageNo, apiUrl) {
  119. this.state.data = [];
  120. this.setState({
  121. loading: true
  122. });
  123. $.ajax({
  124. method: "post",
  125. dataType: "json",
  126. crossDomain: false,
  127. url:globalConfig.context + '/api/admin/customer/listBusiness',
  128. data: {
  129. pageNo: pageNo || 1,
  130. pageSize: this.state.pagination.pageSize,
  131. businessGlossoryId: this.state.businessIdS, //业务意向
  132. identifyName:this.state.identifyNameS,
  133. followSituation:this.state.followSituationS,
  134. customerStatus:this.state.customerStatusS,
  135. adminName: this.state.adminNameS,
  136. startDate: this.state.releaseDate[0],
  137. endDate: this.state.releaseDate[1],
  138. },
  139. success: function (data) {
  140. let theArr = [];
  141. if (data.error.length || data.data.list=="") {
  142. if (data.error && data.error.length) {
  143. message.warning(data.error[0].message);
  144. };
  145. } else {
  146. for (let i = 0; i < data.data.list.length; i++) {
  147. let thisdata = data.data.list[i];
  148. theArr.push({
  149. key: i,
  150. id: thisdata.id,
  151. businessId:thisdata.businessId,
  152. businessName:thisdata.businessName,
  153. identifyName:thisdata.identifyName,
  154. followSituation:thisdata.followSituation,
  155. customerStatus:thisdata.customerStatus,
  156. adminName:thisdata.adminName,
  157. createTime:thisdata.createTime
  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. dataSources:[],
  202. customerName:[],
  203. orgCodeUrl:[],
  204. companyLogoUrl:[],
  205. visible: false ,
  206. searchMore: true,
  207. releaseDate: [],
  208. releaseDate: [],
  209. selectedRowKeys: [],
  210. selectedRowKey: [],
  211. selectedRows: [],
  212. loading: false,
  213. pagination: {
  214. defaultCurrent: 1,
  215. defaultPageSize: 10,
  216. showQuickJumper: true,
  217. pageSize: 10,
  218. onChange: function (page) {
  219. this.loadData(page);
  220. }.bind(this),
  221. showTotal: function (total) {
  222. return '共' + total + '条数据';
  223. }
  224. },
  225. businessFollowList: [
  226. {
  227. title: '跟进时间',
  228. dataIndex: 'followTime',
  229. key: 'followTime',
  230. }, {
  231. title: '营销员',
  232. dataIndex: 'adminName',
  233. key: 'adminName',
  234. }, {
  235. title: '业务意向进度',
  236. dataIndex: 'businessGlossoryId',
  237. key: 'businessGlossoryId',
  238. }, {
  239. title: '客户状态',
  240. dataIndex: 'customerStatus',
  241. key: 'customerStatus',
  242. },
  243. {
  244. title: '拜访方式',
  245. dataIndex: 'contactType',
  246. key:'contactType',
  247. }, {
  248. title: '联系人',
  249. dataIndex: 'contacts',
  250. key: 'contacts',
  251. },
  252. {
  253. title: '联系电话',
  254. dataIndex: 'contactMobile',
  255. key:'contactMobile',
  256. },
  257. {
  258. title: '操作',
  259. dataIndex: 'ccc',
  260. key:'ccc',
  261. render: (text, record, index) => {
  262. return <div>
  263. <Popconfirm title="是否删除?" onConfirm={(e)=>{e.stopPropagation(),this.intentionDelet(record)}} okText="删除" cancelText="不删除">
  264. <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
  265. </Popconfirm>
  266. </div>
  267. }
  268. }
  269. ],
  270. columns: [
  271. {
  272. title: '业务名称',
  273. dataIndex: 'businessName',
  274. key: 'businessName',
  275. }, {
  276. title: '意向时间',
  277. dataIndex: 'createTime',
  278. key: 'createTime',
  279. }, {
  280. title: '客户名称',
  281. dataIndex: 'identifyName',
  282. key: 'identifyName',
  283. }, {
  284. title: '营销员',
  285. dataIndex: 'adminName',
  286. key: 'adminName',
  287. },
  288. {
  289. title: '业务意向进度',
  290. dataIndex: 'followSituation',
  291. key:'followSituation',
  292. render: text => { return getfllowSituation(text) }
  293. },
  294. {
  295. title: '客户状态',
  296. dataIndex: 'customerStatus',
  297. key: 'customerStatus',
  298. render: text => { return getcustomerStatue(text) }
  299. },
  300. {
  301. title: '操作',
  302. dataIndex: 'abc',
  303. key: 'abc',
  304. render: (text, record, index) => {
  305. return <div>
  306. <Button onClick={(e) =>{ e.stopPropagation(), this.addModify(record); }} type="primary" style={{marginRight:'10px'}}>跟进</Button>
  307. <Button onClick={(e) =>{ e.stopPropagation(), this.followStop(record) }} type="primary">停止</Button>
  308. </div>
  309. }
  310. }
  311. ],
  312. dataSource: [],
  313. searchTime: [,]
  314. };
  315. },
  316. //删除跟进记录
  317. intentionDelet(e){
  318. console.log(e)
  319. },
  320. //更多操作
  321. ModalOperation(){
  322. this.setState({
  323. visible: true,
  324. });
  325. },
  326. //拜访
  327. visit(e){
  328. this.setState({
  329. visitModul:true
  330. })
  331. console.log(e)
  332. },
  333. //列表删除功能
  334. delectRow() {
  335. let deletedIds;
  336. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  337. let rowItem = this.state.selectedRows[idx];
  338. if (rowItem.id) {
  339. deletedIds=rowItem.id;
  340. };
  341. };
  342. this.setState({
  343. selectedRowKeys: [],
  344. });
  345. $.ajax({
  346. method: "get",
  347. dataType: "json",
  348. crossDomain: false,
  349. url: globalConfig.context + "/api/admin/customer/deleteCustomer",
  350. data: {
  351. id: deletedIds,//删除的ID
  352. }
  353. }).done(function (data) {
  354. if (!data.error.length) {
  355. message.success('删除成功!');
  356. this.setState({
  357. loading: false,
  358. });
  359. } else {
  360. message.warning(data.error[0].message);
  361. };
  362. this.loadData();
  363. }.bind(this));
  364. },
  365. getOrgCodeUrl(e) {
  366. this.setState({ orgCodeUrl: e });
  367. },
  368. getCompanyLogoUrl(e) {
  369. this.setState({ companyLogoUrl: e });
  370. },
  371. componentWillMount() {
  372. //意向服务
  373. let intentionalArr = [];
  374. newFollow.map(function (item) {
  375. intentionalArr.push(
  376. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  377. )
  378. });
  379. //客户状态
  380. let customerStatusArr = [];
  381. customerStatus.map(function (item) {
  382. customerStatusArr.push(
  383. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  384. )
  385. });
  386. this.state.intentionalOption = intentionalArr;
  387. this.state.customerStatusArrOption = customerStatusArr;
  388. this.loadData();
  389. },
  390. //新建
  391. addClick() {
  392. this.state.businessGlossoryId=undefined;
  393. this.state.followSituation='0';
  394. this.state.customerStatus='0';
  395. this.state.contactType=undefined;
  396. this.state.remarks='';
  397. this.state.result='';
  398. this.state.keys=false;
  399. this.addTime();
  400. this.setState({
  401. showDesc: true,
  402. });
  403. },
  404. addClickOk(){
  405. this.setState({
  406. businessId:'',
  407. showDesc: false,
  408. });
  409. },
  410. addClickCancel(){
  411. this.setState({
  412. businessId:'',
  413. showDesc: false,
  414. });
  415. },
  416. search() {
  417. this.loadData();
  418. },
  419. reset() {
  420. this.state.businessIdS=undefined; //名称1
  421. this.state.identifyNameS='';
  422. this.state.followSituationS=undefined;
  423. this.state.customerStatusS=undefined;
  424. this.state.adminNameS='';
  425. this.state.releaseDate[0]=undefined;
  426. this.state.releaseDate[1]=undefined;
  427. this.loadData();
  428. },
  429. searchSwitch() {
  430. this.setState({
  431. searchMore: !this.state.searchMore
  432. });
  433. },
  434. //详情保存函数
  435. detailsSubmint(){
  436. this.setState({
  437. modal5Visible:false,
  438. })
  439. },
  440. //基本信息提交
  441. newSubmit(e){
  442. e.preventDefault();
  443. this.setState({
  444. selectedRowKeys: [],
  445. });
  446. this.props.form.validateFields((err, values) => {
  447. if (!err) {
  448. this.setState({
  449. loading: true
  450. });
  451. $.ajax({
  452. method: "get",
  453. dataType: "json",
  454. url:globalConfig.context + '/api/admin/customer/updateBusiness',
  455. data: {
  456. businessId:this.state.rowId,
  457. followSituation:this.state.followSituation,
  458. customerStatus:this.state.customerStatus,
  459. result:this.state.result,
  460. }
  461. }).done(function (data) {
  462. this.setState({
  463. loading: false
  464. });
  465. if (!data.error.length) {
  466. message.success('保存成功!');
  467. this.detailsModal() ;
  468. this.loadData();
  469. } else {
  470. message.warning(data.error[0].message);
  471. }
  472. ;
  473. }.bind(this));
  474. }
  475. })
  476. },
  477. //查看基本详情基本信息
  478. loadInformation(record){
  479. $.ajax({
  480. method: "get",
  481. dataType: "json",
  482. crossDomain: false,
  483. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  484. data: {
  485. uid: record
  486. },
  487. success: function (data) {
  488. let thisData = data.data;
  489. if (!thisData) {
  490. if (data.error && data.error.length) {
  491. message.warning(data.error[0].message);
  492. };
  493. thisData = {};
  494. };
  495. this.setState({
  496. dataInformation:thisData,
  497. });
  498. }.bind(this),
  499. }).always(function () {
  500. this.setState({
  501. loading: false
  502. });
  503. }.bind(this));
  504. },
  505. detailsModalOk(e) {
  506. this.setState({ modal5Visible:true });//需要一个请求数据
  507. this.loadInformation(e.businessId)
  508. },
  509. //点击消失函数
  510. detailsModal(e) {
  511. this.setState({
  512. modal5Visible:false
  513. });
  514. },
  515. //拜访保存函数
  516. visitSubmit(){
  517. this.setState({
  518. visitModul:false,
  519. })
  520. },
  521. //新增联系人
  522. addcontactModulOK(){
  523. this.setState({
  524. addcontactModul:false
  525. });
  526. },
  527. addcontactModulcancel(){
  528. this.setState({
  529. addcontactModul:false
  530. });
  531. },
  532. businessFollowOk(){
  533. this.setState({
  534. businessFollowModul:false
  535. });
  536. },
  537. businessFollowCancel(){
  538. this.setState({
  539. businessFollowModul:false
  540. });
  541. },
  542. //点击新增详情
  543. newContacts(){
  544. this.setState({
  545. addcontactModul:true
  546. });
  547. },
  548. //新增联系人保存函数
  549. submitcontactman(e){
  550. e.preventDafault();
  551. this.props.form.validateFields((err, values) => {
  552. if (!err) {
  553. this.setState({
  554. loading: true
  555. });
  556. $.ajax({
  557. method: "POST",
  558. dataType: "json",
  559. crossDomain: false,
  560. url: globalConfig.context + '/api/admin/customer/addContacter',
  561. data: {
  562. cid: deletedIds,//编号id
  563. sex:this.state.hott,//性别
  564. primaryFlg:this.state.hotst,//是否是主要联系人
  565. name:this.state.paymentIdt,//联系人姓名
  566. mobile:this.state.paymt,//座机
  567. telNum:this.state.payt,//电话
  568. qq:this.state.entIdt,//qq
  569. wechat:this.state.payIdt,//微信
  570. customerPosition:this.state.paentIdt,//职位
  571. depatrment:this.state.paytIdtt,//部门
  572. email:this.state.emailst,//邮箱
  573. }
  574. }).done(function (data) {
  575. this.setState({
  576. loading: false
  577. });
  578. if (!data.error.length) {
  579. message.success('保存成功!');
  580. this.setModal2Visiblecancel()
  581. } else {
  582. message.warning(data.error[0].message);
  583. }
  584. this.getNewWoman(this.state.khId);
  585. }.bind(this));
  586. }
  587. });
  588. },
  589. //跟进
  590. addModify(e) {
  591. this.addTime();
  592. this.HttpFollowUp(e.businessId);
  593. this.state.keys=true;
  594. this.setState({
  595. showDesc: true,
  596. });
  597. },
  598. //当选择联系人的列表变化时,则执行
  599. hundleName(e){
  600. let changNub=this.state.telNum[e];
  601. this.setState({
  602. nub:this.state.telNum[e],
  603. lastName: e,
  604. });
  605. },
  606. //新建保存
  607. addSubmit(e){
  608. e.preventDefault();
  609. if(this.state.contactType==undefined){
  610. message.warning('请选择联系方式')
  611. return false;
  612. }
  613. if(this.state.lastName==undefined){
  614. message.warning('请选择联系人')
  615. return false;
  616. }
  617. this.props.form.validateFields((err, values) => {
  618. if (!err) {
  619. this.setState({
  620. loading: true
  621. });
  622. let conts=this.state.lastName;
  623. let contactsId= this.state.contactsIdArr[conts].id;
  624. $.ajax({
  625. method: "post",
  626. dataType: "json",
  627. crossDomain: false,
  628. url:!this.state.keys?globalConfig.context + '/api/admin/customer/addBusinessAndFollow':globalConfig.context + '/api/admin/customer/addFollowOneBusiness ',
  629. data:{
  630. businessId:this.state.businessId,
  631. businessGlossoryId: this.state.businessGlossoryId,
  632. followSituation:this.state.followSituation,
  633. customerStatus: this.state.customerStatus,
  634. contactType: this.state.contactType,
  635. ocbId: this.state.kid,
  636. createTime:this.state.createTime,
  637. remarks: this.state.remarks,
  638. result: this.state.result,
  639. }
  640. }).done(function (data) {
  641. this.setState({
  642. loading: false
  643. });
  644. if (!data.error.length) {
  645. message.success('保存成功!');
  646. this.addClickCancel();
  647. this.loadData();
  648. this.state.businessId='';
  649. } else {
  650. message.warning(data.error[0].message);
  651. }
  652. }.bind(this));
  653. }
  654. });
  655. },
  656. //新建HTTP获取数据
  657. addTime(){
  658. $.ajax({
  659. method: "get",
  660. dataType: "json",
  661. crossDomain: false,
  662. url: globalConfig.context + "/api/admin/customer/toAddBusinessAndFollow",
  663. data:{
  664. },
  665. success: function (data) {
  666. let theArr = [];
  667. let thedata=data.data;
  668. if (!thedata) {
  669. if (data.error && data.error.length) {
  670. message.warning(data.error[0].message);
  671. };
  672. thedata = {};
  673. };
  674. let creatMent=thedata.createTime.substr(10,9);
  675. let createYear=thedata.createTime.substr(0,10);
  676. this.setState({
  677. creatMent:creatMent,
  678. createYear:createYear,
  679. followTime:thedata.followTime,
  680. adminName: thedata.adminName,
  681. });
  682. }.bind(this),
  683. }).always(function () {
  684. this.setState({
  685. loading: false
  686. });
  687. }.bind(this));
  688. },
  689. //客户名称初始加载
  690. customerList(e){
  691. $.ajax({
  692. method: "get",
  693. dataType: "json",
  694. crossDomain: false,
  695. url: globalConfig.context + "/api/admin/customer/findCustomerByName",
  696. data:{
  697. name:e
  698. },
  699. success: function (data) {
  700. let thedata=data.data;
  701. if (!thedata) {
  702. if (data.error && data.error.length) {
  703. message.warning(data.error[0].message);
  704. };
  705. thedata = {};
  706. };
  707. this.setState({
  708. customerArr:thedata,
  709. });
  710. }.bind(this),
  711. }).always(function () {
  712. this.setState({
  713. loading: false
  714. });
  715. }.bind(this));
  716. },
  717. //值改变时请求客户名称
  718. httpChange(e){
  719. if(e.length>=2){
  720. this.customerList(e);
  721. }
  722. },
  723. //选择值时值匹配及联系人函数加载
  724. autoChange(e){
  725. let theType='';
  726. let contactLists=this.state.customerArr||[];
  727. if (e) {
  728. contactLists.map(function (item) {
  729. if (item.name == e.toString()) {
  730. theType = item.id;
  731. }
  732. });
  733. }
  734. this.setState({
  735. khId:theType
  736. })
  737. this.getNewWoman(theType)
  738. },
  739. //客户输入框失去焦点是判断客户是否存在
  740. blurChange(e){
  741. let theType='';
  742. let contactLists=this.state.customerArr||[];
  743. if (e) {
  744. contactLists.map(function (item) {
  745. if (item.name == e.toString()) {
  746. theType = item.id;
  747. }
  748. });
  749. }
  750. if(!theType){
  751. return message.warning('当前客户名不存在')
  752. };
  753. },
  754. //点击跟进时数据处理
  755. HttpFollowUp(e){
  756. $.ajax({
  757. method: "get",
  758. dataType: "json",
  759. crossDomain: false,
  760. url: globalConfig.context + "/api/admin/customer/toAddFollowOneBusiness",
  761. data:{
  762. businessId:e
  763. },
  764. success: function (data) {
  765. let thedata=data.data;
  766. if (!thedata) {
  767. if (data.error && data.error.length) {
  768. message.warning(data.error[0].message);
  769. };
  770. thedata = {};
  771. };
  772. this.setState({
  773. uids:thedata.uid,
  774. businessId:thedata.businessId,
  775. businessGlossoryId:thedata.businessGlossoryId,
  776. followSituation:thedata.followSituation,
  777. customerStatus:thedata.customerStatus,
  778. createTime:thedata.createTime,
  779. identifyName:thedata.identifyName,
  780. remarks:thedata.remarks,
  781. });
  782. }.bind(this),
  783. }).always(function () {
  784. this.getNewWoman(this.state.uids)
  785. this.setState({
  786. loading: false
  787. });
  788. }.bind(this));
  789. },
  790. //获取联系人下拉框
  791. getNewWoman(ids) {
  792. this.state.data = []
  793. $.ajax({
  794. method: "get",
  795. dataType: "json",
  796. crossDomain: false,
  797. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  798. data:{
  799. uid:ids,
  800. },
  801. success: function (data) {
  802. let theArr = [];
  803. let thedata=data.data;
  804. if (!thedata) {
  805. if (data.error && data.error.length) {
  806. message.warning(data.error[0].message);
  807. };
  808. thedata = {};
  809. };
  810. var telNum=[];
  811. var contactIds=[];
  812. thedata.map(function (item,index) {
  813. telNum.push(thedata[index].mobile);
  814. });
  815. for (let item in data.data) {
  816. let theData = data.data[item];
  817. theArr.push(
  818. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  819. );
  820. };
  821. this.setState({
  822. contactsIdArr:thedata,
  823. telNum:telNum,
  824. orderStatusOption: theArr,
  825. });
  826. }.bind(this),
  827. }).always(function () {
  828. this.setState({
  829. loading: false
  830. });
  831. }.bind(this));
  832. },
  833. //获取拜访详情ajax
  834. loadVisit(pageNo) {
  835. this.state.data = [];
  836. this.setState({
  837. loading: true
  838. });
  839. $.ajax({
  840. method: "get",
  841. dataType: "json",
  842. crossDomain: false,
  843. url:globalConfig.context + '/api/admin/customer/listFollowHistory',
  844. data: {
  845. pageNo: pageNo || 1,
  846. pageSize: this.state.pagination.pageSize,
  847. uid: this.state.rowId, //名称1
  848. businessGlossoryId:'',
  849. },
  850. success: function (data) {
  851. let theArr = [];
  852. if (data.error.length || data.data.list=="") {
  853. if (data.error && data.error.length) {
  854. message.warning(data.error[0].message);
  855. };
  856. } else {
  857. for (let i = 0; i < data.data.list.length; i++) {
  858. let thisdata = data.data.list[i];
  859. theArr.push({
  860. followId:thisdata.followId,
  861. followTime:thisdata.followTime,
  862. identityName:thisdata.identityName,
  863. contacts:thisdata.contacts,
  864. contactMobile:thisdata.contactMobile,
  865. result:thisdata.result,
  866. adminName:thisdata.adminName,
  867. contactType:thisdata.contactType
  868. });
  869. };
  870. this.state.pagination.current = data.data.pageNo;
  871. this.state.pagination.total = data.data.totalCount;
  872. };
  873. this.setState({
  874. visitArrList: theArr,
  875. pagination: this.state.pagination
  876. });
  877. }.bind(this),
  878. }).always(function () {
  879. this.setState({
  880. loading: false
  881. });
  882. }.bind(this));
  883. },
  884. componentWillReceiveProps(nextProps) {
  885. if (!this.props.visible && nextProps.visible) {
  886. if (nextProps.data && nextProps.data.id) {
  887. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  888. };
  889. this.state.data = {};
  890. this.state.companyLogoUrl = [];
  891. this.state.orgCodeUrl = [];
  892. };
  893. },
  894. tableRowClick(record, index) {
  895. this.state.RowData = record;
  896. this.detailsModalOk(record);
  897. this.loadVisit();
  898. this.setState({
  899. selectedRowKeys:[],
  900. rowId:record.businessId,
  901. })
  902. },
  903. followRowClick(record, index) {
  904. console.log(record)
  905. this.state.RowData = record;
  906. this.addTime();
  907. this.getNewWoman(record.khId)
  908. this.customerList();
  909. this.setState({
  910. businessFollowModul: true,
  911. selectedRowKeys:[],
  912. rowId:record.businessId,
  913. });
  914. },
  915. render() {
  916. const FormItem = Form.Item
  917. const rowSelection = {
  918. selectedRowKeys: this.state.selectedRowKeys,
  919. onChange: (selectedRowKeys, selectedRows) => {
  920. this.setState({
  921. selectedRows: selectedRows.slice(-1),
  922. selectedRowKeys: selectedRowKeys.slice(-1)
  923. });
  924. },
  925. onSelect: (recordt, selected, selectedRows) => {
  926. this.setState({
  927. recordt:recordt.id
  928. })
  929. },
  930. };
  931. const rowSelections = {
  932. selectedRowKeys: this.state.selectedRowKey,
  933. onChange: (selectedRowKey, selectedRow) => {
  934. this.setState({
  935. selectedRow: selectedRow.slice(-1),
  936. selectedRowKey: selectedRowKey.slice(-1)
  937. });
  938. },
  939. onSelect: (records, selected, selectedRow) => {
  940. this.setState({
  941. selectedRow: selectedRow.slice(-1),
  942. records:records.id,
  943. })
  944. },
  945. };
  946. const hasSelected = this.state.selectedRowKeys.length > 0;
  947. const { RangePicker } = DatePicker;
  948. const { getFieldDecorator } = this.props.form;
  949. const formItemLayout = {
  950. labelCol: { span: 8 },
  951. wrapperCol: { span: 14 },
  952. };
  953. const theInformation=this.state.dataInformation || {}
  954. const contactsOption="";
  955. const formItemLayput = {
  956. labelCol: { span: 10 },
  957. wrapperCol: { span: 14 },
  958. };
  959. const businessIds=this.state.businessId||'';
  960. const dataSources=this.state.customerArr || [];
  961. const options = dataSources.map((group) =>
  962. <Option key={group.id} value={group.name}>{group.name}</Option>
  963. )
  964. return (
  965. <div className="user-content" >
  966. <div className="content-title">
  967. <span>我的业务</span>
  968. </div>
  969. <div className="user-search">
  970. <Input placeholder="客户名称"
  971. value={this.state.identifyNameS}
  972. onChange={(e) => { this.setState({ identifyNameS: e.target.value }); }} />
  973. <Select placeholder="服务意向" value={this.state.businessIdS} onChange={(e) => {
  974. this.setState({businessIdS:e})}} style={{width:'150px'}}>
  975. {
  976. intentionalService.map(function (item) {
  977. return <Select.Option key={item.value} >{item.key}</Select.Option>
  978. })
  979. }
  980. </Select>
  981. <Button type="primary" onClick={this.search}>搜索</Button>
  982. <Button onClick={this.reset}>重置</Button>
  983. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  984. disabled={!hasSelected}
  985. onClick={this.delectRow}>删除<Icon type="minus" />
  986. </Button>
  987. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  988. <Button type="primary" className="addButton" onClick={this.addClick}>新增业务<Icon type="plus" /></Button>
  989. <div className='clearfix' style={{marginTop:'5px'}}>
  990. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  991. <RangePicker
  992. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  993. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  994. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  995. <Select placeholder="客户状态"
  996. style={{ width: 150 }}
  997. value={this.state.customerStatusS}
  998. onChange={(e) => { this.setState({ customerStatusS: e }) }}>
  999. {this.state.customerStatusArrOption}
  1000. </Select>
  1001. <Select placeholder="业务进度"
  1002. style={{ width: 150 }}
  1003. value={this.state.followSituationS}
  1004. onChange={(e) => { this.setState({ followSituationS: e }) }}>
  1005. {this.state.intentionalOption}
  1006. </Select>
  1007. <Input placeholder="营销员" style={{width:'150px'}}
  1008. value={this.state.adminNameS}
  1009. onChange={(e) => { this.setState({ adminNameS: e.target.value }); }} />
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <div className="patent-table">
  1014. <Spin spinning={this.state.loading}>
  1015. <Table columns={this.state.columns}
  1016. dataSource={this.state.dataSource}
  1017. rowSelection={rowSelection}
  1018. pagination={this.state.pagination}
  1019. onRowClick={this.tableRowClick}
  1020. />
  1021. </Spin>
  1022. </div>
  1023. <Modal
  1024. footer=''
  1025. title="我的业务"
  1026. width='1000px'
  1027. visible={this.state.showDesc}
  1028. onOk={this.addClickOk}
  1029. onCancel={this.addClickCancel}
  1030. >
  1031. <Form horizontal id="demand-form" onSubmit={this.addSubmit}>
  1032. <Spin spinning={this.state.loading}>
  1033. <div className="clearfix">
  1034. {businessIds!=''?<div><FormItem className="half-item"
  1035. {...formItemLayout}
  1036. label="业务意向名称"
  1037. >
  1038. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  1039. </FormItem>
  1040. <FormItem className="half-item"
  1041. {...formItemLayout}
  1042. >
  1043. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>
  1044. </FormItem>
  1045. <FormItem className="half-item"
  1046. {...formItemLayout}
  1047. label="意向时间"
  1048. >
  1049. <span>{this.state.createTime}</span>
  1050. </FormItem>
  1051. <FormItem className="half-item"
  1052. {...formItemLayout}
  1053. label="客户名称"
  1054. >
  1055. <span>{this.state.identifyName}</span>
  1056. </FormItem></div>
  1057. :<div><FormItem className="half-item"
  1058. {...formItemLayout}
  1059. label="业务意向名称"
  1060. >
  1061. <Select placeholder="服务意向名称" value={this.state.businessGlossoryId} onChange={(e) => {
  1062. this.setState({businessGlossoryId:e})}} style={{width:'150px'}}>
  1063. {
  1064. intentionalService.map(function (item) {
  1065. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1066. })
  1067. }
  1068. </Select>
  1069. </FormItem>
  1070. <FormItem className="half-item"
  1071. {...formItemLayout}
  1072. >
  1073. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>
  1074. </FormItem>
  1075. <FormItem className="half-item"
  1076. {...formItemLayout}
  1077. label="意向时间" >
  1078. <DatePicker placeholder="更新日期" value={moment(this.state.createYear,'YYYY-MM-DD')} onChange={(time) => {this.setState({createYear: time});}}/>
  1079. <TimePicker placeholder="更新时间" value={moment(this.state.creatMent, 'HH:mm:ss')} onChange={(time) => { this.setState({creatMent: time}); }}/>
  1080. </FormItem>
  1081. <FormItem className="half-item"
  1082. {...formItemLayout}
  1083. label="客户名称"
  1084. >
  1085. <AutoComplete
  1086. className="certain-category-search"
  1087. dropdownClassName="certain-category-search-dropdown"
  1088. dropdownMatchSelectWidth={false}
  1089. dropdownStyle={{ width: 300 }}
  1090. size="large"
  1091. style={{ width: '100%' }}
  1092. dataSource={options}
  1093. placeholder="输入名称"
  1094. optionLabelProp="value"
  1095. onChange={this.httpChange}
  1096. onSelect={this.autoChange}
  1097. filterOption={true}
  1098. onBlur={this.blurChange}
  1099. >
  1100. <Input />
  1101. </AutoComplete>
  1102. </FormItem></div>
  1103. }
  1104. <FormItem className="half-item"
  1105. {...formItemLayout}
  1106. label="营销员"
  1107. >
  1108. <span>{this.state.adminName}</span>
  1109. </FormItem>
  1110. <FormItem className="half-item"
  1111. {...formItemLayout}
  1112. label="业务意向进度"
  1113. >
  1114. <Select placeholder="业务意向进度" value={this.state.followSituation}
  1115. onChange={(e) => { this.setState({ followSituation: e }) }}>
  1116. {
  1117. intentionalService.map(function (item) {
  1118. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1119. })
  1120. }
  1121. </Select>
  1122. </FormItem>
  1123. <FormItem className="half-item"
  1124. {...formItemLayout}
  1125. label="业务客户状态"
  1126. >
  1127. <Select placeholder="业务客户状态" value={this.state.customerStatus}
  1128. onChange={(e) => { this.setState({ customerStatus: e }) }}>
  1129. {
  1130. customerStatus.map(function (item) {
  1131. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1132. })
  1133. }
  1134. </Select>
  1135. </FormItem>
  1136. <div className="clearfix">
  1137. <FormItem
  1138. labelCol={{ span: 4 }}
  1139. wrapperCol={{ span: 16 }}
  1140. label="业务意向说明" >
  1141. <Input type="textarea" rows={4} placeholder="业务意向说明" value={this.state.remarks}
  1142. onChange={(e) => { this.setState({ remarks: e.target.value }) }}/>
  1143. </FormItem>
  1144. </div>
  1145. <div style={{fontSize:'18px',marginLeft:'30px'}}>拜访情况</div>
  1146. <div className="clearfix">
  1147. <FormItem className="half-item"
  1148. labelCol={{ span: 8 }}
  1149. wrapperCol={{ span: 16 }}
  1150. label="拜访方式" >
  1151. <Radio.Group value={this.state.contactType} onChange={(e) => {
  1152. this.setState({ contactType: e.target.value })
  1153. }}>
  1154. <Radio value={0}>外出</Radio>
  1155. <Radio value={1}>电话</Radio>
  1156. <Radio value={2}>QQ</Radio>
  1157. <Radio value={3}>微信</Radio>
  1158. <Radio value={4}>邮箱</Radio>
  1159. </Radio.Group>
  1160. </FormItem>
  1161. </div>
  1162. <FormItem className="half-item"
  1163. {...formItemLayout}
  1164. label="联系人"
  1165. >
  1166. <Select placeholder="联系人姓名" style={{ width: 140 }}
  1167. value={this.state.lastName}
  1168. onChange={this.hundleName}>
  1169. {this.state.orderStatusOption}
  1170. </Select>
  1171. </FormItem>
  1172. <FormItem className="half-item"
  1173. {...formItemLayout}
  1174. label="联系电话"
  1175. >
  1176. <span>{this.state.nub}</span>
  1177. </FormItem>
  1178. <div className="clearfix">
  1179. <FormItem className="half-item"
  1180. {...formItemLayout}
  1181. label="拜访人"
  1182. >
  1183. <span>{this.state.adminName}</span>
  1184. </FormItem>
  1185. <FormItem className="half-item"
  1186. {...formItemLayout}
  1187. label="拜访时间" >
  1188. <span>{this.state.followTime}</span>
  1189. </FormItem>
  1190. </div>
  1191. <div className="clearfix">
  1192. <FormItem
  1193. labelCol={{ span: 4 }}
  1194. wrapperCol={{ span: 16 }}
  1195. label="拜访备注" >
  1196. <Input type="textarea" rows={4} value={this.state.result} placeholder="来电备注"
  1197. onChange={(e) => { this.setState({ result: e.target.value }); }}/>
  1198. </FormItem>
  1199. </div>
  1200. </div>
  1201. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 160px'}}>保存</Button>
  1202. <Button size="large" onClick={this.addClickCancel}>取消</Button>
  1203. </Spin>
  1204. </Form>
  1205. </Modal>
  1206. <Modal
  1207. className="customeDetails"
  1208. title="我的业务意向详情"
  1209. width='1000px'
  1210. visible={this.state.modal5Visible}
  1211. onOk={this.detailsModal}
  1212. onCancel={this.detailsModal}
  1213. footer=''
  1214. >
  1215. <Form horizontal onSubmit={this.newSubmit} id="demand-form">
  1216. <Spin spinning={this.state.loading}>
  1217. <div className="clearfix">
  1218. <FormItem className="half-item"
  1219. {...formItemLayout}
  1220. label="业务意向名称"
  1221. >
  1222. <span>{getCompanyIntention(theInformation.businessGlossoryId)}</span>
  1223. </FormItem>
  1224. <FormItem className="half-item"
  1225. {...formItemLayout}
  1226. label="意向时间"
  1227. >
  1228. <span>{theInformation.createTime}</span>
  1229. </FormItem>
  1230. <FormItem className="half-item"
  1231. {...formItemLayout}
  1232. label="客户名称"
  1233. >
  1234. <span>{theInformation.identifyName}</span>
  1235. </FormItem>
  1236. <FormItem className="half-item"
  1237. {...formItemLayout}
  1238. label="营销员"
  1239. >
  1240. <span>{theInformation.adminName}</span>
  1241. </FormItem>
  1242. <FormItem className="half-item"
  1243. {...formItemLayout}
  1244. label="业务意向进度"
  1245. >
  1246. <Select placeholder="业务意向进度" value={this.state.followSituation}
  1247. onChange={(e) => { this.setState({ followSituation: e }) }}>
  1248. {
  1249. newFollow.map(function (item) {
  1250. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1251. })
  1252. }
  1253. </Select>
  1254. </FormItem>
  1255. <FormItem className="half-item"
  1256. {...formItemLayout}
  1257. label="业务客户状态"
  1258. >
  1259. <Select placeholder="业务客户状态" value={this.state.customerStatus}
  1260. onChange={(e) => { this.setState({ customerStatus: e }) }}>
  1261. {
  1262. intentionalService.map(function (item) {
  1263. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1264. })
  1265. }
  1266. </Select>
  1267. </FormItem>
  1268. <div className="clearfix">
  1269. <FormItem
  1270. labelCol={{ span: 4 }}
  1271. wrapperCol={{ span: 16 }}
  1272. label="业务意向说明" >
  1273. <Input type="textarea" rows={4} placeholder="业务意向说明" value={this.state.remarks}
  1274. onChange={(e) => { this.setState({ remarks: e.target.value }) }}/>
  1275. </FormItem>
  1276. </div>
  1277. <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'160px',marginBottom:'30px'}}>保存</Button>
  1278. <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
  1279. </div>
  1280. <div className="clearfix">
  1281. <div style={{fontSize:'18px',marginLeft:'40px',marginBottom:'20px'}}>业务跟进</div>
  1282. <div className="clearfix" style={{paddingLeft:'40px',paddingRight:'40px'}}>
  1283. <Spin spinning={this.state.loading}>
  1284. <Table
  1285. pagination={this.state.paginations}
  1286. columns={this.state.businessFollowList}
  1287. dataSource={this.state.visitArrList}
  1288. onRowClick={this.followRowClick}
  1289. />
  1290. </Spin>
  1291. </div>
  1292. </div>
  1293. </Spin>
  1294. </Form>
  1295. </Modal>
  1296. <Modal
  1297. footer=''
  1298. width='800px'
  1299. title="新增联系人"
  1300. visible={this.state.addcontactModul}
  1301. onOk={this.addcontactModulOK}
  1302. onCancel={this.addcontactModulcancel}
  1303. >
  1304. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  1305. <Spin spinning={this.state.loading}>
  1306. <Row>
  1307. <FormItem
  1308. labelCol={{ span: 4 }}
  1309. wrapperCol={{ span: 14 }}
  1310. label="是否是主要联系人:" style={{marginRight:'10px'}}>
  1311. <Radio.Group value={this.state.hotst} onChange={(e) => {
  1312. this.setState({ hotst: e.target.value })
  1313. }}>
  1314. <Radio value={0}>是</Radio>
  1315. <Radio value={1}>否</Radio>
  1316. </Radio.Group>
  1317. </FormItem>
  1318. <FormItem
  1319. labelCol={{ span: 4 }}
  1320. wrapperCol={{ span: 14 }}
  1321. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  1322. <Radio.Group value={this.state.hott} onChange={(e) => {
  1323. this.setState({ hott: e.target.value })
  1324. }}>
  1325. <Radio value={0}>男</Radio>
  1326. <Radio value={1}>女</Radio>
  1327. </Radio.Group>
  1328. </FormItem>
  1329. </Row>
  1330. <Row style={{ paddingLeft:'50px' }}>
  1331. <Col span={2}>姓名:</Col>
  1332. <Col span={8}>
  1333. <Input value={this.state.paymentIdt} required="required"
  1334. onChange={(e) => { this.setState({ paymentIdt: e.target.value }) }} />
  1335. </Col>
  1336. <Col span={2} style={{ marginLeft: '50px' }}>QQ号:</Col>
  1337. <Col span={8}>
  1338. <Input value={this.state.entIdt}
  1339. onChange={(e) => { this.setState({ entIdt: e.target.value }) }} />
  1340. </Col>
  1341. </Row>
  1342. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  1343. <Col span={2}>手机号:</Col>
  1344. <Col span={8}>
  1345. <Input value={this.state.payt} required="required"
  1346. onChange={(e) => { this.setState({ payt: e.target.value }) }} />
  1347. </Col>
  1348. <Col span={2} style={{ marginLeft: '50px' }}>座机号:</Col>
  1349. <Col span={8}>
  1350. <Input value={this.state.paymt}
  1351. onChange={(e) => { this.setState({ paymt: e.target.value }) }} />
  1352. </Col>
  1353. </Row>
  1354. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  1355. <Col span={2}>部门:</Col>
  1356. <Col span={8}>
  1357. <Input value={this.state.paytIdtt}
  1358. onChange={(e) => { this.setState({ paytIdtt: e.target.value }) }} />
  1359. </Col>
  1360. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  1361. <Col span={8}>
  1362. <Input value={this.state.paentIdt}
  1363. onChange={(e) => { this.setState({ paentIdt: e.target.value }) }} />
  1364. </Col>
  1365. </Row>
  1366. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  1367. <Col span={2}>微信号:</Col>
  1368. <Col span={8}>
  1369. <Input value={this.state.payIdt}
  1370. onChange={(e) => { this.setState({ payIdt: e.target.value }) }} />
  1371. </Col>
  1372. <Col span={2} style={{ marginLeft: '50px' }}>邮箱:</Col>
  1373. <Col span={8}>
  1374. <Input value={this.state.emailst}
  1375. onChange={(e) => { this.setState({ emailst: e.target.value }) }} />
  1376. </Col>
  1377. </Row>
  1378. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  1379. <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginLeft:'60px'}}>保存</Button>
  1380. <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
  1381. </Row>
  1382. </Spin>
  1383. </Form>
  1384. </Modal>
  1385. <Modal
  1386. footer=''
  1387. title="业务跟进详情"
  1388. width='600px'
  1389. visible={this.state.businessFollowModul}
  1390. onOk={this.businessFollowOk}
  1391. onCancel={this.businessFollowCancel}
  1392. >
  1393. <div className="clearfix">
  1394. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit} style={{paddingLeft:'30px'}}>
  1395. <Spin spinning={this.state.loading}>
  1396. <div className="clearfix" >
  1397. <FormItem className="half-item"
  1398. {...formItemLayout}
  1399. label="意向业务名称" >
  1400. <span>{this.state.a}</span>
  1401. </FormItem>
  1402. <FormItem className="half-item"
  1403. {...formItemLayout}
  1404. label="意向时间" >
  1405. <span>{this.state.a1}</span>
  1406. </FormItem>
  1407. <FormItem className="half-item"
  1408. {...formItemLayout}
  1409. label="客户名称" >
  1410. <span>{this.state.a}</span>
  1411. </FormItem>
  1412. <FormItem className="half-item"
  1413. {...formItemLayout}
  1414. label="营销员" >
  1415. <span>{this.state.a}</span>
  1416. </FormItem>
  1417. <FormItem className="half-item"
  1418. {...formItemLayout}
  1419. label="意向业务进度" >
  1420. <span>{this.state.a}</span>
  1421. </FormItem>
  1422. <FormItem className="half-item"
  1423. {...formItemLayout}
  1424. label="业务客户状态" >
  1425. <span>{this.state.a}</span>
  1426. </FormItem>
  1427. </div>
  1428. <div className="clearfix">
  1429. <FormItem className="half-item"
  1430. {...formItemLayout}
  1431. label="业务意向说明" >
  1432. <span>{this.state.a}</span>
  1433. </FormItem>
  1434. </div>
  1435. <div className="clearfix">
  1436. <div style={{fontSize:'18px'}}>拜访情况</div>
  1437. <div className="clearfix">
  1438. <FormItem className="half-item"
  1439. {...formItemLayout}
  1440. label="拜访方式" >
  1441. <span>{this.state.a}</span>
  1442. </FormItem>
  1443. </div>
  1444. <FormItem className="half-item"
  1445. {...formItemLayout}
  1446. label="联系人" >
  1447. <span>{this.state.a}</span>
  1448. </FormItem>
  1449. <FormItem className="half-item"
  1450. {...formItemLayout}
  1451. label="联系电话" >
  1452. <span>{this.state.a}</span>
  1453. </FormItem>
  1454. <FormItem className="half-item"
  1455. {...formItemLayout}
  1456. label="拜访时间" >
  1457. <span>{this.state.a}</span>
  1458. </FormItem>
  1459. <FormItem className="half-item"
  1460. {...formItemLayout}
  1461. label="拜访人" >
  1462. <span>{this.state.a}</span>
  1463. </FormItem>
  1464. <div className="clearfix">
  1465. <FormItem className="half-item"
  1466. {...formItemLayout}
  1467. label="拜访备注" >
  1468. <span>{this.state.a}</span>
  1469. </FormItem>
  1470. </div>
  1471. </div>
  1472. </Spin>
  1473. </Form>
  1474. </div>
  1475. </Modal>
  1476. </div >
  1477. );
  1478. }
  1479. }));
  1480. export default MyBusiness;