crm.jsx 72 KB

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