Browse Source

发料申请修改

master
陈薪名 12 months ago
parent
commit
e427e49f5d
  1. 7
      src/api/wms/issueRequestMain/index.ts
  2. 4
      src/views/wms/issueManage/issue/issueRequestMain/index.vue

7
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 })
}
}
// 下载用户导入模板

4
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 {

Loading…
Cancel
Save