crmAll.jsx 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376
  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, onReplace } 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={onReplace(text)}>
  372. <div style={{
  373. maxWidth: '100px',
  374. overflow: 'hidden',
  375. textOverflow: "ellipsis",
  376. whiteSpace: 'nowrap',
  377. }}>{onReplace(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. }
  625. }.bind(this),
  626. }).always(function () {
  627. this.setState({
  628. loading: false
  629. });
  630. }.bind(this));
  631. },
  632. //基本信息提交
  633. newSubmit(e) {
  634. e.preventDefault();
  635. if (!this.state.industry) {
  636. message.warning('请选择行业');
  637. return false;
  638. };
  639. if (!this.state.societyTag) {
  640. message.warning('请选择社会属性');
  641. return false;
  642. };
  643. if (!this.state.ProvinceCity[1]) {
  644. message.warning('请选择地区');
  645. return false;
  646. };
  647. if (!this.state.registeredCapital) {
  648. message.warning('请填写注册资本');
  649. return false;
  650. };
  651. if (!this.state.businessScope) {
  652. message.warning('请填写公司主营产品');
  653. return false;
  654. };
  655. if (!this.state.intellectualProperty) {
  656. message.warning('请填写已有知识产权情况');
  657. return false;
  658. };
  659. var reg = /^[1-9]\d*$|^0$/;
  660. if (this.state.consultationPrice) {
  661. if (this.state.consultationPrice.length > 6) {
  662. message.warning('咨询费用不超过6位数');
  663. this.refs.consul.focus();
  664. return false;
  665. };
  666. if (!reg.test(this.state.consultationPrice)) {
  667. message.warning('咨询费用只能输入数字');
  668. this.refs.consul.focus();
  669. return false;
  670. }
  671. }
  672. this.state.data = [];
  673. this.setState({
  674. selectedRowKeys: [],
  675. });
  676. let theorgCodeUrl = [];
  677. if (this.state.orgCodeUrl.length) {
  678. let picArr = [];
  679. this.state.orgCodeUrl.map(function (item) {
  680. if (item.response && item.response.data && item.response.data.length) {
  681. picArr.push(item.response.data);
  682. }
  683. });
  684. theorgCodeUrl = picArr.join(",");
  685. };
  686. let thecompanyLogoUrl = [];
  687. if (this.state.companyLogoUrl.length) {
  688. let picArr = [];
  689. this.state.companyLogoUrl.map(function (item) {
  690. if (item.response && item.response.data && item.response.data.length) {
  691. picArr.push(item.response.data);
  692. }
  693. });
  694. thecompanyLogoUrl = picArr.join(",");
  695. };
  696. let years = [];
  697. let yearMonth = this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
  698. years = yearMonth.split('/');
  699. this.setState({
  700. loading: true
  701. });
  702. $.ajax({
  703. method: "post",
  704. dataType: "json",
  705. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  706. data: {
  707. id: this.state.detailId,//详情ID
  708. identifyName: this.state.identifyName,//客户名称
  709. uid: this.state.uid,//客户ID
  710. societyTag: this.state.societyTag,//社会标签
  711. companyLogoUrl: thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',//公司LOGO
  712. introduction: this.state.introduction,//介绍
  713. industry: this.state.industry,//行业
  714. locationProvince: (this.state.ProvinceCity)[0],//省
  715. locationCity: (this.state.ProvinceCity)[1],//市
  716. locationArea: (this.state.ProvinceCity)[2],//区
  717. postalAddress: this.state.postalAddress,//通讯地址
  718. contactsFixedTel: this.state.contactsFixedTel,//固定电话
  719. contactsFax: this.state.contactsFax,//传真地址
  720. registeredCapital: this.state.registeredCapital,//注册资金
  721. enterpriseScale: this.state.enterpriseScale,//企业规模
  722. legalPerson: this.state.legalPerson,//法人
  723. legalPersonIdCard: this.state.legalPersonIdCard,//法人身份证
  724. legalPersonTel: this.state.legalPersonTel,//法人联系电话
  725. legalPersonEmail: this.state.legalPersonEmail,//法人联系邮箱
  726. highTechZone: this.state.highTechZone,//是否高新
  727. listed: this.state.listed,//是否高新
  728. international: this.state.international,//是否国际化
  729. orgCode: this.state.orgCode,//社会统一机构
  730. orgCodeUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',//社会统一机构地址
  731. businessScope: this.state.businessScope,//业务范围
  732. contacts: this.state.contacts,//主要联系人姓名
  733. contactMobile: this.state.contactMobile,//主要联系人电话
  734. investment: this.state.investment,//投资机构
  735. businessAudit: this.state.businessAudit,//业务认证
  736. auditStatus: this.state.auditStatus,//实名认证
  737. intellectualProperty: this.state.intellectualProperty,//已有知识产权情况
  738. yearSalesAmount: this.state.yearSalesAmount,//年度销售额
  739. lastYearResearchAmount: this.state.lastYearResearchAmount,//上年度研发费用
  740. assets: this.state.assets,//总资产
  741. qualification: this.state.qualification,//企业资质情况
  742. cooperationSituation: this.state.cooperationSituation,//企业与高校院所
  743. informationMaintainer: this.state.informationMaintainer,//资料维护人
  744. informationMaintainerName: this.state.informationMaintainerName,//资料维护人
  745. coreTechnology: this.state.coreTechnology,//核心技术
  746. accomplishSituation: this.state.accomplishSituation,//客户已完成项目情况
  747. creditRating: this.state.creditRating,//信用等级
  748. }
  749. }).done(function (data) {
  750. this.setState({
  751. loading: false
  752. });
  753. if (!data.error.length) {
  754. message.success('保存成功!');
  755. this.visitCancel();
  756. this.loadData();
  757. } else {
  758. message.warning(data.error[0].message);
  759. }
  760. }.bind(this));
  761. },
  762. //整行点击
  763. tableRowClick(record, index) {
  764. this.state.visitModul = true;
  765. this.details(record.id);
  766. },
  767. //指定转交人自动补全
  768. supervisor(e) {
  769. $.ajax({
  770. method: "get",
  771. dataType: "json",
  772. crossDomain: false,
  773. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  774. data: {
  775. adminName: e
  776. },
  777. success: function (data) {
  778. let thedata = data.data;
  779. if (!thedata) {
  780. if (data.error && data.error.length) {
  781. message.warning(data.error[0].message);
  782. };
  783. thedata = {};
  784. };
  785. this.setState({
  786. customerArr: thedata,
  787. });
  788. }.bind(this),
  789. }).always(function () {
  790. this.setState({
  791. loading: false
  792. });
  793. }.bind(this));
  794. },
  795. //输入转交人输入框失去焦点是判断客户是否存在
  796. selectAuto(value, options) {
  797. this.setState({
  798. auto: value
  799. })
  800. },
  801. blurChange(e) {
  802. let theType = '';
  803. let contactLists = this.state.customerArr || [];
  804. if (e) {
  805. contactLists.map(function (item) {
  806. if (item.name == e.toString()) {
  807. theType = item.id;
  808. }
  809. });
  810. }
  811. this.setState({
  812. theTypes: theType
  813. })
  814. },
  815. //值改变时请求客户名称
  816. httpChange(e) {
  817. if (e.length >= 1) {
  818. this.supervisor(e);
  819. }
  820. this.setState({
  821. auto: e
  822. })
  823. },
  824. //转交
  825. changeAssigner() {
  826. if (this.state.theTypes) {
  827. this.setState({
  828. selectedRowKeys: [],
  829. });
  830. let id;
  831. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  832. let rowItem = this.state.selectedRows[idx];
  833. if (rowItem.id) {
  834. id = rowItem.id;
  835. };
  836. };
  837. $.ajax({
  838. method: "post",
  839. dataType: "json",
  840. crossDomain: false,
  841. url: globalConfig.context + "/api/admin/customer/updateInformationMaintainerr",
  842. data: {
  843. id: id, //客户ID
  844. aid: this.state.theTypes, //指定转交人的ID
  845. }
  846. }).done(function (data) {
  847. if (!data.error.length) {
  848. message.success('转交成功!');
  849. this.setState({
  850. auto: '',
  851. loading: false,
  852. });
  853. } else {
  854. message.warning(data.error[0].message);
  855. };
  856. this.loadData(this.state.ispage);
  857. }.bind(this));
  858. } else {
  859. message.warning('请输入转交人姓名')
  860. }
  861. },
  862. //详情打开
  863. visitOk(e) {
  864. this.setState({
  865. visitModul: false
  866. });
  867. },
  868. //详情关闭
  869. visitCancel(e) {
  870. this.setState({
  871. visitModul: false,
  872. callnub: "0"
  873. });
  874. },
  875. getOrgCodeUrl(e) {
  876. this.setState({ orgCodeUrl: e });
  877. },
  878. getCompanyLogoUrl(e) {
  879. this.setState({ companyLogoUrl: e });
  880. },
  881. componentWillReceiveProps(nextProps) {
  882. if (nextProps.ApiUrl != this.props.ApiUrl) {
  883. this.state.nameSearch = '';
  884. this.state.addressSearch = [];
  885. this.state.provinceSearch = undefined;
  886. this.state.citySearch = undefined;
  887. this.state.releaseDate[0] = undefined;
  888. this.state.releaseDate[1] = undefined;
  889. this.loadData(null, nextProps.ApiUrl);
  890. };
  891. },
  892. callback(e) {
  893. if (e == '0') {
  894. this.setState({
  895. callnub: e,
  896. })
  897. }
  898. if (e == '1') {
  899. this.setState({
  900. callnub: e,
  901. })
  902. this.loadDatas();
  903. }
  904. if (e == '2') {
  905. this.setState({
  906. callnub: e,
  907. })
  908. this.loadDatac();
  909. }
  910. if (e == '3') {
  911. this.setState({
  912. callnub: e,
  913. })
  914. this.loadDatax();
  915. }
  916. },
  917. //发布成果
  918. addClick() {
  919. this.state.RowData = {};
  920. this.setState({
  921. showDesc: true,
  922. });
  923. },
  924. //关闭发布成果
  925. closeDesc(e, s) {
  926. this.state.showDesc = e;
  927. if (s) {
  928. this.loadDatas();
  929. };
  930. },
  931. tableRowClickDate(record, index) {
  932. this.state.RowData = record;
  933. if (index != undefined) {
  934. this.setState({
  935. showDesc: true
  936. });
  937. }
  938. },
  939. changeList(arr) {
  940. const newArr = [];
  941. this.state.columns.forEach(item => {
  942. arr.forEach(val => {
  943. if (val === item.title) {
  944. newArr.push(item);
  945. }
  946. });
  947. });
  948. this.setState({
  949. changeList: newArr
  950. });
  951. },
  952. render() {
  953. const {
  954. RangePicker,
  955. MonthPicker
  956. } = DatePicker;
  957. const formItemLayout = {
  958. labelCol: { span: 8 },
  959. wrapperCol: { span: 14 },
  960. };
  961. const FormItem = Form.Item;
  962. const rowSelection = {
  963. selectedRowKeys: this.state.selectedRowKeys,
  964. onChange: (selectedRowKeys, selectedRows) => {
  965. this.setState({
  966. modalVisible: false,
  967. selectedRows: selectedRows.slice(-1),
  968. selectedRowKeys: selectedRowKeys.slice(-1)
  969. });
  970. },
  971. onSelect: (recordt, selected, selectedRows) => {
  972. this.setState({
  973. modalVisible: false,
  974. recordt: recordt.id
  975. })
  976. },
  977. };
  978. const hasSelected = this.state.selectedRowKeys.length > 0;
  979. const dataSources = this.state.customerArr || [];
  980. const options = dataSources.map((group) =>
  981. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  982. )
  983. const intentionState = this.props.intentionState || '';
  984. return (
  985. <div className="user-content" >
  986. <div className="content-title">
  987. <span style={{ fontWeight: 900, fontSize: 16 }}>客户资料管理</span>
  988. </div>
  989. <Tabs
  990. defaultActiveKey="1"
  991. className="test">
  992. <TabPane tab="搜索" key="1">
  993. <div className="user-search">
  994. <Input placeholder="客户名称"
  995. value={this.state.nameSearch}
  996. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  997. <Select placeholder="省"
  998. style={{ width: 80 }}
  999. value={this.state.provinceSearch}
  1000. onChange={(e) => { this.setState({ provinceSearch: e }); }}>
  1001. {this.state.Provinces}
  1002. </Select>
  1003. <span style={{ marginRight: '10px' }}>
  1004. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1005. onChange={(e, pre) => { this.setState({ addressSearch: e }) }} />
  1006. </span>
  1007. <Select placeholder="资料是否完善" style={{ width: 120 }}
  1008. value={this.state.dataGrade}
  1009. onChange={(e) => { this.setState({ dataGrade: e }) }}>
  1010. <Select.Option value="0" >未完善</Select.Option>
  1011. <Select.Option value="1" >已完善</Select.Option>
  1012. </Select>
  1013. <RangePicker style={{ marginRight: '10px' }}
  1014. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1015. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1016. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1017. <Button type="primary" onClick={this.search}>搜索</Button>
  1018. <Button onClick={this.reset}>重置</Button>
  1019. </div>
  1020. </TabPane>
  1021. <TabPane tab="更改表格显示数据" key="2">
  1022. <div style={{ marginLeft: 10 }}>
  1023. <ChooseList
  1024. columns={this.state.columns}
  1025. changeFn={this.changeList}
  1026. changeList={this.state.changeList}
  1027. top={55}
  1028. margin={11}
  1029. />
  1030. </div>
  1031. </TabPane>
  1032. </Tabs>
  1033. <div className="patent-table">
  1034. <Spin spinning={this.state.loading}>
  1035. <Table columns={
  1036. this.state.changeList
  1037. ? this.state.changeList
  1038. : this.state.columns
  1039. }
  1040. dataSource={this.state.dataSource}
  1041. // rowSelection={rowSelection}
  1042. pagination={this.state.pagination}
  1043. onRowClick={this.tableRowClick}
  1044. bordered
  1045. size="small"
  1046. />
  1047. </Spin>
  1048. </div>
  1049. <Modal
  1050. className="customeDetails"
  1051. footer=''
  1052. title="客户资料"
  1053. width='1200px'
  1054. visible={this.state.visitModul}
  1055. onOk={this.visitOk}
  1056. onCancel={this.visitCancel}
  1057. >
  1058. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1059. <TabPane tab="基本信息" key="0">
  1060. <div>
  1061. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  1062. <Spin spinning={this.state.loading}>
  1063. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>基本信息</div>
  1064. <div className="clearfix" >
  1065. <FormItem className="half-item"
  1066. {...formItemLayout}
  1067. label="客户姓名"
  1068. >
  1069. <span>{this.state.identifyName}</span>
  1070. <EnterpriseNameChange
  1071. type='journal'
  1072. style={{ marginLeft: 10 }}
  1073. enterpriseId={this.state.uid} />
  1074. </FormItem>
  1075. <FormItem className="half-item"
  1076. {...formItemLayout}
  1077. label="资料所属人"
  1078. >
  1079. <span>{this.state.informationMaintainerName}</span>
  1080. </FormItem>
  1081. </div>
  1082. <div className="clearfix" >
  1083. <FormItem className="half-item"
  1084. {...formItemLayout}
  1085. label="企业行业">
  1086. <Select placeholder="选择行业" value={this.state.industry} style={{ width: '95%' }}
  1087. onChange={(e) => { this.setState({ industry: e }) }} disabled={true}>
  1088. {
  1089. industry.map(function (item) {
  1090. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1091. })
  1092. }
  1093. </Select>
  1094. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1095. </FormItem>
  1096. <FormItem className="half-item"
  1097. {...formItemLayout}
  1098. label="社会属性"
  1099. >
  1100. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{ width: '95%' }}
  1101. onChange={(e) => { this.setState({ societyTag: e }) }} disabled={true}>
  1102. {
  1103. socialAttribute.map(function (item) {
  1104. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1105. })
  1106. }
  1107. </Select>
  1108. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1109. </FormItem>
  1110. <FormItem className="half-item"
  1111. {...formItemLayout}
  1112. label="省-市-区"
  1113. >
  1114. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{ width: '95%' }}
  1115. onChange={(e, pre) => { this.setState({ ProvinceCity: e }) }} disabled={true} />
  1116. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1117. </FormItem>
  1118. <FormItem className="half-item"
  1119. {...formItemLayout}
  1120. label="注册资本"
  1121. >
  1122. <Input placeholder="注册资本" style={{ width: '90%' }} value={this.state.registeredCapital} onChange={(e) => {
  1123. this.setState({ registeredCapital: e.target.value })
  1124. }} disabled={true} />万
  1125. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1126. </FormItem>
  1127. <div className='clearfix'>
  1128. <FormItem
  1129. labelCol={{ span: 4 }}
  1130. wrapperCol={{ span: 20 }}
  1131. label="主营产品" >
  1132. {this.state.businessScope.map((tag) => {
  1133. const isLongTag = tag.length > 20;
  1134. const tagElem = (
  1135. <Tag key={tag}>
  1136. {isLongTag ? `${tag.slice(0, 20)}...` : tag}
  1137. </Tag>
  1138. );
  1139. return isLongTag ? <Tooltip title={tag} key={tag}>{tagElem}</Tooltip> : tagElem;
  1140. })}
  1141. </FormItem>
  1142. </div>
  1143. <div className='clearfix'>
  1144. <FormItem
  1145. labelCol={{ span: 4 }}
  1146. wrapperCol={{ span: 20 }}
  1147. label="销售目标企业" >
  1148. {this.state.salesTarget.map((tag) => {
  1149. const isLongTag = tag.length > 20;
  1150. const tagElem = (
  1151. <Tag key={tag}>
  1152. {isLongTag ? `${tag.slice(0, 20)}...` : tag}
  1153. </Tag>
  1154. );
  1155. return isLongTag ? <Tooltip title={tag} key={tag}>{tagElem}</Tooltip> : tagElem;
  1156. })}
  1157. </FormItem>
  1158. </div>
  1159. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>企业资料</div>
  1160. <FormItem className="half-item"
  1161. {...formItemLayout}
  1162. label="通信地址"
  1163. >
  1164. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1165. onChange={(e, pre) => { this.setState({ postalAddress: e.target.value }) }} disabled={true} />
  1166. </FormItem>
  1167. <FormItem className="half-item"
  1168. {...formItemLayout}
  1169. label="固定电话"
  1170. >
  1171. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1172. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }} disabled={true} />
  1173. </FormItem>
  1174. <FormItem className="half-item"
  1175. {...formItemLayout}
  1176. label="客户传真"
  1177. >
  1178. <Input placeholder="客户传真" value={this.state.contactsFax}
  1179. onChange={(e) => { this.setState({ contactsFax: e.target.value }) }} disabled={true} />
  1180. </FormItem>
  1181. <FormItem className="half-item"
  1182. {...formItemLayout}
  1183. label="企业人数"
  1184. >
  1185. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1186. this.setState({ enterpriseScale: e.target.value })
  1187. }} disabled={true} />
  1188. </FormItem>
  1189. <FormItem className="half-item"
  1190. {...formItemLayout}
  1191. label="法人名称"
  1192. >
  1193. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1194. this.setState({ legalPerson: e.target.value })
  1195. }} disabled={true} />
  1196. </FormItem>
  1197. <FormItem className="half-item"
  1198. {...formItemLayout}
  1199. label="法人身份证"
  1200. >
  1201. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1202. this.setState({ legalPersonIdCard: e.target.value })
  1203. }} disabled={true} />
  1204. </FormItem>
  1205. <FormItem className="half-item"
  1206. {...formItemLayout}
  1207. label="联系人"
  1208. >
  1209. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  1210. this.setState({ contacts: e.target.value })
  1211. }} disabled={true} />
  1212. </FormItem>
  1213. <FormItem className="half-item"
  1214. {...formItemLayout}
  1215. label="联系人号码"
  1216. >
  1217. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1218. this.setState({ contactMobile: e.target.value })
  1219. }} disabled={true} />
  1220. </FormItem>
  1221. <FormItem className="half-item"
  1222. {...formItemLayout}
  1223. label="法人电话"
  1224. >
  1225. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1226. this.setState({ legalPersonTel: e.target.value })
  1227. }} disabled={true} />
  1228. </FormItem>
  1229. <FormItem className="half-item"
  1230. {...formItemLayout}
  1231. label="法人邮箱"
  1232. >
  1233. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1234. onChange={(e) => { this.setState({ legalPersonEmail: e.target.value }) }} disabled={true} />
  1235. </FormItem>
  1236. <FormItem className="half-item"
  1237. {...formItemLayout}
  1238. label="社会统一信用机构代码"
  1239. >
  1240. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1241. this.setState({ orgCode: e.target.value })
  1242. }} disabled={true} />
  1243. </FormItem>
  1244. <div className='clearfix'>
  1245. <FormItem
  1246. labelCol={{ span: 4 }}
  1247. wrapperCol={{ span: 18 }}
  1248. label="客户简介" >
  1249. <Input type="textarea" rows={3} value={this.state.introduction}
  1250. onChange={(e, pre) => { this.setState({ introduction: e.target.value }) }} disabled={true} />
  1251. </FormItem>
  1252. </div>
  1253. <div className="clearfix pictures">
  1254. <FormItem style={{ display: 'inline-block', width: '350px', marginTop: '20px', marginLeft: '95px' }}
  1255. labelCol={{ span: 8 }}
  1256. wrapperCol={{ span: 10 }}
  1257. label="机构证书(PIC)" >
  1258. <PicturesWall
  1259. domId={'crmAll1'}
  1260. fileList={this.getOrgCodeUrl}
  1261. pictureUrl={this.state.orgCodeUrl} />
  1262. <p>建议:图片要清晰。</p>
  1263. </FormItem>
  1264. <FormItem style={{ display: 'inline-block', width: '350px', marginTop: '20px', marginTop: '20px' }}
  1265. labelCol={{ span: 8 }}
  1266. wrapperCol={{ span: 10 }}
  1267. label="单位LOGO" >
  1268. <PicturesWall
  1269. domId={'crmAll2'}
  1270. fileList={this.getCompanyLogoUrl}
  1271. pictureUrl={this.state.companyLogoUrl} />
  1272. <p>建议:图片要清晰。</p>
  1273. </FormItem>
  1274. </div>
  1275. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>重要资料</div>
  1276. <div className='clearfix' >
  1277. <FormItem className="half-item"
  1278. {...formItemLayout}
  1279. label="客户信用等级"
  1280. >
  1281. <Select placeholder="客户信用等级" value={this.state.creditRating}
  1282. onChange={(e) => { this.setState({ creditRating: e }) }} disabled={true}>
  1283. {
  1284. slcRedit.map(function (item) {
  1285. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1286. })
  1287. }
  1288. </Select>
  1289. </FormItem>
  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.coreTechnology}
  1296. onChange={(e, pre) => { this.setState({ coreTechnology: 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.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1305. onChange={(e, pre) => { this.setState({ qualification: e.target.value }) }} disabled={true} />
  1306. </FormItem>
  1307. </div>
  1308. <div className='clearfix'>
  1309. <FormItem
  1310. labelCol={{ span: 4 }}
  1311. wrapperCol={{ span: 19 }}
  1312. label="高企合作情况" >
  1313. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1314. onChange={(e, pre) => { this.setState({ cooperationSituation: e.target.value }) }} disabled={true} />
  1315. </FormItem>
  1316. </div>
  1317. </div>
  1318. </div>
  1319. </Spin>
  1320. </Form>
  1321. </div>
  1322. </TabPane>
  1323. <TabPane tab="知识产权列表" key="1">
  1324. <Spin spinning={this.state.loading}>
  1325. <Table columns={this.state.columnsDate}
  1326. dataSource={this.state.dataSourceDate}
  1327. rowSelection={rowSelection}
  1328. pagination={this.state.paginationDate}
  1329. onRowClick={this.tableRowClickDate} />
  1330. </Spin>
  1331. </TabPane>
  1332. <TabPane tab="财务信息" key="2">
  1333. <Spin spinning={this.state.loading}>
  1334. <Table columns={this.state.columnsc}
  1335. dataSource={this.state.dataSourcec}
  1336. rowSelection={rowSelection}
  1337. onRowClick={this.tableRowClickDatec} />
  1338. </Spin>
  1339. </TabPane>
  1340. <TabPane tab="项目信息" key="3">
  1341. <Spin spinning={this.state.loading}>
  1342. <Table columns={this.state.columnsx}
  1343. dataSource={this.state.dataSourcex}
  1344. rowSelection={rowSelection}
  1345. onRowClick={this.tableRowClickDatex} />
  1346. </Spin>
  1347. </TabPane>
  1348. </Tabs>
  1349. </Modal>
  1350. <TechAchievementDesc
  1351. data={this.state.RowData}
  1352. detailApiUrl={this.props['data-detailApiUrl']}
  1353. achievementCategoryOption={this.state.achievementCategoryOption}
  1354. showDesc={this.state.showDesc}
  1355. uid={this.state.uid}
  1356. closeDesc={this.closeDesc}
  1357. loadDatas={this.loadDatas}
  1358. />
  1359. </div >
  1360. );
  1361. }
  1362. }));
  1363. export default IntentionCustomer;