crmAll.jsx 47 KB

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