修改bug

This commit is contained in:
wjn 2024-06-25 11:40:33 +08:00
parent 029e287b23
commit 18e751d00a
2 changed files with 10 additions and 10 deletions

View File

@ -87,7 +87,7 @@ class HM042ShowPrint extends React.Component {
removeDuplicateUser(arr) {
let obj = {};
arr = arr.reduce((newArr, next) => {
obj[next.USER_ID] ? "" : (obj[next.USER_ID] = true && newArr.push(next));
obj[next.CHARGE_USER_ID] ? "" : (obj[next.CHARGE_USER_ID] = true && newArr.push(next));
return newArr;
}, []);
return arr;
@ -129,10 +129,10 @@ class HM042ShowPrint extends React.Component {
ID: this.props.data.id,
},
onComplete: (result) => {
if (result != null && this.props.data.TaskID != null) {
if (result) {
this.setState({ isAudit: 'inline' })
}
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
this.setState({ isAudit: 'none' })
} else {
this.setState({ isAudit: 'inline' })
}
}
})
@ -143,10 +143,10 @@ class HM042ShowPrint extends React.Component {
ID: this.props.data.id,
},
onComplete: (result) => {
if (result != null && this.props.data.TaskID != null) {
if (result) {
this.setState({ BtnSignDisplay: 'inline' })
}
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
this.setState({ BtnSignDisplay: 'none' })
} else {
this.setState({ BtnSignDisplay: 'inline' })
}
}
})

View File

@ -629,7 +629,7 @@ class Home extends React.Component {
TaskID: TaskID,
onCancel: this.handleCancel,
taskCode: taskCode,
tableKey: this.state.tableKey,
tableKey: this.state.overDataKey,
homeReload: true,
},
formCode: formCode,