From 46ee64d7fafefb803a849dd0a1e4cfb313cdc5f8 Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 18 Oct 2022 11:02:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E6=83=A0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=20old=5Fstatus=20=3D=201=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E4=B8=AD/2=E6=9A=82=E5=81=9C=E4=B8=AD=20=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E4=BD=9C=E5=BA=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/coupon/list/index.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/coupon/list/index.jsx b/src/pages/coupon/list/index.jsx index f1f44c5e..609479bb 100644 --- a/src/pages/coupon/list/index.jsx +++ b/src/pages/coupon/list/index.jsx @@ -477,7 +477,13 @@ const UseCouponList = () => { ); } - if ([4, 5, 8].includes(rowData.status)) { + if ([1, 2].includes(rowData.old_status)) { + return ( + delFn(e, rowData)}> + 作废 + + ); + } else { return ( { 作废 ); - } else { - return ( - delFn(e, rowData)}> - 作废 - - ); } case 4: if (rowData.status === 6 && Number(rowData.approval_id) > 0) {