myClient.jsx 108 KB

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