crmAll.jsx 47 KB

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