|
@@ -127,11 +127,11 @@ const Assign=React.createClass({
|
|
this.props.closeDesc(false, true);
|
|
this.props.closeDesc(false, true);
|
|
},
|
|
},
|
|
//分配对象列表
|
|
//分配对象列表
|
|
- contactList(item={}){
|
|
|
|
|
|
+ contactList(item={},nub){
|
|
this.setState({
|
|
this.setState({
|
|
loading:true
|
|
loading:true
|
|
});
|
|
});
|
|
- let api = this.state.contact?'/api/admin/frequentContactsList':'/api/admin/superviser/adminList';
|
|
|
|
|
|
+ let api = nub?'/api/admin/frequentContactsList':'/api/admin/superviser/adminList';
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
@@ -191,7 +191,7 @@ const Assign=React.createClass({
|
|
taskReceiverId:!this.state.contact?record.id:record.contactId,//分配人物ID
|
|
taskReceiverId:!this.state.contact?record.id:record.contactId,//分配人物ID
|
|
specially:this.props.specially//是否是咨询师管理员
|
|
specially:this.props.specially//是否是咨询师管理员
|
|
}:{
|
|
}:{
|
|
- orderNo:this.props.data.orderNo,
|
|
|
|
|
|
+ orderNo:this.state.orderNo,
|
|
financeId: !this.state.contact?record.id:record.contactId, //分配人物id
|
|
financeId: !this.state.contact?record.id:record.contactId, //分配人物id
|
|
approval:this.props.data.approval //是否特批
|
|
approval:this.props.data.approval //是否特批
|
|
}
|
|
}
|
|
@@ -208,7 +208,7 @@ const Assign=React.createClass({
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
searchOrder(){
|
|
searchOrder(){
|
|
- this.contactList();
|
|
|
|
|
|
+ this.contactList({},this.state.contact);
|
|
},
|
|
},
|
|
resetOrder(){
|
|
resetOrder(){
|
|
this.state.departmenttList=undefined;
|
|
this.state.departmenttList=undefined;
|
|
@@ -224,8 +224,11 @@ const Assign=React.createClass({
|
|
componentWillReceiveProps(nextProps) {
|
|
componentWillReceiveProps(nextProps) {
|
|
this.state.visible=nextProps.showDesc;
|
|
this.state.visible=nextProps.showDesc;
|
|
if(nextProps.showDesc){
|
|
if(nextProps.showDesc){
|
|
- this.contactList(nextProps);
|
|
|
|
|
|
+ this.contactList(nextProps,1);
|
|
this.departmentList()
|
|
this.departmentList()
|
|
|
|
+ this.setState({
|
|
|
|
+ orderNo:nextProps.data.orderNo
|
|
|
|
+ })
|
|
}
|
|
}
|
|
this.setState({
|
|
this.setState({
|
|
contact:1
|
|
contact:1
|