|
|
@ -85,6 +85,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import AddForm from './addForm.vue' |
|
|
|
import * as InspectionProcessPageApi from '@/api/qms/inspectionTemplate' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
defineOptions({ name: 'AgvLocationrelation' }) |
|
|
|
|
|
|
@ -156,8 +157,9 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await InspectionProcessPageApi.exportInspectionTemplate(tableObject.params) |
|
|
|
download.excel(data, '检验模板.xlsx') |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -283,7 +285,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '检验方案导入模版.xlsx' |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
|