crmAll.jsx 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  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
  373. // style={{
  374. // maxWidth: '100px',
  375. // overflow: 'hidden',
  376. // textOverflow: "ellipsis",
  377. // whiteSpace: 'nowrap',
  378. // }}
  379. >{onReplace(text)}</div>
  380. </Tooltip>
  381. )
  382. }
  383. }, {
  384. title: '地区',
  385. dataIndex: 'diqu',
  386. key: 'diqu',
  387. }, {
  388. title: '联系人',
  389. dataIndex: 'contacts',
  390. key: 'contacts',
  391. }, {
  392. title: '联系电话',
  393. dataIndex: 'contactMobile',
  394. key: 'contactMobile',
  395. },
  396. {
  397. title: '资料完整度',
  398. dataIndex: 'dataGrade',
  399. key: 'dataGrade',
  400. }, {
  401. title: '客户资料所属人',
  402. dataIndex: 'iname',
  403. key: 'iname',
  404. },
  405. {
  406. title: '行业',
  407. dataIndex: 'industry',
  408. key: 'industry'
  409. },
  410. {
  411. title: '创建时间',
  412. dataIndex: 'createTime',
  413. key: 'createTime',
  414. }
  415. ],
  416. businessScope: [],
  417. salesTarget: [],
  418. data: [],
  419. dataSource: [],
  420. columnsDate: [
  421. {
  422. title: '编号',
  423. dataIndex: 'serialNumber',
  424. key: 'serialNumber',
  425. }, {
  426. title: '名称',
  427. dataIndex: 'name',
  428. key: 'name',
  429. }, {
  430. title: '关键字',
  431. dataIndex: 'keyword',
  432. key: 'keyword',
  433. }, {
  434. title: '类型',
  435. dataIndex: 'category',
  436. key: 'category',
  437. render: text => { return getAchievementCategory(text); }
  438. }, {
  439. title: '审核状态',
  440. dataIndex: 'auditStatus',
  441. key: 'auditStatus',
  442. render: text => { return getTechAuditStatus(text) }
  443. },
  444. {
  445. title: '是否精品',
  446. dataIndex: 'boutique',
  447. key: 'boutique',
  448. render: text => { return getboutique(text) }
  449. },
  450. {
  451. title: '发布时间',
  452. dataIndex: 'releaseDateFormattedDate',
  453. key: 'releaseDateFormattedDate',
  454. }, {
  455. title: '录入时间',
  456. dataIndex: 'createTimeFormattedDate',
  457. key: 'createTimeFormattedDate',
  458. },
  459. ],
  460. dataSourceDate: [],
  461. columnsc: [{
  462. title: '年份',
  463. dataIndex: 'year',
  464. key: 'year',
  465. }, {
  466. title: '营销收入(万)',
  467. dataIndex: 'salesAmount',
  468. key: 'salesAmount',
  469. },
  470. {
  471. title: '总资产(万)',
  472. dataIndex: 'assets',
  473. key: 'assets'
  474. },
  475. {
  476. title: '固定资产(万)',
  477. dataIndex: 'fixedAssets',
  478. key: 'fixedAssets'
  479. }, {
  480. title: '研发费用(万)',
  481. dataIndex: 'researchAmount',
  482. key: 'researchAmount',
  483. }
  484. ],
  485. dataSourcec: [],
  486. columnsx: [{
  487. title: '项目名称',
  488. dataIndex: 'projectName',
  489. key: 'projectName',
  490. }, {
  491. title: '年份',
  492. dataIndex: 'year',
  493. key: 'year',
  494. },
  495. {
  496. title: '项目状态',
  497. dataIndex: 'status',
  498. key: 'status',
  499. render: text => { return getXiangmoState(text); }
  500. }, {
  501. title: '备注',
  502. dataIndex: 'remark',
  503. key: 'remark',
  504. }
  505. ],
  506. dataSourcex: [],
  507. };
  508. },
  509. componentWillMount() {
  510. //城市
  511. let Province = [];
  512. provinceList.map(function (item) {
  513. var id = String(item.id)
  514. Province.push(
  515. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  516. )
  517. });
  518. //行业
  519. let intentionalArr = [];
  520. industry.map(function (item) {
  521. intentionalArr.push(
  522. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  523. )
  524. });
  525. //会员等级
  526. let lvlArr = [];
  527. lvl.map(function (item) {
  528. lvlArr.push(
  529. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  530. )
  531. });
  532. //会员状态customerStatus
  533. let currentMemberArr = [];
  534. currentMember.map(function (item) {
  535. currentMemberArr.push(
  536. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  537. )
  538. });
  539. this.state.Provinces = Province;
  540. this.state.intentionalOption = intentionalArr;
  541. this.state.lvlArrOption = lvlArr;
  542. this.state.currentMemberArrOption = currentMemberArr;
  543. this.loadData();
  544. },
  545. search() {
  546. this.loadData();
  547. },
  548. reset() {
  549. this.state.nameSearch = '';
  550. this.state.addressSearch = [];
  551. this.state.dataGrade = undefined;
  552. this.state.follow = undefined;
  553. this.state.provinceSearch = undefined;
  554. this.state.citySearch = undefined;
  555. this.state.releaseDate[0] = undefined;
  556. this.state.releaseDate[1] = undefined;
  557. this.loadData();
  558. },
  559. //列表详情
  560. details(id) {
  561. $.ajax({
  562. method: "get",
  563. dataType: "json",
  564. crossDomain: false,
  565. url: globalConfig.context + "/api/admin/customer/findOrganizationCustomerDetail",
  566. data: {
  567. uid: id
  568. },
  569. success: function (data) {
  570. let thisDetail = data.data;
  571. if (data.error.length || data.data.list == "") {
  572. if (data.error && data.error.length) {
  573. message.warning(data.error[0].message);
  574. };
  575. } else {
  576. let ProvinceCityArr = [];
  577. let ProvinceS = thisDetail.locationProvince; //省
  578. let citys = thisDetail.locationCity;//市
  579. let Areas = thisDetail.locationArea;//区
  580. ProvinceCityArr.push(ProvinceS, citys, Areas);
  581. this.setState({
  582. detailId: thisDetail.id,//详情ID
  583. identifyName: thisDetail.identifyName,//客户名称
  584. uid: thisDetail.uid,//客户ID
  585. societyTag: thisDetail.societyTag,//社会标签
  586. companyLogoUrl: thisDetail.companyLogoUrl ? splitUrl(thisDetail.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],//公司LOGO
  587. introduction: thisDetail.introduction,//介绍
  588. industry: thisDetail.industry ? thisDetail.industry.toString() : "",//行业
  589. locationProvince: thisDetail.locationProvince,//省
  590. locationCity: thisDetail.locationCity,//市
  591. locationArea: thisDetail.locationArea,//区
  592. ProvinceCity: ProvinceCityArr[0] != null ? ProvinceCityArr : undefined,//省市区
  593. postalAddress: thisDetail.postalAddress,//通讯地址
  594. contactsFixedTel: thisDetail.contactsFixedTel,//固定电话
  595. contactsFax: thisDetail.contactsFax,//传真地址
  596. registeredCapital: thisDetail.registeredCapital,//注册资金
  597. enterpriseScale: thisDetail.enterpriseScale,//企业规模
  598. legalPerson: thisDetail.legalPerson,//法人
  599. legalPersonIdCard: thisDetail.legalPersonIdCard,//法人身份证
  600. legalPersonTel: thisDetail.legalPersonTel,//法人联系电话
  601. legalPersonEmail: thisDetail.legalPersonEmail,//法人联系邮箱
  602. highTechZone: thisDetail.highTechZone,//是否高新
  603. listed: thisDetail.listed,//是否高新
  604. international: thisDetail.international,//是否国际化
  605. orgCode: thisDetail.orgCode,//社会统一机构
  606. orgCodeUrl: thisDetail.orgCodeUrl ? splitUrl(thisDetail.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],//社会统一机构地址
  607. businessScope: thisDetail.businessScope ? thisDetail.businessScope.split(',').filter((v) => v) : [],//业务范围
  608. salesTarget: thisDetail.salesTarget ? thisDetail.salesTarget.split(',').filter((v) => v) : [],//销售目标企业
  609. contacts: thisDetail.contacts,//主要联系人姓名
  610. contactMobile: thisDetail.contactMobile,//主要联系人电话
  611. investment: thisDetail.investment,//投资机构
  612. businessAudit: thisDetail.businessAudit,//业务认证
  613. auditStatus: thisDetail.auditStatus,//实名认证
  614. intellectualProperty: thisDetail.intellectualProperty,//已有知识产权情况
  615. yearSalesAmount: thisDetail.yearSalesAmount,//年度销售额
  616. lastYearResearchAmount: thisDetail.lastYearResearchAmount,//上年度研发费用
  617. assets: thisDetail.assets,//总资产
  618. qualification: thisDetail.qualification,//企业资质情况
  619. cooperationSituation: thisDetail.cooperationSituation,//企业与高校院所
  620. informationMaintainer: thisDetail.informationMaintainer,//资料维护人
  621. informationMaintainerName: thisDetail.informationMaintainerName,//资料维护人
  622. coreTechnology: thisDetail.coreTechnology,//核心技术
  623. accomplishSituation: thisDetail.accomplishSituation,//客户已完成项目情况
  624. creditRating: thisDetail.creditRating ? thisDetail.creditRating.toString() : "",//信用等级
  625. });
  626. }
  627. }.bind(this),
  628. }).always(function () {
  629. this.setState({
  630. loading: false
  631. });
  632. }.bind(this));
  633. },
  634. //基本信息提交
  635. newSubmit(e) {
  636. e.preventDefault();
  637. if (!this.state.industry) {
  638. message.warning('请选择行业');
  639. return false;
  640. };
  641. if (!this.state.societyTag) {
  642. message.warning('请选择社会属性');
  643. return false;
  644. };
  645. if (!this.state.ProvinceCity[1]) {
  646. message.warning('请选择地区');
  647. return false;
  648. };
  649. if (!this.state.registeredCapital) {
  650. message.warning('请填写注册资本');
  651. return false;
  652. };
  653. if (!this.state.businessScope) {
  654. message.warning('请填写公司主营产品');
  655. return false;
  656. };
  657. if (!this.state.intellectualProperty) {
  658. message.warning('请填写已有知识产权情况');
  659. return false;
  660. };
  661. var reg = /^[1-9]\d*$|^0$/;
  662. if (this.state.consultationPrice) {
  663. if (this.state.consultationPrice.length > 6) {
  664. message.warning('咨询费用不超过6位数');
  665. this.refs.consul.focus();
  666. return false;
  667. };
  668. if (!reg.test(this.state.consultationPrice)) {
  669. message.warning('咨询费用只能输入数字');
  670. this.refs.consul.focus();
  671. return false;
  672. }
  673. }
  674. this.state.data = [];
  675. this.setState({
  676. selectedRowKeys: [],
  677. });
  678. let theorgCodeUrl = [];
  679. if (this.state.orgCodeUrl.length) {
  680. let picArr = [];
  681. this.state.orgCodeUrl.map(function (item) {
  682. if (item.response && item.response.data && item.response.data.length) {
  683. picArr.push(item.response.data);
  684. }
  685. });
  686. theorgCodeUrl = picArr.join(",");
  687. };
  688. let thecompanyLogoUrl = [];
  689. if (this.state.companyLogoUrl.length) {
  690. let picArr = [];
  691. this.state.companyLogoUrl.map(function (item) {
  692. if (item.response && item.response.data && item.response.data.length) {
  693. picArr.push(item.response.data);
  694. }
  695. });
  696. thecompanyLogoUrl = picArr.join(",");
  697. };
  698. let years = [];
  699. let yearMonth = this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
  700. years = yearMonth.split('/');
  701. this.setState({
  702. loading: true
  703. });
  704. $.ajax({
  705. method: "post",
  706. dataType: "json",
  707. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  708. data: {
  709. id: this.state.detailId,//详情ID
  710. identifyName: this.state.identifyName,//客户名称
  711. uid: this.state.uid,//客户ID
  712. societyTag: this.state.societyTag,//社会标签
  713. companyLogoUrl: thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',//公司LOGO
  714. introduction: this.state.introduction,//介绍
  715. industry: this.state.industry,//行业
  716. locationProvince: (this.state.ProvinceCity)[0],//省
  717. locationCity: (this.state.ProvinceCity)[1],//市
  718. locationArea: (this.state.ProvinceCity)[2],//区
  719. postalAddress: this.state.postalAddress,//通讯地址
  720. contactsFixedTel: this.state.contactsFixedTel,//固定电话
  721. contactsFax: this.state.contactsFax,//传真地址
  722. registeredCapital: this.state.registeredCapital,//注册资金
  723. enterpriseScale: this.state.enterpriseScale,//企业规模
  724. legalPerson: this.state.legalPerson,//法人
  725. legalPersonIdCard: this.state.legalPersonIdCard,//法人身份证
  726. legalPersonTel: this.state.legalPersonTel,//法人联系电话
  727. legalPersonEmail: this.state.legalPersonEmail,//法人联系邮箱
  728. highTechZone: this.state.highTechZone,//是否高新
  729. listed: this.state.listed,//是否高新
  730. international: this.state.international,//是否国际化
  731. orgCode: this.state.orgCode,//社会统一机构
  732. orgCodeUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',//社会统一机构地址
  733. businessScope: this.state.businessScope,//业务范围
  734. contacts: this.state.contacts,//主要联系人姓名
  735. contactMobile: this.state.contactMobile,//主要联系人电话
  736. investment: this.state.investment,//投资机构
  737. businessAudit: this.state.businessAudit,//业务认证
  738. auditStatus: this.state.auditStatus,//实名认证
  739. intellectualProperty: this.state.intellectualProperty,//已有知识产权情况
  740. yearSalesAmount: this.state.yearSalesAmount,//年度销售额
  741. lastYearResearchAmount: this.state.lastYearResearchAmount,//上年度研发费用
  742. assets: this.state.assets,//总资产
  743. qualification: this.state.qualification,//企业资质情况
  744. cooperationSituation: this.state.cooperationSituation,//企业与高校院所
  745. informationMaintainer: this.state.informationMaintainer,//资料维护人
  746. informationMaintainerName: this.state.informationMaintainerName,//资料维护人
  747. coreTechnology: this.state.coreTechnology,//核心技术
  748. accomplishSituation: this.state.accomplishSituation,//客户已完成项目情况
  749. creditRating: this.state.creditRating,//信用等级
  750. }
  751. }).done(function (data) {
  752. this.setState({
  753. loading: false
  754. });
  755. if (!data.error.length) {
  756. message.success('保存成功!');
  757. this.visitCancel();
  758. this.loadData();
  759. } else {
  760. message.warning(data.error[0].message);
  761. }
  762. }.bind(this));
  763. },
  764. //整行点击
  765. tableRowClick(record, index) {
  766. this.state.visitModul = true;
  767. this.details(record.id);
  768. },
  769. //指定转交人自动补全
  770. supervisor(e) {
  771. $.ajax({
  772. method: "get",
  773. dataType: "json",
  774. crossDomain: false,
  775. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  776. data: {
  777. adminName: e
  778. },
  779. success: function (data) {
  780. let thedata = data.data;
  781. if (!thedata) {
  782. if (data.error && data.error.length) {
  783. message.warning(data.error[0].message);
  784. };
  785. thedata = {};
  786. };
  787. this.setState({
  788. customerArr: thedata,
  789. });
  790. }.bind(this),
  791. }).always(function () {
  792. this.setState({
  793. loading: false
  794. });
  795. }.bind(this));
  796. },
  797. //输入转交人输入框失去焦点是判断客户是否存在
  798. selectAuto(value, options) {
  799. this.setState({
  800. auto: value
  801. })
  802. },
  803. blurChange(e) {
  804. let theType = '';
  805. let contactLists = this.state.customerArr || [];
  806. if (e) {
  807. contactLists.map(function (item) {
  808. if (item.name == e.toString()) {
  809. theType = item.id;
  810. }
  811. });
  812. }
  813. this.setState({
  814. theTypes: theType
  815. })
  816. },
  817. //值改变时请求客户名称
  818. httpChange(e) {
  819. if (e.length >= 1) {
  820. this.supervisor(e);
  821. }
  822. this.setState({
  823. auto: e
  824. })
  825. },
  826. //转交
  827. changeAssigner() {
  828. if (this.state.theTypes) {
  829. this.setState({
  830. selectedRowKeys: [],
  831. });
  832. let id;
  833. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  834. let rowItem = this.state.selectedRows[idx];
  835. if (rowItem.id) {
  836. id = rowItem.id;
  837. };
  838. };
  839. $.ajax({
  840. method: "post",
  841. dataType: "json",
  842. crossDomain: false,
  843. url: globalConfig.context + "/api/admin/customer/updateInformationMaintainerr",
  844. data: {
  845. id: id, //客户ID
  846. aid: this.state.theTypes, //指定转交人的ID
  847. }
  848. }).done(function (data) {
  849. if (!data.error.length) {
  850. message.success('转交成功!');
  851. this.setState({
  852. auto: '',
  853. loading: false,
  854. });
  855. } else {
  856. message.warning(data.error[0].message);
  857. };
  858. this.loadData(this.state.ispage);
  859. }.bind(this));
  860. } else {
  861. message.warning('请输入转交人姓名')
  862. }
  863. },
  864. //详情打开
  865. visitOk(e) {
  866. this.setState({
  867. visitModul: false
  868. });
  869. },
  870. //详情关闭
  871. visitCancel(e) {
  872. this.setState({
  873. visitModul: false,
  874. callnub: "0"
  875. });
  876. },
  877. getOrgCodeUrl(e) {
  878. this.setState({ orgCodeUrl: e });
  879. },
  880. getCompanyLogoUrl(e) {
  881. this.setState({ companyLogoUrl: e });
  882. },
  883. componentWillReceiveProps(nextProps) {
  884. if (nextProps.ApiUrl != this.props.ApiUrl) {
  885. this.state.nameSearch = '';
  886. this.state.addressSearch = [];
  887. this.state.provinceSearch = undefined;
  888. this.state.citySearch = undefined;
  889. this.state.releaseDate[0] = undefined;
  890. this.state.releaseDate[1] = undefined;
  891. this.loadData(null, nextProps.ApiUrl);
  892. };
  893. },
  894. callback(e) {
  895. if (e == '0') {
  896. this.setState({
  897. callnub: e,
  898. })
  899. }
  900. if (e == '1') {
  901. this.setState({
  902. callnub: e,
  903. })
  904. this.loadDatas();
  905. }
  906. if (e == '2') {
  907. this.setState({
  908. callnub: e,
  909. })
  910. this.loadDatac();
  911. }
  912. if (e == '3') {
  913. this.setState({
  914. callnub: e,
  915. })
  916. this.loadDatax();
  917. }
  918. },
  919. //发布成果
  920. addClick() {
  921. this.state.RowData = {};
  922. this.setState({
  923. showDesc: true,
  924. });
  925. },
  926. //关闭发布成果
  927. closeDesc(e, s) {
  928. this.state.showDesc = e;
  929. if (s) {
  930. this.loadDatas();
  931. };
  932. },
  933. tableRowClickDate(record, index) {
  934. this.state.RowData = record;
  935. if (index != undefined) {
  936. this.setState({
  937. showDesc: true
  938. });
  939. }
  940. },
  941. changeList(arr) {
  942. const newArr = [];
  943. this.state.columns.forEach(item => {
  944. arr.forEach(val => {
  945. if (val === item.title) {
  946. newArr.push(item);
  947. }
  948. });
  949. });
  950. this.setState({
  951. changeList: newArr
  952. });
  953. },
  954. render() {
  955. const {
  956. RangePicker,
  957. MonthPicker
  958. } = DatePicker;
  959. const formItemLayout = {
  960. labelCol: { span: 8 },
  961. wrapperCol: { span: 14 },
  962. };
  963. const FormItem = Form.Item;
  964. const rowSelection = {
  965. selectedRowKeys: this.state.selectedRowKeys,
  966. onChange: (selectedRowKeys, selectedRows) => {
  967. this.setState({
  968. modalVisible: false,
  969. selectedRows: selectedRows.slice(-1),
  970. selectedRowKeys: selectedRowKeys.slice(-1)
  971. });
  972. },
  973. onSelect: (recordt, selected, selectedRows) => {
  974. this.setState({
  975. modalVisible: false,
  976. recordt: recordt.id
  977. })
  978. },
  979. };
  980. const hasSelected = this.state.selectedRowKeys.length > 0;
  981. const dataSources = this.state.customerArr || [];
  982. const options = dataSources.map((group) =>
  983. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  984. )
  985. const intentionState = this.props.intentionState || '';
  986. return (
  987. <div className="user-content" >
  988. <div className="content-title">
  989. <span style={{ fontWeight: 900, fontSize: 16 }}>客户资料管理</span>
  990. </div>
  991. <Tabs
  992. defaultActiveKey="1"
  993. className="test">
  994. <TabPane tab="搜索" key="1">
  995. <div className="user-search">
  996. <Input placeholder="客户名称"
  997. value={this.state.nameSearch}
  998. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  999. <Select placeholder="省"
  1000. style={{ width: 80 }}
  1001. value={this.state.provinceSearch}
  1002. onChange={(e) => { this.setState({ provinceSearch: e }); }}>
  1003. {this.state.Provinces}
  1004. </Select>
  1005. <span style={{ marginRight: '10px' }}>
  1006. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1007. onChange={(e, pre) => { this.setState({ addressSearch: e }) }} />
  1008. </span>
  1009. <Select placeholder="资料是否完善" style={{ width: 120 }}
  1010. value={this.state.dataGrade}
  1011. onChange={(e) => { this.setState({ dataGrade: e }) }}>
  1012. <Select.Option value="0" >未完善</Select.Option>
  1013. <Select.Option value="1" >已完善</Select.Option>
  1014. </Select>
  1015. <RangePicker style={{ marginRight: '10px' }}
  1016. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1017. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1018. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1019. <Button type="primary" onClick={this.search}>搜索</Button>
  1020. <Button onClick={this.reset}>重置</Button>
  1021. </div>
  1022. </TabPane>
  1023. <TabPane tab="更改表格显示数据" key="2">
  1024. <div style={{ marginLeft: 10 }}>
  1025. <ChooseList
  1026. columns={this.state.columns}
  1027. changeFn={this.changeList}
  1028. changeList={this.state.changeList}
  1029. top={55}
  1030. margin={11}
  1031. />
  1032. </div>
  1033. </TabPane>
  1034. </Tabs>
  1035. <div className="patent-table">
  1036. <Spin spinning={this.state.loading}>
  1037. <Table columns={
  1038. this.state.changeList
  1039. ? this.state.changeList
  1040. : this.state.columns
  1041. }
  1042. dataSource={this.state.dataSource}
  1043. // rowSelection={rowSelection}
  1044. pagination={this.state.pagination}
  1045. onRowClick={this.tableRowClick}
  1046. bordered
  1047. size="small"
  1048. />
  1049. </Spin>
  1050. </div>
  1051. <Modal
  1052. className="customeDetails"
  1053. footer=''
  1054. title="客户资料"
  1055. width='1200px'
  1056. visible={this.state.visitModul}
  1057. onOk={this.visitOk}
  1058. onCancel={this.visitCancel}
  1059. >
  1060. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1061. <TabPane tab="基本信息" key="0">
  1062. <div>
  1063. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  1064. <Spin spinning={this.state.loading}>
  1065. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>基本信息</div>
  1066. <div className="clearfix" >
  1067. <FormItem className="half-item"
  1068. {...formItemLayout}
  1069. label="客户姓名"
  1070. >
  1071. <span>{this.state.identifyName}</span>
  1072. <EnterpriseNameChange
  1073. type='journal'
  1074. style={{ marginLeft: 10 }}
  1075. enterpriseId={this.state.uid} />
  1076. </FormItem>
  1077. <FormItem className="half-item"
  1078. {...formItemLayout}
  1079. label="资料所属人"
  1080. >
  1081. <span>{this.state.informationMaintainerName}</span>
  1082. </FormItem>
  1083. </div>
  1084. <div className="clearfix" >
  1085. <FormItem className="half-item"
  1086. {...formItemLayout}
  1087. label="企业行业">
  1088. <Select placeholder="选择行业" value={this.state.industry} style={{ width: '95%' }}
  1089. onChange={(e) => { this.setState({ industry: e }) }} disabled={true}>
  1090. {
  1091. industry.map(function (item) {
  1092. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1093. })
  1094. }
  1095. </Select>
  1096. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1097. </FormItem>
  1098. <FormItem className="half-item"
  1099. {...formItemLayout}
  1100. label="社会属性"
  1101. >
  1102. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{ width: '95%' }}
  1103. onChange={(e) => { this.setState({ societyTag: e }) }} disabled={true}>
  1104. {
  1105. socialAttribute.map(function (item) {
  1106. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1107. })
  1108. }
  1109. </Select>
  1110. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1111. </FormItem>
  1112. <FormItem className="half-item"
  1113. {...formItemLayout}
  1114. label="省-市-区"
  1115. >
  1116. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{ width: '95%' }}
  1117. onChange={(e, pre) => { this.setState({ ProvinceCity: e }) }} disabled={true} />
  1118. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1119. </FormItem>
  1120. <FormItem className="half-item"
  1121. {...formItemLayout}
  1122. label="注册资本"
  1123. >
  1124. <Input placeholder="注册资本" style={{ width: '90%' }} value={this.state.registeredCapital} onChange={(e) => {
  1125. this.setState({ registeredCapital: e.target.value })
  1126. }} disabled={true} />万
  1127. <span style={{ color: 'red', marginLeft: '5px' }}>*</span>
  1128. </FormItem>
  1129. <div className='clearfix'>
  1130. <FormItem
  1131. labelCol={{ span: 4 }}
  1132. wrapperCol={{ span: 20 }}
  1133. label="主营产品" >
  1134. {this.state.businessScope.map((tag) => {
  1135. const isLongTag = tag.length > 20;
  1136. const tagElem = (
  1137. <Tag key={tag}>
  1138. {isLongTag ? `${tag.slice(0, 20)}...` : tag}
  1139. </Tag>
  1140. );
  1141. return isLongTag ? <Tooltip title={tag} key={tag}>{tagElem}</Tooltip> : tagElem;
  1142. })}
  1143. </FormItem>
  1144. </div>
  1145. <div className='clearfix'>
  1146. <FormItem
  1147. labelCol={{ span: 4 }}
  1148. wrapperCol={{ span: 20 }}
  1149. label="销售目标企业" >
  1150. {this.state.salesTarget.map((tag) => {
  1151. const isLongTag = tag.length > 20;
  1152. const tagElem = (
  1153. <Tag key={tag}>
  1154. {isLongTag ? `${tag.slice(0, 20)}...` : tag}
  1155. </Tag>
  1156. );
  1157. return isLongTag ? <Tooltip title={tag} key={tag}>{tagElem}</Tooltip> : tagElem;
  1158. })}
  1159. </FormItem>
  1160. </div>
  1161. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>企业资料</div>
  1162. <FormItem className="half-item"
  1163. {...formItemLayout}
  1164. label="通信地址"
  1165. >
  1166. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1167. onChange={(e, pre) => { this.setState({ postalAddress: e.target.value }) }} disabled={true} />
  1168. </FormItem>
  1169. <FormItem className="half-item"
  1170. {...formItemLayout}
  1171. label="固定电话"
  1172. >
  1173. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1174. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }} disabled={true} />
  1175. </FormItem>
  1176. <FormItem className="half-item"
  1177. {...formItemLayout}
  1178. label="客户传真"
  1179. >
  1180. <Input placeholder="客户传真" value={this.state.contactsFax}
  1181. onChange={(e) => { this.setState({ contactsFax: e.target.value }) }} disabled={true} />
  1182. </FormItem>
  1183. <FormItem className="half-item"
  1184. {...formItemLayout}
  1185. label="企业人数"
  1186. >
  1187. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1188. this.setState({ enterpriseScale: e.target.value })
  1189. }} disabled={true} />
  1190. </FormItem>
  1191. <FormItem className="half-item"
  1192. {...formItemLayout}
  1193. label="法人名称"
  1194. >
  1195. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1196. this.setState({ legalPerson: e.target.value })
  1197. }} disabled={true} />
  1198. </FormItem>
  1199. <FormItem className="half-item"
  1200. {...formItemLayout}
  1201. label="法人身份证"
  1202. >
  1203. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1204. this.setState({ legalPersonIdCard: e.target.value })
  1205. }} disabled={true} />
  1206. </FormItem>
  1207. <FormItem className="half-item"
  1208. {...formItemLayout}
  1209. label="联系人"
  1210. >
  1211. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  1212. this.setState({ contacts: e.target.value })
  1213. }} disabled={true} />
  1214. </FormItem>
  1215. <FormItem className="half-item"
  1216. {...formItemLayout}
  1217. label="联系人号码"
  1218. >
  1219. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1220. this.setState({ contactMobile: e.target.value })
  1221. }} disabled={true} />
  1222. </FormItem>
  1223. <FormItem className="half-item"
  1224. {...formItemLayout}
  1225. label="法人电话"
  1226. >
  1227. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1228. this.setState({ legalPersonTel: e.target.value })
  1229. }} disabled={true} />
  1230. </FormItem>
  1231. <FormItem className="half-item"
  1232. {...formItemLayout}
  1233. label="法人邮箱"
  1234. >
  1235. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1236. onChange={(e) => { this.setState({ legalPersonEmail: e.target.value }) }} disabled={true} />
  1237. </FormItem>
  1238. <FormItem className="half-item"
  1239. {...formItemLayout}
  1240. label="社会统一信用机构代码"
  1241. >
  1242. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1243. this.setState({ orgCode: e.target.value })
  1244. }} disabled={true} />
  1245. </FormItem>
  1246. <div className='clearfix'>
  1247. <FormItem
  1248. labelCol={{ span: 4 }}
  1249. wrapperCol={{ span: 18 }}
  1250. label="客户简介" >
  1251. <Input type="textarea" rows={3} value={this.state.introduction}
  1252. onChange={(e, pre) => { this.setState({ introduction: e.target.value }) }} disabled={true} />
  1253. </FormItem>
  1254. </div>
  1255. <div className="clearfix pictures">
  1256. <FormItem style={{ display: 'inline-block', width: '350px', marginTop: '20px', marginLeft: '95px' }}
  1257. labelCol={{ span: 8 }}
  1258. wrapperCol={{ span: 10 }}
  1259. label="机构证书(PIC)" >
  1260. <PicturesWall
  1261. domId={'crmAll1'}
  1262. fileList={this.getOrgCodeUrl}
  1263. pictureUrl={this.state.orgCodeUrl} />
  1264. <p>建议:图片要清晰。</p>
  1265. </FormItem>
  1266. <FormItem style={{ display: 'inline-block', width: '350px', marginTop: '20px', marginTop: '20px' }}
  1267. labelCol={{ span: 8 }}
  1268. wrapperCol={{ span: 10 }}
  1269. label="单位LOGO" >
  1270. <PicturesWall
  1271. domId={'crmAll2'}
  1272. fileList={this.getCompanyLogoUrl}
  1273. pictureUrl={this.state.companyLogoUrl} />
  1274. <p>建议:图片要清晰。</p>
  1275. </FormItem>
  1276. </div>
  1277. <div style={{ fontSize: '18px', marginLeft: '50px', marginTop: '15px', marginBottom: '10px', color: "red", fontWeight: "bold" }}>重要资料</div>
  1278. <div className='clearfix' >
  1279. <FormItem className="half-item"
  1280. {...formItemLayout}
  1281. label="客户信用等级"
  1282. >
  1283. <Select placeholder="客户信用等级" value={this.state.creditRating}
  1284. onChange={(e) => { this.setState({ creditRating: e }) }} disabled={true}>
  1285. {
  1286. slcRedit.map(function (item) {
  1287. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1288. })
  1289. }
  1290. </Select>
  1291. </FormItem>
  1292. <div className='clearfix'>
  1293. <FormItem
  1294. labelCol={{ span: 4 }}
  1295. wrapperCol={{ span: 19 }}
  1296. label="企业核心技术" >
  1297. <Input type="textarea" rows={3} value={this.state.coreTechnology}
  1298. onChange={(e, pre) => { this.setState({ coreTechnology: e.target.value }) }} disabled={true} />
  1299. </FormItem>
  1300. </div>
  1301. <div className='clearfix'>
  1302. <FormItem
  1303. labelCol={{ span: 4 }}
  1304. wrapperCol={{ span: 19 }}
  1305. label="企业资质情况" >
  1306. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1307. onChange={(e, pre) => { this.setState({ qualification: e.target.value }) }} disabled={true} />
  1308. </FormItem>
  1309. </div>
  1310. <div className='clearfix'>
  1311. <FormItem
  1312. labelCol={{ span: 4 }}
  1313. wrapperCol={{ span: 19 }}
  1314. label="高企合作情况" >
  1315. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1316. onChange={(e, pre) => { this.setState({ cooperationSituation: e.target.value }) }} disabled={true} />
  1317. </FormItem>
  1318. </div>
  1319. </div>
  1320. </div>
  1321. </Spin>
  1322. </Form>
  1323. </div>
  1324. </TabPane>
  1325. <TabPane tab="知识产权列表" key="1">
  1326. <Spin spinning={this.state.loading}>
  1327. <Table columns={this.state.columnsDate}
  1328. dataSource={this.state.dataSourceDate}
  1329. rowSelection={rowSelection}
  1330. pagination={this.state.paginationDate}
  1331. onRowClick={this.tableRowClickDate} />
  1332. </Spin>
  1333. </TabPane>
  1334. <TabPane tab="财务信息" key="2">
  1335. <Spin spinning={this.state.loading}>
  1336. <Table columns={this.state.columnsc}
  1337. dataSource={this.state.dataSourcec}
  1338. rowSelection={rowSelection}
  1339. onRowClick={this.tableRowClickDatec} />
  1340. </Spin>
  1341. </TabPane>
  1342. <TabPane tab="项目信息" key="3">
  1343. <Spin spinning={this.state.loading}>
  1344. <Table columns={this.state.columnsx}
  1345. dataSource={this.state.dataSourcex}
  1346. rowSelection={rowSelection}
  1347. onRowClick={this.tableRowClickDatex} />
  1348. </Spin>
  1349. </TabPane>
  1350. </Tabs>
  1351. </Modal>
  1352. <TechAchievementDesc
  1353. data={this.state.RowData}
  1354. detailApiUrl={this.props['data-detailApiUrl']}
  1355. achievementCategoryOption={this.state.achievementCategoryOption}
  1356. showDesc={this.state.showDesc}
  1357. uid={this.state.uid}
  1358. closeDesc={this.closeDesc}
  1359. loadDatas={this.loadDatas}
  1360. />
  1361. </div >
  1362. );
  1363. }
  1364. }));
  1365. export default IntentionCustomer;