fix: 修改兑换码管理,复制和编辑包码不可操作
This commit is contained in:
parent
626f39063f
commit
000f6de836
|
@ -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 = (
|
||||
<span className="grid-link" style={{}} onClick={(e) => 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 ? (
|
||||
<span
|
||||
className="grid-link"
|
||||
onClick={(e) => this.addCodeFunction(2, rowData)}
|
||||
|
|
Loading…
Reference in New Issue