|
|
@@ -22,6 +22,7 @@ class ApprovelDetail extends Component{
|
|
|
constructor(){
|
|
|
super();
|
|
|
this.state = {
|
|
|
+ approveOpinion:'',
|
|
|
showButton:false,
|
|
|
AMvisible: false,
|
|
|
AMTitle:null,
|
|
|
@@ -79,7 +80,7 @@ class ApprovelDetail extends Component{
|
|
|
return(
|
|
|
<div ref={node => this.node = node}>
|
|
|
<div className="headerDiv">
|
|
|
- <img className="headerImg" src={this.props.userInfo.userAvatar.length == 0 ? hi1_img : this.props.userInfo.userAvatar} alt=""/>
|
|
|
+ <img className="headerImg" src={hi1_img} alt=""/>
|
|
|
<div style={{marginTop:10}}>
|
|
|
<div style={{color:"#333333",fontSize:18}}>{this.state.docModel.proposer.value}</div>
|
|
|
<div style={{color:"#666666",fontSize:12,marginTop:10}}>{this.state.docModel.oaApprove.creatDate}</div>
|
|
|
@@ -103,8 +104,9 @@ class ApprovelDetail extends Component{
|
|
|
</TransitionGroup>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div className="comhline_sty"></div>
|
|
|
+ {
|
|
|
+ pictureItems.length > 0 ? <div className="comhline_sty"></div> : ''
|
|
|
+ }
|
|
|
|
|
|
<div style={{marginBottom:50}}>
|
|
|
{/*{this.state.docModel.approver.map((itemdata,index) => <ItemApprovel key ={index} itemdata = {itemdata}></ItemApprovel>)}*/}
|
|
|
@@ -132,7 +134,7 @@ class ApprovelDetail extends Component{
|
|
|
onCancel={this.doApprovel.bind(this,0)}>
|
|
|
<div onChange={this.handelValueCom}>
|
|
|
<div style={{textAlign:'center',fontSize:15,color:'#292929',marginBottom:10}}>{this.state.AMTitle}</div>
|
|
|
- <textarea autoFocus="autoFocus" ref='approveOpinion' className="form-control" rows="5" placeholder="填写意见说明(非必填)" maxLength={50}></textarea>
|
|
|
+ <textarea autoFocus="autoFocus" ref='approveOpinion' value={this.state.approveOpinion} className="form-control" rows="5" placeholder="填写意见说明(非必填)" maxLength={50}></textarea>
|
|
|
<div style={{display:'flex',flexDirection:'row',marginTop:20}}>
|
|
|
<div style={{width:'50%',textAlign:'center'}}>
|
|
|
<Button className="disagree_sty" style={{borderRadius:5}} onClick={this.doApprovel.bind(this,0)} >取消</Button>
|
|
|
@@ -179,7 +181,7 @@ class ApprovelDetail extends Component{
|
|
|
if(order == 0){
|
|
|
return
|
|
|
}
|
|
|
- if(this.state.approveOpinion.length == 0 || this.state.approveOpinion == ''){
|
|
|
+ if(this.state.approveOpinion == '' || this.state.approveOpinion.length == 0){
|
|
|
this.setState({
|
|
|
approveOpinion:'-'
|
|
|
})
|
|
|
@@ -236,6 +238,10 @@ class ApprovelDetail extends Component{
|
|
|
approveId:this.props.match.params.approveId,
|
|
|
isMyApply:this.props.match.params.isMyApply
|
|
|
},function () {
|
|
|
+
|
|
|
+ if(this.state.isMyApply == true){
|
|
|
+ hi1_img = this.props.userInfo.userAvatar.length > 0 ? this.props.userInfo.userAvatar : hi1_img
|
|
|
+ }
|
|
|
if(this.state.approveId == null || this.state.approveId == ''){
|
|
|
return
|
|
|
}else {
|