|
@@ -1,3 +1,4 @@
|
|
|
+// kptp 财务管理-省内特批
|
|
|
import React from "react";
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import "./public.less";
|
|
@@ -11,7 +12,9 @@ import {
|
|
|
message,
|
|
|
Modal,
|
|
|
Upload,
|
|
|
- Tabs, Popconfirm, Tooltip
|
|
|
+ Tabs,
|
|
|
+ Popconfirm,
|
|
|
+ Tooltip,
|
|
|
} from "antd";
|
|
|
import {
|
|
|
getProvinceA,
|
|
@@ -21,23 +24,22 @@ import {
|
|
|
getPeople,
|
|
|
splitUrl,
|
|
|
ShowModal,
|
|
|
- getProcessStatus
|
|
|
+ getProcessStatus,
|
|
|
} from "@/tools";
|
|
|
import { ChooseList } from "../../../../component/manageCenter/order/orderNew/chooseList";
|
|
|
import ShowModalDiv from "@/showModal.jsx";
|
|
|
const FormItem = Form.Item;
|
|
|
-const {TabPane} = Tabs
|
|
|
+const { TabPane } = Tabs;
|
|
|
import OrderDesc from "../../financialManage/orderDetail/orderDesc";
|
|
|
import ImgList from "../../../common/imgList";
|
|
|
-import {getProjectName} from "../../../tools";
|
|
|
+import { getProjectName } from "../../../tools";
|
|
|
import DepartmentList from "../../../common/departmentList";
|
|
|
import LogPopup from "../../../common/logPopup";
|
|
|
const inSpecial = React.createClass({
|
|
|
-
|
|
|
loadData(pageNo) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -55,9 +57,9 @@ const inSpecial = React.createClass({
|
|
|
orderNo: this.state.orderNoSearch,
|
|
|
orderDep: this.state.departmenttList,
|
|
|
type: 0,
|
|
|
- approval: this.state.processStatus
|
|
|
+ approval: this.state.processStatus,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
ShowModal(this);
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
@@ -83,7 +85,7 @@ const inSpecial = React.createClass({
|
|
|
: "",
|
|
|
settlementAmount: thisdata.settlementAmount,
|
|
|
notAmount: thisdata.notAmount,
|
|
|
- approval: thisdata.approval
|
|
|
+ approval: thisdata.approval,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -96,13 +98,13 @@ const inSpecial = React.createClass({
|
|
|
this.setState({
|
|
|
totalPage: data.data.totalPage,
|
|
|
dataSource: theArr,
|
|
|
- pagination: this.state.pagination
|
|
|
+ pagination: this.state.pagination,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -110,7 +112,7 @@ const inSpecial = React.createClass({
|
|
|
|
|
|
invoiceData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -119,9 +121,9 @@ const inSpecial = React.createClass({
|
|
|
url:
|
|
|
globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
|
|
|
data: {
|
|
|
- id: this.state.id
|
|
|
+ id: this.state.id,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let thisdata = data.data;
|
|
|
this.setState({
|
|
|
orderNo: thisdata.orderNo,
|
|
@@ -152,13 +154,13 @@ const inSpecial = React.createClass({
|
|
|
",",
|
|
|
globalConfig.avatarHost + "/upload"
|
|
|
)
|
|
|
- : []
|
|
|
+ : [],
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).done(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -187,92 +189,96 @@ const inSpecial = React.createClass({
|
|
|
defaultPageSize: 10,
|
|
|
showQuickJumper: true,
|
|
|
pageSize: 10,
|
|
|
- onChange: function(page) {
|
|
|
+ onChange: function (page) {
|
|
|
this.loadData(page);
|
|
|
}.bind(this),
|
|
|
- showTotal: function(total) {
|
|
|
+ showTotal: function (total) {
|
|
|
return "共" + total + "条数据";
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
title: "编号",
|
|
|
dataIndex: "id",
|
|
|
- key: "id"
|
|
|
+ key: "id",
|
|
|
// fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
title: "客户",
|
|
|
dataIndex: "unitName",
|
|
|
key: "unitName",
|
|
|
- width:100,
|
|
|
- render: text => {
|
|
|
+ width: 100,
|
|
|
+ render: (text) => {
|
|
|
return (
|
|
|
- <Tooltip title={text}>
|
|
|
- <div style={{
|
|
|
- maxWidth:'100px',
|
|
|
- overflow:'hidden',
|
|
|
+ <Tooltip title={text}>
|
|
|
+ <div
|
|
|
+ style={{
|
|
|
+ maxWidth: "100px",
|
|
|
+ overflow: "hidden",
|
|
|
textOverflow: "ellipsis",
|
|
|
- whiteSpace:'nowrap',
|
|
|
- }}>{text}</div>
|
|
|
- </Tooltip>
|
|
|
- )
|
|
|
- }
|
|
|
+ whiteSpace: "nowrap",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {text}
|
|
|
+ </div>
|
|
|
+ </Tooltip>
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: "跟单人/签单人",
|
|
|
dataIndex: "name",
|
|
|
- key: "name"
|
|
|
+ key: "name",
|
|
|
},
|
|
|
{
|
|
|
title: "开票状态",
|
|
|
dataIndex: "status",
|
|
|
key: "status",
|
|
|
- render: (text,record) => {
|
|
|
+ render: (text, record) => {
|
|
|
// return getStatus(text);
|
|
|
return getInvoiceStatus(text, record);
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: "流程状态",
|
|
|
dataIndex: "processStatus",
|
|
|
key: "processStatus",
|
|
|
- render: text => {
|
|
|
+ render: (text) => {
|
|
|
return getProcessStatus(text);
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: "项目状态",
|
|
|
dataIndex: "projectStatus",
|
|
|
key: "projectStatus",
|
|
|
- render: text => {
|
|
|
+ render: (text) => {
|
|
|
return getProjectName(text);
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: "申请开票(万)",
|
|
|
dataIndex: "amount",
|
|
|
- key: "amount"
|
|
|
+ key: "amount",
|
|
|
},
|
|
|
{
|
|
|
title: "已开票(万)",
|
|
|
dataIndex: "sumAmount",
|
|
|
- key: "sumAmount"
|
|
|
+ key: "sumAmount",
|
|
|
},
|
|
|
{
|
|
|
title: "已收款",
|
|
|
dataIndex: "settlementAmount",
|
|
|
- key: "settlementAmount"
|
|
|
+ key: "settlementAmount",
|
|
|
},
|
|
|
{
|
|
|
title: "未收款",
|
|
|
dataIndex: "notAmount",
|
|
|
- key: "notAmount"
|
|
|
+ key: "notAmount",
|
|
|
},
|
|
|
{
|
|
|
title: "申请时间",
|
|
|
dataIndex: "createTime",
|
|
|
- key: "createTime"
|
|
|
+ key: "createTime",
|
|
|
},
|
|
|
{
|
|
|
title: "操作",
|
|
@@ -284,7 +290,7 @@ const inSpecial = React.createClass({
|
|
|
{
|
|
|
<Button
|
|
|
type="primary"
|
|
|
- onClick={e => {
|
|
|
+ onClick={(e) => {
|
|
|
e.stopPropagation(), this.visit(index);
|
|
|
}}
|
|
|
style={{ background: "deepskyblue", border: "none" }}
|
|
@@ -293,42 +299,54 @@ const inSpecial = React.createClass({
|
|
|
</Button>
|
|
|
}
|
|
|
{record.approval !== 2 ? (
|
|
|
- <Popconfirm placement="top" title="确定要通过吗?" onConfirm={(e)=>{
|
|
|
+ <Popconfirm
|
|
|
+ placement="top"
|
|
|
+ title="确定要通过吗?"
|
|
|
+ onConfirm={(e) => {
|
|
|
e.stopPropagation();
|
|
|
this.setState({ examine: 2 }, () => {
|
|
|
this.sende(record);
|
|
|
});
|
|
|
- }} okText="确定" cancelText="取消">
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- style={{ marginLeft: "10px" }}
|
|
|
- onClick={e => {
|
|
|
- e.stopPropagation();
|
|
|
- }}
|
|
|
- >
|
|
|
- 通过
|
|
|
- </Button>
|
|
|
- </Popconfirm>
|
|
|
+ }}
|
|
|
+ okText="确定"
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ marginLeft: "10px" }}
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 通过
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
{record.approval !== 2 ? (
|
|
|
- <Popconfirm placement="top" title="确定要拒绝吗?" onConfirm={(e)=>{
|
|
|
+ <Popconfirm
|
|
|
+ placement="top"
|
|
|
+ title="确定要拒绝吗?"
|
|
|
+ onConfirm={(e) => {
|
|
|
e.stopPropagation();
|
|
|
this.setState({ examine: 3 }, () => {
|
|
|
this.reject(record);
|
|
|
});
|
|
|
- }} okText="确定" cancelText="取消">
|
|
|
- <Button
|
|
|
- type="danger"
|
|
|
- onClick={e => {
|
|
|
- e.stopPropagation();
|
|
|
- }}
|
|
|
- style={{ marginLeft: "10px" }}
|
|
|
- >
|
|
|
- 拒绝
|
|
|
- </Button>
|
|
|
- </Popconfirm>
|
|
|
+ }}
|
|
|
+ okText="确定"
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ type="danger"
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ }}
|
|
|
+ style={{ marginLeft: "10px" }}
|
|
|
+ >
|
|
|
+ 拒绝
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
@@ -348,9 +366,9 @@ const inSpecial = React.createClass({
|
|
|
style={{
|
|
|
marginLeft: "10px",
|
|
|
background: "orangered",
|
|
|
- border: "none"
|
|
|
+ border: "none",
|
|
|
}}
|
|
|
- onClick={e => {
|
|
|
+ onClick={(e) => {
|
|
|
e.stopPropagation(), this.inRecord(record, index);
|
|
|
}}
|
|
|
>
|
|
@@ -359,47 +377,51 @@ const inSpecial = React.createClass({
|
|
|
}
|
|
|
</div>
|
|
|
);
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
],
|
|
|
columnsDate: [
|
|
|
{
|
|
|
title: "编号",
|
|
|
dataIndex: "id",
|
|
|
- key: "id"
|
|
|
+ key: "id",
|
|
|
},
|
|
|
{
|
|
|
title: "订单编号",
|
|
|
dataIndex: "orderno",
|
|
|
- key: "orderno"
|
|
|
+ key: "orderno",
|
|
|
},
|
|
|
{
|
|
|
title: "开票金额(万元)",
|
|
|
dataIndex: "amount",
|
|
|
- key: "amount"
|
|
|
+ key: "amount",
|
|
|
},
|
|
|
{
|
|
|
title: "申请时间",
|
|
|
dataIndex: "createTime",
|
|
|
- key: "createTime"
|
|
|
+ key: "createTime",
|
|
|
},
|
|
|
{
|
|
|
title: "开票状态",
|
|
|
dataIndex: "status",
|
|
|
key: "status",
|
|
|
render: (text, record) => {
|
|
|
- return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {getInvoiceStatus(text, record)} <LogPopup id={record.id} />
|
|
|
+ </div>
|
|
|
+ );
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
],
|
|
|
dataSource: [],
|
|
|
- searchTime: [,]
|
|
|
+ searchTime: [,],
|
|
|
};
|
|
|
},
|
|
|
|
|
|
loadSend(record) {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
if (this.state.examine === 3 && this.state.reason === "") {
|
|
|
message.warning("拒绝理由不能为空!");
|
|
@@ -437,7 +459,7 @@ const inSpecial = React.createClass({
|
|
|
//重置拒绝理由
|
|
|
resetReason() {
|
|
|
this.setState({
|
|
|
- reason: ""
|
|
|
+ reason: "",
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -448,7 +470,7 @@ const inSpecial = React.createClass({
|
|
|
commit() {
|
|
|
this.loadSend();
|
|
|
this.setState({
|
|
|
- avisible: false
|
|
|
+ avisible: false,
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -456,7 +478,7 @@ const inSpecial = React.createClass({
|
|
|
this.setState(
|
|
|
{
|
|
|
id: this.state.dataSource[index].id,
|
|
|
- avisible: true
|
|
|
+ avisible: true,
|
|
|
},
|
|
|
() => {
|
|
|
this.invoiceData();
|
|
@@ -465,24 +487,24 @@ const inSpecial = React.createClass({
|
|
|
},
|
|
|
visitCancels() {
|
|
|
this.setState({
|
|
|
- avisible: false
|
|
|
+ avisible: false,
|
|
|
});
|
|
|
},
|
|
|
|
|
|
reject(record) {
|
|
|
this.setState({
|
|
|
visibleR: true,
|
|
|
- id: record.id
|
|
|
+ id: record.id,
|
|
|
});
|
|
|
},
|
|
|
rejectCancels() {
|
|
|
this.setState({
|
|
|
- visibleR: false
|
|
|
+ visibleR: false,
|
|
|
});
|
|
|
},
|
|
|
inRecordData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -492,9 +514,9 @@ const inSpecial = React.createClass({
|
|
|
globalConfig.context +
|
|
|
"/api/admin/orderInvoice/salesmanOrderInvoiceList",
|
|
|
data: {
|
|
|
- orderNo: this.state.orderNo2
|
|
|
+ orderNo: this.state.orderNo2,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let sum = 0;
|
|
|
if (!data.data) {
|
|
@@ -512,19 +534,19 @@ const inSpecial = React.createClass({
|
|
|
createTime: thisdata.createTime, //流程状态
|
|
|
status: thisdata.status, //结算状态
|
|
|
rejectReason: thisdata.rejectReason,
|
|
|
- approval:thisdata.approval,//0非特批 1待审核 2审核通过
|
|
|
+ approval: thisdata.approval, //0非特批 1待审核 2审核通过
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
this.setState({
|
|
|
recordData: theArr,
|
|
|
- sum: sum.toFixed(6)
|
|
|
+ sum: sum.toFixed(6),
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).done(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -534,7 +556,7 @@ const inSpecial = React.createClass({
|
|
|
this.setState(
|
|
|
{
|
|
|
bvisible: true,
|
|
|
- orderNo2: record.orderNo
|
|
|
+ orderNo2: record.orderNo,
|
|
|
},
|
|
|
() => {
|
|
|
this.inRecordData();
|
|
@@ -544,7 +566,7 @@ const inSpecial = React.createClass({
|
|
|
|
|
|
inRecordCanl() {
|
|
|
this.setState({
|
|
|
- bvisible: false
|
|
|
+ bvisible: false,
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -567,21 +589,21 @@ const inSpecial = React.createClass({
|
|
|
},
|
|
|
changeList(arr) {
|
|
|
const newArr = [];
|
|
|
- this.state.columns.forEach(item => {
|
|
|
- arr.forEach(val => {
|
|
|
+ this.state.columns.forEach((item) => {
|
|
|
+ arr.forEach((val) => {
|
|
|
if (val === item.title) {
|
|
|
newArr.push(item);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
this.setState({
|
|
|
- changeList: newArr
|
|
|
+ changeList: newArr,
|
|
|
});
|
|
|
},
|
|
|
tableRowClick(record) {
|
|
|
this.state.RowData = record;
|
|
|
this.setState({
|
|
|
- showDesc: true
|
|
|
+ showDesc: true,
|
|
|
});
|
|
|
},
|
|
|
closeDesc(e, s) {
|
|
@@ -593,7 +615,7 @@ const inSpecial = React.createClass({
|
|
|
render() {
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
|
- wrapperCol: { span: 14 }
|
|
|
+ wrapperCol: { span: 14 },
|
|
|
};
|
|
|
return (
|
|
|
<div className="user-content" style={{ position: "relative" }}>
|
|
@@ -601,83 +623,80 @@ const inSpecial = React.createClass({
|
|
|
<div className="content-title">
|
|
|
<span>省内特批</span>
|
|
|
</div>
|
|
|
- <Tabs
|
|
|
- defaultActiveKey="1"
|
|
|
- onChange={this.callback}
|
|
|
- className="test">
|
|
|
+ <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
|
|
|
<TabPane tab="搜索" key="1">
|
|
|
- <div className="user-search">
|
|
|
- <Input
|
|
|
- placeholder="营销员名称"
|
|
|
- value={this.state.nameSearch}
|
|
|
- style={{marginLeft:10}}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ nameSearch: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- <Input
|
|
|
- placeholder="订单编号"
|
|
|
- value={this.state.orderNoSearch}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ orderNoSearch: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- <Input
|
|
|
- placeholder="客户名称"
|
|
|
- value={this.state.userName}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ userName: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- <Select
|
|
|
- placeholder="开票状态"
|
|
|
- onChange={e => {
|
|
|
- this.setState({ status: e });
|
|
|
- }}
|
|
|
- style={{ width: 160, marginRight: 5 }}
|
|
|
- value={this.state.status}
|
|
|
- >
|
|
|
- <Option value="1">处理中</Option>
|
|
|
- <Option value="2">通过</Option>
|
|
|
- </Select>
|
|
|
- <DepartmentList
|
|
|
- value={this.state.departmenttList}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ departmenttList: e });
|
|
|
- }}/>
|
|
|
- <Select
|
|
|
- placeholder="特批状态"
|
|
|
- onChange={e => {
|
|
|
- this.setState({ processStatus: e });
|
|
|
- }}
|
|
|
- style={{ width: 160, marginRight: 5 }}
|
|
|
- value={this.state.processStatus}
|
|
|
- >
|
|
|
- <Option value="1">特批未审核</Option>
|
|
|
- <Option value="2">特批已审核</Option>
|
|
|
- </Select>
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- onClick={this.search}
|
|
|
- style={{ marginLeft: 10 }}
|
|
|
- >
|
|
|
- 搜索
|
|
|
- </Button>
|
|
|
- <Button onClick={this.reset}>重置</Button>
|
|
|
- </div>
|
|
|
- </TabPane>
|
|
|
- <TabPane tab="更改表格数据" key="2">
|
|
|
- <div style={{margin:10,marginBottom:0}}>
|
|
|
- <ChooseList
|
|
|
- columns={this.state.columns}
|
|
|
- changeFn={this.changeList}
|
|
|
- changeList={this.state.changeList}
|
|
|
- top={55}
|
|
|
- />
|
|
|
- </div>
|
|
|
-
|
|
|
-</TabPane>
|
|
|
-</Tabs>
|
|
|
+ <div className="user-search">
|
|
|
+ <Input
|
|
|
+ placeholder="营销员名称"
|
|
|
+ value={this.state.nameSearch}
|
|
|
+ style={{ marginLeft: 10 }}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ nameSearch: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <Input
|
|
|
+ placeholder="订单编号"
|
|
|
+ value={this.state.orderNoSearch}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ orderNoSearch: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <Input
|
|
|
+ placeholder="客户名称"
|
|
|
+ value={this.state.userName}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ userName: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <Select
|
|
|
+ placeholder="开票状态"
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ status: e });
|
|
|
+ }}
|
|
|
+ style={{ width: 160, marginRight: 5 }}
|
|
|
+ value={this.state.status}
|
|
|
+ >
|
|
|
+ <Option value="1">处理中</Option>
|
|
|
+ <Option value="2">通过</Option>
|
|
|
+ </Select>
|
|
|
+ <DepartmentList
|
|
|
+ value={this.state.departmenttList}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ departmenttList: e });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <Select
|
|
|
+ placeholder="特批状态"
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ processStatus: e });
|
|
|
+ }}
|
|
|
+ style={{ width: 160, marginRight: 5 }}
|
|
|
+ value={this.state.processStatus}
|
|
|
+ >
|
|
|
+ <Option value="1">特批未审核</Option>
|
|
|
+ <Option value="2">特批已审核</Option>
|
|
|
+ </Select>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={this.search}
|
|
|
+ style={{ marginLeft: 10 }}
|
|
|
+ >
|
|
|
+ 搜索
|
|
|
+ </Button>
|
|
|
+ <Button onClick={this.reset}>重置</Button>
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane tab="更改表格数据" key="2">
|
|
|
+ <div style={{ margin: 10, marginBottom: 0 }}>
|
|
|
+ <ChooseList
|
|
|
+ columns={this.state.columns}
|
|
|
+ changeFn={this.changeList}
|
|
|
+ changeList={this.state.changeList}
|
|
|
+ top={55}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ </Tabs>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Table
|
|
@@ -703,25 +722,27 @@ const inSpecial = React.createClass({
|
|
|
width="400px"
|
|
|
onCancel={this.rejectCancels}
|
|
|
>
|
|
|
- <Input.TextArea
|
|
|
- placeholder="请输入拒绝理由"
|
|
|
- rows={4}
|
|
|
- value={this.state.reason}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ reason: e.target.value });
|
|
|
- }}
|
|
|
- ></Input.TextArea>
|
|
|
- <div className="clearfix" style={{ marginTop: "20px" }}>
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- onClick={e => {
|
|
|
- e.stopPropagation(), this.commit();
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Input.TextArea
|
|
|
+ placeholder="请输入拒绝理由"
|
|
|
+ rows={4}
|
|
|
+ value={this.state.reason}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ reason: e.target.value });
|
|
|
}}
|
|
|
- style={{ float: "right" }}
|
|
|
- >
|
|
|
- 提交
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
+ ></Input.TextArea>
|
|
|
+ <div className="clearfix" style={{ marginTop: "20px" }}>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation(), this.commit();
|
|
|
+ }}
|
|
|
+ style={{ float: "right" }}
|
|
|
+ >
|
|
|
+ 提交
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </Spin>
|
|
|
</Modal>
|
|
|
<Modal
|
|
|
className="admin-desc-content"
|
|
@@ -772,7 +793,7 @@ const inSpecial = React.createClass({
|
|
|
style={{
|
|
|
border: "1px dashed #aaa",
|
|
|
width: "90%",
|
|
|
- margin: "auto"
|
|
|
+ margin: "auto",
|
|
|
}}
|
|
|
/>
|
|
|
<div style={{ marginTop: "13px", marginLeft: "16px" }}>
|
|
@@ -900,10 +921,10 @@ const inSpecial = React.createClass({
|
|
|
className="demandDetailShow-upload"
|
|
|
listType="picture-card"
|
|
|
fileList={this.state.orgCodeUrl}
|
|
|
- onPreview={file => {
|
|
|
+ onPreview={(file) => {
|
|
|
this.setState({
|
|
|
previewImage: file.url || file.thumbUrl,
|
|
|
- previewVisible: true
|
|
|
+ previewVisible: true,
|
|
|
});
|
|
|
}}
|
|
|
/>
|
|
@@ -930,7 +951,7 @@ const inSpecial = React.createClass({
|
|
|
style={{
|
|
|
border: "1px dashed #aaa",
|
|
|
width: "90%",
|
|
|
- margin: "auto"
|
|
|
+ margin: "auto",
|
|
|
}}
|
|
|
/>
|
|
|
<div className="clearfix" style={{ marginTop: "10px" }}>
|
|
@@ -1037,7 +1058,7 @@ const inSpecial = React.createClass({
|
|
|
/>
|
|
|
</div>
|
|
|
);
|
|
|
- }
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
export default inSpecial;
|