Browse Source

WMS bug HL-6222:器具初始化记录,来源库位代码应去掉导出

hella_online_20241017
gaojs 1 month ago
parent
commit
c61d03437e
  1. 11
      src/api/wms/containerRecordMain/index.ts
  2. 9
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

11
src/api/wms/containerRecordMain/index.ts

@ -57,6 +57,17 @@ export const exportContainerRecordMain = async (params) => {
}
}
// 导出器具管理初始化记录主 Excel
export const exportContainerInitRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.downloadPost({ url: '/wms/container-record-main/export-excel-init-senior', data })
} else {
return await request.download({ url: `/wms/container-record-main/export-excel-init`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-record-main/get-import-template' })

9
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -260,8 +260,13 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
if(businessType.value = 'InitialContainerManage'){
const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else {
const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
} finally {
loadDone()

Loading…
Cancel
Save