|
@ -49,6 +49,8 @@ |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
|
|
<ImportForm ref="importFormRef" url="/qms/inspection-scheme/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -60,6 +62,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import AddForm from './addForm.vue' |
|
|
import AddForm from './addForm.vue' |
|
|
import * as InspectionSchemeApi from '@/api/qms/inspectionScheme' |
|
|
import * as InspectionSchemeApi from '@/api/qms/inspectionScheme' |
|
|
|
|
|
import ImportForm from "../../../components/ImportForm/src/ImportForm.vue"; |
|
|
|
|
|
import * as SampleCodeApi from "@/api/qms/sampleCode"; |
|
|
|
|
|
|
|
|
defineOptions({ name: 'InspectionScheme' }) |
|
|
defineOptions({ name: 'InspectionScheme' }) |
|
|
|
|
|
|
|
@ -86,7 +90,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:type-template:create'}), // 新增 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:type-template:create'}), // 新增 |
|
|
// defaultButtons.defaultImportBtn({hasPermi:'wms:agv-locationrelation:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), // 导入 |
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // 导出 |
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
@ -240,9 +244,25 @@ const searchFormClick = (searchData) => { |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 导入 */ |
|
|
|
|
|
const importFormRef = ref() |
|
|
|
|
|
const handleImport = () => { |
|
|
|
|
|
importFormRef.value.open() |
|
|
|
|
|
} |
|
|
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
|
|
const importTemplateData = reactive({ |
|
|
|
|
|
templateUrl: '', |
|
|
|
|
|
templateTitle: '检验方案导入模版.xlsx' |
|
|
|
|
|
}) |
|
|
|
|
|
// 导入成功之后 |
|
|
|
|
|
const importSuccess = () => { |
|
|
|
|
|
getList() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|
|
|
|
importTemplateData.templateUrl = await InspectionSchemeApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|