This commit is contained in:
wjn 2024-06-25 12:31:23 +08:00
parent d904241e60
commit 85fca70896

View File

@ -117,9 +117,6 @@ class HM042ShowPrint extends React.Component {
if (ret.STATUS >= 4) {
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 })
if (ret.ID) {
this.props.dispatch({
@ -131,7 +128,7 @@ class HM042ShowPrint extends React.Component {
onComplete: (result) => {
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
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' })
}
}
@ -143,11 +140,16 @@ class HM042ShowPrint extends React.Component {
ID: this.props.data.id,
},
onComplete: (result) => {
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
this.setState({ BtnSignDisplay: 'none' })
} else {
this.setState({ BtnSignDisplay: 'inline' })
if (result != null && this.props.data.TaskID != null) {
if (result) {
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
this.setState({ BtnSignDisplay: 'none' })
} else {
this.setState({ BtnSignDisplay: 'inline' })
}
}
}
}
})
}