sampleInfo.js 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import request from '@/utils/request'
  2. // 查询样品管理列表
  3. export function listSampleInfo(query) {
  4. return request({
  5. url: '/sample/sampleInfo/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询样品管理详细
  11. export function getSampleInfo(id) {
  12. return request({
  13. url: '/sample/sampleInfo/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增样品管理
  18. export function addSampleInfo(data) {
  19. return request({
  20. url: '/sample/sampleInfo',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改样品管理
  26. export function updateSampleInfo(data) {
  27. return request({
  28. url: '/sample/sampleInfo',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除样品管理
  34. export function delSampleInfo(id) {
  35. return request({
  36. url: '/sample/sampleInfo/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 获取样本类型下拉列表
  41. export function getSampleTypeSelect() {
  42. return request({
  43. url: '/sample/sampleType/getAll',
  44. method: 'get'
  45. })
  46. }