添砖-JAVA\Administrator
7 months ago
5 changed files with 36 additions and 36 deletions
@ -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 }) |
|||
} |
|||
} |
@ -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 }) |
|||
} |
|||
} |
Loading…
Reference in new issue