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 }} -