crm.jsx 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915
  1. import React from 'react';
  2. import { Radio, Icon, Button, AutoComplete,Cascader,Input, Select, Spin, Popconfirm, Table, Switch, message,Calendar , DatePicker, Upload, Form ,Modal,Tabs,Card } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import Jquery from 'jquery/dist/jquery.js';
  6. import moment from 'moment';
  7. import {Document,Page}from 'react-pdf';
  8. import PDF from 'react-pdf';
  9. import 'viewer/dist/crocodoc.viewer.css';
  10. import TechAchievementDesc from '@/manageCenter/achievement/crmAchievement.jsx';
  11. import { citySelect, provinceList ,areaSelect} from '@/NewDicProvinceList';
  12. import { socialAttribute, industry, auditStatusL, lvl, currentMember ,slcRedit,dataGrade,year,xiangmoState} from '@/dataDic.js';
  13. import { getSocialAttribute, beforeUploadFile,splitUrl ,getSlcRedit,getDataGrade,getAchievementCategory,getTechAuditStatus,getboutique,getPreviews,getPreview,getXiangmoState} from '@/tools.js';
  14. import './customer.less';
  15. const TabPane = Tabs.TabPane;
  16. const Dragger = Upload.Dragger;
  17. //图片组件
  18. const PicturesWall = React.createClass({
  19. getInitialState() {
  20. return {
  21. previewVisible: false,
  22. previewImage: '',
  23. fileList: [],
  24. }
  25. },
  26. handleCancel() {
  27. this.setState({
  28. previewVisible: false
  29. })
  30. },
  31. handlePreview(file) {
  32. this.setState({
  33. previewImage: file.url || file.thumbUrl,
  34. previewVisible: true,
  35. });
  36. },
  37. handleChange(info) {
  38. let fileList = info.fileList;
  39. this.setState({
  40. fileList
  41. });
  42. this.props.fileList(fileList);
  43. },
  44. componentWillReceiveProps(nextProps) {
  45. this.state.fileList = nextProps.pictureUrl;
  46. this.state.pojectApplicationUrl = undefined;
  47. },
  48. render() {
  49. const {
  50. previewVisible,
  51. previewImage,
  52. fileList
  53. } = this.state;
  54. const uploadButton = (
  55. <div>
  56. <Icon type="plus" />
  57. <div className="ant-upload-text">点击上传</div>
  58. </div>
  59. );
  60. return(
  61. <div style={{display:"inline-block"}}>
  62. <Upload
  63. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  64. data={{ 'sign': '' }}
  65. listType="picture-card"
  66. fileList={fileList}
  67. onPreview={this.handlePreview}
  68. onChange={this.handleChange} >
  69. {fileList.length >= 1 ? null : uploadButton}
  70. </Upload>
  71. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  72. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  73. </Modal>
  74. </div>
  75. );
  76. }
  77. });
  78. const IntentionCustomer = Form.create()(React.createClass({
  79. loadData(pageNo, apiUrl) {
  80. this.setState({
  81. visitModul:false,
  82. loading: true,
  83. ispage:pageNo,
  84. modalVisible:false
  85. });
  86. $.ajax({
  87. method: "post",
  88. dataType: "json",
  89. crossDomain: false,
  90. url: globalConfig.context +"/api/admin/customer/listCustomerInformation",
  91. data: {
  92. pageNo: pageNo || 1,
  93. pageSize: this.state.pagination.pageSize,
  94. name: this.state.nameSearch,
  95. dataGrade: this.state.dataGrade,
  96. follow: this.state.follow,
  97. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  98. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  99. startDate: this.state.releaseDate[0],
  100. endDate: this.state.releaseDate[1],
  101. },
  102. success: function(data) {
  103. let theArr = [];
  104. if(data.error.length || data.data.list == "") {
  105. if(data.error && data.error.length) {
  106. message.warning(data.error[0].message);
  107. };
  108. } else {
  109. for(let i = 0; i < data.data.list.length; i++) {
  110. let thisdata = data.data.list[i];
  111. let diqu=(thisdata.province==null?"":thisdata.province)+(thisdata.city==null?"":"-"+thisdata.city)+(thisdata.area==null?"":"-"+thisdata.area);
  112. theArr.push({
  113. key: i,
  114. id: thisdata.id,//用户ID
  115. type:thisdata.type,//类型
  116. name: thisdata.name,//用户名称
  117. diqu: diqu,//省市区
  118. industry: thisdata.industry,//行业
  119. dataGrade:thisdata.dataGrade?(thisdata.dataGrade*100).toFixed(2)+"%":"",//是否完善render:(text)=>{return ((text*100).toFixed(2)+"%") }
  120. contacts: thisdata.contacts,//联系人
  121. contactMobile: thisdata.contactMobile,//联系人电话
  122. createTime: thisdata.createTime,//行业
  123. });
  124. };
  125. this.state.pagination.current = data.data.pageNo;
  126. this.state.pagination.total = data.data.totalCount;
  127. };
  128. if(data.data&&data.data.list&&!data.data.list.length){
  129. this.state.pagination.current=0
  130. this.state.pagination.total=0
  131. }
  132. this.setState({
  133. dataSource: theArr,
  134. pageNo: pageNo,
  135. pagination: this.state.pagination,
  136. selectedRowKeys:[]
  137. });
  138. }.bind(this),
  139. }).always(function() {
  140. this.setState({
  141. loading: false
  142. });
  143. }.bind(this));
  144. },
  145. loadDatas(pageNos) {
  146. this.setState({
  147. loading: true,
  148. });
  149. $.ajax({
  150. method: "get",
  151. dataType: "json",
  152. crossDomain: false,
  153. url: globalConfig.context + "/api/admin/achievement/listUserAchievement",
  154. data: {
  155. pageNo: pageNos || 1,
  156. pageSize: this.state.paginationDate.pageSize,
  157. uid:this.state.uid,
  158. },
  159. success: function (data) {
  160. let theArr = [];
  161. if (!data.data || !data.data.list) {
  162. if (data.error && data.error.length) {
  163. message.warning(data.error[0].message);
  164. };
  165. } else {
  166. for (let i = 0; i < data.data.list.length; i++) {
  167. let thisdata = data.data.list[i];
  168. theArr.push({
  169. key: i,
  170. id: thisdata.id,
  171. serialNumber: thisdata.serialNumber,
  172. dataCategory: thisdata.dataCategory,
  173. name: thisdata.name,
  174. keyword: thisdata.keyword,
  175. theName: thisdata.username || thisdata.ownerName,
  176. category: thisdata.category,
  177. ownerName: thisdata.username ? thisdata.username : thisdata.ownerName,
  178. ownerType: thisdata.ownerType,
  179. ownerMobile: thisdata.ownerMobile,
  180. status: thisdata.status,
  181. releaseDate: thisdata.releaseDate,
  182. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  183. auditStatus: thisdata.auditStatus,
  184. boutique: thisdata.boutique,
  185. hot: thisdata.hot,
  186. techBrokerId:thisdata.techBrokerId,
  187. createTimeFormattedDate: thisdata.createTimeFormattedDate,
  188. remark:thisdata.remark
  189. });
  190. };
  191. this.state.paginationDate.current = data.data.pageNo;
  192. this.state.paginationDate.total = data.data.totalCount;
  193. };
  194. this.setState({
  195. dataSourceDate: theArr,
  196. pageNos: pageNos,
  197. paginationDate: this.state.paginationDate
  198. });
  199. }.bind(this),
  200. }).always(function () {
  201. this.setState({
  202. loading: false
  203. });
  204. }.bind(this));
  205. },
  206. loadDatac(pageNo, apiUrl) {
  207. this.setState({
  208. loading: true,
  209. });
  210. $.ajax({
  211. method: "get",
  212. dataType: "json",
  213. crossDomain: false,
  214. url: globalConfig.context +"/api/admin/customers/selectListOrgAnnual",
  215. data: {
  216. // pageNo: pageNo || 1,
  217. // pageSize: this.state.pagination.pageSize,
  218. uid:this.state.uid,
  219. },
  220. success: function(data) {
  221. let theArr = [];
  222. if(data.error.length || data.data.list == "") {
  223. if(data.error && data.error.length) {
  224. message.warning(data.error[0].message);
  225. };
  226. } else {
  227. for(let i = 0; i < data.data.list.length; i++) {
  228. let thisdata = data.data.list[i];
  229. let diqu=(thisdata.province==null?"":thisdata.province)+(thisdata.city==null?"":"-"+thisdata.city)+(thisdata.area==null?"":"-"+thisdata.area);
  230. theArr.push({
  231. key: i,
  232. id: thisdata.id,//年报ID
  233. uid: thisdata.uid,//客户ID
  234. year:thisdata.year,//年份
  235. salesAmount: thisdata.salesAmount,//营销额
  236. researchAmount: thisdata.researchAmount,//研发费用
  237. assets: thisdata.assets,//总资产
  238. fixedAssets:thisdata.fixedAssets,//固定资产
  239. aid: thisdata.aid,//录入人
  240. });
  241. };
  242. // this.state.pagination.current = data.data.pageNo;
  243. // this.state.pagination.total = data.data.totalCount;
  244. };
  245. if(data.data&&data.data.list&&!data.data.list.length){
  246. this.state.pagination.current=0
  247. this.state.pagination.total=0
  248. }
  249. this.setState({
  250. dataSourcec: theArr,
  251. // pageNo: pageNo,
  252. // pagination: this.state.pagination,
  253. // selectedRowKeys:[]
  254. });
  255. }.bind(this),
  256. }).always(function() {
  257. this.setState({
  258. loading: false
  259. });
  260. }.bind(this));
  261. },
  262. loadDatax(pageNo, apiUrl) {
  263. this.setState({
  264. loading: true,
  265. });
  266. $.ajax({
  267. method: "get",
  268. dataType: "json",
  269. crossDomain: false,
  270. url: globalConfig.context +"/api/admin/customers/selectListOrgYearProject",
  271. data: {
  272. uid:this.state.uid,
  273. },
  274. success: function(data) {
  275. let theArr = [];
  276. if(data.error.length || data.data.list == "") {
  277. if(data.error && data.error.length) {
  278. message.warning(data.error[0].message);
  279. };
  280. } else {
  281. for(let i = 0; i < data.data.list.length; i++) {
  282. let thisdata = data.data.list[i];
  283. let diqu=(thisdata.province==null?"":thisdata.province)+(thisdata.city==null?"":"-"+thisdata.city)+(thisdata.area==null?"":"-"+thisdata.area);
  284. theArr.push({
  285. key: i,
  286. id: thisdata.id,//用户ID
  287. uid: thisdata.uid,//客户ID
  288. projectName:thisdata.projectName,//项目名称
  289. year: thisdata.year,//年份
  290. status: thisdata.status?thisdata.status.toString():"",//项目状态
  291. remark: thisdata.remark,//备注
  292. aid: thisdata.aid,//录入人
  293. });
  294. };
  295. // this.state.pagination.current = data.data.pageNo;
  296. // this.state.pagination.total = data.data.totalCount;
  297. };
  298. if(data.data&&data.data.list&&!data.data.list.length){
  299. this.state.pagination.current=0
  300. this.state.pagination.total=0
  301. }
  302. this.setState({
  303. dataSourcex: theArr,
  304. });
  305. }.bind(this),
  306. }).always(function() {
  307. this.setState({
  308. loading: false
  309. });
  310. }.bind(this));
  311. },
  312. getInitialState() {
  313. return {
  314. pages:1,
  315. pdfUrl:'',
  316. addressSearch: [],
  317. orgCodeUrl: [],
  318. companyLogoUrl: [],
  319. visible: false,
  320. releaseDate: [],
  321. visitModul:false,
  322. detailApi:'',
  323. followData:{},
  324. selectedRowKeys: [],
  325. selectedRows: [],
  326. loading: false,
  327. callnub:"0",
  328. pojectApplicationUrl:"",
  329. isXian:0,
  330. modalVisible:false,
  331. numPages: null,
  332. pageNumber: 1,
  333. pagec:0,
  334. pages:18,
  335. isXin:1,
  336. pagination: {
  337. defaultCurrent: 1,
  338. defaultPageSize: 10,
  339. showQuickJumper: true,
  340. pageSize: 10,
  341. onChange: function(page) {
  342. this.loadData(page);
  343. }.bind(this),
  344. showTotal: function(total) {
  345. return '共' + total + '条数据';
  346. }
  347. },
  348. paginationDate: {
  349. defaultCurrent: 1,
  350. defaultPageSize: 10,
  351. showQuickJumper: true,
  352. pageSize: 10,
  353. onChange: function(page) {
  354. this.loadDatas(page);
  355. }.bind(this),
  356. showTotal: function(total) {
  357. return '共' + total + '条数据';
  358. }
  359. },
  360. columns: [{
  361. title: '客户名称',
  362. dataIndex: 'name',
  363. key: 'name',
  364. }, {
  365. title: '地区',
  366. dataIndex: 'diqu',
  367. key: 'diqu',
  368. }, {
  369. title: '联系人',
  370. dataIndex: 'contacts',
  371. key: 'contacts',
  372. },{
  373. title: '联系电话',
  374. dataIndex: 'contactMobile',
  375. key: 'contactMobile',
  376. },
  377. {
  378. title: '资料完整度',
  379. dataIndex: 'dataGrade',
  380. key: 'dataGrade',
  381. },
  382. {
  383. title: '行业',
  384. dataIndex: 'industry',
  385. key: 'industry'
  386. },
  387. {
  388. title: '创建时间',
  389. dataIndex: 'createTime',
  390. key: 'createTime',
  391. }
  392. ],
  393. data: [],
  394. dataSource: [],
  395. columnsDate: [
  396. {
  397. title: '编号',
  398. dataIndex: 'serialNumber',
  399. key: 'serialNumber',
  400. }, {
  401. title: '名称',
  402. dataIndex: 'name',
  403. key: 'name',
  404. }, {
  405. title: '关键字',
  406. dataIndex: 'keyword',
  407. key: 'keyword',
  408. }, {
  409. title: '类型',
  410. dataIndex: 'category',
  411. key: 'category',
  412. render: text => { return getAchievementCategory(text); }
  413. },{
  414. title: '审核状态',
  415. dataIndex: 'auditStatus',
  416. key: 'auditStatus',
  417. render: text => { return getTechAuditStatus(text) }
  418. },
  419. {
  420. title: '是否精品',
  421. dataIndex: 'boutique',
  422. key: 'boutique',
  423. render: text => { return getboutique(text) }
  424. },
  425. {
  426. title: '发布时间',
  427. dataIndex: 'releaseDateFormattedDate',
  428. key: 'releaseDateFormattedDate',
  429. },{
  430. title: '录入时间',
  431. dataIndex: 'createTimeFormattedDate',
  432. key: 'createTimeFormattedDate',
  433. },
  434. ],
  435. dataSourceDate: [],
  436. columnsc: [{
  437. title: '年份',
  438. dataIndex: 'year',
  439. key: 'year',
  440. }, {
  441. title: '营销收入(万)',
  442. dataIndex: 'salesAmount',
  443. key: 'salesAmount',
  444. },
  445. {
  446. title: '总资产(万)',
  447. dataIndex: 'assets',
  448. key: 'assets'
  449. },
  450. {
  451. title: '固定资产(万)',
  452. dataIndex: 'fixedAssets',
  453. key: 'fixedAssets'
  454. }, {
  455. title: '研发费用(万)',
  456. dataIndex: 'researchAmount',
  457. key: 'researchAmount',
  458. },{
  459. title: '操作',
  460. dataIndex: 'rrtk',
  461. key: 'rrtk',
  462. render:(text,record,index)=>{
  463. return (
  464. <div>
  465. <Popconfirm title={'您将删除该条财务信息,请确认!'} onConfirm={(e)=>{this.deltalc(record)}} okText="确认" cancelText="取消">
  466. <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">删除</Button>
  467. </Popconfirm>
  468. </div>
  469. )
  470. }
  471. }
  472. ],
  473. dataSourcec: [],
  474. columnsx: [{
  475. title: '项目名称',
  476. dataIndex: 'projectName',
  477. key: 'projectName',
  478. },{
  479. title: '年份',
  480. dataIndex: 'year',
  481. key: 'year',
  482. },
  483. {
  484. title: '项目状态',
  485. dataIndex: 'status',
  486. key: 'status',
  487. render: text => { return getXiangmoState(text); }
  488. }, {
  489. title: '备注',
  490. dataIndex: 'remark',
  491. key: 'remark',
  492. },{
  493. title: '操作',
  494. dataIndex: 'rrtk',
  495. key: 'rrtk',
  496. render:(text,record,index)=>{
  497. return (
  498. <div>
  499. <Popconfirm title={'您将删除该项目,请确认!'} onConfirm={(e)=>{this.deltalx(record)}} okText="确认" cancelText="取消">
  500. <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">删除</Button>
  501. </Popconfirm>
  502. </div>
  503. )
  504. }
  505. }
  506. ],
  507. dataSourcex: [],
  508. };
  509. },
  510. componentWillMount() {
  511. //城市
  512. let Province = [];
  513. provinceList.map(function(item) {
  514. var id = String(item.id)
  515. Province.push(
  516. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  517. )
  518. });
  519. //行业
  520. let intentionalArr = [];
  521. industry.map(function(item) {
  522. intentionalArr.push(
  523. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  524. )
  525. });
  526. //会员等级
  527. let lvlArr = [];
  528. lvl.map(function(item) {
  529. lvlArr.push(
  530. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  531. )
  532. });
  533. //会员状态customerStatus
  534. let currentMemberArr = [];
  535. currentMember.map(function(item) {
  536. currentMemberArr.push(
  537. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  538. )
  539. });
  540. this.state.Provinces = Province;
  541. this.state.intentionalOption = intentionalArr;
  542. this.state.lvlArrOption = lvlArr;
  543. this.state.currentMemberArrOption = currentMemberArr;
  544. this.loadData();
  545. },
  546. search() {
  547. this.loadData();
  548. },
  549. reset() {
  550. this.state.nameSearch = '';
  551. this.state.addressSearch = [];
  552. this.state.dataGrade=undefined;
  553. this.state.follow=undefined;
  554. this.state.provinceSearch = undefined;
  555. this.state.citySearch = undefined;
  556. this.state.releaseDate[0] = undefined;
  557. this.state.releaseDate[1] = undefined;
  558. this.loadData();
  559. },
  560. resetc() {
  561. this.state.id=undefined;//年报ID
  562. this.state.assets=undefined;//总资产
  563. this.state.fixedAssets=undefined;//固定资产
  564. this.state.researchAmount=undefined;//研发费用
  565. this.state.salesAmount = undefined;//销售额
  566. this.state.year = undefined;//年份清零
  567. },
  568. resetx() {
  569. this.state.id=undefined;//年报ID
  570. this.state.projectName=undefined;//项目名称
  571. this.state.status=undefined;//项目状态
  572. this.state.remark = undefined;//备注
  573. this.state.year = undefined;//年份清零
  574. },
  575. //列表详情
  576. details(id) {
  577. $.ajax({
  578. method: "get",
  579. dataType: "json",
  580. crossDomain: false,
  581. url: globalConfig.context +"/api/admin/customer/findOrganizationCustomerDetail",
  582. data: {
  583. uid:id
  584. },
  585. success: function(data) {
  586. let thisDetail= data.data;
  587. if(data.error.length || data.data.list == "") {
  588. if(data.error && data.error.length) {
  589. message.warning(data.error[0].message);
  590. };
  591. } else {
  592. let ProvinceCityArr = [];
  593. let ProvinceS = thisDetail.locationProvince; //省
  594. let citys = thisDetail.locationCity;//市
  595. let Areas = thisDetail.locationArea;//区
  596. ProvinceCityArr.push(ProvinceS, citys, Areas);
  597. this.setState({
  598. detailId:thisDetail.id,//详情ID
  599. identifyName:thisDetail.identifyName,//客户名称
  600. uid:thisDetail.uid,//客户ID
  601. societyTag:thisDetail.societyTag,//社会标签
  602. companyLogoUrl:thisDetail.companyLogoUrl? splitUrl(thisDetail.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],//公司LOGO
  603. introduction:thisDetail.introduction,//介绍
  604. industry:thisDetail.industry?thisDetail.industry.toString():"",//行业
  605. locationProvince:thisDetail.locationProvince,//省
  606. locationCity:thisDetail.locationCity,//市
  607. locationArea:thisDetail.locationArea,//区
  608. ProvinceCity: ProvinceCityArr[0]!=null?ProvinceCityArr:undefined,//省市区
  609. postalAddress:thisDetail.postalAddress,//通讯地址
  610. contactsFixedTel:thisDetail.contactsFixedTel,//固定电话
  611. contactsFax:thisDetail.contactsFax,//传真地址
  612. registeredCapital:thisDetail.registeredCapital,//注册资金
  613. enterpriseScale:thisDetail.enterpriseScale,//企业规模
  614. legalPerson:thisDetail.legalPerson,//法人
  615. legalPersonIdCard:thisDetail.legalPersonIdCard,//法人身份证
  616. legalPersonTel:thisDetail.legalPersonTel,//法人联系电话
  617. legalPersonEmail:thisDetail.legalPersonEmail,//法人联系邮箱
  618. highTechZone:thisDetail.highTechZone,//是否高新
  619. listed:thisDetail.listed,//是否高新
  620. international:thisDetail.international,//是否国际化
  621. orgCode:thisDetail.orgCode,//社会统一机构
  622. orgCodeUrl:thisDetail.orgCodeUrl? splitUrl(thisDetail.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],//社会统一机构地址
  623. businessScope:thisDetail.businessScope,//业务范围
  624. contacts:thisDetail.contacts,//主要联系人姓名
  625. contactMobile:thisDetail.contactMobile,//主要联系人电话
  626. investment:thisDetail.investment,//投资机构
  627. businessAudit:thisDetail.businessAudit,//业务认证
  628. auditStatus:thisDetail.auditStatus,//实名认证
  629. intellectualProperty:thisDetail.intellectualProperty,//已有知识产权情况
  630. yearSalesAmount:thisDetail.yearSalesAmount,//年度销售额
  631. lastYearResearchAmount:thisDetail.lastYearResearchAmount,//上年度研发费用
  632. assets:thisDetail.assets,//总资产
  633. qualification:thisDetail.qualification,//企业资质情况
  634. cooperationSituation:thisDetail.cooperationSituation,//企业与高校院所
  635. informationMaintainer:thisDetail.informationMaintainer,//资料维护人
  636. informationMaintainerName:thisDetail.informationMaintainerName,//资料维护人
  637. coreTechnology:thisDetail.coreTechnology,//核心技术
  638. accomplishSituation:thisDetail.accomplishSituation,//客户已完成项目情况
  639. creditRating:thisDetail.creditRating?thisDetail.creditRating.toString():"",//信用等级
  640. pojectApplicationUrl:thisDetail.pojectApplicationUrl,//文件地址
  641. });
  642. }}.bind(this),
  643. }).always(function() {
  644. this.setState({
  645. loading: false
  646. });
  647. }.bind(this));
  648. },
  649. //基本信息提交
  650. newSubmit(e) {
  651. e.preventDefault();
  652. if(!this.state.industry) {
  653. message.warning('请选择行业');
  654. return false;
  655. };
  656. if(!this.state.societyTag) {
  657. message.warning('请选择社会属性');
  658. return false;
  659. };
  660. if(!this.state.ProvinceCity[1]) {
  661. message.warning('请选择地区');
  662. return false;
  663. };
  664. if(!this.state.registeredCapital) {
  665. message.warning('请填写注册资本');
  666. return false;
  667. };
  668. if(!this.state.businessScope) {
  669. message.warning('请填写公司主营产品');
  670. return false;
  671. };
  672. var reg = /^[1-9]\d*$|^0$/;
  673. if(this.state.consultationPrice) {
  674. if(this.state.consultationPrice.length > 6) {
  675. message.warning('咨询费用不超过6位数');
  676. this.refs.consul.focus();
  677. return false;
  678. };
  679. if(!reg.test(this.state.consultationPrice)) {
  680. message.warning('咨询费用只能输入数字');
  681. this.refs.consul.focus();
  682. return false;
  683. }
  684. }
  685. this.state.data = [];
  686. this.setState({
  687. selectedRowKeys: [],
  688. });
  689. let theorgCodeUrl = [];
  690. if(this.state.orgCodeUrl.length) {
  691. let picArr = [];
  692. this.state.orgCodeUrl.map(function(item) {
  693. if(item.response && item.response.data && item.response.data.length) {
  694. picArr.push(item.response.data);
  695. }
  696. });
  697. theorgCodeUrl = picArr.join(",");
  698. };
  699. let thecompanyLogoUrl = [];
  700. if(this.state.companyLogoUrl.length) {
  701. let picArr = [];
  702. this.state.companyLogoUrl.map(function(item) {
  703. if(item.response && item.response.data && item.response.data.length) {
  704. picArr.push(item.response.data);
  705. }
  706. });
  707. thecompanyLogoUrl = picArr.join(",");
  708. };
  709. let years = [];
  710. let yearMonth = this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
  711. years = yearMonth.split('/');
  712. this.setState({
  713. loading: true
  714. });
  715. $.ajax({
  716. method: "post",
  717. dataType: "json",
  718. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  719. data: {
  720. id:this.state.detailId,//详情ID
  721. identifyName:this.state.identifyName,//客户名称
  722. uid:this.state.uid,//客户ID
  723. societyTag:this.state.societyTag,//社会标签
  724. companyLogoUrl:thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',//公司LOGO
  725. introduction:this.state.introduction,//介绍
  726. industry:this.state.industry,//行业
  727. locationProvince:(this.state.ProvinceCity)[0],//省
  728. locationCity:(this.state.ProvinceCity)[1],//市
  729. locationArea:(this.state.ProvinceCity)[2],//区
  730. postalAddress:this.state.postalAddress,//通讯地址
  731. contactsFixedTel:this.state.contactsFixedTel,//固定电话
  732. contactsFax:this.state.contactsFax,//传真地址
  733. registeredCapital:this.state.registeredCapital,//注册资金
  734. enterpriseScale:this.state.enterpriseScale,//企业规模
  735. legalPerson:this.state.legalPerson,//法人
  736. legalPersonIdCard:this.state.legalPersonIdCard,//法人身份证
  737. legalPersonTel:this.state.legalPersonTel,//法人联系电话
  738. legalPersonEmail:this.state.legalPersonEmail,//法人联系邮箱
  739. highTechZone:this.state.highTechZone,//是否高新
  740. listed:this.state.listed,//是否高新
  741. international:this.state.international,//是否国际化
  742. orgCode:this.state.orgCode,//社会统一机构
  743. orgCodeUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',//社会统一机构地址
  744. businessScope:this.state.businessScope,//业务范围
  745. contacts:this.state.contacts,//主要联系人姓名
  746. contactMobile:this.state.contactMobile,//主要联系人电话
  747. investment:this.state.investment,//投资机构
  748. businessAudit:this.state.businessAudit,//业务认证
  749. auditStatus:this.state.auditStatus,//实名认证
  750. intellectualProperty:this.state.intellectualProperty,//已有知识产权情况
  751. qualification:this.state.qualification,//企业资质情况
  752. cooperationSituation:this.state.cooperationSituation,//企业与高校院所
  753. informationMaintainer:this.state.informationMaintainer,//资料维护人
  754. informationMaintainerName:this.state.informationMaintainerName,//资料维护人
  755. coreTechnology:this.state.coreTechnology,//核心技术
  756. creditRating:this.state.creditRating,//信用等级
  757. pojectApplicationUrl:this.state.pojectApplicationUrl,//文件地址
  758. }
  759. }).done(function(data) {
  760. this.setState({
  761. loading: false
  762. });
  763. if(!data.error.length) {
  764. message.success('保存成功!');
  765. this.visitCancel();
  766. this.loadData(this.state.pageNo);
  767. } else {
  768. message.warning(data.error[0].message);
  769. }
  770. }.bind(this));
  771. },
  772. //财务信息提交
  773. newSubmitc(e) {
  774. e.preventDefault();
  775. if(!this.state.year) {
  776. message.warning('请选择年份');
  777. return false;
  778. };
  779. this.setState({
  780. loading: true
  781. });
  782. $.ajax({
  783. method: "post",
  784. dataType: "json",
  785. url: globalConfig.context + this.state.isXin==1?'/api/admin/customers/addOrgAnnual':'/api/admin/customers/updateOrgAnnual',
  786. data: {
  787. id:this.state.id?this.state.id:undefined,//年报ID
  788. uid:this.state.uid,//客户ID
  789. year:this.state.year,//年份
  790. researchAmount:this.state.researchAmount,//研发费用
  791. assets:this.state.assets,//总资产
  792. fixedAssets:this.state.fixedAssets,//固定资产
  793. salesAmount:this.state.salesAmount,//销售额
  794. }
  795. }).done(function(data) {
  796. this.setState({
  797. loading: false
  798. });
  799. if(!data.error.length) {
  800. message.success('保存成功!');
  801. this.visitCancelc();
  802. this.loadDatac();
  803. this.loadData();
  804. } else {
  805. message.warning(data.error[0].message);
  806. }
  807. }.bind(this));
  808. },
  809. //财务信息提交
  810. newSubmitx(e) {
  811. e.preventDefault();
  812. if(!this.state.year) {
  813. message.warning('请选择年份');
  814. return false;
  815. };
  816. this.setState({
  817. loading: true
  818. });
  819. $.ajax({
  820. method: "post",
  821. dataType: "json",
  822. url: globalConfig.context + this.state.isXinx==1?'/api/admin/customers/addOrgYearProject':'/api/admin/customers/updateOrgYearProject',
  823. data: {
  824. id:this.state.id?this.state.id:undefined,//年报ID
  825. uid:this.state.uid,//客户ID
  826. year:this.state.year,//年份
  827. projectName:this.state.projectName,//研发费用
  828. status:this.state.status,//总资产
  829. remark:this.state.remark,//销售额
  830. }
  831. }).done(function(data) {
  832. this.setState({
  833. loading: false
  834. });
  835. if(!data.error.length) {
  836. message.success('保存成功!');
  837. this.visitCancelc();
  838. this.loadDatax();
  839. this.loadData();
  840. } else {
  841. message.warning(data.error[0].message);
  842. }
  843. }.bind(this));
  844. },
  845. //获取ID
  846. getStateData(id) {
  847. this.setState({
  848. loading: true
  849. });
  850. $.ajax({
  851. method: "post",
  852. dataType: "json",
  853. crossDomain: false,
  854. url: globalConfig.context + "/api/admin/techproject/techProjectLog",
  855. data: {
  856. pid: id || this.props.data.id
  857. },
  858. success: function (data) {
  859. if (!data.data) {
  860. if (data.error && data.error.length) {
  861. message.warning(data.error[0].message);
  862. };
  863. return;
  864. };
  865. var myDate = new Date();
  866. this.state.stateTable = [];
  867. for (let i = 0; i < data.data.length; i++) {
  868. this.state.stateTable.push({
  869. key: i,
  870. state: data.data[i].state,
  871. recordTime: data.data[i].recordTime,
  872. recordTimeFormattedDate: data.data[i].recordTimeFormattedDate,
  873. principal: data.data[i].principal,
  874. operator: data.data[i].operator,
  875. comment: data.data[i].comment
  876. });
  877. };
  878. }.bind(this),
  879. }).always(function () {
  880. this.setState({
  881. loading: false
  882. });
  883. }.bind(this));
  884. },
  885. //整行点击
  886. tableRowClick(record, index) {
  887. this.state.visitModul=true;
  888. this.state.pojectApplicationUrl = undefined;
  889. this.state.isXian=0;
  890. this.details(record.id);
  891. },
  892. //指定转交人自动补全
  893. supervisor(e){
  894. $.ajax({
  895. method: "get",
  896. dataType: "json",
  897. crossDomain: false,
  898. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  899. data:{
  900. adminName:e
  901. },
  902. success: function (data) {
  903. let thedata=data.data;
  904. if (!thedata) {
  905. if (data.error && data.error.length) {
  906. message.warning(data.error[0].message);
  907. };
  908. thedata = {};
  909. };
  910. this.setState({
  911. customerArr:thedata,
  912. });
  913. }.bind(this),
  914. }).always(function () {
  915. this.setState({
  916. loading: false
  917. });
  918. }.bind(this));
  919. },
  920. //输入转交人输入框失去焦点是判断客户是否存在
  921. selectAuto(value,options){
  922. this.setState({
  923. auto:value
  924. })
  925. },
  926. blurChange(e){
  927. let theType='';
  928. let contactLists=this.state.customerArr||[];
  929. if (e) {
  930. contactLists.map(function (item) {
  931. if (item.name == e.toString()) {
  932. theType = item.id;
  933. }
  934. });
  935. }
  936. this.setState({
  937. theTypes:theType
  938. })
  939. },
  940. //值改变时请求客户名称
  941. httpChange(e){
  942. if(e.length>=1){
  943. this.supervisor(e);
  944. }
  945. this.setState({
  946. auto:e
  947. })
  948. },
  949. //转交
  950. changeAssigner() {
  951. if(this.state.theTypes){
  952. this.setState({
  953. selectedRowKeys: [],
  954. });
  955. let id;
  956. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  957. let rowItem = this.state.selectedRows[idx];
  958. if(rowItem.id) {
  959. id=rowItem.id;
  960. };
  961. };
  962. $.ajax({
  963. method: "post",
  964. dataType: "json",
  965. crossDomain: false,
  966. url: globalConfig.context + "/api/admin/customer/updateInformationMaintainerr",
  967. data: {
  968. id: id, //客户ID
  969. aid: this.state.theTypes, //指定转交人的ID
  970. }
  971. }).done(function(data) {
  972. if(!data.error.length) {
  973. message.success('转交成功!');
  974. this.setState({
  975. auto:'',
  976. loading: false,
  977. });
  978. } else {
  979. message.warning(data.error[0].message);
  980. };
  981. this.loadData(Math.min(this.state.pageNo==undefined?1:this.state.pageNo,Math.ceil((this.state.pagination.total-1)/10)));
  982. }.bind(this));
  983. }else{
  984. message.warning('请输入转交人姓名')
  985. }
  986. },
  987. //详情打开
  988. visitOk(e) {
  989. this.setState({
  990. visitModul: false
  991. });
  992. },
  993. //详情关闭
  994. visitCancel(e) {
  995. this.state.fileList = [];
  996. this.setState({
  997. visitModul: false,
  998. callnub:"0"
  999. });
  1000. },
  1001. //新增年报打开
  1002. visitOkc(e) {
  1003. this.setState({
  1004. visitModulc: true,
  1005. visitModulx: true
  1006. });
  1007. },
  1008. //新增年报关闭
  1009. visitCancelc(e) {
  1010. this.resetc();
  1011. this.resetx();
  1012. this.setState({
  1013. visitModulc: false,
  1014. visitModulx: false,
  1015. });
  1016. },
  1017. //PDF打开
  1018. visitOk1(e) {
  1019. this.getPrevie(this.state.uid, 'techProject', 'organization_application');
  1020. this.setState({
  1021. visitModul1: true
  1022. });
  1023. },
  1024. //PDF关闭
  1025. visitCancel1(e) {
  1026. this.setState({
  1027. visitModul1: false,
  1028. loading:false,
  1029. });
  1030. },
  1031. //获取PDF地址
  1032. getPrevie(id,url,sign){
  1033. $.ajax({
  1034. method: "get",
  1035. dataType: "json",
  1036. crossDomain: false,
  1037. url: globalConfig.context + "/api/admin/customer/" + url,
  1038. data:{
  1039. "id": id,
  1040. "sign": sign
  1041. },
  1042. success: function (data) {
  1043. if (!data.data) {
  1044. if ( data.error && data.error.length ) {
  1045. message.warning(data.error[0].message);
  1046. };
  1047. };
  1048. this.setState({
  1049. pdfUrl: location.origin + globalConfig.context + "/open/preview?" + data.data,
  1050. });
  1051. }.bind(this)
  1052. });
  1053. },
  1054. //PDF分页
  1055. //一开始就加载这个函数
  1056. onDocumentComplete (pages) {
  1057. this.setState({
  1058. loading: true,
  1059. });
  1060. this.setState({ pagec:0, pages:pages.total });
  1061. },
  1062. //随后
  1063. onPageComplete (pagec) {
  1064. this.setState({ pagec });
  1065. },
  1066. handlePrevious (){
  1067. this.setState({ pagec: this.state.pagec - 1 });
  1068. },
  1069. handleNext (){
  1070. this.setState({ pagec: this.state.pagec + 1 });
  1071. },
  1072. renderPagination (pagec,pages) {
  1073. let previousButton = <li className="previous" onClick={this.handlePrevious}><a href="#"><span className="fa fa-arrow-left">上一页</span> </a></li>;
  1074. if (pagec==0) {
  1075. previousButton = <li className="previous disabled"><a href="#"><span className="fa fa-arrow-left">上一页</span> </a></li>;
  1076. }
  1077. let nextButton = <li className="next" onClick={this.handleNext}><a href="#"> <span className="fa fa-arrow-right">下一页</span></a></li>;
  1078. if (pagec==pages) {
  1079. nextButton = <li className="next disabled"><a href="#"> <span className="fa fa-arrow-right">下一页</span></a></li>;
  1080. }
  1081. return (
  1082. <nav>
  1083. <ul className="pager">
  1084. {previousButton}
  1085. {nextButton}
  1086. </ul>
  1087. </nav>
  1088. );
  1089. },
  1090. //上面是做PDF分页的
  1091. getOrgCodeUrl(e) {
  1092. this.setState({ orgCodeUrl: e });
  1093. },
  1094. getCompanyLogoUrl(e) {
  1095. this.setState({ companyLogoUrl: e });
  1096. },
  1097. componentWillReceiveProps(nextProps) {
  1098. if(nextProps.ApiUrl!=this.props.ApiUrl) {
  1099. this.state.nameSearch = '';
  1100. this.state.addressSearch = [];
  1101. this.state.provinceSearch = undefined;
  1102. this.state.citySearch = undefined;
  1103. this.state.releaseDate[0] = undefined;
  1104. this.state.releaseDate[1] = undefined;
  1105. this.loadData(null,nextProps.ApiUrl);
  1106. };
  1107. },
  1108. callback(e) {
  1109. if(e == '0') {
  1110. this.setState({
  1111. callnub: e,
  1112. })
  1113. }
  1114. if(e == '1') {
  1115. this.setState({
  1116. callnub: e,
  1117. })
  1118. this.loadDatas();
  1119. }
  1120. if(e == '2') {
  1121. this.setState({
  1122. callnub: e,
  1123. })
  1124. this.loadDatac();
  1125. }
  1126. if(e == '3') {
  1127. this.setState({
  1128. callnub: e,
  1129. })
  1130. this.loadDatax();
  1131. }
  1132. },
  1133. //发布成果
  1134. addClick() {
  1135. this.state.RowData = {};
  1136. this.setState({
  1137. showDesc: true,
  1138. });
  1139. },
  1140. //新增财务信息
  1141. addClickc() {
  1142. this.state.RowData = {};
  1143. this.resetc();
  1144. this.setState({
  1145. visitModulc: true,
  1146. isXin:1,
  1147. });
  1148. },
  1149. //新增项目信息
  1150. addClickx() {
  1151. this.state.RowData = {};
  1152. this.resetx();
  1153. this.setState({
  1154. visitModulx: true,
  1155. isXinx:1,
  1156. });
  1157. },
  1158. //关闭发布成果
  1159. closeDesc(e, s) {
  1160. this.state.showDesc = e;
  1161. if (s) {
  1162. this.loadDatas();
  1163. };
  1164. },
  1165. //客户资料每行点击
  1166. tableRowClickDate(record, index) {
  1167. this.state.RowData = record;
  1168. if(index!=undefined){
  1169. this.setState({
  1170. showDesc: true
  1171. });
  1172. }
  1173. },
  1174. //年度每行点击
  1175. tableRowClickDatec(record, index) {
  1176. this.state.RowData = record;
  1177. if(index!=undefined){
  1178. this.setState({
  1179. isXin:2,
  1180. visitModulc: true,
  1181. year:record.year.toString(),//年份
  1182. id:record.id,//年报详情ID
  1183. assets:record.assets,//总资产
  1184. fixedAssets:record.fixedAssets,//固定资产
  1185. researchAmount:record.researchAmount,//研发费用
  1186. salesAmount:record.salesAmount,//销售额
  1187. });
  1188. }
  1189. },
  1190. //项目每行点击
  1191. tableRowClickDatex(record, index) {
  1192. this.state.RowData = record;
  1193. if(index!=undefined){
  1194. this.setState({
  1195. isXinx:2,
  1196. visitModulx: true,
  1197. year:record.year.toString(),//年份
  1198. id:record.id,//年报详情ID
  1199. projectName:record.projectName,//项目名称
  1200. status:record.status.toString(),//项目状态
  1201. remark:record.remark,//销售额
  1202. });
  1203. }
  1204. },
  1205. //删除财务信息
  1206. deltalc(record){
  1207. this.setState({
  1208. loading: true
  1209. });
  1210. $.ajax({
  1211. method: "post",
  1212. dataType: "json",
  1213. crossDomain: false,
  1214. url: globalConfig.context + '/api/admin/customers/delectOrgAnnual',
  1215. data: {
  1216. id:record.id,
  1217. uid:record.uid
  1218. }
  1219. }).done(function (data) {
  1220. if (!data.error.length) {
  1221. message.success('操作成功');
  1222. this.setState({
  1223. loading: false,
  1224. });
  1225. this.loadDatac();
  1226. this.loadData();
  1227. } else {
  1228. message.warning(data.error[0].message);
  1229. };
  1230. }.bind(this));
  1231. },
  1232. //删除财务信息
  1233. deltalx(record){
  1234. this.setState({
  1235. loading: true
  1236. });
  1237. $.ajax({
  1238. method: "post",
  1239. dataType: "json",
  1240. crossDomain: false,
  1241. url: globalConfig.context + '/api/admin/customers/delectOrgYearProject',
  1242. data: {
  1243. id:record.id,
  1244. uid:record.uid
  1245. }
  1246. }).done(function (data) {
  1247. if (!data.error.length) {
  1248. message.success('操作成功');
  1249. this.setState({
  1250. loading: false,
  1251. });
  1252. this.loadDatax();
  1253. this.loadData();
  1254. } else {
  1255. message.warning(data.error[0].message);
  1256. };
  1257. }.bind(this));
  1258. },
  1259. render() {
  1260. let paginationss = null;
  1261. if (this.state.pagec>=0) {
  1262. paginationss = this.renderPagination(this.state.pagec, this.state.pages);
  1263. }
  1264. const {
  1265. RangePicker,
  1266. MonthPicker
  1267. } = DatePicker;
  1268. const formItemLayout = {
  1269. labelCol: { span: 8 },
  1270. wrapperCol: { span: 14 },
  1271. };
  1272. const formItemLayoutc = {
  1273. labelCol: { span: 6 },
  1274. wrapperCol: { span: 14 },
  1275. };
  1276. const FormItem = Form.Item;
  1277. const rowSelection = {
  1278. selectedRowKeys: this.state.selectedRowKeys,
  1279. onChange: (selectedRowKeys, selectedRows) => {
  1280. this.setState({
  1281. modalVisible:false,
  1282. selectedRows: selectedRows.slice(-1),
  1283. selectedRowKeys: selectedRowKeys.slice(-1)
  1284. });
  1285. },
  1286. onSelect: (recordt, selected, selectedRows) => {
  1287. this.setState({
  1288. modalVisible:false,
  1289. recordt: recordt.id
  1290. })
  1291. },
  1292. };
  1293. const hasSelected = this.state.selectedRowKeys.length > 0;
  1294. const dataSources=this.state.customerArr || [];
  1295. const options = dataSources.map((group) =>
  1296. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  1297. )
  1298. const intentionState = this.props.intentionState ||'';
  1299. const props = {
  1300. name: 'file',
  1301. multiple: true,
  1302. action: '/api/admin/techproject/upload',
  1303. onChange(info) {
  1304. const status = info.file.status;
  1305. if (status !== 'uploading') {
  1306. }
  1307. if (status === 'done') {
  1308. message.success(`${info.file.name} file uploaded successfully.`);
  1309. } else if (status === 'error') {
  1310. message.error(`${info.file.name} file upload failed.`);
  1311. }
  1312. },
  1313. };
  1314. let pdfUrl =this.state.pdfUrl||'';
  1315. return(
  1316. <div className="user-content" >
  1317. <div className="content-title">
  1318. <span>客户资料维护</span>
  1319. </div>
  1320. <div className="user-search">
  1321. <Input placeholder="客户名称"
  1322. value={this.state.nameSearch}
  1323. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1324. <Select placeholder="省"
  1325. style={{ width: 80 }}
  1326. value={this.state.provinceSearch}
  1327. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1328. {this.state.Provinces}
  1329. </Select>
  1330. <span style={{marginRight:'10px'}}>
  1331. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1332. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1333. </span>
  1334. <Select placeholder="资料是否完善" style={{ width: 120 }}
  1335. value={this.state.dataGrade}
  1336. onChange={(e) => { this.setState({ dataGrade: e }) }}>
  1337. <Select.Option value="0" >未完善</Select.Option>
  1338. <Select.Option value="1" >已完善</Select.Option>
  1339. </Select>
  1340. <Select placeholder="是否面谈客户" style={{ width: 120 }}
  1341. value={this.state.follow}
  1342. onChange={(e) => { this.setState({ follow: e }) }}>
  1343. <Select.Option value="0" >否</Select.Option>
  1344. <Select.Option value="1" >是</Select.Option>
  1345. </Select>
  1346. <RangePicker style={{marginRight:'10px'}}
  1347. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1348. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1349. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1350. <Button type="primary" onClick={this.search}>搜索</Button>
  1351. <Button onClick={this.reset}>重置</Button>
  1352. <AutoComplete
  1353. className="certain-category-search"
  1354. dropdownClassName="certain-category-search-dropdown"
  1355. dropdownMatchSelectWidth={false}
  1356. dropdownStyle={{ width: 120 }}
  1357. style={{ width: '120px'}}
  1358. dataSource={options}
  1359. placeholder="输入转交人姓名"
  1360. value={this.state.auto}
  1361. onChange={this.httpChange}
  1362. filterOption={true}
  1363. onBlur={this.blurChange}
  1364. onSelect={this.selectAuto}
  1365. disabled={!hasSelected}
  1366. >
  1367. <Input />
  1368. </AutoComplete>
  1369. <Button type="primary" onClick={this.changeAssigner} disabled={!hasSelected} >转交</Button>
  1370. </div>
  1371. <div className="patent-table">
  1372. <Spin spinning={this.state.loading}>
  1373. <Table columns={this.state.columns}
  1374. dataSource={this.state.dataSource}
  1375. rowSelection={rowSelection}
  1376. pagination={this.state.pagination}
  1377. onRowClick={this.tableRowClick}
  1378. />
  1379. </Spin>
  1380. </div>
  1381. <Modal
  1382. className="customeDetails"
  1383. footer=''
  1384. title="客户资料"
  1385. width='1000px'
  1386. visible={this.state.visitModul}
  1387. onOk={this.visitOk}
  1388. onCancel={this.visitCancel}
  1389. >
  1390. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1391. <TabPane tab="基本信息" key="0">
  1392. <div>
  1393. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  1394. <Spin spinning={this.state.loading}>
  1395. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
  1396. <div className="clearfix" >
  1397. <FormItem className="half-item"
  1398. {...formItemLayout}
  1399. label="客户姓名"
  1400. >
  1401. <span>{this.state.identifyName}</span>
  1402. </FormItem>
  1403. <FormItem className="half-item"
  1404. {...formItemLayout}
  1405. label="资料所属人"
  1406. >
  1407. <span>{this.state.informationMaintainerName}</span>
  1408. </FormItem>
  1409. </div>
  1410. <div className="clearfix" >
  1411. <FormItem className="half-item"
  1412. {...formItemLayout}
  1413. label="企业行业">
  1414. <Select placeholder="选择行业" value={this.state.industry} style={{width:'95%'}}
  1415. onChange={(e)=>{this.setState({industry:e})}}>
  1416. {
  1417. industry.map(function (item) {
  1418. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1419. })
  1420. }
  1421. </Select>
  1422. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1423. </FormItem>
  1424. <FormItem className="half-item"
  1425. {...formItemLayout}
  1426. label="社会属性"
  1427. >
  1428. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'95%'}}
  1429. onChange={(e)=>{this.setState({societyTag:e})}}>
  1430. {
  1431. socialAttribute.map(function (item) {
  1432. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1433. })
  1434. }
  1435. </Select>
  1436. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1437. </FormItem>
  1438. <FormItem className="half-item"
  1439. {...formItemLayout}
  1440. label="省-市-区"
  1441. >
  1442. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
  1443. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1444. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1445. </FormItem>
  1446. <FormItem className="half-item"
  1447. {...formItemLayout}
  1448. label="注册资本"
  1449. >
  1450. <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
  1451. this.setState({ registeredCapital: e.target.value }) }} />万
  1452. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1453. </FormItem>
  1454. <div className='clearfix'>
  1455. <FormItem
  1456. labelCol={{ span:4 }}
  1457. wrapperCol={{ span: 20 }}
  1458. label="主营产品" >
  1459. <Input type="textarea" rows={2} value={this.state.businessScope} style={{width:'95%'}}
  1460. onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}}/>
  1461. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1462. </FormItem>
  1463. </div>
  1464. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
  1465. <FormItem className="half-item"
  1466. {...formItemLayout}
  1467. label="通信地址"
  1468. >
  1469. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1470. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  1471. </FormItem>
  1472. <FormItem className="half-item"
  1473. {...formItemLayout}
  1474. label="固定电话"
  1475. >
  1476. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1477. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }}/>
  1478. </FormItem>
  1479. <FormItem className="half-item"
  1480. {...formItemLayout}
  1481. label="客户传真"
  1482. >
  1483. <Input placeholder="客户传真" value={this.state.contactsFax}
  1484. onChange={(e) => { this.setState({ contactsFax: e.target.value })}}/>
  1485. </FormItem>
  1486. <FormItem className="half-item"
  1487. {...formItemLayout}
  1488. label="企业人数"
  1489. >
  1490. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1491. this.setState({ enterpriseScale: e.target.value })}}/>
  1492. </FormItem>
  1493. <FormItem className="half-item"
  1494. {...formItemLayout}
  1495. label="法人名称"
  1496. >
  1497. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1498. this.setState({ legalPerson: e.target.value })}}/>
  1499. </FormItem>
  1500. <FormItem className="half-item"
  1501. {...formItemLayout}
  1502. label="法人身份证"
  1503. >
  1504. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1505. this.setState({ legalPersonIdCard: e.target.value })}}/>
  1506. </FormItem>
  1507. <FormItem className="half-item"
  1508. {...formItemLayout}
  1509. label="联系人"
  1510. >
  1511. <Input placeholder="联系人名称" value={this.state.contacts} onChange={(e) => {
  1512. this.setState({ contacts: e.target.value })}}/>
  1513. </FormItem>
  1514. <FormItem className="half-item"
  1515. {...formItemLayout}
  1516. label="联系人号码"
  1517. >
  1518. <Input placeholder="联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1519. this.setState({ contactMobile: e.target.value })}}/>
  1520. </FormItem>
  1521. <FormItem className="half-item"
  1522. {...formItemLayout}
  1523. label="法人电话"
  1524. >
  1525. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1526. this.setState({ legalPersonTel: e.target.value })}}/>
  1527. </FormItem>
  1528. <FormItem className="half-item"
  1529. {...formItemLayout}
  1530. label="法人邮箱"
  1531. >
  1532. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1533. onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}}/>
  1534. </FormItem>
  1535. <FormItem className="half-item"
  1536. {...formItemLayout}
  1537. label="社会统一信用机构代码"
  1538. >
  1539. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1540. this.setState({ orgCode: e.target.value })}}/>
  1541. </FormItem>
  1542. <div className='clearfix'>
  1543. <FormItem
  1544. labelCol={{ span:4 }}
  1545. wrapperCol={{ span: 18 }}
  1546. label="客户简介" >
  1547. <Input type="textarea" rows={3} value={this.state.introduction}
  1548. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  1549. </FormItem>
  1550. </div>
  1551. <div className="clearfix pictures">
  1552. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'95px'}}
  1553. labelCol={{ span: 8 }}
  1554. wrapperCol={{ span: 10 }}
  1555. label="机构证书(PIC)" >
  1556. <PicturesWall
  1557. fileList={this.getOrgCodeUrl}
  1558. pictureUrl={this.state.orgCodeUrl} />
  1559. <p>建议:图片要清晰。</p>
  1560. </FormItem>
  1561. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginTop:'20px'}}
  1562. labelCol={{ span: 8 }}
  1563. wrapperCol={{ span: 10 }}
  1564. label="单位LOGO" >
  1565. <PicturesWall
  1566. fileList={this.getCompanyLogoUrl}
  1567. pictureUrl={this.state.companyLogoUrl} />
  1568. <p>建议:图片要清晰。</p>
  1569. </FormItem>
  1570. </div>
  1571. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
  1572. <div className='clearfix' >
  1573. <FormItem className="half-item"
  1574. {...formItemLayout}
  1575. label="客户信用等级"
  1576. >
  1577. <Select placeholder="客户信用等级" value={this.state.creditRating} style={{width:'90%'}}
  1578. onChange={(e)=>{this.setState({creditRating:e})}}>
  1579. {
  1580. slcRedit.map(function (item) {
  1581. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1582. })
  1583. }
  1584. </Select>
  1585. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1586. </FormItem>
  1587. <div className='clearfix'>
  1588. <FormItem
  1589. labelCol={{ span:4 }}
  1590. wrapperCol={{ span: 19 }}
  1591. label="企业核心技术" >
  1592. <Input type="textarea" rows={3} value={this.state.coreTechnology} style={{width:'96%'}}
  1593. onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
  1594. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1595. </FormItem>
  1596. </div>
  1597. <div className='clearfix'>
  1598. <FormItem
  1599. labelCol={{ span:4 }}
  1600. wrapperCol={{ span: 19 }}
  1601. label="企业资质情况" >
  1602. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1603. onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} style={{width:'96%'}}/>
  1604. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1605. </FormItem>
  1606. </div>
  1607. <div className='clearfix'>
  1608. <FormItem
  1609. labelCol={{ span:4 }}
  1610. wrapperCol={{ span: 19 }}
  1611. label="高企合作情况" >
  1612. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1613. onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} style={{width:'96%'}}/>
  1614. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1615. </FormItem>
  1616. </div>
  1617. <div className='clearfix' >
  1618. <FormItem
  1619. labelCol={{ span:4 }}
  1620. wrapperCol={{ span: 19 }}
  1621. label="项目申请书" >
  1622. <Upload style={{display:"inlineBlock"}}
  1623. name="avatar"
  1624. action={globalConfig.context + "/api/admin/customer/upload"}
  1625. data={{
  1626. 'uid': this.state.detailId,
  1627. 'sign': 'organization_application'
  1628. }}
  1629. beforeUpload={beforeUploadFile}
  1630. fileList={this.state.fileList}
  1631. onChange={(info) => {
  1632. if (info.file.status !== 'uploading') {
  1633. }
  1634. if (info.file.status === 'done') {
  1635. if (!info.file.response.error.length) {
  1636. let isPDF=this.state.fileList[0].originFileObj.name.split('.');
  1637. let isIndex=isPDF.length-1;
  1638. if(isPDF[isIndex]=="pdf"){
  1639. message.success(`${info.file.name} 文件上传成功!`);
  1640. }else{
  1641. message.error("请上传pdf文件!");
  1642. }
  1643. } else {
  1644. message.warning(info.file.response.error[0].message);
  1645. return;
  1646. };
  1647. this.setState({
  1648. pojectApplicationUrl:info.file.response.data,
  1649. isXian:1,
  1650. })
  1651. } else if (info.file.status === 'error') {
  1652. message.error(`${info.file.name} 文件上传失败。`);
  1653. }
  1654. this.setState({ fileList: info.fileList.slice(-1) });
  1655. }}
  1656. >
  1657. {/*<a onClick={
  1658. () => {var newTab = window.open('about:blank'); getPreviews(this.state.uid, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
  1659. }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>*/}
  1660. <Button><Icon type="upload" /> 项目材料上传 </Button>
  1661. </Upload>
  1662. <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
  1663. <span className="download-file">
  1664. <a onClick={this.visitOk1}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
  1665. </span>
  1666. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}
  1667. </span>
  1668. </FormItem>
  1669. </div>
  1670. </div>
  1671. <Button className="setSubmit" type="primary" htmlType="submit">保存</Button>
  1672. <Button type="ghost" onClick={this.visitCancel}>取消</Button>
  1673. </div>
  1674. </Spin>
  1675. </Form>
  1676. </div>
  1677. </TabPane>
  1678. <TabPane tab="知识产权列表" key="1">
  1679. <Button type="primary" className="addButton" onClick={this.addClick}>发布知识产权<Icon type="plus" /></Button>
  1680. <Spin spinning={this.state.loading}>
  1681. <Table columns={this.state.columnsDate}
  1682. dataSource={this.state.dataSourceDate}
  1683. rowSelection={rowSelection}
  1684. pagination={this.state.paginationDate}
  1685. onRowClick={this.tableRowClickDate} />
  1686. </Spin>
  1687. </TabPane>
  1688. <TabPane tab="财务信息" key="2">
  1689. <Button type="primary" className="addButton" onClick={this.addClickc}>添加年度财务信息<Icon type="plus" /></Button>
  1690. <Spin spinning={this.state.loading}>
  1691. <Table columns={this.state.columnsc}
  1692. dataSource={this.state.dataSourcec}
  1693. rowSelection={rowSelection}
  1694. onRowClick={this.tableRowClickDatec} />
  1695. </Spin>
  1696. </TabPane>
  1697. <TabPane tab="项目信息" key="3">
  1698. <Button type="primary" className="addButton" onClick={this.addClickx}>添加项目信息<Icon type="plus" /></Button>
  1699. <Spin spinning={this.state.loading}>
  1700. <Table columns={this.state.columnsx}
  1701. dataSource={this.state.dataSourcex}
  1702. rowSelection={rowSelection}
  1703. onRowClick={this.tableRowClickDatex} />
  1704. </Spin>
  1705. </TabPane>
  1706. </Tabs>
  1707. </Modal>
  1708. <Modal
  1709. className="customeDetails"
  1710. footer=''
  1711. title="项目申请书"
  1712. width='800px'
  1713. visible={this.state.visitModul1}
  1714. onOk={this.visitOk1}
  1715. onCancel={this.visitCancel1}
  1716. >
  1717. <div>
  1718. {/*<Button type="primary" onClick={this.pdfShows(pdfUrl)}>点击查看</Button>
  1719. <div id="pdfContent" style={{height:"500px",width:"500px",marginLeft:"300px"}} >
  1720. </div>
  1721. onDocumentLoad={this.onDocumentComplete}
  1722. onLoadSuccess={this.onDocumentComplete}
  1723. onDocumentComplete={this.onDocumentComplete}
  1724. onPageRender={this.onPageComplete}
  1725. // "http://s.jishutao.com/upload/achievement/achievement/34576808907162737_achievement_maturity_text_file.pdf"//{pdfUrl}
  1726. */}
  1727. <PDF
  1728. file={pdfUrl}
  1729. onDocumentLoad={this.onDocumentComplete}
  1730. pageIndex={parseInt(this.state.pagec)}
  1731. scale={1.2}
  1732. />
  1733. {paginationss}
  1734. </div>
  1735. </Modal>
  1736. <Modal
  1737. className="customeDetails"
  1738. footer=''
  1739. title="财务资料"
  1740. width='500px'
  1741. visible={this.state.visitModulc}
  1742. onOk={this.visitOkc}
  1743. onCancel={this.visitCancelc}
  1744. > <Form layout="horizontal" onSubmit={this.newSubmitc} id="demand-form">
  1745. <Spin spinning={this.state.loading}>
  1746. <div className="clearfix" >
  1747. <FormItem
  1748. {...formItemLayoutc}
  1749. label="年份"
  1750. >
  1751. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1752. onChange={(e)=>{this.setState({year:e})}}>
  1753. {
  1754. year.map(function (item) {
  1755. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1756. })
  1757. }
  1758. </Select>
  1759. </FormItem>
  1760. </div>
  1761. <div className="clearfix" >
  1762. <FormItem
  1763. {...formItemLayoutc}
  1764. label="营销收入"
  1765. >
  1766. <Input placeholder="营销收入" style={{width:'90%'}} value={this.state.salesAmount} onChange={(e) => {
  1767. this.setState({ salesAmount: e.target.value }) }} />万
  1768. </FormItem>
  1769. </div>
  1770. <div className="clearfix" >
  1771. <FormItem
  1772. {...formItemLayoutc}
  1773. label="总资产"
  1774. >
  1775. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.assets} onChange={(e) => {
  1776. this.setState({ assets: e.target.value }) }} />万
  1777. </FormItem>
  1778. </div>
  1779. <div className="clearfix" >
  1780. <FormItem
  1781. {...formItemLayoutc}
  1782. label="固定资产"
  1783. >
  1784. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.fixedAssets} onChange={(e) => {
  1785. this.setState({ fixedAssets: e.target.value }) }} />万
  1786. </FormItem>
  1787. </div>
  1788. <div className="clearfix" >
  1789. <FormItem
  1790. {...formItemLayoutc}
  1791. label="研发费用"
  1792. >
  1793. <Input placeholder="研发费用" style={{width:'90%'}} value={this.state.researchAmount} onChange={(e) => {
  1794. this.setState({ researchAmount: e.target.value }) }} />万
  1795. </FormItem>
  1796. </div>
  1797. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1798. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1799. </Spin>
  1800. </Form>
  1801. </Modal>
  1802. <Modal
  1803. className="customeDetails"
  1804. footer=''
  1805. title="项目资料"
  1806. width='500px'
  1807. visible={this.state.visitModulx}
  1808. onOk={this.visitOkc}
  1809. onCancel={this.visitCancelc}
  1810. > <Form layout="horizontal" onSubmit={this.newSubmitx} id="demand-form">
  1811. <Spin spinning={this.state.loading}>
  1812. <div className="clearfix" >
  1813. <FormItem
  1814. {...formItemLayoutc}
  1815. label="年份"
  1816. >
  1817. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1818. onChange={(e)=>{this.setState({year:e})}}>
  1819. {
  1820. year.map(function (item) {
  1821. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1822. })
  1823. }
  1824. </Select>
  1825. </FormItem>
  1826. </div>
  1827. <div className="clearfix" >
  1828. <FormItem
  1829. {...formItemLayoutc}
  1830. label="项目名称"
  1831. >
  1832. <Input placeholder="项目名称" style={{width:'90%'}} value={this.state.projectName} onChange={(e) => {
  1833. this.setState({ projectName: e.target.value }) }} />
  1834. </FormItem>
  1835. </div>
  1836. <div className="clearfix" >
  1837. <FormItem
  1838. {...formItemLayoutc}
  1839. label="项目状态"
  1840. >
  1841. <Select placeholder="项目状态" value={this.state.status} style={{width:'90%'}}
  1842. onChange={(e)=>{this.setState({status:e})}}>
  1843. {
  1844. xiangmoState.map(function (item) {
  1845. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1846. })
  1847. }
  1848. </Select>
  1849. </FormItem>
  1850. </div>
  1851. <div className="clearfix" >
  1852. <FormItem
  1853. {...formItemLayoutc}
  1854. label="备注"
  1855. >
  1856. <Input type="textarea" rows={3} placeholder="备注" style={{width:'90%'}} value={this.state.remark} onChange={(e) => {
  1857. this.setState({ remark: e.target.value }) }} />
  1858. </FormItem>
  1859. </div>
  1860. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1861. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1862. </Spin>
  1863. </Form>
  1864. </Modal>
  1865. <TechAchievementDesc
  1866. data={this.state.RowData}
  1867. detailApiUrl={this.props['data-detailApiUrl']}
  1868. achievementCategoryOption={this.state.achievementCategoryOption}
  1869. showDesc={this.state.showDesc}
  1870. uid={this.state.uid}
  1871. closeDesc={this.closeDesc}
  1872. loadDatas={this.loadDatas}
  1873. />
  1874. </div >
  1875. );
  1876. }
  1877. }));
  1878. export default IntentionCustomer;