inventoryAccount.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import request from '@/router/axios';
  2. //删除单据
  3. export function deleteTemplate(data) {
  4. return request({
  5. url: '/api/blade-stock/stockgoods/remove',
  6. method: 'post',
  7. params: {
  8. ids:data
  9. }
  10. })
  11. }
  12. //价格列表查询
  13. export function customerList(data) {
  14. return request({
  15. url: '/api/blade-stock/stockgoods/list',
  16. method: 'get',
  17. params: data
  18. })
  19. }
  20. //列表修改和新增
  21. export function typeSave(data) {
  22. return request({
  23. url: '/api/blade-stock/stockgoods/submit',
  24. method: 'post',
  25. data: data
  26. })
  27. }
  28. // 查询商品库存
  29. export function selectGoodsNum(data) {
  30. return request({
  31. url: '/api/blade-stock/client/get_stock',
  32. method: 'get',
  33. params: data
  34. })
  35. }
  36. // 查询进口库存
  37. export function selectJKGoodsNum(data) {
  38. return request({
  39. url: '/api/blade-stock/client/getStockByCondition',
  40. method: 'get',
  41. params: data
  42. })
  43. }
  44. // 库存账查询锁定库存订单信息
  45. export const getStock = (current, size, params) => {
  46. return request({
  47. url: '/api/blade-purchase-sales/order/ListMessage',
  48. method: 'get',
  49. params: {
  50. ...params,
  51. current,
  52. size,
  53. }
  54. })
  55. }
  56. // 库存账获得详情
  57. export function getDetail(data) {
  58. return request({
  59. url: '/api/blade-stock/stockgoods/message',
  60. method: 'get',
  61. params: data
  62. })
  63. }
  64. // 计算内贸锁定
  65. export function LockingQuantity() {
  66. return request({
  67. url: '/api/blade-stock/stockgoods/batchModifyLockingQuantity',
  68. method: 'get'
  69. })
  70. }
  71. //明细账
  72. export const selectStockInventory = (params) => {
  73. return request({
  74. url: '/api/blade-deliver-goods/allot/selectStockInventory',
  75. method: 'get',
  76. params: {
  77. ...params
  78. }
  79. })
  80. }
  81. // 计算库存
  82. export function calculateInventory() {
  83. return request({
  84. url: '/api/blade-deliver-goods/allot/calculateInventory',
  85. method: 'get'
  86. })
  87. }
  88. //轮胎库存查询明细账
  89. export const stockDataDetails = (params) => {
  90. return request({
  91. url: '/api/blade-sales-part/ship/stockDataDetails',
  92. method: 'get',
  93. params: {
  94. ...params
  95. }
  96. })
  97. }