|
|
@ -87,6 +87,7 @@ import { RepleinshRequestMain,RepleinshRequestMainRules,RepleinshRequestDetail,R |
|
|
|
import * as RepleinshRequestMainApi from '@/api/wms/repleinshRequestMain' |
|
|
|
import * as RepleinshRequestDetailApi from '@/api/wms/repleinshRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 补料申请 |
|
|
|
defineOptions({ name: 'RepleinshRequestMain' }) |
|
|
@ -344,7 +345,7 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await RepleinshRequestMainApi.exportRepleinshRequestMain(tableObject.params) |
|
|
|
download.excel(data, '补料申请.xlsx') |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -423,7 +424,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '补料申请导入模版.xlsx' |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
|