修复 【key批次列表】创建中、审核中、审核驳回、已作废状态的key批次,不允许批量发送key批次

This commit is contained in:
wangsongsole 2022-08-10 15:42:28 +08:00
parent abf371b86c
commit b4a28a252f
1 changed files with 11 additions and 0 deletions

View File

@ -584,6 +584,17 @@ export default class acclist extends React.Component {
/* 批量发送按钮 */ /* 批量发送按钮 */
bulkSendFunction() { bulkSendFunction() {
let isNotify = ''
this.state.gridSelection.filter((item) => {
if (![4, 5, 6].includes(item.state)) {
return (isNotify = true)
}
})
if (isNotify) {
return Notify.warn('只有状态为进行中、暂停中、已完结的允许发送')
}
this.getResellerInfoFunction(this.state.gridSelection[0].reseller_id) this.getResellerInfoFunction(this.state.gridSelection[0].reseller_id)
this.setState({ isBulkSend: true }) this.setState({ isBulkSend: true })
} }