From 000f6de83681c546e0db634da0cd807bddb527c7 Mon Sep 17 00:00:00 2001 From: zhangds Date: Sun, 3 Mar 2024 16:04:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=85=91=E6=8D=A2?= =?UTF-8?q?=E7=A0=81=E7=AE=A1=E7=90=86=EF=BC=8C=E5=A4=8D=E5=88=B6=E5=92=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8C=85=E7=A0=81=E4=B8=8D=E5=8F=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/list/list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index ad375f3b..70b28d0f 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -147,6 +147,7 @@ export default class acclist extends React.Component { /* 条件一 如果兑换码状态为1(进行中)、2(暂停中)、3(未开始)可直接复制 条件二 如果兑换码状态为4(已完结)、5(已作废)则判断key批次是否是 生效中、暂停中、审核驳回状态且营销计划是待生效、进行中、暂停中 + 新增条件是否是个包码 */ const isCopy = [1, 2, 3].includes(params?.status) || @@ -154,7 +155,7 @@ export default class acclist extends React.Component { [4, 5, 8].includes(params.keyBatch?.status) && [3, 5, 4].includes(params.keyBatch.plan?.status)) - if (isCopy) { + if (isCopy && params.keyBatch.plan.settlement_type === 0) { element = ( this.addCodeFunction(1, params)}> 复制 @@ -584,7 +585,8 @@ export default class acclist extends React.Component { {rowData.status != 4 && rowData.status != 5 && rowData.status != 8 && - rowData.status != 6 ? ( + rowData.status != 6 && + rowData.keyBatch.plan.settlement_type === 0 ? ( this.addCodeFunction(2, rowData)}