myClient.jsx 107 KB

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