diff --git a/src/api/wms/linkage/index.ts b/src/api/wms/linkage/index.ts new file mode 100644 index 0000000..d077958 --- /dev/null +++ b/src/api/wms/linkage/index.ts @@ -0,0 +1,56 @@ +import request from '@/utils/request'; + + +export const allocateOrderlList = (query) => { + return request({ + url: '/wms/allocateOrder/list', + method: 'get', + params: query + }); +}; + +export const allocateOrderDetailList = (query) => { + return request({ + url: '/wms/allocateOrderDetail/list', + method: 'get', + params: query + }); +}; + +export const allocateOrder = (aoId) => { + return request({ + url: '/wms/allocateOrder/' + aoId, + method: 'delete' + }); +}; + +export const viewAllocateOrder = (aoId) => { + return request({ + url: '/wms/allocateOrder/' + aoId, + method: 'get' + }); +}; + +export const addAllocateOrder = (data) => { + return request({ + url: '/wms/allocateOrder', + method: 'post', + data, + }); +}; + +export const getMaterialList = (query) => { + return request({ + url: '/wms/baseMaterialInfo/materialList', + method: 'get', + params: query + }); +}; + +export const addAllocateOrderDetail = (data) => { + return request({ + url: '/wms/allocateOrderDetail', + method: 'post', + data, + }); +}; diff --git a/src/api/wms/linkage/types.ts b/src/api/wms/linkage/types.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/views/wms/linkage/index.vue b/src/views/wms/linkage/index.vue index a62b46d..fa950b1 100644 --- a/src/views/wms/linkage/index.vue +++ b/src/views/wms/linkage/index.vue @@ -2,8 +2,8 @@
- - + + - 查询 + 查询 @@ -47,15 +47,57 @@ 导出 + @queryTable="getParentTable"> - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + - - - - + + + @@ -120,29 +204,59 @@ - + + + + - + + + + + + + + + + + + + + + + + +