|
@@ -56,7 +56,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
dunSubject: thisdata.dunSubject, //催收科目
|
|
|
startDate: thisdata.startDate, //催收启动时间
|
|
|
depName: thisdata.depName, //部门名称
|
|
|
- contractNo: thisdata.contractNo
|
|
|
+ contractNo: thisdata.contractNo,
|
|
|
+ dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发"
|
|
|
});
|
|
|
}
|
|
|
this.state.pagination.total = data.data.totalCount;
|
|
@@ -122,162 +123,167 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
},
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
- newStatus: 1,
|
|
|
- page: 1,
|
|
|
- releaseDate: [],
|
|
|
- selectedRowKeys: [],
|
|
|
- orgCodeUrl: [],
|
|
|
- departmentArr: [],
|
|
|
- paginations: false,
|
|
|
- pagination: {
|
|
|
- defaultCurrent: 1,
|
|
|
- defaultPageSize: 10,
|
|
|
- showQuickJumper: true,
|
|
|
- pageSize: 10,
|
|
|
- onChange: function(page) {
|
|
|
- this.loadData(page);
|
|
|
- }.bind(this),
|
|
|
- showTotal: function(total) {
|
|
|
- return "共" + total + "条数据";
|
|
|
+ newStatus: 1,
|
|
|
+ page: 1,
|
|
|
+ releaseDate: [],
|
|
|
+ selectedRowKeys: [],
|
|
|
+ orgCodeUrl: [],
|
|
|
+ departmentArr: [],
|
|
|
+ paginations: false,
|
|
|
+ pagination: {
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 10,
|
|
|
+ showQuickJumper: true,
|
|
|
+ pageSize: 10,
|
|
|
+ onChange: function(page) {
|
|
|
+ this.loadData(page);
|
|
|
+ }.bind(this),
|
|
|
+ showTotal: function(total) {
|
|
|
+ return "共" + total + "条数据";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ title: "序号",
|
|
|
+ dataIndex: "key",
|
|
|
+ key: "key"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "合同编号",
|
|
|
+ dataIndex: "contractNo",
|
|
|
+ key: "contractNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单编号",
|
|
|
+ dataIndex: "orderNo",
|
|
|
+ key: "orderNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "客户名称",
|
|
|
+ dataIndex: "userName",
|
|
|
+ key: "userName",
|
|
|
+ render: text => {
|
|
|
+ return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
|
|
|
}
|
|
|
},
|
|
|
- columns: [
|
|
|
- {
|
|
|
- title: "序号",
|
|
|
- dataIndex: "key",
|
|
|
- key: "key"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "合同编号",
|
|
|
- dataIndex: "contractNo",
|
|
|
- key: "contractNo"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "订单编号",
|
|
|
- dataIndex: "orderNo",
|
|
|
- key: "orderNo"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "客户名称",
|
|
|
- dataIndex: "userName",
|
|
|
- key: "userName",
|
|
|
- render: text => {
|
|
|
- return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "订单负责人",
|
|
|
- dataIndex: "salesmanName",
|
|
|
- key: "salesmanName"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "订单部门",
|
|
|
- dataIndex: "depName",
|
|
|
- key: "depName"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "订单状态",
|
|
|
- dataIndex: "orderStatus",
|
|
|
- key: "orderStatus",
|
|
|
- render: text => {
|
|
|
- return getNewOrderStatus(text);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "项目状态",
|
|
|
- dataIndex: "projectStatus",
|
|
|
- key: "projectStatus",
|
|
|
- render: text => {
|
|
|
- return getProjectStatus(text);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "签单金额(万元)",
|
|
|
- dataIndex: "totalAmount",
|
|
|
- key: "totalAmount"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "结算状态",
|
|
|
- dataIndex: "liquidationStatus",
|
|
|
- key: "liquidationStatus",
|
|
|
- render: text => {
|
|
|
- return getLiquidationStatus(text);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "应收款(万)",
|
|
|
- dataIndex: "accountsReceivable",
|
|
|
- key: "accountsReceivable"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "已收款(万)",
|
|
|
- dataIndex: "settlementAmount",
|
|
|
- key: "settlementAmount"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "未收款(万)",
|
|
|
- dataIndex: "uncollectedAmount",
|
|
|
- key: "uncollectedAmount"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "催收科目",
|
|
|
- dataIndex: "dunSubject",
|
|
|
- key: "dunSubject"
|
|
|
- // render: text => {
|
|
|
- // return getjiedian(text);
|
|
|
- // }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "催款启动日期",
|
|
|
- dataIndex: "startDate",
|
|
|
- key: "startDate"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "签单时间",
|
|
|
- dataIndex: "signDate",
|
|
|
- key: "signDate"
|
|
|
+ {
|
|
|
+ title: "订单负责人",
|
|
|
+ dataIndex: "salesmanName",
|
|
|
+ key: "salesmanName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单部门",
|
|
|
+ dataIndex: "depName",
|
|
|
+ key: "depName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单状态",
|
|
|
+ dataIndex: "orderStatus",
|
|
|
+ key: "orderStatus",
|
|
|
+ render: text => {
|
|
|
+ return getNewOrderStatus(text);
|
|
|
}
|
|
|
- // {
|
|
|
- // title: "催收操作",
|
|
|
- // dataIndex: "abc",
|
|
|
- // key: "abc",
|
|
|
- // render: (text, record) => {
|
|
|
- // return (
|
|
|
- // <div>
|
|
|
- // <Button
|
|
|
- // onClick={e => {
|
|
|
- // e.stopPropagation(), this.visit(record);
|
|
|
- // }}
|
|
|
- // type="primary"
|
|
|
- // >
|
|
|
- // 添加催款记录
|
|
|
- // </Button>
|
|
|
- // </div>
|
|
|
- // );
|
|
|
- // }
|
|
|
- // }
|
|
|
- ],
|
|
|
- data: [],
|
|
|
- dataSource: [],
|
|
|
- columnsX: [
|
|
|
- {
|
|
|
- title: "催款人",
|
|
|
- dataIndex: "dumBy",
|
|
|
- key: "dumBy"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "催款时间",
|
|
|
- dataIndex: "dumTime",
|
|
|
- key: "dumTime"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "催款情况",
|
|
|
- dataIndex: "remarks",
|
|
|
- key: "remarks"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "项目状态",
|
|
|
+ dataIndex: "projectStatus",
|
|
|
+ key: "projectStatus",
|
|
|
+ render: text => {
|
|
|
+ return getProjectStatus(text);
|
|
|
}
|
|
|
- ],
|
|
|
- dataSources: []
|
|
|
- };
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "签单金额(万元)",
|
|
|
+ dataIndex: "totalAmount",
|
|
|
+ key: "totalAmount"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "结算状态",
|
|
|
+ dataIndex: "liquidationStatus",
|
|
|
+ key: "liquidationStatus",
|
|
|
+ render: text => {
|
|
|
+ return getLiquidationStatus(text);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "应收款(万)",
|
|
|
+ dataIndex: "accountsReceivable",
|
|
|
+ key: "accountsReceivable"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "已收款(万)",
|
|
|
+ dataIndex: "settlementAmount",
|
|
|
+ key: "settlementAmount"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "未收款(万)",
|
|
|
+ dataIndex: "uncollectedAmount",
|
|
|
+ key: "uncollectedAmount"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "催收科目",
|
|
|
+ dataIndex: "dunSubject",
|
|
|
+ key: "dunSubject"
|
|
|
+ // render: text => {
|
|
|
+ // return getjiedian(text);
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "催款状态",
|
|
|
+ dataIndex: "dunStatus",
|
|
|
+ key: "dunStatus"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "催款启动日期",
|
|
|
+ dataIndex: "startDate",
|
|
|
+ key: "startDate"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "签单时间",
|
|
|
+ dataIndex: "signDate",
|
|
|
+ key: "signDate"
|
|
|
+ }
|
|
|
+ // {
|
|
|
+ // title: "催收操作",
|
|
|
+ // dataIndex: "abc",
|
|
|
+ // key: "abc",
|
|
|
+ // render: (text, record) => {
|
|
|
+ // return (
|
|
|
+ // <div>
|
|
|
+ // <Button
|
|
|
+ // onClick={e => {
|
|
|
+ // e.stopPropagation(), this.visit(record);
|
|
|
+ // }}
|
|
|
+ // type="primary"
|
|
|
+ // >
|
|
|
+ // 添加催款记录
|
|
|
+ // </Button>
|
|
|
+ // </div>
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ ],
|
|
|
+ data: [],
|
|
|
+ dataSource: [],
|
|
|
+ columnsX: [
|
|
|
+ {
|
|
|
+ title: "催款人",
|
|
|
+ dataIndex: "dumBy",
|
|
|
+ key: "dumBy"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "催款时间",
|
|
|
+ dataIndex: "dumTime",
|
|
|
+ key: "dumTime"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "催款情况",
|
|
|
+ dataIndex: "remarks",
|
|
|
+ key: "remarks"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ dataSources: []
|
|
|
+ };
|
|
|
},
|
|
|
|
|
|
//页面加载函数
|
|
@@ -666,7 +672,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
dataSource={this.state.dataSources}
|
|
|
rowSelection={rowSelection}
|
|
|
pagination={this.state.paginations}
|
|
|
- onRowClick={this.tableRowClick}
|
|
|
+ // onRowClick={this.tableRowClick}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|