Browse Source

发料记录

master
陈薪名 1 year ago
parent
commit
cb96d97599
  1. 9
      src/api/wms/issueRecordMain/index.ts
  2. 2
      src/views/wms/issueManage/issue/issueRecordMain/index.vue

9
src/api/wms/issueRecordMain/index.ts

@ -61,10 +61,15 @@ export const deleteIssueRecordMain = async (id: number) => {
// 导出发料记录主 Excel
export const exportIssueRecordMain = async (params) => {
return await request.download({ url: `/wms/issue-record-main/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/issue-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/issue-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/issue-record-main/get-import-template' })
}
}

2
src/views/wms/issueManage/issue/issueRecordMain/index.vue

@ -92,7 +92,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:${baseURL}:export'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:issue-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save