检测模板添加检测项

This commit is contained in:
JinLu.Yin
2022-05-18 15:14:57 +08:00
parent 4a022a1efe
commit 21f5d04eb7
5 changed files with 608 additions and 5 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询检测模板-检测项列表
export function listTemplateindex(query) {
return request({
url: '/mes/qc/templateindex/list',
method: 'get',
params: query
})
}
// 查询检测模板-检测项详细
export function getTemplateindex(recordId) {
return request({
url: '/mes/qc/templateindex/' + recordId,
method: 'get'
})
}
// 新增检测模板-检测项
export function addTemplateindex(data) {
return request({
url: '/mes/qc/templateindex',
method: 'post',
data: data
})
}
// 修改检测模板-检测项
export function updateTemplateindex(data) {
return request({
url: '/mes/qc/templateindex',
method: 'put',
data: data
})
}
// 删除检测模板-检测项
export function delTemplateindex(recordId) {
return request({
url: '/mes/qc/templateindex/' + recordId,
method: 'delete'
})
}