|
@ -59,6 +59,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
|
|
|
import download from '@/utils/download' |
|
|
import {InspectionSchemeMain } from './inspectionScheme.data' |
|
|
import {InspectionSchemeMain } from './inspectionScheme.data' |
|
|
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data' |
|
|
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data' |
|
|
|
|
|
|
|
@ -96,7 +97,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-scheme:create'}), // 新增 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-scheme:create'}), // 新增 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), // 导入 |
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'qms:inspection-scheme:export'}), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
@ -244,6 +245,22 @@ const handleDisable = async (id: number) => { |
|
|
} catch {} |
|
|
} catch {} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
|
|
const handleExport = async () => { |
|
|
|
|
|
try { |
|
|
|
|
|
// 导出的二次确认 |
|
|
|
|
|
await message.exportConfirm() |
|
|
|
|
|
// 发起导出 |
|
|
|
|
|
exportLoading.value = true |
|
|
|
|
|
const data = await InspectionSchemeApi.exportInspectionScheme(tableObject.params) |
|
|
|
|
|
download.excel(data, '检验方案.xlsx') |
|
|
|
|
|
} catch { |
|
|
|
|
|
} finally { |
|
|
|
|
|
exportLoading.value = false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|