From fd821675000b3cc32d72654712fa23dc7b282ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Mon, 13 Jan 2025 13:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=88=B6=E5=AD=90=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/linkage/index.ts | 56 +++++ src/api/wms/linkage/types.ts | 0 src/views/wms/linkage/index.vue | 380 ++++++++++++++++++++++---------- 3 files changed, 318 insertions(+), 118 deletions(-) create mode 100644 src/api/wms/linkage/index.ts create mode 100644 src/api/wms/linkage/types.ts 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 @@ - + + + + - + + + + + + + + + + + + + + + + + +