diff --git a/src/api/wms/issueRequestMain/index.ts b/src/api/wms/issueRequestMain/index.ts index f38498d16..0db70e281 100644 --- a/src/api/wms/issueRequestMain/index.ts +++ b/src/api/wms/issueRequestMain/index.ts @@ -59,7 +59,12 @@ export const deleteIssueRequestMain = async (id: number) => { // 导出发料申请主 Excel export const exportIssueRequestMain = async (params) => { - return await request.download({ url: `/wms/issue-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/issue-request-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/issue-request-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index f54535c09..d21bfcb60 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -178,7 +178,7 @@ const butttondata = (row) => { defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2'])}), // 驳回 defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2'])}), // 审批通过 defaultButtons.mainListEditBtn({hasPermi:'wms:issue-request-main:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:issue-request-main:delete'}), // 删除 + // defaultButtons.mainListDeleteBtn({hasPermi:'wms:issue-request-main:delete'}), // 删除 ] } @@ -237,7 +237,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await IssueRequestMainApi.exportIssueRequestMain(setSearchParams) + const data = await IssueRequestMainApi.exportIssueRequestMain(tableObject.params) download.excel(data, '发料申请主.xlsx') } catch { } finally {