diff --git a/src/api/wms/itemcodeConsumeRecord/index.ts b/src/api/wms/itemcodeConsumeRecord/index.ts index 124be016d..544b9bdef 100644 --- a/src/api/wms/itemcodeConsumeRecord/index.ts +++ b/src/api/wms/itemcodeConsumeRecord/index.ts @@ -45,9 +45,16 @@ export const deleteItemcodeConsumeRecord = async (id: number) => { // 导出品番消耗记录 Excel export const exportItemcodeConsumeRecord = async (params) => { - return await request.download({ url: `/wms/itemcode-consume-record/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/itemcode-consume-record/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/itemcode-consume-record/export-excel`, params }) + } + } + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/itemcode-consume-record/get-import-template' }) diff --git a/src/views/wms/issueManage/itemcodeConsumeRecord/index.vue b/src/views/wms/issueManage/itemcodeConsumeRecord/index.vue index efd029012..dd3f1629c 100644 --- a/src/views/wms/issueManage/itemcodeConsumeRecord/index.vue +++ b/src/views/wms/issueManage/itemcodeConsumeRecord/index.vue @@ -101,7 +101,7 @@ const { getList, setSearchParams } = tableMethods const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'wms:itemcodeConsumeRecord:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'wms:itemcodeConsumeRecord:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'wms:itemcodeConsumeRecord:export'}), // 导出 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置