From 2a45863a06178834d068ae7271d37ace4b68ee0a Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 22 Nov 2022 14:34:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201).=E4=BF=AE=E5=A4=8D=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E5=88=97=E8=A1=A8=E5=90=AF=E7=94=A8=E5=81=9C=E7=94=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=202).=20=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E4=B8=AD=E7=8A=B6=E6=80=81=E4=BD=9C=E5=BA=9F=E8=87=B3=E7=81=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/coupon/list/index.jsx | 34 +++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/pages/coupon/list/index.jsx b/src/pages/coupon/list/index.jsx index b35153a7..9ee488d9 100644 --- a/src/pages/coupon/list/index.jsx +++ b/src/pages/coupon/list/index.jsx @@ -491,6 +491,18 @@ const UseCouponList = () => { ); } if ([1, 2, 3].includes(rowData.old_status)) { + if (rowData.approval_status === 1) { + return ( + + 作废 + + ); + } return ( delFn(e, rowData)}> 作废 @@ -635,14 +647,20 @@ const UseCouponList = () => { } if (com == "switch") { - return ( - changeStatus(e, rowData)} - disabled={rowData.status == 4 || rowData.status == 5} - > - ); + // 必须是 进行中1 或者 暂停中2 + if (rowData.status === 2 || rowData.status === 1) { + return ( + changeStatus(e, rowData)} + > + ); + } else { + return ( + + ); + } } if (com == "status") {