cognizance.jsx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. import React from 'react';
  2. import { Icon, InputNumber, Form, Button, Input, Radio, Select, Spin, Table, message, Cascader, Modal } from 'antd';
  3. import { provinceArr, cognizanceStateList } from '../../dataDic.js';
  4. import { techFieldList } from '../../DicTechFieldList.js';
  5. import { getTime, getCognizanceState } from '../../tools.js';
  6. import ajax from 'jquery/src/ajax/xhr.js';
  7. import $ from 'jquery/src/ajax';
  8. import moment from 'moment';
  9. import './cognizance.less';
  10. const CognizanceDescFrom = Form.create()(React.createClass({
  11. loadData() {
  12. this.setState({
  13. loading: true
  14. });
  15. $.ajax({
  16. method: "post",
  17. dataType: "json",
  18. crossDomain: false,
  19. url: globalConfig.context + "/techservice/cognizance/cognizanceDetail",
  20. data: {
  21. cid: this.props.data.cid,
  22. year: this.props.data.year
  23. },
  24. success: function (data) {
  25. if (data.error.length || !data.data) {
  26. message.warning(data.error[0].message);
  27. return;
  28. };
  29. this.state.data = data.data;
  30. this.state.cid = this.props.data.cid;
  31. this.state.moneyTable = [{
  32. key: 1,
  33. year: '第一年',
  34. netAsset: data.data.netAsset1,
  35. salesRevenue: data.data.salesRevenue1,
  36. grossProfit: data.data.grossProfit1
  37. }, {
  38. key: 2,
  39. year: '第二年',
  40. netAsset: data.data.netAsset2,
  41. salesRevenue: data.data.salesRevenue2,
  42. grossProfit: data.data.grossProfit2
  43. }, {
  44. key: 3,
  45. year: '第三年',
  46. netAsset: data.data.netAsset3,
  47. salesRevenue: data.data.salesRevenue3,
  48. grossProfit: data.data.grossProfit3
  49. }];
  50. }.bind(this),
  51. }).always(function () {
  52. this.setState({
  53. loading: false
  54. });
  55. }.bind(this));
  56. },
  57. getStateData() {
  58. this.setState({
  59. loading: true
  60. });
  61. $.ajax({
  62. method: "post",
  63. dataType: "json",
  64. crossDomain: false,
  65. url: globalConfig.context + "/techservice/cognizance/cognizanceLog",
  66. data: {
  67. cid: this.props.data.cid
  68. },
  69. success: function (data) {
  70. if (data.error.length || !data.data) {
  71. message.warning(data.error[0].message);
  72. return;
  73. };
  74. this.state.stateTable = [];
  75. for (let i = 0; i < data.data.length; i++) {
  76. this.state.stateTable.push({
  77. key: i,
  78. recordTimeFormattedDate: data.data[i].recordTimeFormattedDate,
  79. state: String(data.data[i].state),
  80. principal: data.data[i].principal,
  81. operator: data.data[i].operator,
  82. comment: data.data[i].comment
  83. });
  84. };
  85. }.bind(this),
  86. }).always(function () {
  87. this.setState({
  88. loading: false
  89. });
  90. }.bind(this));
  91. },
  92. getInitialState() {
  93. return {
  94. loading: false,
  95. stateOption: [],
  96. moneyColumns: [{
  97. title: '',
  98. dataIndex: 'year',
  99. key: 'year',
  100. }, {
  101. title: '净资产',
  102. dataIndex: 'netAsset',
  103. key: 'netAsset',
  104. }, {
  105. title: '销售收入',
  106. dataIndex: 'salesRevenue',
  107. key: 'salesRevenue',
  108. }, {
  109. title: '利润总和',
  110. dataIndex: 'grossProfit',
  111. key: 'grossProfit',
  112. }],
  113. stateColumns: [{
  114. title: '专利状态',
  115. dataIndex: 'state',
  116. key: 'state',
  117. render: (text) => { return getCognizanceState(text) }
  118. }, {
  119. title: '处理时间',
  120. dataIndex: 'recordTimeFormattedDate',
  121. key: 'recordTimeFormattedDate',
  122. }, {
  123. title: '负责人',
  124. dataIndex: 'principal',
  125. key: 'principal',
  126. }, {
  127. title: '操作人',
  128. dataIndex: 'operator',
  129. key: 'operator',
  130. }, {
  131. title: '备注',
  132. dataIndex: 'comment',
  133. key: 'comment',
  134. }]
  135. };
  136. },
  137. componentWillMount() {
  138. let _me = this;
  139. cognizanceStateList.map(function (item) {
  140. _me.state.stateOption.push(
  141. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  142. )
  143. });
  144. this.loadData();
  145. this.getStateData();
  146. },
  147. handleSubmit(e) {
  148. e.preventDefault();
  149. this.props.form.validateFields((err, values) => {
  150. if (!err) {
  151. this.props.spinState(true);
  152. $.ajax({
  153. method: "POST",
  154. dataType: "json",
  155. crossDomain: false,
  156. url: globalConfig.context + "/techservice/cognizance/disposeCognizanceDetail",
  157. data: {
  158. id: this.props.data.cid,
  159. technicalField1: values.technicalField[0],
  160. technicalField2: values.technicalField[1],
  161. technicalField3: values.technicalField[2],
  162. basicResearchCost: values.basicResearchCost,
  163. accident: values.accident
  164. }
  165. }).done(function (data) {
  166. if (!data.error.length) {
  167. message.success('保存成功!');
  168. this.props.clickOk();
  169. this.props.form.resetFields();
  170. this.state.targetKeys = [];
  171. this.state.selectedKeys = [];
  172. this.props.spinState(false);
  173. } else {
  174. message.warning(data.error[0].message);
  175. this.props.spinState(false);
  176. }
  177. }.bind(this));
  178. }
  179. });
  180. },
  181. componentWillReceiveProps(nextProps) {
  182. if (!this.props.visible && nextProps.visible) {
  183. this.getStateData();
  184. this.loadData();
  185. };
  186. },
  187. render() {
  188. const FormItem = Form.Item;
  189. const { getFieldDecorator } = this.props.form;
  190. const theData = this.state.data;
  191. const formItemLayout = {
  192. labelCol: { span: 6 },
  193. wrapperCol: { span: 12 },
  194. };
  195. const _me = this;
  196. if (this.state.data) {
  197. return (
  198. <Form onSubmit={this.handleSubmit} id="highTechApply-form">
  199. <div className="clearfix">
  200. <div className="half-item">
  201. <span className="item-title">公司名称: </span>
  202. <span>{theData.unitName}</span>
  203. </div>
  204. <div className="half-item">
  205. <span className="item-title">公司组织机构代码: </span>
  206. <span>{theData.orgCode}</span>
  207. </div>
  208. <div className="half-item">
  209. <span className="item-title">公司地址: </span>
  210. <span>{theData.postalAddress}</span>
  211. </div>
  212. <FormItem className="half-item"
  213. labelCol={{ span: 6 }}
  214. wrapperCol={{ span: 14 }}
  215. >
  216. {getFieldDecorator('contacts', {
  217. rules: [{ required: true, message: '此项为必填项!' }],
  218. initialValue: theData.contacts
  219. })(
  220. <Select placeholder='选择一个联系人'>{this.props.contactsOption}</Select>
  221. )}
  222. </FormItem>
  223. </div>
  224. <FormItem style={{ width: '50%' }}
  225. labelCol={{ span: 0 }}
  226. wrapperCol={{ span: 24 }}
  227. label="技术领域"
  228. >
  229. <span className="item-title">技术领域: </span>
  230. {getFieldDecorator('technicalField', {
  231. rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
  232. initialValue: [Number(theData.technicalField1), Number(theData.technicalField2), Number(theData.technicalField3)]
  233. })(
  234. <Cascader options={techFieldList} placeholder="请选择技术领域" />
  235. )}
  236. </FormItem>
  237. <div className="clearfix">
  238. <div>
  239. <span className="form-title">获得知识产权数量(件): </span>
  240. </div>
  241. <div className="half-item">
  242. <span className="item-title">一类: </span>
  243. <span>{theData.firstCatagory}</span>
  244. </div>
  245. <div className="half-item">
  246. <span className="item-title">二类: </span>
  247. <span>{theData.secondCatagory}</span>
  248. </div>
  249. </div>
  250. <div className="clearfix">
  251. <div>
  252. <span className="form-title">人力资源状况(人): </span>
  253. </div>
  254. <div className="half-item">
  255. <span className="item-title">职工总数: </span>
  256. <span>{theData.firmTotal}</span>
  257. </div>
  258. <div className="half-item">
  259. <span className="item-title">科技人员数: </span>
  260. <span>{theData.techTotal}</span>
  261. </div>
  262. </div>
  263. <div className="form-title">近三年经营状况(万元): </div>
  264. <Table pagination={false} dataSource={this.state.moneyTable} columns={this.state.moneyColumns} />
  265. <div className="clearfix">
  266. <div><span className="form-title">近三年研究开发费用总额(万元): </span></div>
  267. <div className="third-item">
  268. <div className="item-title">近三年研究开发费用总额</div>
  269. <p>{theData.researchCost}</p>
  270. </div>
  271. <div className="third-item">
  272. <div className="item-title">其中: 在中国境内研发费用总和</div>
  273. <p>{theData.territory}</p>
  274. </div>
  275. <div className="third-item">
  276. <div className="item-title">其中: 基础研究投入费用总额</div>
  277. <div>
  278. <FormItem
  279. labelCol={{ span: 0 }}
  280. wrapperCol={{ span: 24 }}
  281. >
  282. {getFieldDecorator('basicResearchCost', {
  283. rules: [{ type: 'number', required: true, message: '此项为必填项!' }],
  284. initialValue: theData.basicResearchCost
  285. })(
  286. <InputNumber />
  287. )}
  288. </FormItem>
  289. </div>
  290. </div>
  291. </div>
  292. <div>
  293. <span className="item-title">近一年企业总收入(万元): </span>
  294. <span>{theData.totalRevenue}</span>
  295. </div>
  296. <div>
  297. <span className="item-title">近一年高新技术产品收入(万元): </span>
  298. <span>{theData.lastYearRevenue}</span>
  299. </div>
  300. <div className="item-title">申请认定前一年内是否发生过重大安全、重大质量或严重环境违法行为</div>
  301. <FormItem
  302. labelCol={{ span: 0 }}
  303. wrapperCol={{ span: 24 }}
  304. >
  305. {getFieldDecorator('accident', {
  306. rules: [{ type: 'number', required: true, message: '此项为必填项!' }],
  307. initialValue: theData.accident
  308. })(
  309. <Radio.Group>
  310. <Radio value={0}>否</Radio>
  311. <Radio value={1}>是</Radio>
  312. </Radio.Group>
  313. )}
  314. </FormItem>
  315. <div className="form-title">状态流转记录: </div>
  316. <Table pagination={false} dataSource={this.state.stateTable} columns={this.state.stateColumns} />
  317. <FormItem style={{ marginTop: '20px' }}>
  318. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  319. <Button type="ghost" style={{ marginLeft: '20px' }} onClick={this.props.closeModal}>取消</Button>
  320. </FormItem>
  321. </Form >
  322. );
  323. } else {
  324. return (<div></div>)
  325. };
  326. },
  327. }));
  328. const CognizanceDesc = React.createClass({
  329. getInitialState() {
  330. return {
  331. visible: false,
  332. loading: false
  333. };
  334. },
  335. componentWillReceiveProps(nextProps) {
  336. this.state.visible = nextProps.showDesc
  337. },
  338. showModal() {
  339. this.setState({
  340. visible: true,
  341. });
  342. },
  343. handleOk() {
  344. this.setState({
  345. visible: false,
  346. });
  347. this.props.closeDesc(false, true);
  348. },
  349. handleCancel(e) {
  350. this.setState({
  351. visible: false,
  352. });
  353. this.props.closeDesc(false);
  354. },
  355. spinChange(e) {
  356. this.setState({
  357. loading: e
  358. });
  359. },
  360. render() {
  361. return (
  362. <div className="patent-addNew">
  363. <Spin spinning={this.state.loading} className='spin-box'>
  364. <Modal title="高企管理" visible={this.state.visible}
  365. onOk={this.handleOk} onCancel={this.handleCancel}
  366. width='1000px'
  367. footer=''
  368. >
  369. <CognizanceDescFrom
  370. visible={this.state.visible}
  371. contactsOption={this.props.contactsOption}
  372. data={this.props.data}
  373. spinState={this.spinChange}
  374. closeModal={this.handleCancel}
  375. clickOk={this.handleOk} />
  376. </Modal>
  377. </Spin>
  378. </div>
  379. );
  380. }
  381. });
  382. const CognizanceAdd = React.createClass({
  383. getInitialState() {
  384. return {
  385. visible: false,
  386. loading: false,
  387. yearOption: []
  388. };
  389. },
  390. componentWillReceiveProps(nextProps) {
  391. this.state.visible = nextProps.showAdd
  392. },
  393. componentWillMount() {
  394. let d = new Date();
  395. let _me = this;
  396. d = d.getFullYear() - 1;
  397. this.state.thisYear = d;
  398. for (let i = d; i < d + 20; i++) {
  399. _me.state.yearOption.push(
  400. <Select.Option value={i.toString()} key={i}>{i}</Select.Option>
  401. )
  402. };
  403. },
  404. showModal() {
  405. this.setState({
  406. visible: true,
  407. });
  408. },
  409. handleOk() {
  410. this.setState({
  411. loading: true
  412. });
  413. if (!this.state.year) {
  414. message.warning('请选择年份!');
  415. this.setState({
  416. loading: false
  417. });
  418. return;
  419. };
  420. if (!this.state.contacts) {
  421. message.warning('请选择一个联系人!');
  422. this.setState({
  423. loading: false
  424. });
  425. return;
  426. };
  427. $.ajax({
  428. method: "POST",
  429. dataType: "json",
  430. crossDomain: false,
  431. url: globalConfig.context + "/techservice/cognizance/applyCognizance",
  432. data: {
  433. year: this.state.year,
  434. contacts: this.state.contacts,
  435. comment: this.state.comment,
  436. state: this.state.year == this.state.thisYear ? 0 : 7
  437. }
  438. }).done(function (data) {
  439. if (!data.error.length) {
  440. message.success('保存成功!');
  441. this.setState({
  442. visible: false
  443. });
  444. this.props.closeAdd(false, true);
  445. } else {
  446. message.warning(data.error[0].message);
  447. this.setState({
  448. loading: false
  449. });
  450. }
  451. }.bind(this));
  452. },
  453. handleCancel(e) {
  454. this.setState({
  455. visible: false,
  456. });
  457. this.props.closeAdd(false);
  458. },
  459. spinChange(e) {
  460. this.setState({
  461. loading: e
  462. });
  463. },
  464. render() {
  465. return (
  466. <div className="cognizance-add">
  467. <Modal title="高企申请" visible={this.state.visible}
  468. onOk={this.handleOk} onCancel={this.handleCancel}
  469. width='800px'
  470. footer={[
  471. <Button key="submit" type="primary" loading={this.state.loading} onClick={this.handleOk}>
  472. 提交
  473. </Button>,
  474. <Button key="back" onClick={this.handleCancel}>
  475. 返回
  476. </Button>,
  477. ]}
  478. >
  479. <div className="clearfix">
  480. <div className="half-item">
  481. <span>选择申请年份: </span>
  482. <Select placeholder="请选择年份" style={{ width: 200 }}
  483. onSelect={(e, n) => { this.state.year = e }}>
  484. {this.state.yearOption}
  485. </Select>
  486. </div>
  487. <div className="half-item">
  488. <span>选择联系人: </span>
  489. <Select placeholder="请选择联系人" style={{ width: 200 }}
  490. onSelect={(e, n) => { this.state.contacts = e }}>
  491. {this.props.contactsOption}
  492. </Select>
  493. </div>
  494. </div>
  495. <div>
  496. <p>备注: </p>
  497. <p>
  498. <Input type="textarea" rows={6} onChange={(e) => { this.state.comment = e.target.value; }} />
  499. </p>
  500. </div>
  501. </Modal>
  502. </div>
  503. );
  504. }
  505. });
  506. const Cognizance = React.createClass({
  507. loadData(pageNo) {
  508. this.state.data = [];
  509. this.setState({
  510. loading: true
  511. });
  512. $.when($.ajax({
  513. method: "get",
  514. dataType: "json",
  515. crossDomain: false,
  516. url: globalConfig.context + "/techservice/cognizance/getContacts"
  517. }), $.ajax({
  518. method: "post",
  519. dataType: "json",
  520. crossDomain: false,
  521. url: globalConfig.context + "/techservice/cognizance/listCognizance",
  522. data: {
  523. pageNo: pageNo || 1,
  524. pageSize: this.state.pagination.pageSize
  525. }
  526. })).done((data1, data2) => {
  527. this.state.data = [];
  528. if (data1[0].error || !data1[0].data) {
  529. if (data1[0].error.length) {
  530. message.warning(data1[0].error[0].message);
  531. return;
  532. };
  533. };
  534. if (data2[0].error || !data2[0].data || !data2[0].data.list) {
  535. if (data2[0].error.length) {
  536. message.warning(data2[0].error[0].message);
  537. this.state.ButtonDisabled = true;
  538. return;
  539. };
  540. };
  541. let _me = this;
  542. for (let item in data1[0].data) {
  543. let theData = data1[0].data[item];
  544. _me.state.contactsOption.push(
  545. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  546. );
  547. };
  548. for (let i = 0; i < data2[0].data.list.length; i++) {
  549. let thisdata = data2[0].data.list[i];
  550. this.state.data.push({
  551. key: i,
  552. uid: thisdata.uid,
  553. cid: thisdata.cid,
  554. year: thisdata.year,
  555. serialNumber: thisdata.serialNumber,
  556. locationProvince: thisdata.locationProvince,
  557. unitName: thisdata.unitName,
  558. contacts: [thisdata.contacts, {
  559. '1': thisdata.firstContacts,
  560. '2': thisdata.secondContacts,
  561. '3': thisdata.thirdContacts
  562. }],
  563. createTime: thisdata.createTime,
  564. comment: thisdata.comment,
  565. state: thisdata.state,
  566. certificateNumber: thisdata.certificateNumber,
  567. issuingDate: thisdata.issuingDate,
  568. consultant: thisdata.consultant,
  569. createTimeFormattedDate: thisdata.createTimeFormattedDate,
  570. issuingDateFormattedDate: thisdata.issuingDateFormattedDate
  571. });
  572. };
  573. this.state.pagination.current = data2[0].data.pageNo;
  574. this.state.pagination.total = data2[0].data.totalCount;
  575. this.setState({
  576. dataSource: this.state.data,
  577. pagination: this.state.pagination
  578. });
  579. }).always(function () {
  580. this.setState({
  581. loading: false
  582. });
  583. }.bind(this));
  584. },
  585. getInitialState() {
  586. return {
  587. contactsOption: [],
  588. selectedRowKeys: [],
  589. selectedRows: [],
  590. loading: false,
  591. showAdd: false,
  592. showDesc: false,
  593. pagination: {
  594. defaultCurrent: 1,
  595. defaultPageSize: 10,
  596. showQuickJumper: true,
  597. pageSize: 10,
  598. onChange: function (page) {
  599. this.loadData(page);
  600. }.bind(this),
  601. showTotal: function (total) {
  602. return '共' + total + '条数据';
  603. }
  604. },
  605. columns: [
  606. {
  607. title: '编号',
  608. dataIndex: 'serialNumber',
  609. key: 'serialNumber'
  610. }, {
  611. title: '联系人',
  612. dataIndex: 'contacts',
  613. key: 'contacts',
  614. render: (text) => {
  615. for (let item in text[1]) {
  616. if (text[0] == item) {
  617. return text[1][item];
  618. };
  619. };
  620. }
  621. }, {
  622. title: '派单日',
  623. dataIndex: 'createTimeFormattedDate',
  624. key: 'createTimeFormattedDate'
  625. }, {
  626. title: '状态',
  627. dataIndex: 'state',
  628. key: 'state',
  629. render: (text) => { return getCognizanceState(text) }
  630. }, {
  631. title: '证书编号',
  632. dataIndex: 'certificateNumber',
  633. key: 'certificateNumber'
  634. }, {
  635. title: '发证日',
  636. dataIndex: 'issuingDateFormattedDate',
  637. key: 'issuingDateFormattedDate'
  638. }, {
  639. title: '到期日',
  640. dataIndex: 'issuingDate',
  641. key: 'issuingDate',
  642. render: (text) => { return getTime(text, 36) }
  643. }, {
  644. title: '咨询师',
  645. dataIndex: 'consultant',
  646. key: 'consultant'
  647. }
  648. ],
  649. dataSource: []
  650. };
  651. },
  652. componentWillMount() {
  653. this.loadData();
  654. },
  655. tableRowClick(record, index) {
  656. this.state.RowData = record;
  657. this.setState({
  658. showDesc: true
  659. });
  660. },
  661. addClick() {
  662. this.setState({
  663. showAdd: true
  664. });
  665. },
  666. // delectRow() {
  667. // let deletedIds = [];
  668. // for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  669. // let rowItem = this.state.selectedRows[idx];
  670. // if (rowItem.id) {
  671. // deletedIds.push(rowItem.id)
  672. // }
  673. // }
  674. // this.setState({
  675. // selectedRowKeys: [],
  676. // loading: deletedIds.length > 0
  677. // });
  678. // $.ajax({
  679. // method: "POST",
  680. // dataType: "json",
  681. // crossDomain: false,
  682. // url: globalConfig.context + "/techservice/cognizance/deleteTechProduct",
  683. // data: {
  684. // ids: deletedIds
  685. // }
  686. // }).done(function (data) {
  687. // if (!data.error.length) {
  688. // message.success('保存成功!');
  689. // this.setState({
  690. // loading: false,
  691. // });
  692. // } else {
  693. // message.warning(data.error[0].message);
  694. // };
  695. // this.loadData();
  696. // }.bind(this));
  697. // },
  698. closeDesc(e, s) {
  699. this.state.showDesc = e;
  700. if (s) {
  701. this.loadData();
  702. };
  703. },
  704. closeAdd(e, s) {
  705. this.state.showAdd = e;
  706. if (s) {
  707. this.loadData();
  708. };
  709. },
  710. // search() {
  711. // this.loadData();
  712. // },
  713. // reset() {
  714. // this.loadData();
  715. // },
  716. render() {
  717. const rowSelection = {
  718. selectedRowKeys: this.state.selectedRowKeys,
  719. onChange: (selectedRowKeys, selectedRows) => {
  720. this.setState({
  721. selectedRows: selectedRows,
  722. selectedRowKeys: selectedRowKeys
  723. });
  724. }
  725. };
  726. const hasSelected = this.state.selectedRowKeys.length > 0;
  727. return (
  728. <div className="user-content" >
  729. <div className="content-title">
  730. <span>高企申请管理</span>
  731. </div>
  732. <div className="user-search">
  733. <p>
  734. <Button style={{ background: "#ea0862", border: "none", color: "#fff" }}
  735. disabled={this.state.ButtonDisabled}
  736. onClick={this.addClick}>添加<Icon type="plus" /></Button>
  737. <Button style={{ background: "#3fcf9e", border: "none", color: "#fff", display: 'none' }}
  738. disabled={!hasSelected}
  739. onClick={this.delectRow}>删除<Icon type="minus" /></Button>
  740. </p>
  741. </div>
  742. <div className="patent-table">
  743. <Spin spinning={this.state.loading}>
  744. <Table columns={this.state.columns}
  745. dataSource={this.state.dataSource}
  746. pagination={this.state.pagination}
  747. //rowSelection={rowSelection}
  748. onRowClick={this.tableRowClick} />
  749. </Spin>
  750. </div>
  751. <CognizanceDesc
  752. data={this.state.RowData}
  753. contactsOption={this.state.contactsOption}
  754. showDesc={this.state.showDesc}
  755. closeDesc={this.closeDesc} />
  756. <CognizanceAdd
  757. contactsOption={this.state.contactsOption}
  758. showAdd={this.state.showAdd}
  759. closeAdd={this.closeAdd} />
  760. </div >
  761. );
  762. }
  763. });
  764. export default Cognizance;