From 13d3fb908ca64e1e93739fe9fa502240aabe7764 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 17 Oct 2022 17:56:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=85=91=E6=8D=A2=E7=A0=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9C=AA=E9=80=9A=E8=BF=87=E7=8A=B6=E6=80=81?= =?UTF-8?q?=20=E9=83=A8=E5=88=86=E5=85=91=E6=8D=A2=E7=A0=81=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E4=BD=9C=E5=BA=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/list/list.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index 6c14f17e..f4cede5c 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -493,17 +493,8 @@ export default class acclist extends React.Component { )} {this.copyElementFunction(rowData)} - {rowData.status != 4 && - rowData.status != 5 && - rowData.status != -1 && - rowData.status != 8 && - rowData.status != 6 ? ( - this.delFn(e, rowData)}> - 作废 - - ) : ( + {[4, 5, 8, 6, -1].includes(rowData.status) || + (rowData.status === 7 && rowData.old_status === -1) ? ( 作废 + ) : ( + this.delFn(e, rowData)}> + 作废 + )} {rowData.status == 6 && Number(rowData.approval_id) > 0 ? (