You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 维保项目 VO
|
|
export interface DvSubjectVO {
|
|
id?: number // ID
|
|
subjectCode: string // 项目编码
|
|
subjectName: string // 项目名称
|
|
subjectType?: string // 项目类型
|
|
subjectContent?: string // 项目内容
|
|
subjectStandard?: string // 标准
|
|
isEnable: string // 是否启用
|
|
inspectionMethod: string // 检验方式
|
|
valueType: string // 值类型
|
|
judgmentCriteria: string // 判定基准
|
|
creator?: string // 创建人
|
|
createTime?: string | number | Date // 创建时间
|
|
}
|
|
|
|
// 维保项目 API
|
|
export const DvSubjectApi = {
|
|
// 查询维保项目分页
|
|
getDvSubjectPage: async (params: any) => {
|
|
return await request.get({ url: `/mes/mold-subject/page`, params })
|
|
},
|
|
|
|
// 查询维保项目详情
|
|
getDvSubject: async (id: number) => {
|
|
return await request.get({ url: `/mes/mold-subject/get?id=` + id })
|
|
},
|
|
|
|
// 新增维保项目
|
|
createDvSubject: async (data: DvSubjectVO) => {
|
|
return await request.post({ url: `/mes/mold-subject/create`, data })
|
|
},
|
|
|
|
// 修改维保项目
|
|
updateDvSubject: async (data: DvSubjectVO) => {
|
|
return await request.put({ url: `/mes/mold-subject/update`, data })
|
|
},
|
|
|
|
// 删除维保项目
|
|
deleteDvSubject: async (ids: string) => {
|
|
return await request.delete({ url: `/mes/mold-subject/delete?ids=` + ids })
|
|
},
|
|
|
|
// 导出维保项目 Excel
|
|
exportDvSubject: async (params) => {
|
|
return await request.download({ url: `/mes/mold-subject/export-excel`, params })
|
|
},
|
|
}
|