crmAll.jsx 48 KB

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