Ver código fonte

查询待上架列表接口新增

zhaohuanhuan 4 meses atrás
pai
commit
e60e8b771c
2 arquivos alterados com 35 adições e 1 exclusões
  1. 25 1
      src/api/putaway/index.ts
  2. 10 0
      src/types/putaway.ts

+ 25 - 1
src/api/putaway/index.ts

@@ -1,7 +1,7 @@
 // @ts-ignore
 import request from '@/utils/request'
 // @ts-ignore
-import { batchPutawayType, getWaitPutawayInfoType } from '@/types/putaway'
+import { batchPutawayNewType, batchPutawayType, getWaitPutawayInfoNewType, getWaitPutawayInfoType,} from '@/types/putaway'
 
 /**
  * 批量上架
@@ -37,3 +37,27 @@ export function getWaitPutawayInfoNew(params:getWaitPutawayInfoNewType) {
     params
   })
 }
+/**
+ * 获取待上架列表-综合
+ * @param params
+ */
+export function getWaitPutawayListNew(params:getWaitPutawayInfoNewType) {
+  return request({
+    url: '/api/wms/app/inbound-self/toShelf/list',
+    method: 'get',
+    params
+  })
+}
+
+/**
+ * 批量上架-综合
+ * @param data
+ */
+export function setPutawayNew(data:batchPutawayNewType) {
+  return request({
+    url: '/api/wms/app/inbound-self/shelf',
+    method: 'post',
+    data
+  })
+}
+

+ 10 - 0
src/types/putaway.ts

@@ -27,3 +27,13 @@ export interface getWaitPutawayInfoNewType {
   containerId: string;
   warehouseId: string;
 }
+/**
+ * 批量上架
+ */
+export interface batchPutawayNewType {
+  seqId?: string;
+  locationId?: string;
+  qty?: number;
+  [property: string]: any;
+}
+