|
@@ -67,7 +67,7 @@ const ShouKuang = React.createClass({
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
- loadData(pageNo) {
|
|
|
+ loadData(pageNo,pageSize) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
selectedRowKeys: [],
|
|
@@ -82,7 +82,7 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/financial/financeList",
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
- pageSize: this.state.pagination.pageSize,
|
|
|
+ pageSize: pageSize || this.state.pagination.pageSize,
|
|
|
buyerName: this.state.nameSearch, //客户名称
|
|
|
orderNo: this.state.orderNoSearch,
|
|
|
startTime: this.state.releaseDate[0],
|
|
@@ -145,6 +145,7 @@ const ShouKuang = React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
searchMore: true,
|
|
|
+ dvisible: false,
|
|
|
assignVisibleX: false,
|
|
|
assignVisibleY: false,
|
|
|
releaseDate: [],
|
|
@@ -170,6 +171,73 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
// 子组件改变的表格title数组
|
|
|
changeList: undefined,
|
|
|
+ printColumns: [
|
|
|
+ {
|
|
|
+ title: "订单编号",
|
|
|
+ dataIndex: "orderNo",
|
|
|
+ key: "orderNo"
|
|
|
+ // fixed: "left"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "签单日期",
|
|
|
+ dataIndex: "signTime",
|
|
|
+ key: "signTime"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "下单日期",
|
|
|
+ dataIndex: "createTime",
|
|
|
+ key: "createTime"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "已收款(万元)",
|
|
|
+ dataIndex: "actuallyTotalAmount",
|
|
|
+ key: "actuallyTotalAmount"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "客户名称",
|
|
|
+ dataIndex: "buyerName",
|
|
|
+ key: "buyerName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "流程状态",
|
|
|
+ dataIndex: "processStatus",
|
|
|
+ key: "processStatus",
|
|
|
+ render: text => {
|
|
|
+ return getProcessStatus(text);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单部门",
|
|
|
+ dataIndex: "departmentName",
|
|
|
+ key: "departmentName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "特批状态",
|
|
|
+ dataIndex: "approval",
|
|
|
+ key: "approval",
|
|
|
+ render: text => {
|
|
|
+ return getApproval(text);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "合同编号",
|
|
|
+ dataIndex: "contractNo",
|
|
|
+ key: "contractNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单负责人",
|
|
|
+ dataIndex: "sellerName",
|
|
|
+ key: "sellerName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "结算状态",
|
|
|
+ dataIndex: "liquidationStatus",
|
|
|
+ key: "liquidationStatus",
|
|
|
+ render: text => {
|
|
|
+ return getLiquidationStatus(text);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
columns: [
|
|
|
{
|
|
|
title: "订单编号",
|
|
@@ -570,7 +638,15 @@ const ShouKuang = React.createClass({
|
|
|
console.log(key);
|
|
|
},
|
|
|
onSelectChange(selectedRowKeys) {
|
|
|
- console.log("selectedRowKeys changed: ", selectedRowKeys);
|
|
|
+ // for(var i=0; i<selectedRowKeys.length; i++){
|
|
|
+ // for(var j=i+1; j<selectedRowKeys.length; j++){
|
|
|
+ // if(selectedRowKeys[i]==selectedRowKeys[j]){
|
|
|
+ // selectedRowKeys.splice(j,1);
|
|
|
+ // j--;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
this.setState({ selectedRowKeys });
|
|
|
},
|
|
|
inRecordCanl() {
|
|
@@ -637,7 +713,7 @@ const ShouKuang = React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/financial/myBillList",
|
|
|
data: {
|
|
|
- orderNo: this.state.selectedRowKeys[0],
|
|
|
+ orderNo: this.state.selectedRowKeys[0]
|
|
|
},
|
|
|
success: function(data) {
|
|
|
let theArr = [];
|
|
@@ -686,6 +762,32 @@ const ShouKuang = React.createClass({
|
|
|
cvisible: false
|
|
|
});
|
|
|
},
|
|
|
+ exportKaip() {
|
|
|
+ window.location.href =
|
|
|
+ globalConfig.context +
|
|
|
+ "/api/admin/receivables/exportInvoice?" +
|
|
|
+ `orderNo=${this.state.selectedRowKeys}`;
|
|
|
+ },
|
|
|
+ exportAll() {
|
|
|
+ window.location.href =
|
|
|
+ globalConfig.context + "/api/admin/receivables/exportReceivables";
|
|
|
+ },
|
|
|
+ exportWater() {
|
|
|
+ window.location.href =
|
|
|
+ globalConfig.context +
|
|
|
+ "/api/admin/receivables/exportMyBill?" +
|
|
|
+ `orderNo=${this.state.selectedRowKeys}`;
|
|
|
+ },
|
|
|
+ printAll() {
|
|
|
+ this.setState({
|
|
|
+ dvisible: true,
|
|
|
+ // loading: true
|
|
|
+ });
|
|
|
+ this.loadData(1,9999)
|
|
|
+ this.setState({
|
|
|
+ dataSourcePrint: this.state.dataSource
|
|
|
+ })
|
|
|
+ },
|
|
|
render() {
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
@@ -697,14 +799,12 @@ const ShouKuang = React.createClass({
|
|
|
const rowSelection = {
|
|
|
selectedRowKeys,
|
|
|
onChange: this.onSelectChange,
|
|
|
- hideDefaultSelections: true
|
|
|
+ hideDefaultSelections: true,
|
|
|
+ type: "radio"
|
|
|
};
|
|
|
return (
|
|
|
<div className="user-content">
|
|
|
- <div
|
|
|
- className="content-title"
|
|
|
- style={{ marginBottom: 10 }}
|
|
|
- >
|
|
|
+ <div className="content-title" style={{ marginBottom: 10 }}>
|
|
|
<span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
|
|
|
</div>
|
|
|
|
|
@@ -794,10 +894,38 @@ const ShouKuang = React.createClass({
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="打印" key="3">
|
|
|
- Content of Tab Pane 3
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ margin: "0px 0px 10px 10px" }}
|
|
|
+ onClick={this.printAll}
|
|
|
+ >
|
|
|
+ 打印所有列表信息
|
|
|
+ </Button>
|
|
|
</TabPane>
|
|
|
<TabPane tab="导出Excel" key="4">
|
|
|
- Content of Tab Pane 3
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ margin: "0px 0px 10px 10px" }}
|
|
|
+ onClick={this.exportAll}
|
|
|
+ >
|
|
|
+ 导出当前列表
|
|
|
+ </Button>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ disabled={!this.state.selectedRowKeys.length}
|
|
|
+ style={{ margin: "0px 0px 10px 10px" }}
|
|
|
+ onClick={this.exportKaip}
|
|
|
+ >
|
|
|
+ 导出所选开票详情
|
|
|
+ </Button>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ disabled={!this.state.selectedRowKeys.length}
|
|
|
+ style={{ margin: "0px 0px 10px 10px" }}
|
|
|
+ onClick={this.exportWater}
|
|
|
+ >
|
|
|
+ 导出所选收款详情流水
|
|
|
+ </Button>
|
|
|
</TabPane>
|
|
|
<TabPane tab="查看" key="5">
|
|
|
<Button
|
|
@@ -975,6 +1103,30 @@ const ShouKuang = React.createClass({
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Modal>
|
|
|
+
|
|
|
+ <Modal
|
|
|
+ visible={this.state.dvisible}
|
|
|
+ footer=""
|
|
|
+ title="所有列表信息"
|
|
|
+ className="admin-desc-content"
|
|
|
+ width="1300px"
|
|
|
+ onCancel={() => {
|
|
|
+ this.loadData()
|
|
|
+ this.setState({
|
|
|
+ dvisible: false
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <div className="patent-table">
|
|
|
+ <Table
|
|
|
+ columns={this.state.printColumns}
|
|
|
+ dataSource={this.state.dataSourcePrint}
|
|
|
+ bordered
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </Spin>
|
|
|
+ </Modal>
|
|
|
</div>
|
|
|
);
|
|
|
}
|