crm.jsx 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918
  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. console.log(this.state.ProvinceCity)
  643. }}.bind(this),
  644. }).always(function() {
  645. this.setState({
  646. loading: false
  647. });
  648. }.bind(this));
  649. },
  650. //基本信息提交
  651. newSubmit(e) {
  652. e.preventDefault();
  653. if(!this.state.industry) {
  654. message.warning('请选择行业');
  655. return false;
  656. };
  657. if(!this.state.societyTag) {
  658. message.warning('请选择社会属性');
  659. return false;
  660. };
  661. if(!this.state.ProvinceCity[1]) {
  662. message.warning('请选择地区');
  663. return false;
  664. };
  665. if(!this.state.registeredCapital) {
  666. message.warning('请填写注册资本');
  667. return false;
  668. };
  669. if(!this.state.businessScope) {
  670. message.warning('请填写公司主营产品');
  671. return false;
  672. };
  673. var reg = /^[1-9]\d*$|^0$/;
  674. if(this.state.consultationPrice) {
  675. if(this.state.consultationPrice.length > 6) {
  676. message.warning('咨询费用不超过6位数');
  677. this.refs.consul.focus();
  678. return false;
  679. };
  680. if(!reg.test(this.state.consultationPrice)) {
  681. message.warning('咨询费用只能输入数字');
  682. this.refs.consul.focus();
  683. return false;
  684. }
  685. }
  686. this.state.data = [];
  687. this.setState({
  688. selectedRowKeys: [],
  689. });
  690. let theorgCodeUrl = [];
  691. if(this.state.orgCodeUrl.length) {
  692. let picArr = [];
  693. this.state.orgCodeUrl.map(function(item) {
  694. if(item.response && item.response.data && item.response.data.length) {
  695. picArr.push(item.response.data);
  696. }
  697. });
  698. theorgCodeUrl = picArr.join(",");
  699. };
  700. let thecompanyLogoUrl = [];
  701. if(this.state.companyLogoUrl.length) {
  702. let picArr = [];
  703. this.state.companyLogoUrl.map(function(item) {
  704. if(item.response && item.response.data && item.response.data.length) {
  705. picArr.push(item.response.data);
  706. }
  707. });
  708. thecompanyLogoUrl = picArr.join(",");
  709. };
  710. let years = [];
  711. let yearMonth = this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
  712. years = yearMonth.split('/');
  713. this.setState({
  714. loading: true
  715. });
  716. $.ajax({
  717. method: "post",
  718. dataType: "json",
  719. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  720. data: {
  721. id:this.state.detailId,//详情ID
  722. identifyName:this.state.identifyName,//客户名称
  723. uid:this.state.uid,//客户ID
  724. societyTag:this.state.societyTag,//社会标签
  725. companyLogoUrl:thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',//公司LOGO
  726. introduction:this.state.introduction,//介绍
  727. industry:this.state.industry,//行业
  728. locationProvince:(this.state.ProvinceCity)[0],//省
  729. locationCity:(this.state.ProvinceCity)[1],//市
  730. locationArea:(this.state.ProvinceCity)[2],//区
  731. postalAddress:this.state.postalAddress,//通讯地址
  732. contactsFixedTel:this.state.contactsFixedTel,//固定电话
  733. contactsFax:this.state.contactsFax,//传真地址
  734. registeredCapital:this.state.registeredCapital,//注册资金
  735. enterpriseScale:this.state.enterpriseScale,//企业规模
  736. legalPerson:this.state.legalPerson,//法人
  737. legalPersonIdCard:this.state.legalPersonIdCard,//法人身份证
  738. legalPersonTel:this.state.legalPersonTel,//法人联系电话
  739. legalPersonEmail:this.state.legalPersonEmail,//法人联系邮箱
  740. highTechZone:this.state.highTechZone,//是否高新
  741. listed:this.state.listed,//是否高新
  742. international:this.state.international,//是否国际化
  743. orgCode:this.state.orgCode,//社会统一机构
  744. orgCodeUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',//社会统一机构地址
  745. businessScope:this.state.businessScope,//业务范围
  746. contacts:this.state.contacts,//主要联系人姓名
  747. contactMobile:this.state.contactMobile,//主要联系人电话
  748. investment:this.state.investment,//投资机构
  749. businessAudit:this.state.businessAudit,//业务认证
  750. auditStatus:this.state.auditStatus,//实名认证
  751. intellectualProperty:this.state.intellectualProperty,//已有知识产权情况
  752. qualification:this.state.qualification,//企业资质情况
  753. cooperationSituation:this.state.cooperationSituation,//企业与高校院所
  754. informationMaintainer:this.state.informationMaintainer,//资料维护人
  755. informationMaintainerName:this.state.informationMaintainerName,//资料维护人
  756. coreTechnology:this.state.coreTechnology,//核心技术
  757. creditRating:this.state.creditRating,//信用等级
  758. pojectApplicationUrl:this.state.pojectApplicationUrl,//文件地址
  759. }
  760. }).done(function(data) {
  761. this.setState({
  762. loading: false
  763. });
  764. if(!data.error.length) {
  765. message.success('保存成功!');
  766. this.visitCancel();
  767. this.loadData(this.state.pageNo);
  768. } else {
  769. message.warning(data.error[0].message);
  770. }
  771. }.bind(this));
  772. },
  773. //财务信息提交
  774. newSubmitc(e) {
  775. e.preventDefault();
  776. if(!this.state.year) {
  777. message.warning('请选择年份');
  778. return false;
  779. };
  780. this.setState({
  781. loading: true
  782. });
  783. $.ajax({
  784. method: "post",
  785. dataType: "json",
  786. url: globalConfig.context + this.state.isXin==1?'/api/admin/customers/addOrgAnnual':'/api/admin/customers/updateOrgAnnual',
  787. data: {
  788. id:this.state.id?this.state.id:undefined,//年报ID
  789. uid:this.state.uid,//客户ID
  790. year:this.state.year,//年份
  791. researchAmount:this.state.researchAmount,//研发费用
  792. assets:this.state.assets,//总资产
  793. fixedAssets:this.state.fixedAssets,//固定资产
  794. salesAmount:this.state.salesAmount,//销售额
  795. }
  796. }).done(function(data) {
  797. this.setState({
  798. loading: false
  799. });
  800. if(!data.error.length) {
  801. message.success('保存成功!');
  802. this.visitCancelc();
  803. this.loadDatac();
  804. this.loadData();
  805. } else {
  806. message.warning(data.error[0].message);
  807. }
  808. }.bind(this));
  809. },
  810. //财务信息提交
  811. newSubmitx(e) {
  812. e.preventDefault();
  813. if(!this.state.year) {
  814. message.warning('请选择年份');
  815. return false;
  816. };
  817. this.setState({
  818. loading: true
  819. });
  820. $.ajax({
  821. method: "post",
  822. dataType: "json",
  823. url: globalConfig.context + this.state.isXinx==1?'/api/admin/customers/addOrgYearProject':'/api/admin/customers/updateOrgYearProject',
  824. data: {
  825. id:this.state.id?this.state.id:undefined,//年报ID
  826. uid:this.state.uid,//客户ID
  827. year:this.state.year,//年份
  828. projectName:this.state.projectName,//研发费用
  829. status:this.state.status,//总资产
  830. remark:this.state.remark,//销售额
  831. }
  832. }).done(function(data) {
  833. this.setState({
  834. loading: false
  835. });
  836. if(!data.error.length) {
  837. message.success('保存成功!');
  838. this.visitCancelc();
  839. this.loadDatax();
  840. this.loadData();
  841. } else {
  842. message.warning(data.error[0].message);
  843. }
  844. }.bind(this));
  845. },
  846. //获取ID
  847. getStateData(id) {
  848. this.setState({
  849. loading: true
  850. });
  851. $.ajax({
  852. method: "post",
  853. dataType: "json",
  854. crossDomain: false,
  855. url: globalConfig.context + "/api/admin/techproject/techProjectLog",
  856. data: {
  857. pid: id || this.props.data.id
  858. },
  859. success: function (data) {
  860. if (!data.data) {
  861. if (data.error && data.error.length) {
  862. message.warning(data.error[0].message);
  863. };
  864. return;
  865. };
  866. var myDate = new Date();
  867. this.state.stateTable = [];
  868. for (let i = 0; i < data.data.length; i++) {
  869. this.state.stateTable.push({
  870. key: i,
  871. state: data.data[i].state,
  872. recordTime: data.data[i].recordTime,
  873. recordTimeFormattedDate: data.data[i].recordTimeFormattedDate,
  874. principal: data.data[i].principal,
  875. operator: data.data[i].operator,
  876. comment: data.data[i].comment
  877. });
  878. };
  879. }.bind(this),
  880. }).always(function () {
  881. this.setState({
  882. loading: false
  883. });
  884. }.bind(this));
  885. },
  886. //整行点击
  887. tableRowClick(record, index) {
  888. this.state.visitModul=true;
  889. this.state.pojectApplicationUrl = undefined;
  890. this.state.isXian=0;
  891. this.details(record.id);
  892. },
  893. //指定转交人自动补全
  894. supervisor(e){
  895. $.ajax({
  896. method: "get",
  897. dataType: "json",
  898. crossDomain: false,
  899. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  900. data:{
  901. adminName:e
  902. },
  903. success: function (data) {
  904. let thedata=data.data;
  905. if (!thedata) {
  906. if (data.error && data.error.length) {
  907. message.warning(data.error[0].message);
  908. };
  909. thedata = {};
  910. };
  911. this.setState({
  912. customerArr:thedata,
  913. });
  914. }.bind(this),
  915. }).always(function () {
  916. this.setState({
  917. loading: false
  918. });
  919. }.bind(this));
  920. },
  921. //输入转交人输入框失去焦点是判断客户是否存在
  922. selectAuto(value,options){
  923. this.setState({
  924. auto:value
  925. })
  926. },
  927. blurChange(e){
  928. let theType='';
  929. let contactLists=this.state.customerArr||[];
  930. if (e) {
  931. contactLists.map(function (item) {
  932. if (item.name == e.toString()) {
  933. theType = item.id;
  934. }
  935. });
  936. }
  937. this.setState({
  938. theTypes:theType
  939. })
  940. },
  941. //值改变时请求客户名称
  942. httpChange(e){
  943. if(e.length>=1){
  944. this.supervisor(e);
  945. }
  946. this.setState({
  947. auto:e
  948. })
  949. },
  950. //转交
  951. changeAssigner() {
  952. if(this.state.theTypes){
  953. this.setState({
  954. selectedRowKeys: [],
  955. });
  956. let id;
  957. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  958. let rowItem = this.state.selectedRows[idx];
  959. if(rowItem.id) {
  960. id=rowItem.id;
  961. };
  962. };
  963. $.ajax({
  964. method: "post",
  965. dataType: "json",
  966. crossDomain: false,
  967. url: globalConfig.context + "/api/admin/customer/updateInformationMaintainerr",
  968. data: {
  969. id: id, //客户ID
  970. aid: this.state.theTypes, //指定转交人的ID
  971. }
  972. }).done(function(data) {
  973. if(!data.error.length) {
  974. message.success('转交成功!');
  975. this.setState({
  976. auto:'',
  977. loading: false,
  978. });
  979. } else {
  980. message.warning(data.error[0].message);
  981. };
  982. this.loadData(Math.min(this.state.pageNo==undefined?1:this.state.pageNo,Math.ceil((this.state.pagination.total-1)/10)));
  983. }.bind(this));
  984. }else{
  985. message.warning('请输入转交人姓名')
  986. }
  987. },
  988. //详情打开
  989. visitOk(e) {
  990. this.setState({
  991. visitModul: false
  992. });
  993. },
  994. //详情关闭
  995. visitCancel(e) {
  996. this.state.fileList = [];
  997. this.setState({
  998. visitModul: false,
  999. callnub:"0"
  1000. });
  1001. },
  1002. //新增年报打开
  1003. visitOkc(e) {
  1004. this.setState({
  1005. visitModulc: true,
  1006. visitModulx: true
  1007. });
  1008. },
  1009. //新增年报关闭
  1010. visitCancelc(e) {
  1011. this.resetc();
  1012. this.resetx();
  1013. this.setState({
  1014. visitModulc: false,
  1015. visitModulx: false,
  1016. });
  1017. },
  1018. //PDF打开
  1019. visitOk1(e) {
  1020. this.getPrevie(this.state.uid, 'techProject', 'organization_application');
  1021. this.setState({
  1022. visitModul1: true
  1023. });
  1024. },
  1025. //PDF关闭
  1026. visitCancel1(e) {
  1027. this.setState({
  1028. visitModul1: false,
  1029. loading:false,
  1030. });
  1031. },
  1032. //获取PDF地址
  1033. getPrevie(id,url,sign){
  1034. $.ajax({
  1035. method: "get",
  1036. dataType: "json",
  1037. crossDomain: false,
  1038. url: globalConfig.context + "/api/admin/customer/" + url,
  1039. data:{
  1040. "id": id,
  1041. "sign": sign
  1042. },
  1043. success: function (data) {
  1044. if (!data.data) {
  1045. if ( data.error && data.error.length ) {
  1046. message.warning(data.error[0].message);
  1047. };
  1048. };
  1049. this.setState({
  1050. pdfUrl: location.origin + globalConfig.context + "/open/preview?" + data.data,
  1051. });
  1052. }.bind(this)
  1053. });
  1054. },
  1055. //PDF分页
  1056. //一开始就加载这个函数
  1057. onDocumentComplete (pages) {
  1058. this.setState({
  1059. loading: true,
  1060. });
  1061. this.setState({ pagec:0, pages:pages.total });
  1062. },
  1063. //随后
  1064. onPageComplete (pagec) {
  1065. this.setState({ pagec });
  1066. },
  1067. handlePrevious (){
  1068. this.setState({ pagec: this.state.pagec - 1 });
  1069. },
  1070. handleNext (){
  1071. this.setState({ pagec: this.state.pagec + 1 });
  1072. },
  1073. renderPagination (pagec,pages) {
  1074. let previousButton = <li className="previous" onClick={this.handlePrevious}><a href="#"><span className="fa fa-arrow-left">上一页</span> </a></li>;
  1075. if (pagec==0) {
  1076. previousButton = <li className="previous disabled"><a href="#"><span className="fa fa-arrow-left">上一页</span> </a></li>;
  1077. }
  1078. let nextButton = <li className="next" onClick={this.handleNext}><a href="#"> <span className="fa fa-arrow-right">下一页</span></a></li>;
  1079. if (pagec==pages) {
  1080. nextButton = <li className="next disabled"><a href="#"> <span className="fa fa-arrow-right">下一页</span></a></li>;
  1081. }
  1082. return (
  1083. <nav>
  1084. <ul className="pager">
  1085. {previousButton}
  1086. {nextButton}
  1087. </ul>
  1088. </nav>
  1089. );
  1090. },
  1091. //上面是做PDF分页的
  1092. getOrgCodeUrl(e) {
  1093. this.setState({ orgCodeUrl: e });
  1094. },
  1095. getCompanyLogoUrl(e) {
  1096. this.setState({ companyLogoUrl: e });
  1097. },
  1098. componentWillReceiveProps(nextProps) {
  1099. if(nextProps.ApiUrl!=this.props.ApiUrl) {
  1100. this.state.nameSearch = '';
  1101. this.state.addressSearch = [];
  1102. this.state.provinceSearch = undefined;
  1103. this.state.citySearch = undefined;
  1104. this.state.releaseDate[0] = undefined;
  1105. this.state.releaseDate[1] = undefined;
  1106. this.loadData(null,nextProps.ApiUrl);
  1107. };
  1108. },
  1109. callback(e) {
  1110. if(e == '0') {
  1111. this.setState({
  1112. callnub: e,
  1113. })
  1114. }
  1115. if(e == '1') {
  1116. this.setState({
  1117. callnub: e,
  1118. })
  1119. this.loadDatas();
  1120. }
  1121. if(e == '2') {
  1122. this.setState({
  1123. callnub: e,
  1124. })
  1125. this.loadDatac();
  1126. }
  1127. if(e == '3') {
  1128. this.setState({
  1129. callnub: e,
  1130. })
  1131. this.loadDatax();
  1132. }
  1133. },
  1134. //发布成果
  1135. addClick() {
  1136. this.state.RowData = {};
  1137. this.setState({
  1138. showDesc: true,
  1139. });
  1140. },
  1141. //新增财务信息
  1142. addClickc() {
  1143. this.state.RowData = {};
  1144. this.resetc();
  1145. this.setState({
  1146. visitModulc: true,
  1147. isXin:1,
  1148. });
  1149. },
  1150. //新增项目信息
  1151. addClickx() {
  1152. this.state.RowData = {};
  1153. this.resetx();
  1154. this.setState({
  1155. visitModulx: true,
  1156. isXinx:1,
  1157. });
  1158. },
  1159. //关闭发布成果
  1160. closeDesc(e, s) {
  1161. this.state.showDesc = e;
  1162. if (s) {
  1163. this.loadDatas();
  1164. };
  1165. },
  1166. //客户资料每行点击
  1167. tableRowClickDate(record, index) {
  1168. this.state.RowData = record;
  1169. if(index!=undefined){
  1170. this.setState({
  1171. showDesc: true
  1172. });
  1173. }
  1174. },
  1175. //年度每行点击
  1176. tableRowClickDatec(record, index) {
  1177. this.state.RowData = record;
  1178. if(index!=undefined){
  1179. this.setState({
  1180. isXin:2,
  1181. visitModulc: true,
  1182. year:record.year.toString(),//年份
  1183. id:record.id,//年报详情ID
  1184. assets:record.assets,//总资产
  1185. fixedAssets:record.fixedAssets,//固定资产
  1186. researchAmount:record.researchAmount,//研发费用
  1187. salesAmount:record.salesAmount,//销售额
  1188. });
  1189. }
  1190. },
  1191. //项目每行点击
  1192. tableRowClickDatex(record, index) {
  1193. this.state.RowData = record;
  1194. if(index!=undefined){
  1195. this.setState({
  1196. isXinx:2,
  1197. visitModulx: true,
  1198. year:record.year.toString(),//年份
  1199. id:record.id,//年报详情ID
  1200. projectName:record.projectName,//项目名称
  1201. status:record.status.toString(),//项目状态
  1202. remark:record.remark,//销售额
  1203. });
  1204. }
  1205. },
  1206. //删除财务信息
  1207. deltalc(record){
  1208. this.setState({
  1209. loading: true
  1210. });
  1211. $.ajax({
  1212. method: "post",
  1213. dataType: "json",
  1214. crossDomain: false,
  1215. url: globalConfig.context + '/api/admin/customers/delectOrgAnnual',
  1216. data: {
  1217. id:record.id,
  1218. uid:record.uid
  1219. }
  1220. }).done(function (data) {
  1221. if (!data.error.length) {
  1222. message.success('操作成功');
  1223. this.setState({
  1224. loading: false,
  1225. });
  1226. this.loadDatac();
  1227. this.loadData();
  1228. } else {
  1229. message.warning(data.error[0].message);
  1230. };
  1231. }.bind(this));
  1232. },
  1233. //删除财务信息
  1234. deltalx(record){
  1235. this.setState({
  1236. loading: true
  1237. });
  1238. $.ajax({
  1239. method: "post",
  1240. dataType: "json",
  1241. crossDomain: false,
  1242. url: globalConfig.context + '/api/admin/customers/delectOrgYearProject',
  1243. data: {
  1244. id:record.id,
  1245. uid:record.uid
  1246. }
  1247. }).done(function (data) {
  1248. if (!data.error.length) {
  1249. message.success('操作成功');
  1250. this.setState({
  1251. loading: false,
  1252. });
  1253. this.loadDatax();
  1254. this.loadData();
  1255. } else {
  1256. message.warning(data.error[0].message);
  1257. };
  1258. }.bind(this));
  1259. },
  1260. render() {
  1261. let paginationss = null;
  1262. if (this.state.pagec>=0) {
  1263. paginationss = this.renderPagination(this.state.pagec, this.state.pages);
  1264. }
  1265. const {
  1266. RangePicker,
  1267. MonthPicker
  1268. } = DatePicker;
  1269. const formItemLayout = {
  1270. labelCol: { span: 8 },
  1271. wrapperCol: { span: 14 },
  1272. };
  1273. const formItemLayoutc = {
  1274. labelCol: { span: 6 },
  1275. wrapperCol: { span: 14 },
  1276. };
  1277. const FormItem = Form.Item;
  1278. const rowSelection = {
  1279. selectedRowKeys: this.state.selectedRowKeys,
  1280. onChange: (selectedRowKeys, selectedRows) => {
  1281. this.setState({
  1282. modalVisible:false,
  1283. selectedRows: selectedRows.slice(-1),
  1284. selectedRowKeys: selectedRowKeys.slice(-1)
  1285. });
  1286. },
  1287. onSelect: (recordt, selected, selectedRows) => {
  1288. this.setState({
  1289. modalVisible:false,
  1290. recordt: recordt.id
  1291. })
  1292. },
  1293. };
  1294. const hasSelected = this.state.selectedRowKeys.length > 0;
  1295. const dataSources=this.state.customerArr || [];
  1296. const options = dataSources.map((group) =>
  1297. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  1298. )
  1299. const intentionState = this.props.intentionState ||'';
  1300. const props = {
  1301. name: 'file',
  1302. multiple: true,
  1303. action: '/api/admin/techproject/upload',
  1304. onChange(info) {
  1305. const status = info.file.status;
  1306. if (status !== 'uploading') {
  1307. }
  1308. if (status === 'done') {
  1309. message.success(`${info.file.name} file uploaded successfully.`);
  1310. } else if (status === 'error') {
  1311. message.error(`${info.file.name} file upload failed.`);
  1312. }
  1313. },
  1314. };
  1315. let pdfUrl =this.state.pdfUrl||'';
  1316. return(
  1317. <div className="user-content" >
  1318. <div className="content-title">
  1319. <span>客户资料维护</span>
  1320. </div>
  1321. <div className="user-search">
  1322. <Input placeholder="客户名称"
  1323. value={this.state.nameSearch}
  1324. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1325. <Select placeholder="省"
  1326. style={{ width: 80 }}
  1327. value={this.state.provinceSearch}
  1328. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1329. {this.state.Provinces}
  1330. </Select>
  1331. <span style={{marginRight:'10px'}}>
  1332. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1333. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1334. </span>
  1335. <Select placeholder="资料是否完善" style={{ width: 120 }}
  1336. value={this.state.dataGrade}
  1337. onChange={(e) => { this.setState({ dataGrade: e }) }}>
  1338. <Select.Option value="0" >未完善</Select.Option>
  1339. <Select.Option value="1" >已完善</Select.Option>
  1340. </Select>
  1341. <Select placeholder="是否面谈客户" style={{ width: 120 }}
  1342. value={this.state.follow}
  1343. onChange={(e) => { this.setState({ follow: e }) }}>
  1344. <Select.Option value="0" >否</Select.Option>
  1345. <Select.Option value="1" >是</Select.Option>
  1346. </Select>
  1347. <RangePicker style={{marginRight:'10px'}}
  1348. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1349. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1350. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1351. <Button type="primary" onClick={this.search}>搜索</Button>
  1352. <Button onClick={this.reset}>重置</Button>
  1353. <AutoComplete
  1354. className="certain-category-search"
  1355. dropdownClassName="certain-category-search-dropdown"
  1356. dropdownMatchSelectWidth={false}
  1357. dropdownStyle={{ width: 120 }}
  1358. style={{ width: '120px'}}
  1359. dataSource={options}
  1360. placeholder="输入转交人姓名"
  1361. value={this.state.auto}
  1362. onChange={this.httpChange}
  1363. filterOption={true}
  1364. onBlur={this.blurChange}
  1365. onSelect={this.selectAuto}
  1366. disabled={!hasSelected}
  1367. >
  1368. <Input />
  1369. </AutoComplete>
  1370. <Button type="primary" onClick={this.changeAssigner} disabled={!hasSelected} >转交</Button>
  1371. </div>
  1372. <div className="patent-table">
  1373. <Spin spinning={this.state.loading}>
  1374. <Table columns={this.state.columns}
  1375. dataSource={this.state.dataSource}
  1376. rowSelection={rowSelection}
  1377. pagination={this.state.pagination}
  1378. onRowClick={this.tableRowClick}
  1379. bordered
  1380. size="small"
  1381. />
  1382. </Spin>
  1383. </div>
  1384. <Modal
  1385. className="customeDetails"
  1386. footer=''
  1387. title="客户资料"
  1388. width='1000px'
  1389. visible={this.state.visitModul}
  1390. onOk={this.visitOk}
  1391. onCancel={this.visitCancel}
  1392. >
  1393. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1394. <TabPane tab="基本信息" key="0">
  1395. <div>
  1396. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  1397. <Spin spinning={this.state.loading}>
  1398. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
  1399. <div className="clearfix" >
  1400. <FormItem className="half-item"
  1401. {...formItemLayout}
  1402. label="客户姓名"
  1403. >
  1404. <span>{this.state.identifyName}</span>
  1405. </FormItem>
  1406. <FormItem className="half-item"
  1407. {...formItemLayout}
  1408. label="资料所属人"
  1409. >
  1410. <span>{this.state.informationMaintainerName}</span>
  1411. </FormItem>
  1412. </div>
  1413. <div className="clearfix" >
  1414. <FormItem className="half-item"
  1415. {...formItemLayout}
  1416. label="企业行业">
  1417. <Select placeholder="选择行业" value={this.state.industry} style={{width:'95%'}}
  1418. onChange={(e)=>{this.setState({industry:e})}}>
  1419. {
  1420. industry.map(function (item) {
  1421. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1422. })
  1423. }
  1424. </Select>
  1425. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1426. </FormItem>
  1427. <FormItem className="half-item"
  1428. {...formItemLayout}
  1429. label="社会属性"
  1430. >
  1431. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'95%'}}
  1432. onChange={(e)=>{this.setState({societyTag:e})}}>
  1433. {
  1434. socialAttribute.map(function (item) {
  1435. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1436. })
  1437. }
  1438. </Select>
  1439. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1440. </FormItem>
  1441. <FormItem className="half-item"
  1442. {...formItemLayout}
  1443. label="省-市-区"
  1444. >
  1445. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
  1446. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1447. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1448. </FormItem>
  1449. <FormItem className="half-item"
  1450. {...formItemLayout}
  1451. label="注册资本"
  1452. >
  1453. <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
  1454. this.setState({ registeredCapital: e.target.value }) }} />万
  1455. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1456. </FormItem>
  1457. <div className='clearfix'>
  1458. <FormItem
  1459. labelCol={{ span:4 }}
  1460. wrapperCol={{ span: 20 }}
  1461. label="主营产品" >
  1462. <Input type="textarea" rows={2} value={this.state.businessScope} style={{width:'95%'}}
  1463. onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}}/>
  1464. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1465. </FormItem>
  1466. </div>
  1467. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
  1468. <FormItem className="half-item"
  1469. {...formItemLayout}
  1470. label="通信地址"
  1471. >
  1472. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1473. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  1474. </FormItem>
  1475. <FormItem className="half-item"
  1476. {...formItemLayout}
  1477. label="固定电话"
  1478. >
  1479. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1480. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }}/>
  1481. </FormItem>
  1482. <FormItem className="half-item"
  1483. {...formItemLayout}
  1484. label="客户传真"
  1485. >
  1486. <Input placeholder="客户传真" value={this.state.contactsFax}
  1487. onChange={(e) => { this.setState({ contactsFax: e.target.value })}}/>
  1488. </FormItem>
  1489. <FormItem className="half-item"
  1490. {...formItemLayout}
  1491. label="企业人数"
  1492. >
  1493. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1494. this.setState({ enterpriseScale: e.target.value })}}/>
  1495. </FormItem>
  1496. <FormItem className="half-item"
  1497. {...formItemLayout}
  1498. label="法人名称"
  1499. >
  1500. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1501. this.setState({ legalPerson: e.target.value })}}/>
  1502. </FormItem>
  1503. <FormItem className="half-item"
  1504. {...formItemLayout}
  1505. label="法人身份证"
  1506. >
  1507. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1508. this.setState({ legalPersonIdCard: e.target.value })}}/>
  1509. </FormItem>
  1510. <FormItem className="half-item"
  1511. {...formItemLayout}
  1512. label="联系人"
  1513. >
  1514. <Input placeholder="联系人名称" value={this.state.contacts} onChange={(e) => {
  1515. this.setState({ contacts: e.target.value })}}/>
  1516. </FormItem>
  1517. <FormItem className="half-item"
  1518. {...formItemLayout}
  1519. label="联系人号码"
  1520. >
  1521. <Input placeholder="联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1522. this.setState({ contactMobile: e.target.value })}}/>
  1523. </FormItem>
  1524. <FormItem className="half-item"
  1525. {...formItemLayout}
  1526. label="法人电话"
  1527. >
  1528. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1529. this.setState({ legalPersonTel: e.target.value })}}/>
  1530. </FormItem>
  1531. <FormItem className="half-item"
  1532. {...formItemLayout}
  1533. label="法人邮箱"
  1534. >
  1535. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1536. onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}}/>
  1537. </FormItem>
  1538. <FormItem className="half-item"
  1539. {...formItemLayout}
  1540. label="社会统一信用机构代码"
  1541. >
  1542. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1543. this.setState({ orgCode: e.target.value })}}/>
  1544. </FormItem>
  1545. <div className='clearfix'>
  1546. <FormItem
  1547. labelCol={{ span:4 }}
  1548. wrapperCol={{ span: 18 }}
  1549. label="客户简介" >
  1550. <Input type="textarea" rows={3} value={this.state.introduction}
  1551. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  1552. </FormItem>
  1553. </div>
  1554. <div className="clearfix pictures">
  1555. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'95px'}}
  1556. labelCol={{ span: 8 }}
  1557. wrapperCol={{ span: 10 }}
  1558. label="机构证书(PIC)" >
  1559. <PicturesWall
  1560. fileList={this.getOrgCodeUrl}
  1561. pictureUrl={this.state.orgCodeUrl} />
  1562. <p>建议:图片要清晰。</p>
  1563. </FormItem>
  1564. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginTop:'20px'}}
  1565. labelCol={{ span: 8 }}
  1566. wrapperCol={{ span: 10 }}
  1567. label="单位LOGO" >
  1568. <PicturesWall
  1569. fileList={this.getCompanyLogoUrl}
  1570. pictureUrl={this.state.companyLogoUrl} />
  1571. <p>建议:图片要清晰。</p>
  1572. </FormItem>
  1573. </div>
  1574. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
  1575. <div className='clearfix' >
  1576. <FormItem className="half-item"
  1577. {...formItemLayout}
  1578. label="客户信用等级"
  1579. >
  1580. <Select placeholder="客户信用等级" value={this.state.creditRating} style={{width:'90%'}}
  1581. onChange={(e)=>{this.setState({creditRating:e})}}>
  1582. {
  1583. slcRedit.map(function (item) {
  1584. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1585. })
  1586. }
  1587. </Select>
  1588. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1589. </FormItem>
  1590. <div className='clearfix'>
  1591. <FormItem
  1592. labelCol={{ span:4 }}
  1593. wrapperCol={{ span: 19 }}
  1594. label="企业核心技术" >
  1595. <Input type="textarea" rows={3} value={this.state.coreTechnology} style={{width:'96%'}}
  1596. onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
  1597. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1598. </FormItem>
  1599. </div>
  1600. <div className='clearfix'>
  1601. <FormItem
  1602. labelCol={{ span:4 }}
  1603. wrapperCol={{ span: 19 }}
  1604. label="企业资质情况" >
  1605. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1606. onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} style={{width:'96%'}}/>
  1607. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1608. </FormItem>
  1609. </div>
  1610. <div className='clearfix'>
  1611. <FormItem
  1612. labelCol={{ span:4 }}
  1613. wrapperCol={{ span: 19 }}
  1614. label="高企合作情况" >
  1615. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1616. onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} style={{width:'96%'}}/>
  1617. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1618. </FormItem>
  1619. </div>
  1620. <div className='clearfix' >
  1621. <FormItem
  1622. labelCol={{ span:4 }}
  1623. wrapperCol={{ span: 19 }}
  1624. label="项目申请书" >
  1625. <Upload style={{display:"inlineBlock"}}
  1626. name="avatar"
  1627. action={globalConfig.context + "/api/admin/customer/upload"}
  1628. data={{
  1629. 'uid': this.state.detailId,
  1630. 'sign': 'organization_application'
  1631. }}
  1632. beforeUpload={beforeUploadFile}
  1633. fileList={this.state.fileList}
  1634. onChange={(info) => {
  1635. if (info.file.status !== 'uploading') {
  1636. }
  1637. if (info.file.status === 'done') {
  1638. if (!info.file.response.error.length) {
  1639. let isPDF=this.state.fileList[0].originFileObj.name.split('.');
  1640. let isIndex=isPDF.length-1;
  1641. if(isPDF[isIndex]=="pdf"){
  1642. message.success(`${info.file.name} 文件上传成功!`);
  1643. }else{
  1644. message.error("请上传pdf文件!");
  1645. }
  1646. } else {
  1647. message.warning(info.file.response.error[0].message);
  1648. return;
  1649. };
  1650. this.setState({
  1651. pojectApplicationUrl:info.file.response.data,
  1652. isXian:1,
  1653. })
  1654. } else if (info.file.status === 'error') {
  1655. message.error(`${info.file.name} 文件上传失败。`);
  1656. }
  1657. this.setState({ fileList: info.fileList.slice(-1) });
  1658. }}
  1659. >
  1660. {/*<a onClick={
  1661. () => {var newTab = window.open('about:blank'); getPreviews(this.state.uid, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
  1662. }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>*/}
  1663. <Button><Icon type="upload" /> 项目材料上传 </Button>
  1664. </Upload>
  1665. <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
  1666. <span className="download-file">
  1667. <a onClick={this.visitOk1}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
  1668. </span>
  1669. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}
  1670. </span>
  1671. </FormItem>
  1672. </div>
  1673. </div>
  1674. <Button className="setSubmit" type="primary" htmlType="submit">保存</Button>
  1675. <Button type="ghost" onClick={this.visitCancel}>取消</Button>
  1676. </div>
  1677. </Spin>
  1678. </Form>
  1679. </div>
  1680. </TabPane>
  1681. <TabPane tab="知识产权列表" key="1">
  1682. <Button type="primary" className="addButton" onClick={this.addClick}>发布知识产权<Icon type="plus" /></Button>
  1683. <Spin spinning={this.state.loading}>
  1684. <Table columns={this.state.columnsDate}
  1685. dataSource={this.state.dataSourceDate}
  1686. rowSelection={rowSelection}
  1687. pagination={this.state.paginationDate}
  1688. onRowClick={this.tableRowClickDate} />
  1689. </Spin>
  1690. </TabPane>
  1691. <TabPane tab="财务信息" key="2">
  1692. <Button type="primary" className="addButton" onClick={this.addClickc}>添加年度财务信息<Icon type="plus" /></Button>
  1693. <Spin spinning={this.state.loading}>
  1694. <Table columns={this.state.columnsc}
  1695. dataSource={this.state.dataSourcec}
  1696. rowSelection={rowSelection}
  1697. onRowClick={this.tableRowClickDatec} />
  1698. </Spin>
  1699. </TabPane>
  1700. <TabPane tab="项目信息" key="3">
  1701. <Button type="primary" className="addButton" onClick={this.addClickx}>添加项目信息<Icon type="plus" /></Button>
  1702. <Spin spinning={this.state.loading}>
  1703. <Table columns={this.state.columnsx}
  1704. dataSource={this.state.dataSourcex}
  1705. rowSelection={rowSelection}
  1706. onRowClick={this.tableRowClickDatex} />
  1707. </Spin>
  1708. </TabPane>
  1709. </Tabs>
  1710. </Modal>
  1711. <Modal
  1712. className="customeDetails"
  1713. footer=''
  1714. title="项目申请书"
  1715. width='800px'
  1716. visible={this.state.visitModul1}
  1717. onOk={this.visitOk1}
  1718. onCancel={this.visitCancel1}
  1719. >
  1720. <div>
  1721. {/*<Button type="primary" onClick={this.pdfShows(pdfUrl)}>点击查看</Button>
  1722. <div id="pdfContent" style={{height:"500px",width:"500px",marginLeft:"300px"}} >
  1723. </div>
  1724. onDocumentLoad={this.onDocumentComplete}
  1725. onLoadSuccess={this.onDocumentComplete}
  1726. onDocumentComplete={this.onDocumentComplete}
  1727. onPageRender={this.onPageComplete}
  1728. // "http://s.jishutao.com/upload/achievement/achievement/34576808907162737_achievement_maturity_text_file.pdf"//{pdfUrl}
  1729. */}
  1730. <PDF
  1731. file={pdfUrl}
  1732. onDocumentLoad={this.onDocumentComplete}
  1733. pageIndex={parseInt(this.state.pagec)}
  1734. scale={1.2}
  1735. />
  1736. {paginationss}
  1737. </div>
  1738. </Modal>
  1739. <Modal
  1740. className="customeDetails"
  1741. footer=''
  1742. title="财务资料"
  1743. width='500px'
  1744. visible={this.state.visitModulc}
  1745. onOk={this.visitOkc}
  1746. onCancel={this.visitCancelc}
  1747. > <Form layout="horizontal" onSubmit={this.newSubmitc} id="demand-form">
  1748. <Spin spinning={this.state.loading}>
  1749. <div className="clearfix" >
  1750. <FormItem
  1751. {...formItemLayoutc}
  1752. label="年份"
  1753. >
  1754. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1755. onChange={(e)=>{this.setState({year:e})}}>
  1756. {
  1757. year.map(function (item) {
  1758. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1759. })
  1760. }
  1761. </Select>
  1762. </FormItem>
  1763. </div>
  1764. <div className="clearfix" >
  1765. <FormItem
  1766. {...formItemLayoutc}
  1767. label="营销收入"
  1768. >
  1769. <Input placeholder="营销收入" style={{width:'90%'}} value={this.state.salesAmount} onChange={(e) => {
  1770. this.setState({ salesAmount: e.target.value }) }} />万
  1771. </FormItem>
  1772. </div>
  1773. <div className="clearfix" >
  1774. <FormItem
  1775. {...formItemLayoutc}
  1776. label="总资产"
  1777. >
  1778. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.assets} onChange={(e) => {
  1779. this.setState({ assets: e.target.value }) }} />万
  1780. </FormItem>
  1781. </div>
  1782. <div className="clearfix" >
  1783. <FormItem
  1784. {...formItemLayoutc}
  1785. label="固定资产"
  1786. >
  1787. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.fixedAssets} onChange={(e) => {
  1788. this.setState({ fixedAssets: e.target.value }) }} />万
  1789. </FormItem>
  1790. </div>
  1791. <div className="clearfix" >
  1792. <FormItem
  1793. {...formItemLayoutc}
  1794. label="研发费用"
  1795. >
  1796. <Input placeholder="研发费用" style={{width:'90%'}} value={this.state.researchAmount} onChange={(e) => {
  1797. this.setState({ researchAmount: e.target.value }) }} />万
  1798. </FormItem>
  1799. </div>
  1800. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1801. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1802. </Spin>
  1803. </Form>
  1804. </Modal>
  1805. <Modal
  1806. className="customeDetails"
  1807. footer=''
  1808. title="项目资料"
  1809. width='500px'
  1810. visible={this.state.visitModulx}
  1811. onOk={this.visitOkc}
  1812. onCancel={this.visitCancelc}
  1813. > <Form layout="horizontal" onSubmit={this.newSubmitx} id="demand-form">
  1814. <Spin spinning={this.state.loading}>
  1815. <div className="clearfix" >
  1816. <FormItem
  1817. {...formItemLayoutc}
  1818. label="年份"
  1819. >
  1820. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1821. onChange={(e)=>{this.setState({year:e})}}>
  1822. {
  1823. year.map(function (item) {
  1824. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1825. })
  1826. }
  1827. </Select>
  1828. </FormItem>
  1829. </div>
  1830. <div className="clearfix" >
  1831. <FormItem
  1832. {...formItemLayoutc}
  1833. label="项目名称"
  1834. >
  1835. <Input placeholder="项目名称" style={{width:'90%'}} value={this.state.projectName} onChange={(e) => {
  1836. this.setState({ projectName: e.target.value }) }} />
  1837. </FormItem>
  1838. </div>
  1839. <div className="clearfix" >
  1840. <FormItem
  1841. {...formItemLayoutc}
  1842. label="项目状态"
  1843. >
  1844. <Select placeholder="项目状态" value={this.state.status} style={{width:'90%'}}
  1845. onChange={(e)=>{this.setState({status:e})}}>
  1846. {
  1847. xiangmoState.map(function (item) {
  1848. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1849. })
  1850. }
  1851. </Select>
  1852. </FormItem>
  1853. </div>
  1854. <div className="clearfix" >
  1855. <FormItem
  1856. {...formItemLayoutc}
  1857. label="备注"
  1858. >
  1859. <Input type="textarea" rows={3} placeholder="备注" style={{width:'90%'}} value={this.state.remark} onChange={(e) => {
  1860. this.setState({ remark: e.target.value }) }} />
  1861. </FormItem>
  1862. </div>
  1863. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1864. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1865. </Spin>
  1866. </Form>
  1867. </Modal>
  1868. <TechAchievementDesc
  1869. data={this.state.RowData}
  1870. detailApiUrl={this.props['data-detailApiUrl']}
  1871. achievementCategoryOption={this.state.achievementCategoryOption}
  1872. showDesc={this.state.showDesc}
  1873. uid={this.state.uid}
  1874. closeDesc={this.closeDesc}
  1875. loadDatas={this.loadDatas}
  1876. />
  1877. </div >
  1878. );
  1879. }
  1880. }));
  1881. export default IntentionCustomer;