From ec3e393b12cde7766b6c4c5403818d545818136a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 23 Nov 2023 11:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=96=99=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/issueJobMain/index.ts | 31 ++++- .../issueManage/issue/issueJobMain/index.vue | 122 ++++++++++++++---- .../issue/issueJobMain/issueJobMain.data.ts | 28 ++-- 3 files changed, 137 insertions(+), 44 deletions(-) diff --git a/src/api/wms/issueJobMain/index.ts b/src/api/wms/issueJobMain/index.ts index c69029ac4..0c4f54292 100644 --- a/src/api/wms/issueJobMain/index.ts +++ b/src/api/wms/issueJobMain/index.ts @@ -74,10 +74,37 @@ export const deleteIssueJobMain = async (id: number) => { // 导出发料任务主 Excel export const exportIssueJobMain = async (params) => { - return await request.download({ url: `/wms/issue-job-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/issue-job-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/issue-job-main/export-excel`, params }) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/issue-job-main/get-import-template' }) -} \ No newline at end of file +} + +// 承接发料任务 +export const acceptIssueMain = async (id) => { + return await request.get({ url: `/wms/issue-job-main/accept?id=` + id }) +} + +// 放弃发料任务 +export const abandonIssueMain = async (id) => { + return await request.get({ url: `/wms/issue-job-main/abandon?id=` + id }) +} + +// 关闭发料任务 +export const closeIssueMain = async (id) => { + return await request.get({ url: `/wms/issue-job-main/close?id=` + id }) +} + +// 执行发料任务 +export const executeIssueMain = async (data) => { + return await request.put({ url: `/wms/issue-job-main/execute`, data}) +} + + diff --git a/src/views/wms/issueManage/issue/issueJobMain/index.vue b/src/views/wms/issueManage/issue/issueJobMain/index.vue index cf5156c29..80c650e4c 100644 --- a/src/views/wms/issueManage/issue/issueJobMain/index.vue +++ b/src/views/wms/issueManage/issue/issueJobMain/index.vue @@ -32,9 +32,9 @@ {{ row.number }} -