Procházet zdrojové kódy

收货-查询任务切换接口

zhaohuanhuan před 4 měsíci
rodič
revize
1cb430e81b

+ 1 - 1
src/api/takeDelivery/index.ts

@@ -8,7 +8,7 @@ import { calculateShelfLifeType, getCommodityRuleType, getIReceivingTaskType, ge
  */
 export function getIReceivingTask(data:getIReceivingTaskType) {
   return request({
-    url: '/api/device/check/receiving/getTask',
+    url: '/api/wms/receiving/getTask',
     method: 'post',
     data:JSON.stringify(data),
   })

+ 2 - 1
src/types/takeDelivery.ts

@@ -7,7 +7,8 @@
  */
 export interface getIReceivingTaskType {
   taskNo: string;
-  version:string
+  version:string;
+  warehouse: string;
 }
 
 /**

+ 1 - 1
src/views/inbound/takeDelivery/task/index.vue

@@ -263,7 +263,7 @@ const setBarcode = (code, type) => {
     formattedTime.value="00:00:00"
     totalSeconds.value=0
   }
-  getIReceivingTask({ taskNo:code,version:'V6' }).then(res=>{
+  getIReceivingTask({ taskNo:code,version:'V6',warehouse }).then(res=>{
     back.value = true
     if(res.data.receivedQty==res.data.expectedQty && res.data.expectedQty>0 ){
       if(type){

+ 1 - 1
src/views/robot/takeDelivery/task/index.vue

@@ -263,7 +263,7 @@ const setBarcode = (code, type) => {
     formattedTime.value="00:00:00"
     totalSeconds.value=0
   }
-  getIReceivingTask({ taskNo:code,version:'V6' }).then(res=>{
+  getIReceivingTask({ taskNo:code,version:'V6',warehouse }).then(res=>{
     back.value = true
     if(res.data.receivedQty==res.data.expectedQty && res.data.expectedQty>0 ){
       if(type){