crm.jsx 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  1. import React from 'react';
  2. import { Radio, Icon, Button, AutoComplete,Cascader,Input, Select, Spin, Popconfirm, Table, Switch, message, DatePicker, Upload, Form ,Modal,Tabs,Card } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import TechAchievementDesc from '@/manageCenter/achievement/crmAchievement.jsx';
  7. import { citySelect, provinceList ,areaSelect} from '@/NewDicProvinceList';
  8. import { socialAttribute, industry, auditStatusL, lvl, currentMember ,slcRedit,dataGrade} from '@/dataDic.js';
  9. import { getSocialAttribute, beforeUploadFile,splitUrl ,getSlcRedit,getDataGrade,getAchievementCategory,getTechAuditStatus,getboutique,getPreview} from '@/tools.js';
  10. import './customer.less';
  11. const TabPane = Tabs.TabPane;
  12. const Dragger = Upload.Dragger;
  13. //图片组件
  14. const PicturesWall = React.createClass({
  15. getInitialState() {
  16. return {
  17. previewVisible: false,
  18. previewImage: '',
  19. fileList: [],
  20. }
  21. },
  22. handleCancel() {
  23. this.setState({
  24. previewVisible: false
  25. })
  26. },
  27. handlePreview(file) {
  28. this.setState({
  29. previewImage: file.url || file.thumbUrl,
  30. previewVisible: true,
  31. });
  32. },
  33. handleChange(info) {
  34. let fileList = info.fileList;
  35. this.setState({
  36. fileList
  37. });
  38. this.props.fileList(fileList);
  39. },
  40. componentWillReceiveProps(nextProps) {
  41. this.state.fileList = nextProps.pictureUrl;
  42. },
  43. render() {
  44. const {
  45. previewVisible,
  46. previewImage,
  47. fileList
  48. } = this.state;
  49. const uploadButton = (
  50. <div>
  51. <Icon type="plus" />
  52. <div className="ant-upload-text">点击上传</div>
  53. </div>
  54. );
  55. return(
  56. <div style={{display:"inline-block"}}>
  57. <Upload
  58. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  59. data={{ 'sign': '' }}
  60. listType="picture-card"
  61. fileList={fileList}
  62. onPreview={this.handlePreview}
  63. onChange={this.handleChange} >
  64. {fileList.length >= 1 ? null : uploadButton}
  65. </Upload>
  66. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  67. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  68. </Modal>
  69. </div>
  70. );
  71. }
  72. });
  73. const IntentionCustomer = Form.create()(React.createClass({
  74. loadData(pageNo, apiUrl) {
  75. this.setState({
  76. visitModul:false,
  77. loading: true,
  78. ispage:pageNo,
  79. modalVisible:false
  80. });
  81. $.ajax({
  82. method: "post",
  83. dataType: "json",
  84. crossDomain: false,
  85. url: globalConfig.context +"/api/admin/customer/listCustomerInformation",
  86. data: {
  87. pageNo: pageNo || 1,
  88. pageSize: this.state.pagination.pageSize,
  89. name: this.state.nameSearch,
  90. dataGrade: this.state.dataGrade,
  91. follow: this.state.follow,
  92. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  93. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  94. startDate: this.state.releaseDate[0],
  95. endDate: this.state.releaseDate[1],
  96. },
  97. success: function(data) {
  98. let theArr = [];
  99. if(data.error.length || data.data.list == "") {
  100. if(data.error && data.error.length) {
  101. message.warning(data.error[0].message);
  102. };
  103. } else {
  104. for(let i = 0; i < data.data.list.length; i++) {
  105. let thisdata = data.data.list[i];
  106. let diqu=(thisdata.province==null?"":thisdata.province)+(thisdata.city==null?"":"-"+thisdata.city)+(thisdata.area==null?"":"-"+thisdata.area);
  107. theArr.push({
  108. key: i,
  109. id: thisdata.id,//用户ID
  110. type:thisdata.type,//类型
  111. name: thisdata.name,//用户名称
  112. diqu: diqu,//省市区
  113. industry: thisdata.industry,//行业
  114. contacts: thisdata.contacts,//联系人
  115. contactMobile: thisdata.contactMobile,//联系人电话
  116. createTime: thisdata.createTime,//行业
  117. });
  118. };
  119. this.state.pagination.current = data.data.pageNo;
  120. this.state.pagination.total = data.data.totalCount;
  121. };
  122. if(data.data&&data.data.list&&!data.data.list.length){
  123. this.state.pagination.current=0
  124. this.state.pagination.total=0
  125. }
  126. this.setState({
  127. dataSource: theArr,
  128. pageNo: pageNo,
  129. pagination: this.state.pagination,
  130. selectedRowKeys:[]
  131. });
  132. }.bind(this),
  133. }).always(function() {
  134. this.setState({
  135. loading: false
  136. });
  137. }.bind(this));
  138. },
  139. loadDatas(pageNos) {
  140. this.setState({
  141. loading: true,
  142. });
  143. $.ajax({
  144. method: "get",
  145. dataType: "json",
  146. crossDomain: false,
  147. url: globalConfig.context + "/api/admin/achievement/listUserAchievement",
  148. data: {
  149. pageNo: pageNos || 1,
  150. pageSize: this.state.paginationDate.pageSize,
  151. uid:this.state.uid,
  152. },
  153. success: function (data) {
  154. let theArr = [];
  155. if (!data.data || !data.data.list) {
  156. if (data.error && data.error.length) {
  157. message.warning(data.error[0].message);
  158. };
  159. } else {
  160. for (let i = 0; i < data.data.list.length; i++) {
  161. let thisdata = data.data.list[i];
  162. theArr.push({
  163. key: i,
  164. id: thisdata.id,
  165. serialNumber: thisdata.serialNumber,
  166. dataCategory: thisdata.dataCategory,
  167. name: thisdata.name,
  168. keyword: thisdata.keyword,
  169. theName: thisdata.username || thisdata.ownerName,
  170. category: thisdata.category,
  171. ownerName: thisdata.username ? thisdata.username : thisdata.ownerName,
  172. ownerType: thisdata.ownerType,
  173. ownerMobile: thisdata.ownerMobile,
  174. status: thisdata.status,
  175. releaseDate: thisdata.releaseDate,
  176. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  177. auditStatus: thisdata.auditStatus,
  178. boutique: thisdata.boutique,
  179. hot: thisdata.hot,
  180. techBrokerId:thisdata.techBrokerId,
  181. createTimeFormattedDate: thisdata.createTimeFormattedDate,
  182. remark:thisdata.remark
  183. });
  184. };
  185. this.state.paginationDate.current = data.data.pageNo;
  186. this.state.paginationDate.total = data.data.totalCount;
  187. };
  188. this.setState({
  189. dataSourceDate: theArr,
  190. pageNos: pageNos,
  191. paginationDate: this.state.paginationDate
  192. });
  193. }.bind(this),
  194. }).always(function () {
  195. this.setState({
  196. loading: false
  197. });
  198. }.bind(this));
  199. },
  200. getInitialState() {
  201. return {
  202. addressSearch: [],
  203. orgCodeUrl: [],
  204. companyLogoUrl: [],
  205. visible: false,
  206. releaseDate: [],
  207. visitModul:false,
  208. detailApi:'',
  209. followData:{},
  210. selectedRowKeys: [],
  211. selectedRows: [],
  212. loading: false,
  213. callnub:"0",
  214. pojectApplicationUrl:"",
  215. modalVisible:false,
  216. pagination: {
  217. defaultCurrent: 1,
  218. defaultPageSize: 10,
  219. showQuickJumper: true,
  220. pageSize: 10,
  221. onChange: function(page) {
  222. this.loadData(page);
  223. }.bind(this),
  224. showTotal: function(total) {
  225. return '共' + total + '条数据';
  226. }
  227. },
  228. paginationDate: {
  229. defaultCurrent: 1,
  230. defaultPageSize: 10,
  231. showQuickJumper: true,
  232. pageSize: 10,
  233. onChange: function(page) {
  234. this.loadDatas(page);
  235. }.bind(this),
  236. showTotal: function(total) {
  237. return '共' + total + '条数据';
  238. }
  239. },
  240. columns: [{
  241. title: '客户名称',
  242. dataIndex: 'name',
  243. key: 'name',
  244. }, {
  245. title: '地区',
  246. dataIndex: 'diqu',
  247. key: 'diqu',
  248. }, {
  249. title: '联系人',
  250. dataIndex: 'contacts',
  251. key: 'contacts',
  252. },
  253. {
  254. title: '行业',
  255. dataIndex: 'industry',
  256. key: 'industry'
  257. },
  258. {
  259. title: '联系电话',
  260. dataIndex: 'contactMobile',
  261. key: 'contactMobile',
  262. },
  263. {
  264. title: '创建时间',
  265. dataIndex: 'createTime',
  266. key: 'createTime',
  267. }
  268. ],
  269. data: [],
  270. dataman: [],
  271. dataSource: [],
  272. visitArrList: [],
  273. columnsDate: [
  274. {
  275. title: '编号',
  276. dataIndex: 'serialNumber',
  277. key: 'serialNumber',
  278. }, {
  279. title: '名称',
  280. dataIndex: 'name',
  281. key: 'name',
  282. }, {
  283. title: '关键字',
  284. dataIndex: 'keyword',
  285. key: 'keyword',
  286. }, {
  287. title: '类型',
  288. dataIndex: 'category',
  289. key: 'category',
  290. render: text => { return getAchievementCategory(text); }
  291. },{
  292. title: '审核状态',
  293. dataIndex: 'auditStatus',
  294. key: 'auditStatus',
  295. render: text => { return getTechAuditStatus(text) }
  296. },
  297. {
  298. title: '是否精品',
  299. dataIndex: 'boutique',
  300. key: 'boutique',
  301. render: text => { return getboutique(text) }
  302. },
  303. {
  304. title: '发布时间',
  305. dataIndex: 'releaseDateFormattedDate',
  306. key: 'releaseDateFormattedDate',
  307. },{
  308. title: '录入时间',
  309. dataIndex: 'createTimeFormattedDate',
  310. key: 'createTimeFormattedDate',
  311. },
  312. ],
  313. dataSourceDate: [],
  314. };
  315. },
  316. componentWillMount() {
  317. //城市
  318. let Province = [];
  319. provinceList.map(function(item) {
  320. var id = String(item.id)
  321. Province.push(
  322. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  323. )
  324. });
  325. //行业
  326. let intentionalArr = [];
  327. industry.map(function(item) {
  328. intentionalArr.push(
  329. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  330. )
  331. });
  332. //会员等级
  333. let lvlArr = [];
  334. lvl.map(function(item) {
  335. lvlArr.push(
  336. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  337. )
  338. });
  339. //会员状态customerStatus
  340. let currentMemberArr = [];
  341. currentMember.map(function(item) {
  342. currentMemberArr.push(
  343. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  344. )
  345. });
  346. this.state.Provinces = Province;
  347. this.state.intentionalOption = intentionalArr;
  348. this.state.lvlArrOption = lvlArr;
  349. this.state.currentMemberArrOption = currentMemberArr;
  350. this.loadData();
  351. },
  352. search() {
  353. this.loadData();
  354. },
  355. reset() {
  356. this.state.nameSearch = '';
  357. this.state.addressSearch = [];
  358. this.state.dataGrade=undefined;
  359. this.state.follow=undefined;
  360. this.state.provinceSearch = undefined;
  361. this.state.citySearch = undefined;
  362. this.state.releaseDate[0] = undefined;
  363. this.state.releaseDate[1] = undefined;
  364. this.loadData();
  365. },
  366. //列表详情
  367. details(id) {
  368. $.ajax({
  369. method: "get",
  370. dataType: "json",
  371. crossDomain: false,
  372. url: globalConfig.context +"/api/admin/customer/findOrganizationCustomerDetail",
  373. data: {
  374. uid:id
  375. },
  376. success: function(data) {
  377. let thisDetail= data.data;
  378. if(data.error.length || data.data.list == "") {
  379. if(data.error && data.error.length) {
  380. message.warning(data.error[0].message);
  381. };
  382. } else {
  383. let ProvinceCityArr = [];
  384. let ProvinceS = thisDetail.locationProvince; //省
  385. let citys = thisDetail.locationCity;//市
  386. let Areas = thisDetail.locationArea;//区
  387. ProvinceCityArr.push(ProvinceS, citys, Areas);
  388. this.setState({
  389. detailId:thisDetail.id,//详情ID
  390. identifyName:thisDetail.identifyName,//客户名称
  391. uid:thisDetail.uid,//客户ID
  392. societyTag:thisDetail.societyTag,//社会标签
  393. companyLogoUrl:thisDetail.companyLogoUrl? splitUrl(thisDetail.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],//公司LOGO
  394. introduction:thisDetail.introduction,//介绍
  395. industry:thisDetail.industry?thisDetail.industry.toString():"",//行业
  396. locationProvince:thisDetail.locationProvince,//省
  397. locationCity:thisDetail.locationCity,//市
  398. locationArea:thisDetail.locationArea,//区
  399. ProvinceCity: ProvinceCityArr[0]!=null?ProvinceCityArr:undefined,//省市区
  400. postalAddress:thisDetail.postalAddress,//通讯地址
  401. contactsFixedTel:thisDetail.contactsFixedTel,//固定电话
  402. contactsFax:thisDetail.contactsFax,//传真地址
  403. registeredCapital:thisDetail.registeredCapital,//注册资金
  404. enterpriseScale:thisDetail.enterpriseScale,//企业规模
  405. legalPerson:thisDetail.legalPerson,//法人
  406. legalPersonIdCard:thisDetail.legalPersonIdCard,//法人身份证
  407. legalPersonTel:thisDetail.legalPersonTel,//法人联系电话
  408. legalPersonEmail:thisDetail.legalPersonEmail,//法人联系邮箱
  409. highTechZone:thisDetail.highTechZone,//是否高新
  410. listed:thisDetail.listed,//是否高新
  411. international:thisDetail.international,//是否国际化
  412. orgCode:thisDetail.orgCode,//社会统一机构
  413. orgCodeUrl:thisDetail.orgCodeUrl? splitUrl(thisDetail.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],//社会统一机构地址
  414. businessScope:thisDetail.businessScope,//业务范围
  415. contacts:thisDetail.contacts,//主要联系人姓名
  416. contactMobile:thisDetail.contactMobile,//主要联系人电话
  417. investment:thisDetail.investment,//投资机构
  418. businessAudit:thisDetail.businessAudit,//业务认证
  419. auditStatus:thisDetail.auditStatus,//实名认证
  420. intellectualProperty:thisDetail.intellectualProperty,//已有知识产权情况
  421. yearSalesAmount:thisDetail.yearSalesAmount,//年度销售额
  422. lastYearResearchAmount:thisDetail.lastYearResearchAmount,//上年度研发费用
  423. assets:thisDetail.assets,//总资产
  424. qualification:thisDetail.qualification,//企业资质情况
  425. cooperationSituation:thisDetail.cooperationSituation,//企业与高校院所
  426. informationMaintainer:thisDetail.informationMaintainer,//资料维护人
  427. informationMaintainerName:thisDetail.informationMaintainerName,//资料维护人
  428. coreTechnology:thisDetail.coreTechnology,//核心技术
  429. accomplishSituation:thisDetail.accomplishSituation,//客户已完成项目情况
  430. creditRating:thisDetail.creditRating?thisDetail.creditRating.toString():"",//信用等级
  431. });
  432. }}.bind(this),
  433. }).always(function() {
  434. this.setState({
  435. loading: false
  436. });
  437. }.bind(this));
  438. },
  439. //基本信息提交
  440. newSubmit(e) {
  441. e.preventDefault();
  442. if(!this.state.industry) {
  443. message.warning('请选择行业');
  444. return false;
  445. };
  446. if(!this.state.societyTag) {
  447. message.warning('请选择社会属性');
  448. return false;
  449. };
  450. if(!this.state.ProvinceCity[1]) {
  451. message.warning('请选择地区');
  452. return false;
  453. };
  454. if(!this.state.registeredCapital) {
  455. message.warning('请填写注册资本');
  456. return false;
  457. };
  458. if(!this.state.businessScope) {
  459. message.warning('请填写公司主营产品');
  460. return false;
  461. };
  462. var reg = /^[1-9]\d*$|^0$/;
  463. if(this.state.consultationPrice) {
  464. if(this.state.consultationPrice.length > 6) {
  465. message.warning('咨询费用不超过6位数');
  466. this.refs.consul.focus();
  467. return false;
  468. };
  469. if(!reg.test(this.state.consultationPrice)) {
  470. message.warning('咨询费用只能输入数字');
  471. this.refs.consul.focus();
  472. return false;
  473. }
  474. }
  475. this.state.data = [];
  476. this.setState({
  477. selectedRowKeys: [],
  478. });
  479. let theorgCodeUrl = [];
  480. if(this.state.orgCodeUrl.length) {
  481. let picArr = [];
  482. this.state.orgCodeUrl.map(function(item) {
  483. if(item.response && item.response.data && item.response.data.length) {
  484. picArr.push(item.response.data);
  485. }
  486. });
  487. theorgCodeUrl = picArr.join(",");
  488. };
  489. let thecompanyLogoUrl = [];
  490. if(this.state.companyLogoUrl.length) {
  491. let picArr = [];
  492. this.state.companyLogoUrl.map(function(item) {
  493. if(item.response && item.response.data && item.response.data.length) {
  494. picArr.push(item.response.data);
  495. }
  496. });
  497. thecompanyLogoUrl = picArr.join(",");
  498. };
  499. let years = [];
  500. let yearMonth = this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
  501. years = yearMonth.split('/');
  502. this.setState({
  503. loading: true
  504. });
  505. $.ajax({
  506. method: "post",
  507. dataType: "json",
  508. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  509. data: {
  510. id:this.state.detailId,//详情ID
  511. identifyName:this.state.identifyName,//客户名称
  512. uid:this.state.uid,//客户ID
  513. societyTag:this.state.societyTag,//社会标签
  514. companyLogoUrl:thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',//公司LOGO
  515. introduction:this.state.introduction,//介绍
  516. industry:this.state.industry,//行业
  517. locationProvince:(this.state.ProvinceCity)[0],//省
  518. locationCity:(this.state.ProvinceCity)[1],//市
  519. locationArea:(this.state.ProvinceCity)[2],//区
  520. postalAddress:this.state.postalAddress,//通讯地址
  521. contactsFixedTel:this.state.contactsFixedTel,//固定电话
  522. contactsFax:this.state.contactsFax,//传真地址
  523. registeredCapital:this.state.registeredCapital,//注册资金
  524. enterpriseScale:this.state.enterpriseScale,//企业规模
  525. legalPerson:this.state.legalPerson,//法人
  526. legalPersonIdCard:this.state.legalPersonIdCard,//法人身份证
  527. legalPersonTel:this.state.legalPersonTel,//法人联系电话
  528. legalPersonEmail:this.state.legalPersonEmail,//法人联系邮箱
  529. highTechZone:this.state.highTechZone,//是否高新
  530. listed:this.state.listed,//是否高新
  531. international:this.state.international,//是否国际化
  532. orgCode:this.state.orgCode,//社会统一机构
  533. orgCodeUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',//社会统一机构地址
  534. businessScope:this.state.businessScope,//业务范围
  535. contacts:this.state.contacts,//主要联系人姓名
  536. contactMobile:this.state.contactMobile,//主要联系人电话
  537. investment:this.state.investment,//投资机构
  538. businessAudit:this.state.businessAudit,//业务认证
  539. auditStatus:this.state.auditStatus,//实名认证
  540. intellectualProperty:this.state.intellectualProperty,//已有知识产权情况
  541. yearSalesAmount:this.state.yearSalesAmount,//年度销售额
  542. lastYearResearchAmount:this.state.lastYearResearchAmount,//上年度研发费用
  543. assets:this.state.assets,//总资产
  544. qualification:this.state.qualification,//企业资质情况
  545. cooperationSituation:this.state.cooperationSituation,//企业与高校院所
  546. informationMaintainer:this.state.informationMaintainer,//资料维护人
  547. informationMaintainerName:this.state.informationMaintainerName,//资料维护人
  548. coreTechnology:this.state.coreTechnology,//核心技术
  549. accomplishSituation:this.state.accomplishSituation,//客户已完成项目情况
  550. creditRating:this.state.creditRating,//信用等级
  551. }
  552. }).done(function(data) {
  553. this.setState({
  554. loading: false
  555. });
  556. if(!data.error.length) {
  557. message.success('保存成功!');
  558. this.visitCancel();
  559. this.loadData(this.state.pageNo);
  560. } else {
  561. message.warning(data.error[0].message);
  562. }
  563. }.bind(this));
  564. },
  565. //获取ID
  566. getStateData(id) {
  567. this.setState({
  568. loading: true
  569. });
  570. $.ajax({
  571. method: "post",
  572. dataType: "json",
  573. crossDomain: false,
  574. url: globalConfig.context + "/api/admin/techproject/techProjectLog",
  575. data: {
  576. pid: id || this.props.data.id
  577. },
  578. success: function (data) {
  579. if (!data.data) {
  580. if (data.error && data.error.length) {
  581. message.warning(data.error[0].message);
  582. };
  583. return;
  584. };
  585. var myDate = new Date();
  586. this.state.stateTable = [];
  587. for (let i = 0; i < data.data.length; i++) {
  588. this.state.stateTable.push({
  589. key: i,
  590. state: data.data[i].state,
  591. recordTime: data.data[i].recordTime,
  592. recordTimeFormattedDate: data.data[i].recordTimeFormattedDate,
  593. principal: data.data[i].principal,
  594. operator: data.data[i].operator,
  595. comment: data.data[i].comment
  596. });
  597. };
  598. }.bind(this),
  599. }).always(function () {
  600. this.setState({
  601. loading: false
  602. });
  603. }.bind(this));
  604. },
  605. //整行点击
  606. tableRowClick(record, index) {
  607. this.state.visitModul=true;
  608. this.details(record.id);
  609. },
  610. //指定转交人自动补全
  611. supervisor(e){
  612. $.ajax({
  613. method: "get",
  614. dataType: "json",
  615. crossDomain: false,
  616. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  617. data:{
  618. adminName:e
  619. },
  620. success: function (data) {
  621. let thedata=data.data;
  622. if (!thedata) {
  623. if (data.error && data.error.length) {
  624. message.warning(data.error[0].message);
  625. };
  626. thedata = {};
  627. };
  628. this.setState({
  629. customerArr:thedata,
  630. });
  631. }.bind(this),
  632. }).always(function () {
  633. this.setState({
  634. loading: false
  635. });
  636. }.bind(this));
  637. },
  638. //输入转交人输入框失去焦点是判断客户是否存在
  639. selectAuto(value,options){
  640. this.setState({
  641. auto:value
  642. })
  643. },
  644. blurChange(e){
  645. let theType='';
  646. let contactLists=this.state.customerArr||[];
  647. if (e) {
  648. contactLists.map(function (item) {
  649. if (item.name == e.toString()) {
  650. theType = item.id;
  651. }
  652. });
  653. }
  654. this.setState({
  655. theTypes:theType
  656. })
  657. },
  658. //值改变时请求客户名称
  659. httpChange(e){
  660. if(e.length>=1){
  661. this.supervisor(e);
  662. }
  663. this.setState({
  664. auto:e
  665. })
  666. },
  667. //转交
  668. changeAssigner() {
  669. if(this.state.theTypes){
  670. this.setState({
  671. selectedRowKeys: [],
  672. });
  673. let id;
  674. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  675. let rowItem = this.state.selectedRows[idx];
  676. if(rowItem.id) {
  677. id=rowItem.id;
  678. };
  679. };
  680. $.ajax({
  681. method: "post",
  682. dataType: "json",
  683. crossDomain: false,
  684. url: globalConfig.context + "/api/admin/customer/updateInformationMaintainerr",
  685. data: {
  686. id: id, //客户ID
  687. aid: this.state.theTypes, //指定转交人的ID
  688. }
  689. }).done(function(data) {
  690. if(!data.error.length) {
  691. message.success('转交成功!');
  692. this.setState({
  693. auto:'',
  694. loading: false,
  695. });
  696. } else {
  697. message.warning(data.error[0].message);
  698. };
  699. this.loadData(this.state.pageNo);
  700. }.bind(this));
  701. }else{
  702. message.warning('请输入转交人姓名')
  703. }
  704. },
  705. //详情打开
  706. visitOk(e) {
  707. this.setState({
  708. visitModul: false
  709. });
  710. },
  711. //详情关闭
  712. visitCancel(e) {
  713. this.setState({
  714. visitModul: false,
  715. callnub:"0"
  716. });
  717. },
  718. getOrgCodeUrl(e) {
  719. this.setState({ orgCodeUrl: e });
  720. },
  721. getCompanyLogoUrl(e) {
  722. this.setState({ companyLogoUrl: e });
  723. },
  724. componentWillReceiveProps(nextProps) {
  725. if(nextProps.ApiUrl!=this.props.ApiUrl) {
  726. this.state.nameSearch = '';
  727. this.state.addressSearch = [];
  728. this.state.provinceSearch = undefined;
  729. this.state.citySearch = undefined;
  730. this.state.releaseDate[0] = undefined;
  731. this.state.releaseDate[1] = undefined;
  732. this.loadData(null,nextProps.ApiUrl);
  733. };
  734. },
  735. callback(e) {
  736. if(e == '0') {
  737. this.setState({
  738. callnub: e,
  739. })
  740. }
  741. if(e == '1') {
  742. this.setState({
  743. callnub: e,
  744. })
  745. this.loadDatas();
  746. }
  747. },
  748. //发布成果
  749. addClick() {
  750. this.state.RowData = {};
  751. this.setState({
  752. showDesc: true,
  753. });
  754. },
  755. //关闭发布成果
  756. closeDesc(e, s) {
  757. this.state.showDesc = e;
  758. if (s) {
  759. this.loadDatas();
  760. };
  761. },
  762. tableRowClickDate(record, index) {
  763. this.state.RowData = record;
  764. if(index!=undefined){
  765. this.setState({
  766. showDesc: true
  767. });
  768. }
  769. },
  770. render() {
  771. const {
  772. RangePicker,
  773. MonthPicker
  774. } = DatePicker;
  775. const formItemLayout = {
  776. labelCol: { span: 8 },
  777. wrapperCol: { span: 14 },
  778. };
  779. const FormItem = Form.Item;
  780. const rowSelection = {
  781. selectedRowKeys: this.state.selectedRowKeys,
  782. onChange: (selectedRowKeys, selectedRows) => {
  783. this.setState({
  784. modalVisible:false,
  785. selectedRows: selectedRows.slice(-1),
  786. selectedRowKeys: selectedRowKeys.slice(-1)
  787. });
  788. },
  789. onSelect: (recordt, selected, selectedRows) => {
  790. this.setState({
  791. modalVisible:false,
  792. recordt: recordt.id
  793. })
  794. },
  795. };
  796. const hasSelected = this.state.selectedRowKeys.length > 0;
  797. const dataSources=this.state.customerArr || [];
  798. const options = dataSources.map((group) =>
  799. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  800. )
  801. const intentionState = this.props.intentionState ||'';
  802. const props = {
  803. name: 'file',
  804. multiple: true,
  805. action: '/api/admin/techproject/upload',
  806. onChange(info) {
  807. const status = info.file.status;
  808. if (status !== 'uploading') {
  809. console.log(11);
  810. console.log(info.file, info.fileList);
  811. }
  812. if (status === 'done') {
  813. message.success(`${info.file.name} file uploaded successfully.`);
  814. } else if (status === 'error') {
  815. message.error(`${info.file.name} file upload failed.`);
  816. }
  817. },
  818. };
  819. return(
  820. <div className="user-content" >
  821. <div className="content-title">
  822. <span>客户资料维护</span>
  823. </div>
  824. <div className="user-search">
  825. <Input placeholder="客户名称"
  826. value={this.state.nameSearch}
  827. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  828. <Select placeholder="省"
  829. style={{ width: 80 }}
  830. value={this.state.provinceSearch}
  831. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  832. {this.state.Provinces}
  833. </Select>
  834. <span style={{marginRight:'10px'}}>
  835. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  836. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  837. </span>
  838. <Select placeholder="选择资料质量" style={{ width: 120 }}
  839. value={this.state.dataGrade}
  840. onChange={(e) => { this.setState({ dataGrade: e }) }}>
  841. <Select.Option value="0" >有效资料</Select.Option>
  842. <Select.Option value="1" >优质资料</Select.Option>
  843. </Select>
  844. <Select placeholder="是否面谈客户" style={{ width: 120 }}
  845. value={this.state.follow}
  846. onChange={(e) => { this.setState({ follow: e }) }}>
  847. <Select.Option value="0" >否</Select.Option>
  848. <Select.Option value="1" >是</Select.Option>
  849. </Select>
  850. <RangePicker style={{marginRight:'10px'}}
  851. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  852. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  853. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  854. <Button type="primary" onClick={this.search}>搜索</Button>
  855. <Button onClick={this.reset}>重置</Button>
  856. <AutoComplete
  857. className="certain-category-search"
  858. dropdownClassName="certain-category-search-dropdown"
  859. dropdownMatchSelectWidth={false}
  860. dropdownStyle={{ width: 120 }}
  861. style={{ width: '120px'}}
  862. dataSource={options}
  863. placeholder="输入转交人姓名"
  864. value={this.state.auto}
  865. onChange={this.httpChange}
  866. filterOption={true}
  867. onBlur={this.blurChange}
  868. onSelect={this.selectAuto}
  869. disabled={!hasSelected}
  870. >
  871. <Input />
  872. </AutoComplete>
  873. <Button type="primary" onClick={this.changeAssigner} disabled={!hasSelected} >转交</Button>
  874. </div>
  875. <div className="patent-table">
  876. <Spin spinning={this.state.loading}>
  877. <Table columns={this.state.columns}
  878. dataSource={this.state.dataSource}
  879. rowSelection={rowSelection}
  880. pagination={this.state.pagination}
  881. onRowClick={this.tableRowClick}
  882. />
  883. </Spin>
  884. </div>
  885. <Modal
  886. className="customeDetails"
  887. footer=''
  888. title="客户资料"
  889. width='1000px'
  890. visible={this.state.visitModul}
  891. onOk={this.visitOk}
  892. onCancel={this.visitCancel}
  893. >
  894. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  895. <TabPane tab="基本信息" key="0">
  896. <div>
  897. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  898. <Spin spinning={this.state.loading}>
  899. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
  900. <div className="clearfix" >
  901. <FormItem className="half-item"
  902. {...formItemLayout}
  903. label="客户姓名"
  904. >
  905. <span>{this.state.identifyName}</span>
  906. </FormItem>
  907. <FormItem className="half-item"
  908. {...formItemLayout}
  909. label="资料所属人"
  910. >
  911. <span>{this.state.informationMaintainerName}</span>
  912. </FormItem>
  913. </div>
  914. <div className="clearfix" >
  915. <FormItem className="half-item"
  916. {...formItemLayout}
  917. label="企业行业">
  918. <Select placeholder="选择行业" value={this.state.industry} style={{width:'95%'}}
  919. onChange={(e)=>{this.setState({industry:e})}}>
  920. {
  921. industry.map(function (item) {
  922. return <Select.Option key={item.value} >{item.key}</Select.Option>
  923. })
  924. }
  925. </Select>
  926. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  927. </FormItem>
  928. <FormItem className="half-item"
  929. {...formItemLayout}
  930. label="社会属性"
  931. >
  932. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'95%'}}
  933. onChange={(e)=>{this.setState({societyTag:e})}}>
  934. {
  935. socialAttribute.map(function (item) {
  936. return <Select.Option key={item.value} >{item.key}</Select.Option>
  937. })
  938. }
  939. </Select>
  940. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  941. </FormItem>
  942. <FormItem className="half-item"
  943. {...formItemLayout}
  944. label="省-市-区"
  945. >
  946. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
  947. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  948. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  949. </FormItem>
  950. <FormItem className="half-item"
  951. {...formItemLayout}
  952. label="注册资本"
  953. >
  954. <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
  955. this.setState({ registeredCapital: e.target.value }) }} />万
  956. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  957. </FormItem>
  958. <div className='clearfix'>
  959. <FormItem
  960. labelCol={{ span:4 }}
  961. wrapperCol={{ span: 20 }}
  962. label="主营产品" >
  963. <Input type="textarea" rows={2} value={this.state.businessScope} style={{width:'95%'}}
  964. onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}}/>
  965. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  966. </FormItem>
  967. </div>
  968. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
  969. <FormItem className="half-item"
  970. {...formItemLayout}
  971. label="通信地址"
  972. >
  973. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  974. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  975. </FormItem>
  976. <FormItem className="half-item"
  977. {...formItemLayout}
  978. label="固定电话"
  979. >
  980. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  981. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }}/>
  982. </FormItem>
  983. <FormItem className="half-item"
  984. {...formItemLayout}
  985. label="客户传真"
  986. >
  987. <Input placeholder="客户传真" value={this.state.contactsFax}
  988. onChange={(e) => { this.setState({ contactsFax: e.target.value })}}/>
  989. </FormItem>
  990. <FormItem className="half-item"
  991. {...formItemLayout}
  992. label="企业人数"
  993. >
  994. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  995. this.setState({ enterpriseScale: e.target.value })}}/>
  996. </FormItem>
  997. <FormItem className="half-item"
  998. {...formItemLayout}
  999. label="法人名称"
  1000. >
  1001. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1002. this.setState({ legalPerson: e.target.value })}}/>
  1003. </FormItem>
  1004. <FormItem className="half-item"
  1005. {...formItemLayout}
  1006. label="法人身份证"
  1007. >
  1008. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1009. this.setState({ legalPersonIdCard: e.target.value })}}/>
  1010. </FormItem>
  1011. <FormItem className="half-item"
  1012. {...formItemLayout}
  1013. label="联系人"
  1014. >
  1015. <Input placeholder="联系人名称" value={this.state.contacts} onChange={(e) => {
  1016. this.setState({ contacts: e.target.value })}}/>
  1017. </FormItem>
  1018. <FormItem className="half-item"
  1019. {...formItemLayout}
  1020. label="联系人号码"
  1021. >
  1022. <Input placeholder="联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1023. this.setState({ contactMobile: e.target.value })}}/>
  1024. </FormItem>
  1025. <FormItem className="half-item"
  1026. {...formItemLayout}
  1027. label="法人电话"
  1028. >
  1029. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1030. this.setState({ legalPersonTel: e.target.value })}}/>
  1031. </FormItem>
  1032. <FormItem className="half-item"
  1033. {...formItemLayout}
  1034. label="法人邮箱"
  1035. >
  1036. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1037. onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}}/>
  1038. </FormItem>
  1039. <FormItem className="half-item"
  1040. {...formItemLayout}
  1041. label="社会统一信用机构代码"
  1042. >
  1043. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1044. this.setState({ orgCode: e.target.value })}}/>
  1045. </FormItem>
  1046. <div className='clearfix'>
  1047. <FormItem
  1048. labelCol={{ span:4 }}
  1049. wrapperCol={{ span: 18 }}
  1050. label="客户简介" >
  1051. <Input type="textarea" rows={3} value={this.state.introduction}
  1052. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  1053. </FormItem>
  1054. </div>
  1055. <div className="clearfix pictures">
  1056. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'95px'}}
  1057. labelCol={{ span: 8 }}
  1058. wrapperCol={{ span: 10 }}
  1059. label="机构证书(PIC)" >
  1060. <PicturesWall
  1061. fileList={this.getOrgCodeUrl}
  1062. pictureUrl={this.state.orgCodeUrl} />
  1063. <p>建议:图片要清晰。</p>
  1064. </FormItem>
  1065. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginTop:'20px'}}
  1066. labelCol={{ span: 8 }}
  1067. wrapperCol={{ span: 10 }}
  1068. label="单位LOGO" >
  1069. <PicturesWall
  1070. fileList={this.getCompanyLogoUrl}
  1071. pictureUrl={this.state.companyLogoUrl} />
  1072. <p>建议:图片要清晰。</p>
  1073. </FormItem>
  1074. </div>
  1075. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
  1076. <div className='clearfix' >
  1077. <FormItem className="half-item"
  1078. {...formItemLayout}
  1079. label="上年度销售额"
  1080. >
  1081. <Input ref='consul' placeholder="请输入上年度销售额" value={this.state.yearSalesAmount} style={{width:'95%'}}
  1082. onChange={(e) => {this.setState({yearSalesAmount: e.target.value })}}/>万
  1083. </FormItem>
  1084. <FormItem className="half-item"
  1085. {...formItemLayout}
  1086. label="上年度研发费用"
  1087. >
  1088. <Input ref='consul' placeholder="请输入上年度研发费用" value={this.state.lastYearResearchAmount} style={{width:'95%'}}
  1089. onChange={(e) => {this.setState({lastYearResearchAmount: e.target.value })}}/>万
  1090. </FormItem>
  1091. <FormItem className="half-item"
  1092. {...formItemLayout}
  1093. label="客户信用等级"
  1094. >
  1095. <Select placeholder="客户信用等级" value={this.state.creditRating}
  1096. onChange={(e)=>{this.setState({creditRating:e})}}>
  1097. {
  1098. slcRedit.map(function (item) {
  1099. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1100. })
  1101. }
  1102. </Select>
  1103. </FormItem>
  1104. <FormItem className="half-item"
  1105. {...formItemLayout}
  1106. label="上年度总资产情况"
  1107. >
  1108. <Input ref='consul' placeholder="上年度总资产情况" value={this.state.assets} style={{width:'95%'}}
  1109. onChange={(e) => {this.setState({assets: e.target.value })}}/>万
  1110. </FormItem>
  1111. <div className='clearfix'>
  1112. <FormItem
  1113. labelCol={{ span:4 }}
  1114. wrapperCol={{ span: 19 }}
  1115. label="企业核心技术" >
  1116. <Input type="textarea" rows={3} value={this.state.coreTechnology}
  1117. onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
  1118. </FormItem>
  1119. </div>
  1120. <div className='clearfix'>
  1121. <FormItem
  1122. labelCol={{ span:4 }}
  1123. wrapperCol={{ span: 19 }}
  1124. label="企业资质情况" >
  1125. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1126. onChange={(e,pre) => { this.setState({ qualification: e.target.value })}}/>
  1127. </FormItem>
  1128. </div>
  1129. <div className='clearfix'>
  1130. <FormItem
  1131. labelCol={{ span:4 }}
  1132. wrapperCol={{ span: 19 }}
  1133. label="企业已做项目" >
  1134. <Input type="textarea" rows={3} value={this.state.accomplishSituation} placeholder="请按如下格式填写:项目类型+主管部门+申报时间+立项情况+验收情况"
  1135. onChange={(e,pre) => { this.setState({ accomplishSituation: e.target.value })}}/>
  1136. </FormItem>
  1137. </div>
  1138. <div className='clearfix'>
  1139. <FormItem
  1140. labelCol={{ span:4 }}
  1141. wrapperCol={{ span: 19 }}
  1142. label="高企合作情况" >
  1143. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1144. onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}}/>
  1145. </FormItem>
  1146. </div>
  1147. <div className='clearfix'>
  1148. <FormItem
  1149. labelCol={{ span:4 }}
  1150. wrapperCol={{ span: 19 }}
  1151. label="项目申请书" >
  1152. <Upload
  1153. name="avatar"
  1154. action={globalConfig.context + "/api/admin/customer/upload"}
  1155. data={{
  1156. 'uid': this.state.detailId,
  1157. 'sign': 'organization_application'
  1158. }}
  1159. beforeUpload={beforeUploadFile}
  1160. fileList={this.state.fileList}
  1161. onChange={(info) => {
  1162. if (info.file.status !== 'uploading') {
  1163. }
  1164. if (info.file.status === 'done') {
  1165. if (!info.file.response.error.length) {
  1166. message.success(`${info.file.name} 文件上传成功!`);
  1167. } else {
  1168. message.warning(info.file.response.error[0].message);
  1169. return;
  1170. };
  1171. this.setState({
  1172. pojectApplicationUrl:info.file.response.data,
  1173. })
  1174. } else if (info.file.status === 'error') {
  1175. message.error(`${info.file.name} 文件上传失败。`);
  1176. }
  1177. this.setState({ fileList: info.fileList.slice(-1) });
  1178. }}
  1179. >
  1180. <Button><Icon type="upload" /> 项目材料上传 </Button>
  1181. <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
  1182. <span className="download-file">
  1183. <a onClick={() => {
  1184. var newTab = window.open('about:blank'); getPreview(this.state.detailId, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
  1185. }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
  1186. </span>
  1187. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}
  1188. </span>
  1189. </Upload>
  1190. </FormItem>
  1191. </div>
  1192. </div>
  1193. <Button className="setSubmit" type="primary" htmlType="submit">保存</Button>
  1194. <Button type="ghost" onClick={this.visitCancel}>取消</Button>
  1195. </div>
  1196. </Spin>
  1197. </Form>
  1198. </div>
  1199. </TabPane>
  1200. <TabPane tab="知识产权列表" key="1">
  1201. <Button type="primary" className="addButton" onClick={this.addClick}>发布成果<Icon type="plus" /></Button>
  1202. <Spin spinning={this.state.loading}>
  1203. <Table columns={this.state.columnsDate}
  1204. dataSource={this.state.dataSourceDate}
  1205. rowSelection={rowSelection}
  1206. pagination={this.state.paginationDate}
  1207. onRowClick={this.tableRowClickDate} />
  1208. </Spin>
  1209. </TabPane>
  1210. </Tabs>
  1211. </Modal>
  1212. <TechAchievementDesc
  1213. data={this.state.RowData}
  1214. detailApiUrl={this.props['data-detailApiUrl']}
  1215. achievementCategoryOption={this.state.achievementCategoryOption}
  1216. showDesc={this.state.showDesc}
  1217. uid={this.state.uid}
  1218. closeDesc={this.closeDesc}
  1219. loadDatas={this.loadDatas}
  1220. />
  1221. </div >
  1222. );
  1223. }
  1224. }));
  1225. export default IntentionCustomer;