crm.jsx 51 KB

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