detail.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/utils/request'
  2. // 查询资产盘点明细列表
  3. export function listDetail(query) {
  4. return request({
  5. url: '/inventory/detail/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询资产盘点明细详细
  11. export function getDetail(id) {
  12. return request({
  13. url: '/inventory/detail/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增资产盘点明细
  18. export function addDetail(data) {
  19. return request({
  20. url: '/inventory/detail',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改资产盘点明细
  26. export function updateDetail(data) {
  27. return request({
  28. url: '/inventory/detail',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除资产盘点明细
  34. export function delDetail(id) {
  35. return request({
  36. url: '/inventory/detail/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 查询全单位或者部门的资产对比分析报表
  41. export function getDepAssetLossTb(query) {
  42. return request({
  43. url: '/inventory/inventory/getDepAssetLossTb',
  44. method: 'get',
  45. params: query
  46. })
  47. }