crm.jsx 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916
  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. />
  1380. </Spin>
  1381. </div>
  1382. <Modal
  1383. className="customeDetails"
  1384. footer=''
  1385. title="客户资料"
  1386. width='1000px'
  1387. visible={this.state.visitModul}
  1388. onOk={this.visitOk}
  1389. onCancel={this.visitCancel}
  1390. >
  1391. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1392. <TabPane tab="基本信息" key="0">
  1393. <div>
  1394. <Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
  1395. <Spin spinning={this.state.loading}>
  1396. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
  1397. <div className="clearfix" >
  1398. <FormItem className="half-item"
  1399. {...formItemLayout}
  1400. label="客户姓名"
  1401. >
  1402. <span>{this.state.identifyName}</span>
  1403. </FormItem>
  1404. <FormItem className="half-item"
  1405. {...formItemLayout}
  1406. label="资料所属人"
  1407. >
  1408. <span>{this.state.informationMaintainerName}</span>
  1409. </FormItem>
  1410. </div>
  1411. <div className="clearfix" >
  1412. <FormItem className="half-item"
  1413. {...formItemLayout}
  1414. label="企业行业">
  1415. <Select placeholder="选择行业" value={this.state.industry} style={{width:'95%'}}
  1416. onChange={(e)=>{this.setState({industry:e})}}>
  1417. {
  1418. industry.map(function (item) {
  1419. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1420. })
  1421. }
  1422. </Select>
  1423. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1424. </FormItem>
  1425. <FormItem className="half-item"
  1426. {...formItemLayout}
  1427. label="社会属性"
  1428. >
  1429. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'95%'}}
  1430. onChange={(e)=>{this.setState({societyTag:e})}}>
  1431. {
  1432. socialAttribute.map(function (item) {
  1433. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1434. })
  1435. }
  1436. </Select>
  1437. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1438. </FormItem>
  1439. <FormItem className="half-item"
  1440. {...formItemLayout}
  1441. label="省-市-区"
  1442. >
  1443. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
  1444. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1445. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1446. </FormItem>
  1447. <FormItem className="half-item"
  1448. {...formItemLayout}
  1449. label="注册资本"
  1450. >
  1451. <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
  1452. this.setState({ registeredCapital: e.target.value }) }} />万
  1453. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1454. </FormItem>
  1455. <div className='clearfix'>
  1456. <FormItem
  1457. labelCol={{ span:4 }}
  1458. wrapperCol={{ span: 20 }}
  1459. label="主营产品" >
  1460. <Input type="textarea" rows={2} value={this.state.businessScope} style={{width:'95%'}}
  1461. onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}}/>
  1462. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1463. </FormItem>
  1464. </div>
  1465. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
  1466. <FormItem className="half-item"
  1467. {...formItemLayout}
  1468. label="通信地址"
  1469. >
  1470. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1471. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  1472. </FormItem>
  1473. <FormItem className="half-item"
  1474. {...formItemLayout}
  1475. label="固定电话"
  1476. >
  1477. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1478. onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }}/>
  1479. </FormItem>
  1480. <FormItem className="half-item"
  1481. {...formItemLayout}
  1482. label="客户传真"
  1483. >
  1484. <Input placeholder="客户传真" value={this.state.contactsFax}
  1485. onChange={(e) => { this.setState({ contactsFax: e.target.value })}}/>
  1486. </FormItem>
  1487. <FormItem className="half-item"
  1488. {...formItemLayout}
  1489. label="企业人数"
  1490. >
  1491. <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
  1492. this.setState({ enterpriseScale: e.target.value })}}/>
  1493. </FormItem>
  1494. <FormItem className="half-item"
  1495. {...formItemLayout}
  1496. label="法人名称"
  1497. >
  1498. <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
  1499. this.setState({ legalPerson: e.target.value })}}/>
  1500. </FormItem>
  1501. <FormItem className="half-item"
  1502. {...formItemLayout}
  1503. label="法人身份证"
  1504. >
  1505. <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
  1506. this.setState({ legalPersonIdCard: e.target.value })}}/>
  1507. </FormItem>
  1508. <FormItem className="half-item"
  1509. {...formItemLayout}
  1510. label="联系人"
  1511. >
  1512. <Input placeholder="联系人名称" value={this.state.contacts} onChange={(e) => {
  1513. this.setState({ contacts: e.target.value })}}/>
  1514. </FormItem>
  1515. <FormItem className="half-item"
  1516. {...formItemLayout}
  1517. label="联系人号码"
  1518. >
  1519. <Input placeholder="联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1520. this.setState({ contactMobile: e.target.value })}}/>
  1521. </FormItem>
  1522. <FormItem className="half-item"
  1523. {...formItemLayout}
  1524. label="法人电话"
  1525. >
  1526. <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
  1527. this.setState({ legalPersonTel: e.target.value })}}/>
  1528. </FormItem>
  1529. <FormItem className="half-item"
  1530. {...formItemLayout}
  1531. label="法人邮箱"
  1532. >
  1533. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1534. onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}}/>
  1535. </FormItem>
  1536. <FormItem className="half-item"
  1537. {...formItemLayout}
  1538. label="社会统一信用机构代码"
  1539. >
  1540. <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
  1541. this.setState({ orgCode: e.target.value })}}/>
  1542. </FormItem>
  1543. <div className='clearfix'>
  1544. <FormItem
  1545. labelCol={{ span:4 }}
  1546. wrapperCol={{ span: 18 }}
  1547. label="客户简介" >
  1548. <Input type="textarea" rows={3} value={this.state.introduction}
  1549. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  1550. </FormItem>
  1551. </div>
  1552. <div className="clearfix pictures">
  1553. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'95px'}}
  1554. labelCol={{ span: 8 }}
  1555. wrapperCol={{ span: 10 }}
  1556. label="机构证书(PIC)" >
  1557. <PicturesWall
  1558. fileList={this.getOrgCodeUrl}
  1559. pictureUrl={this.state.orgCodeUrl} />
  1560. <p>建议:图片要清晰。</p>
  1561. </FormItem>
  1562. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginTop:'20px'}}
  1563. labelCol={{ span: 8 }}
  1564. wrapperCol={{ span: 10 }}
  1565. label="单位LOGO" >
  1566. <PicturesWall
  1567. fileList={this.getCompanyLogoUrl}
  1568. pictureUrl={this.state.companyLogoUrl} />
  1569. <p>建议:图片要清晰。</p>
  1570. </FormItem>
  1571. </div>
  1572. <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
  1573. <div className='clearfix' >
  1574. <FormItem className="half-item"
  1575. {...formItemLayout}
  1576. label="客户信用等级"
  1577. >
  1578. <Select placeholder="客户信用等级" value={this.state.creditRating} style={{width:'90%'}}
  1579. onChange={(e)=>{this.setState({creditRating:e})}}>
  1580. {
  1581. slcRedit.map(function (item) {
  1582. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1583. })
  1584. }
  1585. </Select>
  1586. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1587. </FormItem>
  1588. <div className='clearfix'>
  1589. <FormItem
  1590. labelCol={{ span:4 }}
  1591. wrapperCol={{ span: 19 }}
  1592. label="企业核心技术" >
  1593. <Input type="textarea" rows={3} value={this.state.coreTechnology} style={{width:'96%'}}
  1594. onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
  1595. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1596. </FormItem>
  1597. </div>
  1598. <div className='clearfix'>
  1599. <FormItem
  1600. labelCol={{ span:4 }}
  1601. wrapperCol={{ span: 19 }}
  1602. label="企业资质情况" >
  1603. <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
  1604. onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} style={{width:'96%'}}/>
  1605. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1606. </FormItem>
  1607. </div>
  1608. <div className='clearfix'>
  1609. <FormItem
  1610. labelCol={{ span:4 }}
  1611. wrapperCol={{ span: 19 }}
  1612. label="高企合作情况" >
  1613. <Input type="textarea" rows={3} value={this.state.cooperationSituation}
  1614. onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} style={{width:'96%'}}/>
  1615. <span style={{color:'red',marginLeft:'5px'}}>*</span>
  1616. </FormItem>
  1617. </div>
  1618. <div className='clearfix' >
  1619. <FormItem
  1620. labelCol={{ span:4 }}
  1621. wrapperCol={{ span: 19 }}
  1622. label="项目申请书" >
  1623. <Upload style={{display:"inlineBlock"}}
  1624. name="avatar"
  1625. action={globalConfig.context + "/api/admin/customer/upload"}
  1626. data={{
  1627. 'uid': this.state.detailId,
  1628. 'sign': 'organization_application'
  1629. }}
  1630. beforeUpload={beforeUploadFile}
  1631. fileList={this.state.fileList}
  1632. onChange={(info) => {
  1633. if (info.file.status !== 'uploading') {
  1634. }
  1635. if (info.file.status === 'done') {
  1636. if (!info.file.response.error.length) {
  1637. let isPDF=this.state.fileList[0].originFileObj.name.split('.');
  1638. let isIndex=isPDF.length-1;
  1639. if(isPDF[isIndex]=="pdf"){
  1640. message.success(`${info.file.name} 文件上传成功!`);
  1641. }else{
  1642. message.error("请上传pdf文件!");
  1643. }
  1644. } else {
  1645. message.warning(info.file.response.error[0].message);
  1646. return;
  1647. };
  1648. this.setState({
  1649. pojectApplicationUrl:info.file.response.data,
  1650. isXian:1,
  1651. })
  1652. } else if (info.file.status === 'error') {
  1653. message.error(`${info.file.name} 文件上传失败。`);
  1654. }
  1655. this.setState({ fileList: info.fileList.slice(-1) });
  1656. }}
  1657. >
  1658. {/*<a onClick={
  1659. () => {var newTab = window.open('about:blank'); getPreviews(this.state.uid, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
  1660. }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>*/}
  1661. <Button><Icon type="upload" /> 项目材料上传 </Button>
  1662. </Upload>
  1663. <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
  1664. <span className="download-file">
  1665. <a onClick={this.visitOk1}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
  1666. </span>
  1667. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}
  1668. </span>
  1669. </FormItem>
  1670. </div>
  1671. </div>
  1672. <Button className="setSubmit" type="primary" htmlType="submit">保存</Button>
  1673. <Button type="ghost" onClick={this.visitCancel}>取消</Button>
  1674. </div>
  1675. </Spin>
  1676. </Form>
  1677. </div>
  1678. </TabPane>
  1679. <TabPane tab="知识产权列表" key="1">
  1680. <Button type="primary" className="addButton" onClick={this.addClick}>发布知识产权<Icon type="plus" /></Button>
  1681. <Spin spinning={this.state.loading}>
  1682. <Table columns={this.state.columnsDate}
  1683. dataSource={this.state.dataSourceDate}
  1684. rowSelection={rowSelection}
  1685. pagination={this.state.paginationDate}
  1686. onRowClick={this.tableRowClickDate} />
  1687. </Spin>
  1688. </TabPane>
  1689. <TabPane tab="财务信息" key="2">
  1690. <Button type="primary" className="addButton" onClick={this.addClickc}>添加年度财务信息<Icon type="plus" /></Button>
  1691. <Spin spinning={this.state.loading}>
  1692. <Table columns={this.state.columnsc}
  1693. dataSource={this.state.dataSourcec}
  1694. rowSelection={rowSelection}
  1695. onRowClick={this.tableRowClickDatec} />
  1696. </Spin>
  1697. </TabPane>
  1698. <TabPane tab="项目信息" key="3">
  1699. <Button type="primary" className="addButton" onClick={this.addClickx}>添加项目信息<Icon type="plus" /></Button>
  1700. <Spin spinning={this.state.loading}>
  1701. <Table columns={this.state.columnsx}
  1702. dataSource={this.state.dataSourcex}
  1703. rowSelection={rowSelection}
  1704. onRowClick={this.tableRowClickDatex} />
  1705. </Spin>
  1706. </TabPane>
  1707. </Tabs>
  1708. </Modal>
  1709. <Modal
  1710. className="customeDetails"
  1711. footer=''
  1712. title="项目申请书"
  1713. width='800px'
  1714. visible={this.state.visitModul1}
  1715. onOk={this.visitOk1}
  1716. onCancel={this.visitCancel1}
  1717. >
  1718. <div>
  1719. {/*<Button type="primary" onClick={this.pdfShows(pdfUrl)}>点击查看</Button>
  1720. <div id="pdfContent" style={{height:"500px",width:"500px",marginLeft:"300px"}} >
  1721. </div>
  1722. onDocumentLoad={this.onDocumentComplete}
  1723. onLoadSuccess={this.onDocumentComplete}
  1724. onDocumentComplete={this.onDocumentComplete}
  1725. onPageRender={this.onPageComplete}
  1726. // "http://s.jishutao.com/upload/achievement/achievement/34576808907162737_achievement_maturity_text_file.pdf"//{pdfUrl}
  1727. */}
  1728. <PDF
  1729. file={pdfUrl}
  1730. onDocumentLoad={this.onDocumentComplete}
  1731. pageIndex={parseInt(this.state.pagec)}
  1732. scale={1.2}
  1733. />
  1734. {paginationss}
  1735. </div>
  1736. </Modal>
  1737. <Modal
  1738. className="customeDetails"
  1739. footer=''
  1740. title="财务资料"
  1741. width='500px'
  1742. visible={this.state.visitModulc}
  1743. onOk={this.visitOkc}
  1744. onCancel={this.visitCancelc}
  1745. > <Form layout="horizontal" onSubmit={this.newSubmitc} id="demand-form">
  1746. <Spin spinning={this.state.loading}>
  1747. <div className="clearfix" >
  1748. <FormItem
  1749. {...formItemLayoutc}
  1750. label="年份"
  1751. >
  1752. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1753. onChange={(e)=>{this.setState({year:e})}}>
  1754. {
  1755. year.map(function (item) {
  1756. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1757. })
  1758. }
  1759. </Select>
  1760. </FormItem>
  1761. </div>
  1762. <div className="clearfix" >
  1763. <FormItem
  1764. {...formItemLayoutc}
  1765. label="营销收入"
  1766. >
  1767. <Input placeholder="营销收入" style={{width:'90%'}} value={this.state.salesAmount} onChange={(e) => {
  1768. this.setState({ salesAmount: e.target.value }) }} />万
  1769. </FormItem>
  1770. </div>
  1771. <div className="clearfix" >
  1772. <FormItem
  1773. {...formItemLayoutc}
  1774. label="总资产"
  1775. >
  1776. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.assets} onChange={(e) => {
  1777. this.setState({ assets: e.target.value }) }} />万
  1778. </FormItem>
  1779. </div>
  1780. <div className="clearfix" >
  1781. <FormItem
  1782. {...formItemLayoutc}
  1783. label="固定资产"
  1784. >
  1785. <Input placeholder="总资产" style={{width:'90%'}} value={this.state.fixedAssets} onChange={(e) => {
  1786. this.setState({ fixedAssets: e.target.value }) }} />万
  1787. </FormItem>
  1788. </div>
  1789. <div className="clearfix" >
  1790. <FormItem
  1791. {...formItemLayoutc}
  1792. label="研发费用"
  1793. >
  1794. <Input placeholder="研发费用" style={{width:'90%'}} value={this.state.researchAmount} onChange={(e) => {
  1795. this.setState({ researchAmount: e.target.value }) }} />万
  1796. </FormItem>
  1797. </div>
  1798. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1799. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1800. </Spin>
  1801. </Form>
  1802. </Modal>
  1803. <Modal
  1804. className="customeDetails"
  1805. footer=''
  1806. title="项目资料"
  1807. width='500px'
  1808. visible={this.state.visitModulx}
  1809. onOk={this.visitOkc}
  1810. onCancel={this.visitCancelc}
  1811. > <Form layout="horizontal" onSubmit={this.newSubmitx} id="demand-form">
  1812. <Spin spinning={this.state.loading}>
  1813. <div className="clearfix" >
  1814. <FormItem
  1815. {...formItemLayoutc}
  1816. label="年份"
  1817. >
  1818. <Select placeholder="年份" value={this.state.year} style={{width:'90%'}}
  1819. onChange={(e)=>{this.setState({year:e})}}>
  1820. {
  1821. year.map(function (item) {
  1822. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1823. })
  1824. }
  1825. </Select>
  1826. </FormItem>
  1827. </div>
  1828. <div className="clearfix" >
  1829. <FormItem
  1830. {...formItemLayoutc}
  1831. label="项目名称"
  1832. >
  1833. <Input placeholder="项目名称" style={{width:'90%'}} value={this.state.projectName} onChange={(e) => {
  1834. this.setState({ projectName: e.target.value }) }} />
  1835. </FormItem>
  1836. </div>
  1837. <div className="clearfix" >
  1838. <FormItem
  1839. {...formItemLayoutc}
  1840. label="项目状态"
  1841. >
  1842. <Select placeholder="项目状态" value={this.state.status} style={{width:'90%'}}
  1843. onChange={(e)=>{this.setState({status:e})}}>
  1844. {
  1845. xiangmoState.map(function (item) {
  1846. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1847. })
  1848. }
  1849. </Select>
  1850. </FormItem>
  1851. </div>
  1852. <div className="clearfix" >
  1853. <FormItem
  1854. {...formItemLayoutc}
  1855. label="备注"
  1856. >
  1857. <Input type="textarea" rows={3} placeholder="备注" style={{width:'90%'}} value={this.state.remark} onChange={(e) => {
  1858. this.setState({ remark: e.target.value }) }} />
  1859. </FormItem>
  1860. </div>
  1861. <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:"100px"}}>保存</Button>
  1862. <Button type="ghost" onClick={this.visitCancelc}>取消</Button>
  1863. </Spin>
  1864. </Form>
  1865. </Modal>
  1866. <TechAchievementDesc
  1867. data={this.state.RowData}
  1868. detailApiUrl={this.props['data-detailApiUrl']}
  1869. achievementCategoryOption={this.state.achievementCategoryOption}
  1870. showDesc={this.state.showDesc}
  1871. uid={this.state.uid}
  1872. closeDesc={this.closeDesc}
  1873. loadDatas={this.loadDatas}
  1874. />
  1875. </div >
  1876. );
  1877. }
  1878. }));
  1879. export default IntentionCustomer;