|
|
@ -110,6 +110,7 @@ import { PutawayRequestMain, |
|
|
|
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain' |
|
|
|
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 上架申请 |
|
|
|
defineOptions({ name: 'PutawayRequestMain' }) |
|
|
@ -406,7 +407,7 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params) |
|
|
|
download.excel(data, '上架申请主.xlsx') |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -475,7 +476,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '上架申请主导入模版.xlsx' |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
|