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

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. import apiClient from '../../utils/axios'
  2. import { AddEmergencyInfo } from '../../types/Index'
  3. //添加急诊信息
  4. export const insertEmergency = async (body: AddEmergencyInfo) => {
  5. try {
  6. console.log('addNew=========',body)
  7. const res = await apiClient.post('/api/v1/app/emergencyTube/addNew', body)
  8. return res.data
  9. } catch (error) {
  10. console.log(error)
  11. }
  12. }
  13. //获取急诊信息
  14. export const getEmergency = async () => {
  15. try {
  16. const res = await apiClient.get('/api/regular/getEmergency')
  17. return res.data
  18. } catch (error) {
  19. console.log(error)
  20. }
  21. }
  22. //判断急诊位置是否存在试管
  23. export const isTubeExist = async () => {
  24. try {
  25. const res = await apiClient.post(
  26. '/api/v1/app/deviceState/getEmergencyTubePosState',
  27. )
  28. return res.data
  29. } catch (error) {
  30. console.log(error)
  31. }
  32. }