crm.jsx 72 KB

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