forked from gzt/A8000
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
845 B
34 lines
845 B
import apiClient from '../../utils/axios'
|
|
import { AddEmergencyInfo } from '../../types/Index'
|
|
//添加急诊信息
|
|
export const insertEmergency = async (body: AddEmergencyInfo) => {
|
|
try {
|
|
console.log('addNew=========',body)
|
|
const res = await apiClient.post('/api/v1/app/emergencyTube/addNew', body)
|
|
return res.data
|
|
} catch (error) {
|
|
console.log(error)
|
|
}
|
|
}
|
|
|
|
//获取急诊信息
|
|
export const getEmergency = async () => {
|
|
try {
|
|
const res = await apiClient.get('/api/regular/getEmergency')
|
|
return res.data
|
|
} catch (error) {
|
|
console.log(error)
|
|
}
|
|
}
|
|
|
|
//判断急诊位置是否存在试管
|
|
export const isTubeExist = async () => {
|
|
try {
|
|
const res = await apiClient.post(
|
|
'/api/v1/app/deviceState/getEmergencyTubePosState',
|
|
)
|
|
return res.data
|
|
} catch (error) {
|
|
console.log(error)
|
|
}
|
|
}
|