Commit 688a0086 authored by 高宇's avatar 高宇

1.阻止表单的默认上传行为

parent a33fafb6
......@@ -151,7 +151,6 @@ export default {
businessId: this.businessId
}
handleOutWarehouse(obj).then(res => {
console.log('res', res)
if (res.code === 200) {
this.form = res.data
this.tableList = res.data.boxList
......@@ -236,7 +235,15 @@ export default {
// 判断tableList中location和search相同的元素个数
this.tableList.forEach((item, index) => {
if (item.location.toUpperCase() === search.toUpperCase() && item.lot === lot) {
let oneLot = ''
let twoLot = ''
if (item.lot && item.lot !== '') {
oneLot = item.lot.toUpperCase()
}
if (lot && lot !== '') {
twoLot = lot.toUpperCase()
}
if (item.location.toUpperCase() === search.toUpperCase() && oneLot === twoLot) {
obj.list.push(index)
}
})
......@@ -269,7 +276,6 @@ export default {
this.searchForm.lot = null
return null
}
console.log('判断tableList中location和search相同的元素个数', obj.list.length)
}
},
......@@ -295,7 +301,6 @@ export default {
this.search = this.searchForm.search
this.judgePush(this.search)
}
console.log('this.search', this.search)
}
})
},
......@@ -428,9 +433,7 @@ export default {
businessId: this.businessId,
boxList: this.tableList
}
console.log('参数', obj)
persistOut(obj).then(res => {
console.log('res', res)
if (res.code === 200) {
this.$router.push({
path: '/setup/inspectionRequestProcessing'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment