|
|
@ -77,6 +77,7 @@ |
|
|
|
import AddForm from '../inspectionRecordFirst/addForm.vue' |
|
|
|
import Detail from './detail.vue' |
|
|
|
import { getReportUrl } from '@/utils/systemParam' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data' |
|
|
|
|
|
|
@ -184,7 +185,7 @@ const showQualityReport = ref(false) |
|
|
|
const qualityReport = ref('') |
|
|
|
const checkQualityReport = async (row) => { |
|
|
|
showQualityReport.value = true |
|
|
|
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}` |
|
|
|
qualityReport.value = getReportUrl() + '/purchasereceiptReport?asnNumber=' + row.asnNumber |
|
|
|
} |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
@ -233,8 +234,9 @@ const handleMainExport = async (row: any) => { |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
tableObject.params.number = row.number |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await InspectionRecordMainApi.exportInspectionRecordMain(tableObject.params) |
|
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -249,8 +251,9 @@ const handleMainExport = async (row: any) => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await InspectionRecordMainApi.exportFirstInspectionRecordMain(tableObject.params) |
|
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|