From cf5a8ed18c703e708e5b7e97b6bc345ea10243dc Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 14 Mar 2024 14:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E4=BB=BB=E5=8A=A1=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=E6=8C=89=E9=92=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/wms/stockupMainJob/index.ts | 20 ++ .../stockup/stockupMainJob/index.vue | 278 ++++++++++----- .../stockupMainJob/stockupMainJob.data.ts | 318 ++++++++++-------- .../stockupMainRequest.data.ts | 2 +- 5 files changed, 405 insertions(+), 215 deletions(-) diff --git a/.env.development b/.env.development index 78976cddd..3b38b8cc0 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ NODE_ENV=development VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:12080' +VITE_BASE_URL='http://192.168.0.113:12080' # 上传路径 VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' diff --git a/src/api/wms/stockupMainJob/index.ts b/src/api/wms/stockupMainJob/index.ts index 2f802672a..182e49185 100644 --- a/src/api/wms/stockupMainJob/index.ts +++ b/src/api/wms/stockupMainJob/index.ts @@ -87,4 +87,24 @@ export const exportStockupMainJob = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/stockup-main-job/get-import-template' }) +} + +// 承接发货任务 Excel +export const acceptStockupMainJob = async (id) => { + return await request.put({ url: `/wms/stockup-main-job/accept?id=` + id }) +} + +// 取消承接发货任务 Excel +export const abandonStockupMainJob = async (id) => { + return await request.put({ url: `/wms/stockup-main-job/abandon?id=` + id }) +} + +// 关闭发货任务主 Excel +export const closeStockupMainJob = async (id) => { + return await request.put({ url: `/wms/stockup-main-job/close?id=` + id }) +} + +// 执行发货任务主 +export const executeStockupMainJob = async (data: StockupMainJobVO) => { + return await request.put({ url: `/wms/stockup-main-job/execute`, data }) } \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue index 579622002..a43277b5e 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue @@ -27,43 +27,53 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > -