From 6c7a6c68d56d9f0347ada46e17a1cb5a82a40d28 Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Thu, 7 Mar 2024 15:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A3=E8=B4=A7=E5=87=BA=E5=BA=93=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.api.js | 13 +++++++++++-- pages/AvgOrderPkg/index.vue | 36 ++++++++++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 8 deletions(-) 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); }) },