|
|
@@ -17,6 +17,7 @@ import {API,_baseURL} from '../../../configs/api.config';
|
|
|
import {Toast} from 'antd-mobile';
|
|
|
import {connect} from 'react-redux';
|
|
|
import ImagesViewer from '../../../components/imagesVIewer/index';
|
|
|
+import {saveListState} from "../../../redux/actions/listState";
|
|
|
|
|
|
class ApprovelDetail extends Component{
|
|
|
constructor(){
|
|
|
@@ -200,6 +201,12 @@ class ApprovelDetail extends Component{
|
|
|
this.setState({
|
|
|
showButton:false
|
|
|
})
|
|
|
+ if (this.props.listState && !isObjEmpty(this.props.listState.listData2)) {
|
|
|
+ this.props.listState.listData2[this.props.listState.itemIndex].approveStatus = 2
|
|
|
+ saveListState({
|
|
|
+ listData2: this.props.listState.listData2,
|
|
|
+ })()
|
|
|
+ }
|
|
|
this.backTask = setTimeout(()=>{
|
|
|
// this.props.history.push("/approvel")
|
|
|
this.props.history.goBack()
|
|
|
@@ -297,6 +304,7 @@ class ApprovelDetail extends Component{
|
|
|
}
|
|
|
}
|
|
|
let mapStateToProps = (state) => ({
|
|
|
+ listState: {...state.redListState},
|
|
|
userInfo: {...state.redUserInfo}
|
|
|
})
|
|
|
|