|
|
@ -88,6 +88,7 @@ import { ProductputawayRequestMain,ProductputawayRequestMainRules,Productputaway |
|
|
|
import * as ProductputawayRequestMainApi from '@/api/wms/productputawayRequestMain' |
|
|
|
import * as ProductputawayRequestDetailApi from '@/api/wms/productputawayRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 制品上架申请 |
|
|
|
defineOptions({ name: 'ProductputawayRequestMain' }) |
|
|
@ -342,7 +343,7 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await ProductputawayRequestMainApi.exportProductputawayRequestMain(tableObject.params) |
|
|
|
download.excel(data, '制品上架申请主.xlsx') |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -416,7 +417,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '制品上架申请主导入模版.xlsx' |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
|