新增检验项目设置中的检验类型页面并实现相关逻辑
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* @Author: yangbo@bjgoodwill.com
|
||||
* @Date: 2024-10-14 09:52:54
|
||||
* @Description:
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询检验类型列表
|
||||
export function listInspectionType(query) {
|
||||
return request({
|
||||
url: '/system/inspection-type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检验类型详细
|
||||
export function getInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: `/system/inspection-type/${inspectionTypeId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检验类型
|
||||
export function addInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检验类型
|
||||
export function updateInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检验类型
|
||||
export function delInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: `/system/inspection-type/${inspectionTypeId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
openhis-ui-vue3/src/api/system/inspectionType.js
Normal file
44
openhis-ui-vue3/src/api/system/inspectionType.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询检验类型列表
|
||||
export function listInspectionType(query) {
|
||||
return request({
|
||||
url: '/system/inspection-type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检验类型详细
|
||||
export function getInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: '/system/inspection-type/' + inspectionTypeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检验类型
|
||||
export function addInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检验类型
|
||||
export function updateInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检验类型
|
||||
export function delInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: '/system/inspection-type/' + inspectionTypeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user