|
@@ -27,7 +27,8 @@ import {
|
|
|
getProjectStatus,
|
|
|
splitUrl,
|
|
|
getprovince,
|
|
|
- getRefundStatus
|
|
|
+ getRefundStatus,
|
|
|
+ getTransactionProject
|
|
|
} from "@/tools";
|
|
|
import { ChooseList } from "../../../../component/manageCenter/order/orderNew/chooseList";
|
|
|
const FormItem = Form.Item;
|
|
@@ -141,7 +142,9 @@ const approvedOutsourcing = React.createClass({
|
|
|
this.setState({
|
|
|
totalPage: data.data.pagination.totalPage,
|
|
|
dataSource: theArr,
|
|
|
- pagination: this.state.pagination
|
|
|
+ pagination: this.state.pagination,
|
|
|
+ totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
|
|
|
+ hui: data.data.count ? data.data.count.actuallyTotalAmount : 0
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
@@ -191,6 +194,11 @@ const approvedOutsourcing = React.createClass({
|
|
|
// fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
+ title: "合同编号",
|
|
|
+ dataIndex: "contractNo",
|
|
|
+ key: "contractNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "签单日期",
|
|
|
dataIndex: "signTime",
|
|
|
key: "signTime"
|
|
@@ -236,11 +244,6 @@ const approvedOutsourcing = React.createClass({
|
|
|
return getApproval(text);
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- title: "合同编号",
|
|
|
- dataIndex: "contractNo",
|
|
|
- key: "contractNo"
|
|
|
- },
|
|
|
// {
|
|
|
// title: '订单状态',
|
|
|
// dataIndex: 'orderStatus',
|
|
@@ -573,6 +576,11 @@ const approvedOutsourcing = React.createClass({
|
|
|
],
|
|
|
waterlistDate: [
|
|
|
{
|
|
|
+ title: "订单编号",
|
|
|
+ dataIndex: "orderNo",
|
|
|
+ key: "orderNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "平台流水号",
|
|
|
dataIndex: "billNo",
|
|
|
key: "billNo"
|
|
@@ -617,11 +625,6 @@ const approvedOutsourcing = React.createClass({
|
|
|
key: "financialPayNo"
|
|
|
},
|
|
|
{
|
|
|
- title: "订单编号",
|
|
|
- dataIndex: "orderNo",
|
|
|
- key: "orderNo"
|
|
|
- },
|
|
|
- {
|
|
|
title: "订单负责人",
|
|
|
dataIndex: "saleName",
|
|
|
key: "saleName"
|
|
@@ -1327,8 +1330,8 @@ const approvedOutsourcing = React.createClass({
|
|
|
const jsDate = this.state.jsDate || [];
|
|
|
return (
|
|
|
<div className="user-content">
|
|
|
- <div className="content-title">
|
|
|
- <span>外包结算管理</span>
|
|
|
+ <div className="content-title" style={{ marginBottom: 10 }}>
|
|
|
+ <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
|
|
|
</div>
|
|
|
<Tabs defaultActiveKey="2" onChange={this.callback}>
|
|
|
<TabPane tab="更改表格显示数据" key="1">
|
|
@@ -1420,6 +1423,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
type="primary"
|
|
|
style={{ margin: "0px 0px 10px 10px" }}
|
|
|
onClick={this.printAll}
|
|
|
+ disabled={!this.state.dataSource.length}
|
|
|
>
|
|
|
打印所有列表信息
|
|
|
</Button>
|
|
@@ -1496,6 +1500,16 @@ const approvedOutsourcing = React.createClass({
|
|
|
rowSelection={rowSelection}
|
|
|
/>
|
|
|
</Spin>
|
|
|
+ <p
|
|
|
+ style={{ display: "inline-block", fontSize: "14px", color: "red" }}
|
|
|
+ >
|
|
|
+ {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}` +
|
|
|
+ " " +
|
|
|
+ " " +
|
|
|
+ `合同额总计(万元):${
|
|
|
+ this.state.totalHui ? this.state.totalHui : "0"
|
|
|
+ }`}
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<div className="patent-desc">
|
|
|
<Modal
|
|
@@ -1953,7 +1967,12 @@ const approvedOutsourcing = React.createClass({
|
|
|
onCancel={this.inRecordCanl}
|
|
|
>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <div className="patent-table">
|
|
|
+ <div
|
|
|
+ className="patent-table"
|
|
|
+ ref={e => {
|
|
|
+ this.refs.kaiPiao = e;
|
|
|
+ }}
|
|
|
+ >
|
|
|
<Table
|
|
|
columns={this.state.columnsDate}
|
|
|
dataSource={this.state.recordData}
|
|
@@ -1969,6 +1988,23 @@ const approvedOutsourcing = React.createClass({
|
|
|
<span>{this.state.sum + "(万元)"}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+ <ReactToPrint
|
|
|
+ trigger={() => (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{
|
|
|
+ float: "right",
|
|
|
+ // marginTop: 10,
|
|
|
+ position: "absolute",
|
|
|
+ top: -54,
|
|
|
+ right: 30
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 打印
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
+ content={() => this.refs.kaiPiao}
|
|
|
+ />
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Modal>
|
|
@@ -1981,7 +2017,12 @@ const approvedOutsourcing = React.createClass({
|
|
|
onCancel={this.waterCanl}
|
|
|
>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <div className="patent-table">
|
|
|
+ <div
|
|
|
+ className="patent-table"
|
|
|
+ ref={e => {
|
|
|
+ this.refs.shouKuan = e;
|
|
|
+ }}
|
|
|
+ >
|
|
|
<Table
|
|
|
columns={this.state.waterlistDate}
|
|
|
dataSource={this.state.waterData}
|
|
@@ -1997,6 +2038,22 @@ const approvedOutsourcing = React.createClass({
|
|
|
<span>{this.state.waterSum + "(万元)"}</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+ <ReactToPrint
|
|
|
+ trigger={() => (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{
|
|
|
+ float: "right",
|
|
|
+ position: "absolute",
|
|
|
+ top: -54,
|
|
|
+ right: 30
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 打印
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
+ content={() => this.refs.shouKuan}
|
|
|
+ />
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Modal>
|
|
@@ -2007,6 +2064,10 @@ const approvedOutsourcing = React.createClass({
|
|
|
className="admin-desc-content"
|
|
|
width="1300px"
|
|
|
onCancel={() => {
|
|
|
+ this.state.pagination.pageSize = 10;
|
|
|
+ this.setState({
|
|
|
+ pagination: this.state.pagination
|
|
|
+ });
|
|
|
this.loadData();
|
|
|
this.setState({
|
|
|
dvisible: false
|
|
@@ -2024,7 +2085,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
padding: "25px 0 30px 30px"
|
|
|
}}
|
|
|
ref={e => {
|
|
|
- this.refs = e;
|
|
|
+ this.refs.all = e;
|
|
|
}}
|
|
|
>
|
|
|
<Table
|
|
@@ -2052,7 +2113,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
打印
|
|
|
</Button>
|
|
|
)}
|
|
|
- content={() => this.refs}
|
|
|
+ content={() => this.refs.all}
|
|
|
/>
|
|
|
</Modal>
|
|
|
</div>
|