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

View File

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