修改
This commit is contained in:
parent
d904241e60
commit
85fca70896
@ -117,9 +117,6 @@ class HM042ShowPrint extends React.Component {
|
|||||||
if (ret.STATUS >= 4) {
|
if (ret.STATUS >= 4) {
|
||||||
this.state.isFinished = "inline";
|
this.state.isFinished = "inline";
|
||||||
}
|
}
|
||||||
if (ret.STATUS == 2 && this.props.data.TaskID != null && ret.DEPUTY_GROUP_LEADER_OPINION == 0 && ret.GROUP_LEADER_OPINION == 0) {
|
|
||||||
this.state.isAudit = "inline";
|
|
||||||
}
|
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (ret.ID) {
|
if (ret.ID) {
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -131,7 +128,7 @@ class HM042ShowPrint extends React.Component {
|
|||||||
onComplete: (result) => {
|
onComplete: (result) => {
|
||||||
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ isAudit: 'none' })
|
this.setState({ isAudit: 'none' })
|
||||||
} else {
|
} else if (ret.STATUS == 2 && this.props.data.TaskID != null && ret.DEPUTY_GROUP_LEADER_OPINION == 0 && ret.GROUP_LEADER_OPINION == 0){
|
||||||
this.setState({ isAudit: 'inline' })
|
this.setState({ isAudit: 'inline' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,11 +140,16 @@ class HM042ShowPrint extends React.Component {
|
|||||||
ID: this.props.data.id,
|
ID: this.props.data.id,
|
||||||
},
|
},
|
||||||
onComplete: (result) => {
|
onComplete: (result) => {
|
||||||
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
if (result != null && this.props.data.TaskID != null) {
|
||||||
this.setState({ BtnSignDisplay: 'none' })
|
if (result) {
|
||||||
} else {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnSignDisplay: 'inline' })
|
this.setState({ BtnSignDisplay: 'none' })
|
||||||
|
} else {
|
||||||
|
this.setState({ BtnSignDisplay: 'inline' })
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user