|
@@ -90,6 +90,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
name: this.state.customerName,//名称
|
|
|
orderNo: this.state.orderNo,//订单编号
|
|
|
+ depId: this.state.departmenttSearch,//订单部门
|
|
|
+ adminName:this.state.adminName,//责任人名称
|
|
|
starTime: this.state.releaseDate[0],//开始时间
|
|
|
endTime: this.state.releaseDate[1],//结束时间
|
|
|
},
|
|
@@ -118,6 +120,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
salesmanName:thisdata.salesmanName,//营销员名称
|
|
|
dunSubject:thisdata.dunSubject,//催收科目
|
|
|
startDate:thisdata.startDate,//催收启动时间
|
|
|
+ depName:thisdata.depName,//部门名称
|
|
|
|
|
|
});
|
|
|
};
|
|
@@ -186,6 +189,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
releaseDate: [],
|
|
|
selectedRowKeys: [],
|
|
|
orgCodeUrl:[],
|
|
|
+ departmentArr: [],
|
|
|
paginations:false,
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
@@ -251,6 +255,10 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
dataIndex: 'salesmanName',
|
|
|
key: 'salesmanName'
|
|
|
},{
|
|
|
+ title: '订单部门',
|
|
|
+ dataIndex: 'depName',
|
|
|
+ key: 'depName'
|
|
|
+ },{
|
|
|
title: '催收科目',
|
|
|
dataIndex: 'dunSubject',
|
|
|
key: 'dunSubject',
|
|
@@ -295,6 +303,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
|
|
|
//页面加载函数
|
|
|
componentWillMount() {
|
|
|
+ this.departmentList();
|
|
|
this.loadData();
|
|
|
},
|
|
|
//进入新增拜访记录
|
|
@@ -369,6 +378,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
})
|
|
|
this.state.orderNo='';
|
|
|
this.state.customerName='';
|
|
|
+ this.state.adminName='';
|
|
|
+ this.state.departmenttSearch=undefined;
|
|
|
this.state.releaseDate[0] = undefined;
|
|
|
this.state.releaseDate[1] = undefined;
|
|
|
this.loadData();
|
|
@@ -376,6 +387,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
resets(){
|
|
|
this.state.orderNo='';
|
|
|
this.state.customerName='';
|
|
|
+ this.state.adminName='';
|
|
|
+ this.state.departmenttSearch=undefined;
|
|
|
this.state.releaseDate[0] = undefined;
|
|
|
this.state.releaseDate[1] = undefined;
|
|
|
},
|
|
@@ -405,7 +418,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
//导出
|
|
|
exportExec(){
|
|
|
var data = {
|
|
|
- name: this.state.customerName?this.state.customerName:undefined,//订单负责人
|
|
|
+ name: this.state.customerName?this.state.customerName:undefined,//客户名称
|
|
|
+ adminName:this.state.adminName?this.state.adminName:undefined,//订单负责人
|
|
|
orderNo: this.state.orderNo?this.state.orderNo:undefined,//订单编号
|
|
|
startTime: this.state.releaseDate[0]?this.state.releaseDate[0]:undefined,
|
|
|
endTime: this.state.releaseDate[1]?this.state.releaseDate[1]:undefined,
|
|
@@ -418,6 +432,46 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
})
|
|
|
this.resets();
|
|
|
},
|
|
|
+ //部门
|
|
|
+ departmentList() {
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/organization/selectSuperId",
|
|
|
+ data: {
|
|
|
+
|
|
|
+ },
|
|
|
+ success: function(data) {
|
|
|
+ let thedata = data.data;
|
|
|
+ let theArr = [];
|
|
|
+ if(!thedata) {
|
|
|
+ if(data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ } else {
|
|
|
+ thedata.map(function(item, index) {
|
|
|
+ theArr.push({
|
|
|
+ key: index,
|
|
|
+ name: item.name,
|
|
|
+ id: item.id,
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ departmentArr: theArr,
|
|
|
+ })
|
|
|
+ }.bind(this),
|
|
|
+ }).always(function() {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
render() {
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
@@ -441,6 +495,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
})
|
|
|
},
|
|
|
};
|
|
|
+ let departmentArr = this.state.departmentArr || [];
|
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
|
return(
|
|
|
<div className="user-content">
|
|
@@ -452,9 +507,22 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
<Input placeholder="客户名称" style={{width:'150px',marginBottom:'10px'}}
|
|
|
value={this.state.customerName}
|
|
|
onChange={(e) => { this.setState({ customerName: e.target.value }); }} />
|
|
|
+ <Input placeholder="营销员名称" style={{width:'150px',marginBottom:'10px'}}
|
|
|
+ value={this.state.adminName}
|
|
|
+ onChange={(e) => { this.setState({ adminName: e.target.value }); }} />
|
|
|
<Input placeholder="订单编号" style={{width:'150px'}}
|
|
|
value={this.state.orderNo}
|
|
|
onChange={(e) => { this.setState({ orderNo: e.target.value }); }} />
|
|
|
+ <Select placeholder="选择部门"
|
|
|
+ style={{ width: 150 ,marginRight:'10px'}}
|
|
|
+ value={this.state.departmenttSearch}
|
|
|
+ onChange={(e) => { this.setState({ departmenttSearch: e }) }}>
|
|
|
+ {
|
|
|
+ departmentArr.map(function (item) {
|
|
|
+ return <Select.Option key={item.id} >{item.name}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
<span style={{marginRight:"10px"}}>合同签订时间 :</span>
|
|
|
<RangePicker
|
|
|
value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|