|
@@ -115,6 +115,11 @@ class CostAuditList extends Component{
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ title: "供应商",
|
|
|
+ dataIndex: "companyName",
|
|
|
+ key: "companyName",
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "申请人",
|
|
|
dataIndex: "aname",
|
|
|
key: "aname",
|
|
@@ -197,7 +202,7 @@ class CostAuditList extends Component{
|
|
|
showQuickJumper: true,
|
|
|
pageSize: 10,
|
|
|
onChange: function (page) {
|
|
|
- this.loadData(page);
|
|
|
+ this.loadData(page,this.state.searchInfor);
|
|
|
}.bind(this),
|
|
|
showTotal: function (total) {
|
|
|
return "共" + total + "条数据";
|
|
@@ -212,6 +217,7 @@ class CostAuditList extends Component{
|
|
|
payRecordVisible: false,
|
|
|
orderPaymentsId: 0,
|
|
|
}
|
|
|
+ this.exportExec = this.exportExec.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
@@ -249,12 +255,14 @@ class CostAuditList extends Component{
|
|
|
}
|
|
|
this.state.pagination.total = data.data.totalCount;
|
|
|
}
|
|
|
+ this.state.pagination.current = data.data.pageNo;
|
|
|
+ this.state.pagination.total = data.data.totalCount;
|
|
|
if (data.data && data.data.list && !data.data.list.length) {
|
|
|
+ this.state.pagination.current = 0;
|
|
|
this.state.pagination.total = 0;
|
|
|
}
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
- pageNo: pageNo,
|
|
|
pagination: this.state.pagination,
|
|
|
});
|
|
|
}.bind(this),
|
|
@@ -274,13 +282,26 @@ class CostAuditList extends Component{
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ //导出
|
|
|
+ exportExec() {
|
|
|
+ let data = Object.assign({},this.state.searchInfor);
|
|
|
+ for (let key in data){
|
|
|
+ if(!data[key]){
|
|
|
+ delete data[key]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ data.pageSize = 9999;
|
|
|
+ data.pageNo = 1;
|
|
|
+ window.location.href=(globalConfig.context+'/api/admin/company/exportPaymentList?'+$.param(data));
|
|
|
+ }
|
|
|
+
|
|
|
render() {
|
|
|
return (
|
|
|
<div className="user-content">
|
|
|
<div className="content-title">
|
|
|
<span>成本付款申请</span>
|
|
|
</div>
|
|
|
- <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
|
|
|
+ <Tabs defaultActiveKey="1" className="test">
|
|
|
<TabPane tab="搜索" key="1">
|
|
|
<div style={{paddingTop:'10px'}}>
|
|
|
<FilterColumn
|
|
@@ -300,6 +321,15 @@ class CostAuditList extends Component{
|
|
|
/>
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
+ <TabPane tab="操作" key="2">
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={this.exportExec}
|
|
|
+ style={{ margin: "11px 0px 10px 10px" }}
|
|
|
+ >
|
|
|
+ 导出财务成本列表
|
|
|
+ </Button>
|
|
|
+ </TabPane>
|
|
|
</Tabs>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -333,6 +363,7 @@ class CostAuditList extends Component{
|
|
|
this.setState({
|
|
|
visible: false
|
|
|
})
|
|
|
+ this.loadData(this.state.page,this.state.searchInfor);
|
|
|
}}/> : <div/>
|
|
|
}
|
|
|
{this.state.paymentVisible ?
|