| 
					
				 | 
			
			
				@@ -2,7 +2,7 @@ import React from 'react'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { Icon, Button, Input, Select, Spin, Table, DatePicker, message, Cascader, Switch, Modal } from 'antd'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { copyrightStateList } from '../../../dataDic.js'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { provinceSelect, getProvince } from '../../../NewDicProvinceList'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { getTime, companySearch, getCopyrightState, getInUrgentTime, getSearchUrl } from '../../../tools.js'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getTime, companySearch, getCopyrightState, getInUrgentTime, getVacations, getSearchUrl } from '../../../tools.js'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ajax from 'jquery/src/ajax/xhr.js'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import $ from 'jquery/src/ajax'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import PatentAdd from './comPatentAdd.jsx'; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10,6 +10,7 @@ import PatentChange from './comPatentChange.jsx'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import moment from 'moment'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import './copyright.less'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const vacations = getVacations(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const copyright = React.createClass({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     loadData(pageNo) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -234,95 +235,7 @@ const copyright = React.createClass({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return '共' + total + '条数据'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            columns: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '编号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'serialNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'serialNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '省份', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'province', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'province', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    render: text => { return getProvince(text); } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '合同编号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'contractNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'contractNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '公司名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'unitName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'unitName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '认证状态', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'status', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'status', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    render: (text) => { return getCopyrightState(text) } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '软著名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'copyrightName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'copyrightName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '加急天数', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'inUrgent', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'inUrgent', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    render: (text) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        switch (text) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '不加急(45个工作日)'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 3: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '3个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 5: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '5个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 10: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '6-10个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 15: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '11-15个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 20: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '16-20个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 25: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '21-25个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 30: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '26-30个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            case 35: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return '31-35个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '负责人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'principal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'principal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '派单日', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'createTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'createTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '受理日', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'acceptTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'acceptTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '(预计)下证时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'expectTime', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'expectTime', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    render: (text) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        if (text[0]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            if (text[1]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return getTime(getInUrgentTime(moment(text[0]), text[1])) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                return getTime(getInUrgentTime(moment(text[0]), 45)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'founder', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'founder' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    title: '技术员', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    dataIndex: 'techPrincipal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    key: 'techPrincipal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            vacations: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dataSource: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -371,6 +284,7 @@ const copyright = React.createClass({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getCompanyList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getStateList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getContractList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        getVacations((data) => { this.setState({ vacations: data }); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (window.location.search) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let theObj = getSearchUrl(window.location.search); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (theObj.rid) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -512,6 +426,95 @@ const copyright = React.createClass({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setState({ visible: false }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     render() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const columns = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '编号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'serialNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'serialNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '省份', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'province', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'province', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                render: text => { return getProvince(text); } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '合同编号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'contractNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'contractNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '公司名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'unitName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'unitName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '认证状态', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'status', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'status', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                render: (text) => { return getCopyrightState(text) } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '软著名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'copyrightName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'copyrightName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '加急天数', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'inUrgent', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'inUrgent', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                render: (text) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    switch (text) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '不加急(45个工作日)'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 3: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '3个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 5: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '5个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 10: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '6-10个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 15: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '11-15个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 20: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '16-20个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 25: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '21-25个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 30: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '26-30个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 35: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return '31-35个工作日'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '负责人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'principal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'principal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '派单日', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'createTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'createTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '受理日', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'acceptTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'acceptTimeFormattedDate', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '(预计)下证时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'expectTime', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'expectTime', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                render: (text) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (text[0]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (text[1]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return getTime(getInUrgentTime(moment(text[0]), text[1], this.state.vacations)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return getTime(getInUrgentTime(moment(text[0]), 45, this.state.vacations)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'founder', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'founder' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                title: '技术员', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                dataIndex: 'techPrincipal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                key: 'techPrincipal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const rowSelection = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             selectedRowKeys: this.state.selectedRowKeys, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             onChange: (selectedRowKeys, selectedRows) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -586,7 +589,7 @@ const copyright = React.createClass({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div className="foster-table"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <Spin spinning={this.state.loading}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <Table columns={this.state.columns} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            <Table columns={columns} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 rowSelection={rowSelection} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 dataSource={this.state.dataSource} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 pagination={this.state.pagination} 
			 |