拣货出库提交

master
Mr.sun 2 years ago
parent 8cd83a5f7a
commit 6c7a6c68d5
  1. 13
      common/http.api.js
  2. 36
      pages/AvgOrderPkg/index.vue

@ -35,7 +35,7 @@ const install = (Vue, vm) => {
queryBasPackageByGoodId: (params = {}) => vm.$u.get('/wms/receiving/pda/queryBasPackageByGoodId', queryBasPackageByGoodId: (params = {}) => vm.$u.get('/wms/receiving/pda/queryBasPackageByGoodId',
params), params),
//确认收货 //确认收货22
confirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/confirmReceiving', params), confirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/confirmReceiving', params),
//确认收货(多选) //确认收货(多选)
multipleConfirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceiving', params), multipleConfirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceiving', params),
@ -43,7 +43,16 @@ const install = (Vue, vm) => {
multipleConfirmReceivingList: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceivingList', params), multipleConfirmReceivingList: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceivingList', params),
}, },
//出库拣货
pickBy:{
//根据托盘编号获取需要拣货的明细
pickByContainerCode: (params = {}) => vm.$u.post('/wms/pick/pda/pickByContainerCode',
params),
// 出库拣货拣货页面 -- 完成出库
pickAGV: (params = {}) => vm.$u.post('/wms/pick/pda/v2/pickAGV',
params),
},
//补货上架 //补货上架
replenishment: { replenishment: {
//查询列表中区域分组查询对应的任务数 //查询列表中区域分组查询对应的任务数

@ -206,8 +206,10 @@
}, },
enterUp(item){ enterUp(item){
console.log(item);
this.show=false this.show=false
// this.$u.api.replaceCar.upateBusinItemInDataForQty(item).then(res=>{ // this.$u.api.replaceCar.upateBusinItemInDataForQty(item).then(res=>{
// console.log(res); // console.log(res);
// }) // })
@ -242,7 +244,7 @@
loadList() { loadList() {
// //
clearInterval(this.timer) clearInterval(this.timer)
console.log(this.dataForm); // console.log(this.dataForm);
this.timer =setTimeout(()=>{ this.timer =setTimeout(()=>{
// //
let flag = true let flag = true
@ -267,9 +269,9 @@
}) })
this.dataList=res.data this.dataList=res.data
setTimeout(()=>{ setTimeout(()=>{
this.dataForm.containerCode1=this.dataForm.containerCode this.dataForm.containerCode=this.dataForm.containerCode
this.dataForm.containerTypeLabel=this.dataForm.containerCode // this.dataForm.containerTypeLabel=this.dataForm.containerCode
this.dataForm.containerCode='' // this.dataForm.containerCode=''
},0) },0)
this.$nextTick(()=>{ this.$nextTick(()=>{
@ -284,7 +286,29 @@
}, },
pickUp(){ 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); console.log(res);
}) })
}, },

Loading…
Cancel
Save