|
@@ -1,20 +1,20 @@
|
|
|
-import React,{Component} from "react";
|
|
|
-import {Button, Cascader, Input, message, Select, Spin, Table, Tabs, Tooltip} from "antd";
|
|
|
+import React, { Component } from "react";
|
|
|
+import { Button, Cascader, Input, message, Select, Spin, Table, Tabs, Tooltip } from "antd";
|
|
|
import $ from "jquery/src/ajax";
|
|
|
-import {ChooseList} from "../../../order/orderNew/chooseList";
|
|
|
-import {projectStatusCascader } from '@/dataDic.js';
|
|
|
+import { ChooseList } from "../../../order/orderNew/chooseList";
|
|
|
+import { projectStatusCascader } from '@/dataDic.js';
|
|
|
import CheckInfor from './checkInfor';
|
|
|
import OrderInfor from "./orderInfor";
|
|
|
|
|
|
const TabPane = Tabs.TabPane;
|
|
|
|
|
|
-class BusinessManagement extends Component{
|
|
|
+class BusinessManagement extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
- this.state={
|
|
|
- changeList:[],
|
|
|
- pageNo:1,
|
|
|
- columns:[
|
|
|
+ this.state = {
|
|
|
+ changeList: [],
|
|
|
+ pageNo: 1,
|
|
|
+ columns: [
|
|
|
{
|
|
|
title: '项目编号',
|
|
|
dataIndex: 'id',
|
|
@@ -39,10 +39,10 @@ class BusinessManagement extends Component{
|
|
|
return (
|
|
|
<Tooltip title={text}>
|
|
|
<div style={{
|
|
|
- maxWidth:'100px',
|
|
|
- overflow:'hidden',
|
|
|
+ maxWidth: '100px',
|
|
|
+ overflow: 'hidden',
|
|
|
textOverflow: "ellipsis",
|
|
|
- whiteSpace:'nowrap',
|
|
|
+ whiteSpace: 'nowrap',
|
|
|
}}>{text}</div>
|
|
|
</Tooltip>
|
|
|
)
|
|
@@ -72,10 +72,10 @@ class BusinessManagement extends Component{
|
|
|
return (
|
|
|
<Tooltip title={text}>
|
|
|
<div style={{
|
|
|
- maxWidth:'100px',
|
|
|
- overflow:'hidden',
|
|
|
+ maxWidth: '100px',
|
|
|
+ overflow: 'hidden',
|
|
|
textOverflow: "ellipsis",
|
|
|
- whiteSpace:'nowrap',
|
|
|
+ whiteSpace: 'nowrap',
|
|
|
}}>{text}</div>
|
|
|
</Tooltip>
|
|
|
)
|
|
@@ -100,7 +100,7 @@ class BusinessManagement extends Component{
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
key: 'operation',
|
|
|
- render: (text,record) => {
|
|
|
+ render: (text, record) => {
|
|
|
return (
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -108,8 +108,8 @@ class BusinessManagement extends Component{
|
|
|
onClick={(e) => {
|
|
|
e.stopPropagation();
|
|
|
this.setState({
|
|
|
- visible:true,
|
|
|
- infor:record
|
|
|
+ visible: true,
|
|
|
+ infor: record
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
@@ -120,18 +120,18 @@ class BusinessManagement extends Component{
|
|
|
}
|
|
|
},
|
|
|
],
|
|
|
- dataSource:[],
|
|
|
- infor:{},
|
|
|
+ dataSource: [],
|
|
|
+ infor: {},
|
|
|
|
|
|
|
|
|
- nameSearch : '',
|
|
|
- orderNoSearch : '',
|
|
|
- contractNoSearch : undefined,
|
|
|
- taskNoSearch : '',
|
|
|
- departmenttSearch : undefined,
|
|
|
- projectStatusSearch : [], //项目状态
|
|
|
- approvalSearch : undefined,
|
|
|
- outsourceStatusSearch : [],
|
|
|
+ nameSearch: '',
|
|
|
+ orderNoSearch: '',
|
|
|
+ contractNoSearch: undefined,
|
|
|
+ taskNoSearch: '',
|
|
|
+ departmenttSearch: undefined,
|
|
|
+ projectStatusSearch: [], //项目状态
|
|
|
+ approvalSearch: undefined,
|
|
|
+ outsourceStatusSearch: [],
|
|
|
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
@@ -146,7 +146,7 @@ class BusinessManagement extends Component{
|
|
|
},
|
|
|
},
|
|
|
|
|
|
- departmentArr:[]
|
|
|
+ departmentArr: []
|
|
|
}
|
|
|
this.loadData = this.loadData.bind(this);
|
|
|
this.changeList = this.changeList.bind(this);
|
|
@@ -188,7 +188,7 @@ class BusinessManagement extends Component{
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = []
|
|
|
- if(data.error.length === 0){
|
|
|
+ if (data.error.length === 0) {
|
|
|
for (let i = 0; i < data.data.list.length; i++) {
|
|
|
let thisdata = data.data.list[i];
|
|
|
thisdata.key = i;
|
|
@@ -203,9 +203,9 @@ class BusinessManagement extends Component{
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination,
|
|
|
- pageNo:data.data.pageNo
|
|
|
+ pageNo: data.data.pageNo
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
message.warning(data.error[0].message)
|
|
|
}
|
|
|
}.bind(this),
|
|
@@ -218,7 +218,7 @@ class BusinessManagement extends Component{
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- changeList(arr){
|
|
|
+ changeList(arr) {
|
|
|
const newArr = [];
|
|
|
this.state.columns.forEach(item => {
|
|
|
arr.forEach(val => {
|
|
@@ -273,17 +273,17 @@ class BusinessManagement extends Component{
|
|
|
)
|
|
|
}
|
|
|
|
|
|
- reset(){
|
|
|
+ reset() {
|
|
|
this.setState({
|
|
|
- nameSearch : '',
|
|
|
- orderNoSearch : '',
|
|
|
- contractNoSearch : undefined,
|
|
|
- taskNoSearch : '',
|
|
|
- departmenttSearch : undefined,
|
|
|
- projectStatusSearch : [], //项目状态
|
|
|
- approvalSearch : undefined,
|
|
|
- outsourceStatusSearch : [],
|
|
|
- },()=>{
|
|
|
+ nameSearch: '',
|
|
|
+ orderNoSearch: '',
|
|
|
+ contractNoSearch: undefined,
|
|
|
+ taskNoSearch: '',
|
|
|
+ departmenttSearch: undefined,
|
|
|
+ projectStatusSearch: [], //项目状态
|
|
|
+ approvalSearch: undefined,
|
|
|
+ outsourceStatusSearch: [],
|
|
|
+ }, () => {
|
|
|
this.loadData();
|
|
|
})
|
|
|
}
|
|
@@ -291,8 +291,10 @@ class BusinessManagement extends Component{
|
|
|
render() {
|
|
|
return (
|
|
|
<div className="user-content">
|
|
|
- <div className="content-title">
|
|
|
+ <div className="content-title" style={{ marginBottom: 10 }}>
|
|
|
<span style={{ fontWeight: 900, fontSize: 16 }}>核对专利</span>
|
|
|
+ </div>
|
|
|
+ <div className="user-search">
|
|
|
<Tabs
|
|
|
defaultActiveKey="1"
|
|
|
className="test"
|
|
@@ -346,7 +348,7 @@ class BusinessManagement extends Component{
|
|
|
style={{ width: 150, marginRight: '10px' }}
|
|
|
options={projectStatusCascader}
|
|
|
value={this.state.projectStatusSearch}
|
|
|
- onChange={(e)=>{
|
|
|
+ onChange={(e) => {
|
|
|
this.setState({
|
|
|
projectStatusSearch: e
|
|
|
})
|
|
@@ -375,7 +377,7 @@ class BusinessManagement extends Component{
|
|
|
<Select.Option key={2}>外包审核驳回</Select.Option>
|
|
|
<Select.Option key={999}>全部</Select.Option>
|
|
|
</Select>
|
|
|
- <Button type="primary" onClick={()=>{
|
|
|
+ <Button type="primary" onClick={() => {
|
|
|
this.loadData();
|
|
|
}}>
|
|
|
搜索
|
|
@@ -401,34 +403,34 @@ class BusinessManagement extends Component{
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
- <div className="patent-table">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <Table
|
|
|
- size="middle"
|
|
|
- columns={
|
|
|
- this.state.changeList.length !== 0
|
|
|
- ? this.state.changeList
|
|
|
- : this.state.columns
|
|
|
- }
|
|
|
- dataSource={this.state.dataSource}
|
|
|
- pagination={this.state.pagination}
|
|
|
- onRowClick={(record)=>{
|
|
|
- this.setState({
|
|
|
- orderVisible:true,
|
|
|
- orderNo:record.orderNo
|
|
|
- })
|
|
|
- }}
|
|
|
- />
|
|
|
- </Spin>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div className="patent-table">
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Table
|
|
|
+ size="middle"
|
|
|
+ columns={
|
|
|
+ this.state.changeList.length !== 0
|
|
|
+ ? this.state.changeList
|
|
|
+ : this.state.columns
|
|
|
+ }
|
|
|
+ dataSource={this.state.dataSource}
|
|
|
+ pagination={this.state.pagination}
|
|
|
+ onRowClick={(record) => {
|
|
|
+ this.setState({
|
|
|
+ orderVisible: true,
|
|
|
+ orderNo: record.orderNo
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </Spin>
|
|
|
</div>
|
|
|
{this.state.visible ? <CheckInfor
|
|
|
visible={this.state.visible}
|
|
|
infor={this.state.infor}
|
|
|
- onCancel={()=>{
|
|
|
+ onCancel={() => {
|
|
|
this.setState({
|
|
|
- visible:false,
|
|
|
- infor:{}
|
|
|
+ visible: false,
|
|
|
+ infor: {}
|
|
|
})
|
|
|
this.loadData(this.state.pageNo);
|
|
|
}}
|
|
@@ -436,10 +438,10 @@ class BusinessManagement extends Component{
|
|
|
{this.state.orderVisible ? <OrderInfor
|
|
|
visible={this.state.orderVisible}
|
|
|
orderNo={this.state.orderNo}
|
|
|
- onCancel={()=>{
|
|
|
+ onCancel={() => {
|
|
|
this.setState({
|
|
|
- orderVisible:false,
|
|
|
- orderNo:''
|
|
|
+ orderVisible: false,
|
|
|
+ orderNo: ''
|
|
|
})
|
|
|
}}
|
|
|
/> : null}
|