| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 | 
							- import React from 'react';
 
- import { Icon, Button, Select, Spin, Table, message, DatePicker } from 'antd';
 
- import { provinceArr } from '../../../dataDic.js';
 
- import { getTime, getPatentType, getPatentState,companySearch } from '../../../tools.js';
 
- import ajax from 'jquery/src/ajax/xhr.js';
 
- import $ from 'jquery/src/ajax';
 
- import './comprehensive.less';
 
- import ApplyFeeDesc from './applyFeeDesc.jsx';
 
- const applyFee = React.createClass({
 
-     loadData(pageNo) {
 
-         this.state.data = [];
 
-         this.setState({
 
-             loading: true
 
-         });
 
-         let page = pageNo || 1,
 
-         pageSize = this.state.pagination.pageSize,
 
-         locationProvince = this.state.province,
 
-         patentApplicationDate = this.state.searchData;
 
-         $.ajax({
 
-             method: "get",
 
-             dataType: "json",
 
-             crossDomain: false,
 
-             url: globalConfig.context + "/api/admin/patent/getApplicationFeeList?pageNo=" + page + "&pageSize=" + pageSize + "&locationProvince=" + locationProvince + "&patentApplicationDate=" + patentApplicationDate,
 
-             success: function (data) {
 
-                 if (data.error.length || !data.data || !data.data.list) {
 
-                     message.warning(data.error[0].message);
 
-                     return;
 
-                 }
 
-                 for (let i = 0; i < data.data.list.length; i++) {
 
-                     let thisdata = data.data.list[i];
 
-                     this.state.data.push({
 
-                         key: i,
 
-                         cid: thisdata.cid,
 
-                         number: thisdata.serialNumber,
 
-                         province: thisdata.locationProvince,
 
-                         patentNumber: thisdata.patentNumber,
 
-                         unitName: thisdata.unitName,
 
-                         patentName: thisdata.patentName,
 
-                         patentApplicationDate: thisdata.patentApplicationDate,
 
-                         endTime: thisdata.patentApplicationDate,
 
-                         paymentState: thisdata.paymentState,
 
-                         applicationFee: thisdata.applicationFee,
 
-                         trialFee: thisdata.trialFee,
 
-                         printingFee: thisdata.printingFee,
 
-                         funds: thisdata.funds,
 
-                         reimbursement: thisdata.reimbursement,
 
-                     });
 
-                 };
 
-                 this.state.pagination.current = data.data.pageNo;
 
-                 this.state.pagination.total = data.data.totalCount;
 
-                 this.setState({
 
-                     dataSource: this.state.data,
 
-                     pagination: this.state.pagination
 
-                 });
 
-             }.bind(this),
 
-         }).always(function () {
 
-             this.setState({
 
-                 loading: false
 
-             });
 
-         }.bind(this));
 
-     },
 
-     getInitialState() {
 
-         return {
 
-             number: '',
 
-             patentNumber: '',
 
-             //office: 事务所,
 
-             province: '',
 
-             unitName: '',
 
-             patentType: '',
 
-             patentName: '',
 
-             provinceOption: [],
 
-             data: [],
 
-             loading: false,
 
-             pagination: {
 
-                 defaultCurrent: 1,
 
-                 defaultPageSize: 10,
 
-                 showQuickJumper: true,
 
-                 pageSize: 10,
 
-                 onChange: function (page) {
 
-                     this.loadData(page);
 
-                 }.bind(this),
 
-                 showTotal: function (total) {
 
-                     return '共' + total + '条数据';
 
-                 }
 
-             },
 
-             columns: [
 
-                 {
 
-                     title: '编号',
 
-                     dataIndex: 'number',
 
-                     key: 'number',
 
-                 }, {
 
-                     title: '申请号/专利号',
 
-                     dataIndex: 'patentNumber',
 
-                     key: 'patentNumber',
 
-                 }, {
 
-                     title: '省份',
 
-                     dataIndex: 'province',
 
-                     key: 'province',
 
-                 }, {
 
-                     title: '公司名称',
 
-                     dataIndex: 'unitName',
 
-                     key: 'unitName',
 
-                 }, {
 
-                     title: '专利名称',
 
-                     dataIndex: 'patentName',
 
-                     key: 'patentName',
 
-                 }, {
 
-                     title: '缴费状态',
 
-                     dataIndex: 'paymentState',
 
-                     key: 'paymentState',
 
-                     render: text => {
 
-                         if (text == '0') {
 
-                             return '待缴费'
 
-                         } else if (text == '1') {
 
-                             return '已缴费'
 
-                         };
 
-                     }
 
-                 }, {
 
-                     title: '申请费',
 
-                     dataIndex: 'applicationFee',
 
-                     key: 'applicationFee',
 
-                 }, {
 
-                     title: '实审费',
 
-                     dataIndex: 'trialFee',
 
-                     key: 'trialFee',
 
-                 }, {
 
-                     title: '文印费',
 
-                     dataIndex: 'printingFee',
 
-                     key: 'printingFee',
 
-                 }, {
 
-                     title: '是否请款',
 
-                     dataIndex: 'funds',
 
-                     key: 'funds',
 
-                     render: text => {
 
-                         if (text == '0') {
 
-                             return '未请款'
 
-                         } else if (text == '1') {
 
-                             return '已请款'
 
-                         };
 
-                     }
 
-                 }, {
 
-                     title: '是否报销',
 
-                     dataIndex: 'reimbursement',
 
-                     key: 'reimbursement',
 
-                     render: text => {
 
-                         if (text == '0') {
 
-                             return '未报销'
 
-                         } else if (text == '1') {
 
-                             return '已报销'
 
-                         };
 
-                     }
 
-                 }, {
 
-                     title: '申请日',
 
-                     dataIndex: 'patentApplicationDate',
 
-                     key: 'patentApplicationDate',
 
-                     render: text => { return getTime(text) }
 
-                 }, {
 
-                     title: '缴费截止时间',
 
-                     dataIndex: 'endTime',
 
-                     key: 'endTime',
 
-                     render: text => { return getTime(text, 2) }
 
-                 }
 
-             ],
 
-             dataSource: []
 
-         };
 
-     },
 
-     componentWillMount() {
 
-         let _me = this;
 
-         provinceArr.map(function (item) {
 
-             _me.state.provinceOption.push(
 
-                 <Select.Option value={item} key={item}>{item}</Select.Option>
 
-             )
 
-         });
 
-         this.loadData();
 
-     },
 
-     tableRowClick(record, index) {
 
-         this.state.RowData = record;
 
-         if (record.annualFeeState !== '1') {
 
-             this.setState({
 
-                 showDesc: true
 
-             });
 
-         };
 
-     },
 
-     closeDesc(e, s) {
 
-         this.state.showDesc = e;
 
-         if (s) {
 
-             this.loadData();
 
-         };
 
-     },
 
-     searchAuthorizedDate(data, dataString) {
 
-         this.state.searchData = dataString;
 
-     },
 
-     search() {
 
-         this.loadData();
 
-     },
 
-     reset() {
 
-         this.state.province = '';
 
-         this.state.searchData = '';
 
-         this.loadData();
 
-     },
 
-     exportApply() {
 
-         window.open(globalConfig.context + "/api/admin/patent/exportApplicationFee?locationProvince="
 
-             + this.state.province + "&patentApplicationDate=" + this.state.searchData);
 
-     },
 
-     render() {
 
-         const { MonthPicker, RangePicker } = DatePicker;
 
-         return (
 
-             <div className="patent-content" >
 
-                 <div className="content-title">
 
-                     <span>专利申请费用管理</span>
 
-                 </div>
 
-                 <div className="patent-query">
 
-                     <Select placeholder="选择省份"
 
-                         style={{ width: 200 }}
 
-                         showSearch
 
-                         filterOption={companySearch}
 
-                         onChange={(e) => { this.state.province = e }}>
 
-                         {this.state.provinceOption}
 
-                     </Select>
 
-                     <span>申请日:<RangePicker onChange={this.searchAuthorizedDate} /></span>
 
-                     <span>
 
-                         <Button type="primary" onClick={this.search}>搜索</Button>
 
-                         <Button onClick={this.reset}>重置</Button>
 
-                         <Button type="ghost" onClick={this.exportApply}>导出</Button>
 
-                     </span>
 
-                 </div>
 
-                 <div className="patent-table">
 
-                     <Spin spinning={this.state.loading}>
 
-                         <Table columns={this.state.columns}
 
-                             dataSource={this.state.dataSource}
 
-                             pagination={this.state.pagination}
 
-                             onRowClick={this.tableRowClick} />
 
-                     </Spin>
 
-                 </div>
 
-                 <ApplyFeeDesc data={this.state.RowData} showDesc={this.state.showDesc} closeDesc={this.closeDesc} />
 
-             </div >
 
-         );
 
-     }
 
- });
 
- export default applyFee;
 
 
  |