crmAll.jsx 49 KB

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