From eb0c3f119e1ebddc8277f28e8a55ab411f8f3082 Mon Sep 17 00:00:00 2001 From: wjn Date: Tue, 25 Jun 2024 14:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomPages/HM/HM042ShowPrint.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/components/CustomPages/HM/HM042ShowPrint.js b/src/components/CustomPages/HM/HM042ShowPrint.js index 8e48a1f..2631e20 100644 --- a/src/components/CustomPages/HM/HM042ShowPrint.js +++ b/src/components/CustomPages/HM/HM042ShowPrint.js @@ -128,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 if (ret.STATUS == 4 && this.props.data.TaskID != null && ( ret.DEPUTY_GROUP_LEADER_OPINION == 0 || ret.GROUP_LEADER_OPINION == 0)){ + } else if (ret.STATUS == 4 && this.props.data.TaskID != null && (ret.DEPUTY_GROUP_LEADER_OPINION == 0 || ret.GROUP_LEADER_OPINION == 0)) { this.setState({ isAudit: 'inline' }) } } @@ -145,11 +145,11 @@ class HM042ShowPrint extends React.Component { if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) { this.setState({ BtnSignDisplay: 'none' }) } else { - this.setState({ BtnSignDisplay: 'inline' }) + this.setState({ BtnSignDisplay: 'none' }) } } } - + } }) } @@ -238,17 +238,7 @@ class HM042ShowPrint extends React.Component { {data.Nav_GroupLeader ? data.Nav_GroupLeader.NAME : ''} { this.teamUsers && this.teamUsers.map((item, i) => { - if (i == (this.teamUsers.length - 1)) { - if (item.DEAL_STATUS == 0) - return - else - return item.Nav_ChargeUser ? item.Nav_ChargeUser.NAME : '' - } else { - if (item.DEAL_STATUS == 0) - return - else - return item.Nav_ChargeUser ? item.Nav_ChargeUser.NAME + ' ' : '' - } + return item.Nav_ChargeUser ? item.Nav_ChargeUser.NAME+' ' : '' }) } {data.EVALUATION_CONTENT}