diff --git a/src/api/qms/inspectionPlan/index.ts b/src/api/qms/inspectionPlan/index.ts deleted file mode 100644 index 78d729cb7..000000000 --- a/src/api/qms/inspectionPlan/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import request from '@/config/axios' -// 新增 -export const inspectionPlanCreat = async (data) => { - return await request.post({ url: `/qms/type-template/create`,data}) -} -// 编辑 -export const inspectionPlanUpdate = async (data) => { - return await request.put({ url: `/qms/type-template/update`,data}) -} -// 删除 -export const inspectionPlanDelete = async (id) => { - return await request.delete({ url: `/qms/type-template/delete?id=`+id}) -} -// 列表 -export const inspectionPlanPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return request.post({ url: '/qms/type-template/senior', data }) - } else { - return await request.get({ url: `/qms/type-template/page`, params }) - } -} \ No newline at end of file diff --git a/src/api/qms/inspectionScheme/index.ts b/src/api/qms/inspectionScheme/index.ts new file mode 100644 index 000000000..c54e11372 --- /dev/null +++ b/src/api/qms/inspectionScheme/index.ts @@ -0,0 +1,23 @@ +import request from '@/config/axios' +// 新增 +export const InspectionSchemeCreat = async (data) => { + return await request.post({ url: `/qms/inspection-scheme/create`,data}) +} +// 编辑 +export const InspectionSchemeUpdate = async (data) => { + return await request.put({ url: `/qms/inspection-scheme/update`,data}) +} +// 删除 +export const InspectionSchemeDelete = async (id) => { + return await request.delete({ url: `/qms/inspection-scheme/delete?id=`+id}) +} +// 列表 +export const InspectionSchemePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/qms/inspection-scheme/senior', data }) + } else { + return await request.get({ url: `/qms/inspection-scheme/page`, params }) + } +} diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue similarity index 100% rename from src/views/qms/basicDataManage/inspectionPlan/addForm.vue rename to src/views/qms/basicDataManage/inspectionScheme/addForm.vue diff --git a/src/views/qms/basicDataManage/inspectionPlan/index.vue b/src/views/qms/basicDataManage/inspectionScheme/index.vue similarity index 88% rename from src/views/qms/basicDataManage/inspectionPlan/index.vue rename to src/views/qms/basicDataManage/inspectionScheme/index.vue index 6976a0ca5..787d11d4f 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/index.vue +++ b/src/views/qms/basicDataManage/inspectionScheme/index.vue @@ -1,7 +1,7 @@ \ No newline at end of file + diff --git a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts similarity index 98% rename from src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts rename to src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts index ef9822546..fff1c0e44 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts +++ b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts @@ -68,7 +68,7 @@ export const InspectionTemplateRules = reactive({ { required: true, message: '请输入选择集编码', trigger: 'blur' } ], }) -export const InspectionPlanMain = useCrudSchemas(reactive([ +export const InspectionSchemeMain = useCrudSchemas(reactive([ { label: '编码', field: 'code',