隐藏提醒

This commit is contained in:
2022-09-02 13:09:45 +08:00
parent 1c36f84e69
commit 90ac6ba5e7
2 changed files with 12 additions and 12 deletions

View File

@@ -154,12 +154,12 @@ export default {
this.val2 = '' this.val2 = ''
return return
} }
let arr2 = this.dataList.filter(el => { return el.material_code === res.bucket_jo.material_code && el.pcsn === res.bucket_jo.pcsn }) // let arr2 = this.dataList.filter(el => { return el.material_code === res.bucket_jo.material_code && el.pcsn === res.bucket_jo.pcsn })
if (!arr2.length) { // if (!arr2.length) {
this.toast('物料编码和批次必须一致') // this.toast('物料编码和批次必须一致')
this.val2 = '' // this.val2 = ''
return // return
} // }
this.bucket_jo = res.bucket_jo this.bucket_jo = res.bucket_jo
this.val2 = this.bucket_jo.bucketunique this.val2 = this.bucket_jo.bucketunique
this.dataList.push(this.bucket_jo) this.dataList.push(this.bucket_jo)

View File

@@ -156,12 +156,12 @@ export default {
this.val2 = '' this.val2 = ''
return return
} }
let arr2 = this.dataList.filter(el => { return el.material_code === res.bucket_jo.material_code && el.pcsn === res.bucket_jo.pcsn }) // let arr2 = this.dataList.filter(el => { return el.material_code === res.bucket_jo.material_code && el.pcsn === res.bucket_jo.pcsn })
if (!arr2.length) { // if (!arr2.length) {
this.toast('物料编码和批次必须一致') // this.toast('物料编码和批次必须一致')
this.val2 = '' // this.val2 = ''
return // return
} // }
this.bucket_jo = res.bucket_jo this.bucket_jo = res.bucket_jo
this.val2 = this.bucket_jo.bucketunique this.val2 = this.bucket_jo.bucketunique
this.dataList.push(this.bucket_jo) this.dataList.push(this.bucket_jo)