|
|
|
|
@ -206,8 +206,10 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
enterUp(item){ |
|
|
|
|
|
|
|
|
|
console.log(item); |
|
|
|
|
this.show=false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.$u.api.replaceCar.upateBusinItemInDataForQty(item).then(res=>{ |
|
|
|
|
// console.log(res); |
|
|
|
|
// }) |
|
|
|
|
@ -242,7 +244,7 @@ |
|
|
|
|
loadList() { |
|
|
|
|
//防抖 |
|
|
|
|
clearInterval(this.timer) |
|
|
|
|
console.log(this.dataForm); |
|
|
|
|
// console.log(this.dataForm); |
|
|
|
|
this.timer =setTimeout(()=>{ |
|
|
|
|
//节流 |
|
|
|
|
let flag = true |
|
|
|
|
@ -267,9 +269,9 @@ |
|
|
|
|
}) |
|
|
|
|
this.dataList=res.data |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.dataForm.containerCode1=this.dataForm.containerCode |
|
|
|
|
this.dataForm.containerTypeLabel=this.dataForm.containerCode |
|
|
|
|
this.dataForm.containerCode='' |
|
|
|
|
this.dataForm.containerCode=this.dataForm.containerCode |
|
|
|
|
// this.dataForm.containerTypeLabel=this.dataForm.containerCode |
|
|
|
|
// this.dataForm.containerCode='' |
|
|
|
|
},0) |
|
|
|
|
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
@ -284,7 +286,29 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
pickUp(){ |
|
|
|
|
this.$u.api.pickBy.pickAGV(this.dataForm).then(res=>{ |
|
|
|
|
if(this.dataForm.containerCode == null |
|
|
|
|
|| this.dataForm.containerCode === '' |
|
|
|
|
|| this.dataForm.containerCode === 0 |
|
|
|
|
|| this.dataForm.containerCode === undefined |
|
|
|
|
|| this.dataForm.containerCode ==='undefined'){ |
|
|
|
|
this.$u.toast("请扫描台车编号"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
var obj ={ |
|
|
|
|
containerCode:'', |
|
|
|
|
detailBoList:[] |
|
|
|
|
} |
|
|
|
|
obj.containerCode=this.dataForm.containerCode |
|
|
|
|
this.dataList.forEach(item=>{ |
|
|
|
|
obj.detailBoList.push( |
|
|
|
|
{ |
|
|
|
|
id:item.id, |
|
|
|
|
qty:item.qty |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
console.log(obj); |
|
|
|
|
this.$u.api.pickBy.pickAGV(obj).then(res=>{ |
|
|
|
|
console.log(res); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|