1、修复 兑换码复制状态判断错误

2、修复 兑换码复制 时间不能选座错误
This commit is contained in:
wangsongsole 2022-08-18 15:17:03 +08:00
parent 4483b324c7
commit 1c197bb685
2 changed files with 13 additions and 6 deletions

View File

@ -822,7 +822,8 @@ export default class acclist extends React.Component {
if (type == 'end') { if (type == 'end') {
isdisabled = isdisabled =
moment(str).isBefore(beign_time) || moment(str).isAfter(end_time) moment(str).add(1, 'days').isBefore(beign_time) ||
moment(str).isAfter(end_time)
} }
return isdisabled return isdisabled
} }

View File

@ -188,11 +188,17 @@ export default class acclist extends React.Component {
/* 处理可复制数据逻辑 */ /* 处理可复制数据逻辑 */
copyElementFunction({ key_batch_id, status, keyBatch, id, title }) { copyElementFunction({ key_batch_id, status, keyBatch, id, title }) {
let element = '' let element = ''
if ( /*
![-1, 6, 7].includes(status) && 条件一 如果兑换码状态为1进行中2暂停中3未开始可直接复制
![6, 7].includes(keyBatch?.status) && 条件二 如果兑换码状态为4已完结5已作废则判断key批次是否是 生效中暂停中审核驳回状态且营销计划是待生效进行中暂停中
keyBatch?.discard === 0 */
) { const isCopy =
[1, 2, 3].includes(status) ||
([4, 5].includes(status) &&
[4, 5, 8].includes(keyBatch.status) &&
[3, 5, 4].includes(keyBatch.plan.status))
if (isCopy) {
element = ( element = (
<span <span
className='grid-link' className='grid-link'