diff --git a/common/http.api.js b/common/http.api.js index a245753..fabb0f6 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -35,7 +35,7 @@ const install = (Vue, vm) => { queryBasPackageByGoodId: (params = {}) => vm.$u.get('/wms/receiving/pda/queryBasPackageByGoodId', params), - //确认收货 + //确认收货22 confirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/confirmReceiving', 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), }, - + //出库拣货 + pickBy:{ + //根据托盘编号获取需要拣货的明细 + pickByContainerCode: (params = {}) => vm.$u.post('/wms/pick/pda/pickByContainerCode', + params), + + // 出库拣货拣货页面 -- 完成出库 + pickAGV: (params = {}) => vm.$u.post('/wms/pick/pda/v2/pickAGV', + params), + }, //补货上架 replenishment: { //查询列表中区域分组查询对应的任务数 diff --git a/pages/AvgOrderPkg/index.vue b/pages/AvgOrderPkg/index.vue index c911068..aabc1c1 100644 --- a/pages/AvgOrderPkg/index.vue +++ b/pages/AvgOrderPkg/index.vue @@ -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); }) },