|
@ -91,6 +91,7 @@ import { UnplannedissueRequestMain,UnplannedissueRequestMainRules,Unplannedissue |
|
|
import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain' |
|
|
import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain' |
|
|
import * as UnplannedissueRequestDetailApi from '@/api/wms/unplannedissueRequestDetail' |
|
|
import * as UnplannedissueRequestDetailApi from '@/api/wms/unplannedissueRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 计划外出库申请 |
|
|
// 计划外出库申请 |
|
|
defineOptions({ name: 'UnplannedissueRequestMain' }) |
|
|
defineOptions({ name: 'UnplannedissueRequestMain' }) |
|
@ -437,8 +438,9 @@ const handleExport = async () => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params) |
|
|
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params) |
|
|
download.excel(data, '计划外出库申请主.xlsx') |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
@ -549,7 +551,7 @@ const handleImport = () => { |
|
|
// 导入附件弹窗所需的参数 |
|
|
// 导入附件弹窗所需的参数 |
|
|
const importTemplateData = reactive({ |
|
|
const importTemplateData = reactive({ |
|
|
templateUrl: '', |
|
|
templateUrl: '', |
|
|
templateTitle: '计划外出库申请主导入模版.xlsx' |
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
// 导入成功之后 |
|
|