新增 前端验证当前批次号不能重复
This commit is contained in:
parent
09c21769e3
commit
fd462e8c13
|
@ -361,6 +361,16 @@ export default class addKnockGold extends Component {
|
|||
|
||||
//字段转换
|
||||
const models = this.transformDataCode()
|
||||
|
||||
const isRepeat = data.find(
|
||||
(item) => item.channel_activity_id === models.channel_activity_id
|
||||
)
|
||||
|
||||
if (isRepeat) {
|
||||
Notify.error('不允许输入重复的平台批次号')
|
||||
return false
|
||||
}
|
||||
|
||||
data.push(models)
|
||||
sessionStorage.setItem('knockGoldData', JSON.stringify(data))
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue