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.
102 lines
1.8 KiB
JavaScript
102 lines
1.8 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询仪器列列表
|
|
export function listInstrument(query) {
|
|
return request({
|
|
url: '/system/instrument/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询仪器列详细
|
|
export function getInstrument(id) {
|
|
return request({
|
|
url: '/system/instrument/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增仪器列
|
|
export function addInstrument(data) {
|
|
return request({
|
|
url: '/system/instrument',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改仪器列
|
|
export function updateInstrument(data) {
|
|
return request({
|
|
url: '/system/instrument',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除仪器列
|
|
export function delInstrument(id) {
|
|
return request({
|
|
url: '/system/instrument/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
/* 获取小程序标签树 */
|
|
export function getMiniProgramTagTree() {
|
|
return request({
|
|
url: '/system/tagInfo/tagTree',
|
|
method: 'get',
|
|
params: {
|
|
type: 1
|
|
}
|
|
})
|
|
}
|
|
|
|
/* 获取企微标签树 */
|
|
export function getWecomTagTree() {
|
|
return request({
|
|
url: '/system/tagInfo/tagTree',
|
|
method: 'get',
|
|
params: {
|
|
type: 2
|
|
}
|
|
})
|
|
}
|
|
|
|
// 查询仪器关联正品控产品名列表
|
|
export function listRelate(query) {
|
|
return request({
|
|
url: '/system/instrumentRelateName/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 新增仪器关联正品控产品名
|
|
export function addRelate(data) {
|
|
return request({
|
|
url: '/system/instrumentRelateName',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改仪器关联正品控产品名
|
|
export function updateRelate(data) {
|
|
return request({
|
|
url: '/system/instrumentRelateName',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除仪器关联正品控产品名
|
|
export function delRelate(id) {
|
|
return request({
|
|
url: '/system/instrumentRelateName/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|