fix: 优惠列表只有 old_status = 1进行中/2暂停中 可以作废

This commit is contained in:
zhangds 2022-10-18 11:02:52 +08:00
parent 3895b3a94c
commit 46ee64d7fa
1 changed files with 7 additions and 7 deletions

View File

@ -477,7 +477,13 @@ const UseCouponList = () => {
</span> </span>
); );
} }
if ([4, 5, 8].includes(rowData.status)) { if ([1, 2].includes(rowData.old_status)) {
return (
<span className="grid-link" onClick={(e) => delFn(e, rowData)}>
作废
</span>
);
} else {
return ( return (
<span <span
style={{ style={{
@ -488,12 +494,6 @@ const UseCouponList = () => {
作废 作废
</span> </span>
); );
} else {
return (
<span className="grid-link" onClick={(e) => delFn(e, rowData)}>
作废
</span>
);
} }
case 4: case 4:
if (rowData.status === 6 && Number(rowData.approval_id) > 0) { if (rowData.status === 6 && Number(rowData.approval_id) > 0) {