crmAll.jsx 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263
  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. />
  971. </Spin>
  972. </div>
  973. <Modal
  974. className="customeDetails"
  975. footer=''
  976. title="客户资料"
  977. width='1000px'
  978. visible={this.state.visitModul}
  979. onOk={this.visitOk}
  980. onCancel={this.visitCancel}
  981. >
  982. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  983. <TabPane tab="基本信息" key="0">
  984. <div>
  985. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  986. <Spin spinning={this.state.loading}>
  987. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
  988. <div className="clearfix" >
  989. <FormItem className="half-item"
  990. {...formItemLayout}
  991. label="客户姓名"
  992. >
  993. <span>{this.state.identifyName}</span>
  994. </FormItem>
  995. <FormItem className="half-item"
  996. {...formItemLayout}
  997. label="资料所属人"
  998. >
  999. <span>{this.state.informationMaintainerName}</span>
  1000. </FormItem>
  1001. </div>
  1002. <div className="clearfix" >
  1003. <FormItem className="half-item"
  1004. {...formItemLayout}
  1005. label="企业行业">
  1006. <Select placeholder="选择行业" value={this.state.industry} style={{width:'95%'}}
  1007. onChange={(e)=>{this.setState({industry:e})}} disabled={true}>
  1008. {
  1009. industry.map(function (item) {
  1010. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1011. })
  1012. }
  1013. </Select>
  1014. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1015. </FormItem>
  1016. <FormItem className="half-item"
  1017. {...formItemLayout}
  1018. label="社会属性"
  1019. >
  1020. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'95%'}}
  1021. onChange={(e)=>{this.setState({societyTag:e})}} disabled={true}>
  1022. {
  1023. socialAttribute.map(function (item) {
  1024. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1025. })
  1026. }
  1027. </Select>
  1028. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1029. </FormItem>
  1030. <FormItem className="half-item"
  1031. {...formItemLayout}
  1032. label="省-市-区"
  1033. >
  1034. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
  1035. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} disabled={true}/>
  1036. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1037. </FormItem>
  1038. <FormItem className="half-item"
  1039. {...formItemLayout}
  1040. label="注册资本"
  1041. >
  1042. <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
  1043. this.setState({ registeredCapital: e.target.value })}} disabled={true}/>万
  1044. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1045. </FormItem>
  1046. <div className='clearfix'>
  1047. <FormItem
  1048. labelCol={{ span:4 }}
  1049. wrapperCol={{ span: 20 }}
  1050. label="主营产品" >
  1051. <Input type="textarea" rows={2} value={this.state.businessScope} style={{width:'95%'}}
  1052. onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}} disabled={true}/>
  1053. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1054. </FormItem>
  1055. </div>
  1056. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
  1057. <FormItem className="half-item"
  1058. {...formItemLayout}
  1059. label="通信地址"
  1060. >
  1061. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1062. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }} disabled={true}/>
  1063. </FormItem>
  1064. <FormItem className="half-item"
  1065. {...formItemLayout}
  1066. label="固定电话"
  1067. >
  1068. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1069. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }} disabled={true}/>
  1070. </FormItem>
  1071. <FormItem className="half-item"
  1072. {...formItemLayout}
  1073. label="客户传真"
  1074. >
  1075. <Input placeholder="客户传真" value={this.state.contactsFax}
  1076. onChange={(e) => { this.setState({ contactsFax: e.target.value })}} disabled={true}/>
  1077. </FormItem>
  1078. <FormItem className="half-item"
  1079. {...formItemLayout}
  1080. label="企业人数"
  1081. >
  1082. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1083. this.setState({ enterpriseScale: e.target.value })}} disabled={true}/>
  1084. </FormItem>
  1085. <FormItem className="half-item"
  1086. {...formItemLayout}
  1087. label="法人名称"
  1088. >
  1089. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1090. this.setState({ legalPerson: e.target.value })}} disabled={true}/>
  1091. </FormItem>
  1092. <FormItem className="half-item"
  1093. {...formItemLayout}
  1094. label="法人身份证"
  1095. >
  1096. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1097. this.setState({ legalPersonIdCard: e.target.value })}} disabled={true}/>
  1098. </FormItem>
  1099. <FormItem className="half-item"
  1100. {...formItemLayout}
  1101. label="联系人"
  1102. >
  1103. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  1104. this.setState({ contacts: e.target.value })}} disabled={true}/>
  1105. </FormItem>
  1106. <FormItem className="half-item"
  1107. {...formItemLayout}
  1108. label="联系人号码"
  1109. >
  1110. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1111. this.setState({ contactMobile: e.target.value })}} disabled={true}/>
  1112. </FormItem>
  1113. <FormItem className="half-item"
  1114. {...formItemLayout}
  1115. label="法人电话"
  1116. >
  1117. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1118. this.setState({ legalPersonTel: e.target.value })}} disabled={true}/>
  1119. </FormItem>
  1120. <FormItem className="half-item"
  1121. {...formItemLayout}
  1122. label="法人邮箱"
  1123. >
  1124. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1125. onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}} disabled={true}/>
  1126. </FormItem>
  1127. <FormItem className="half-item"
  1128. {...formItemLayout}
  1129. label="社会统一信用机构代码"
  1130. >
  1131. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1132. this.setState({ orgCode: e.target.value })}} disabled={true}/>
  1133. </FormItem>
  1134. <div className='clearfix'>
  1135. <FormItem
  1136. labelCol={{ span:4 }}
  1137. wrapperCol={{ span: 18 }}
  1138. label="客户简介" >
  1139. <Input type="textarea" rows={3} value={this.state.introduction}
  1140. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}} disabled={true}/>
  1141. </FormItem>
  1142. </div>
  1143. <div className="clearfix pictures">
  1144. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'95px'}}
  1145. labelCol={{ span: 8 }}
  1146. wrapperCol={{ span: 10 }}
  1147. label="机构证书(PIC)" >
  1148. <PicturesWall
  1149. fileList={this.getOrgCodeUrl}
  1150. pictureUrl={this.state.orgCodeUrl} />
  1151. <p>建议:图片要清晰。</p>
  1152. </FormItem>
  1153. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginTop:'20px'}}
  1154. labelCol={{ span: 8 }}
  1155. wrapperCol={{ span: 10 }}
  1156. label="单位LOGO" >
  1157. <PicturesWall
  1158. fileList={this.getCompanyLogoUrl}
  1159. pictureUrl={this.state.companyLogoUrl} />
  1160. <p>建议:图片要清晰。</p>
  1161. </FormItem>
  1162. </div>
  1163. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
  1164. <div className='clearfix' >
  1165. <FormItem className="half-item"
  1166. {...formItemLayout}
  1167. label="客户信用等级"
  1168. >
  1169. <Select placeholder="客户信用等级" value={this.state.creditRating}
  1170. onChange={(e)=>{this.setState({creditRating:e})}} disabled={true}>
  1171. {
  1172. slcRedit.map(function (item) {
  1173. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1174. })
  1175. }
  1176. </Select>
  1177. </FormItem>
  1178. <div className='clearfix'>
  1179. <FormItem
  1180. labelCol={{ span:4 }}
  1181. wrapperCol={{ span: 19 }}
  1182. label="企业核心技术" >
  1183. <Input type="textarea" rows={3} value={this.state.coreTechnology}
  1184. onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}} disabled={true}/>
  1185. </FormItem>
  1186. </div>
  1187. <div className='clearfix'>
  1188. <FormItem
  1189. labelCol={{ span:4 }}
  1190. wrapperCol={{ span: 19 }}
  1191. label="企业资质情况" >
  1192. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1193. onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} disabled={true}/>
  1194. </FormItem>
  1195. </div>
  1196. <div className='clearfix'>
  1197. <FormItem
  1198. labelCol={{ span:4 }}
  1199. wrapperCol={{ span: 19 }}
  1200. label="高企合作情况" >
  1201. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1202. onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} disabled={true}/>
  1203. </FormItem>
  1204. </div>
  1205. </div>
  1206. </div>
  1207. </Spin>
  1208. </Form>
  1209. </div>
  1210. </TabPane>
  1211. <TabPane tab="知识产权列表" key="1">
  1212. <Spin spinning={this.state.loading}>
  1213. <Table columns={this.state.columnsDate}
  1214. dataSource={this.state.dataSourceDate}
  1215. rowSelection={rowSelection}
  1216. pagination={this.state.paginationDate}
  1217. onRowClick={this.tableRowClickDate} />
  1218. </Spin>
  1219. </TabPane>
  1220. <TabPane tab="财务信息" key="2">
  1221. <Spin spinning={this.state.loading}>
  1222. <Table columns={this.state.columnsc}
  1223. dataSource={this.state.dataSourcec}
  1224. rowSelection={rowSelection}
  1225. onRowClick={this.tableRowClickDatec} />
  1226. </Spin>
  1227. </TabPane>
  1228. <TabPane tab="项目信息" key="3">
  1229. <Spin spinning={this.state.loading}>
  1230. <Table columns={this.state.columnsx}
  1231. dataSource={this.state.dataSourcex}
  1232. rowSelection={rowSelection}
  1233. onRowClick={this.tableRowClickDatex} />
  1234. </Spin>
  1235. </TabPane>
  1236. </Tabs>
  1237. </Modal>
  1238. <TechAchievementDesc
  1239. data={this.state.RowData}
  1240. detailApiUrl={this.props['data-detailApiUrl']}
  1241. achievementCategoryOption={this.state.achievementCategoryOption}
  1242. showDesc={this.state.showDesc}
  1243. uid={this.state.uid}
  1244. closeDesc={this.closeDesc}
  1245. loadDatas={this.loadDatas}
  1246. />
  1247. </div >
  1248. );
  1249. }
  1250. }));
  1251. export default IntentionCustomer;