seizureRecord.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import request from '@/utils/request'
  2. // 根据筛选条件查询分类数量
  3. // export function selectGroupCount(params = {}) {
  4. // return request({
  5. // url: '/item/items/selectGroupCount',
  6. // method: 'get',
  7. // params
  8. // });
  9. // }
  10. // 根据筛选条件查询查获物品明细列表
  11. export function selectByConditions(params = {}) {
  12. return request({
  13. url: '/item/items/selectByConditions',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 根据筛选条件查询分类数量
  19. export function selectGroupCount(params = {}) {
  20. return request({
  21. url: '/item/items/selectCount',
  22. method: 'get',
  23. params
  24. });
  25. }
  26. /**
  27. * @name 根据时段获取当前用户的上岗位置信息
  28. * @param {*} params.searchtime YYYY-MM-DD hh:mm:ss
  29. */
  30. export function getLocationsbyTime (params) {
  31. return request({
  32. url: '/attendance/postRecord/getLocationsbyTime',
  33. method: 'post',
  34. data: params
  35. });
  36. }
  37. /**
  38. * @name 获取分类信息(包含父类)
  39. * @param {*} type (1表示常用违禁品, 2表示常用查获部位)
  40. */
  41. export function categoryInfo (type) {
  42. return request({
  43. url: `/system/defaultChoise/categoryInfo/${type}`,
  44. method: 'get'
  45. });
  46. }
  47. /**
  48. * @name 对违禁品类进行模糊搜索
  49. * @param {*} name 查询字符串
  50. */
  51. export function categoryList (params) {
  52. return request({
  53. url: `/system/category/list`,
  54. method: 'get',
  55. params
  56. });
  57. }