|
@ -67,6 +67,7 @@ import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeat |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
|
|
import {exportFirstInspectionRecordMain} from "@/api/qms/inspectionRecord/inspectionRecordMain"; |
|
|
|
|
|
|
|
|
// 采购订单 |
|
|
// 采购订单 |
|
|
defineOptions({ name: 'InspectionRecordMain' }) |
|
|
defineOptions({ name: 'InspectionRecordMain' }) |
|
@ -207,7 +208,7 @@ const handleMainExport = async (row: any) => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
tableObject.params.number = row.number |
|
|
tableObject.params.number = row.number |
|
|
const data = await InspectionRecordMainApi.exportInspectionRecordMain(tableObject.params) |
|
|
const data = await InspectionRecordMainApi.exportFirstInspectionRecordMain(tableObject.params) |
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
@ -223,7 +224,7 @@ const handleMainExport = async (row: any) => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
const data = await InspectionRecordMainApi.exportInspectionRecordMain(tableObject.params) |
|
|
const data = await InspectionRecordMainApi.exportFirstInspectionRecordMain(tableObject.params) |
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
download.excel(data, '首件检验记录.xlsx') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|