index.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_WAREHOUSE_BASEINFO,
  5. API_POST_ADD_WAREHOUSE_BASEINFO,
  6. API_GET_WAREHOUSE_LOOK,
  7. API_GET_WAREHOUSE_CUSTOMDROPDOWN,
  8. API_POST_WAREHOUSE_DELETE,
  9. API_GET_WAREHOUSE_DELETELIST,
  10. API_POST_WAREHOUSE_HIDE,
  11. API_POST_WAREHOUSE_EDIT,
  12. API_GET_WAREHOUSE_IOSS,
  13. API_GET_WAREHOUSE_NAME,
  14. API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN,
  15. API_POST_STORAGE_PUT,
  16. API_GET_SELECT_INFO,
  17. API_GET_WAREHOUSE_INVENTORYCOUNT,
  18. API_POST_STORAGE_IOSS,
  19. API_GET_WAREHOUSE_COMPLETE,
  20. API_POST_WAREHOUSE_DEL_POSITION,
  21. API_POST_WAREHOUSE_DEL_INOUTINFO,
  22. API_POST_WAREHOUSE_ADD,
  23. API_POST_WAREHOUSE_CLEARANCEE,
  24. API_GET_WAREHOUSE_NO,
  25. API_GET_PRINT_INFO,
  26. API_GET_STAFF,
  27. API_GET_WAREHOUSE_RECORDSS,
  28. API_GET_GOODSNAME_XIALA,
  29. API_GET_WAREHOUSE_LIST,
  30. API_GET_WAREHOUSE_TASKLIST,
  31. API_GET_COSTMANAGEMENT,
  32. API_POST_EDITCOST,
  33. API_GET_INVENTORYCOSTINFO,
  34. API_POST_ADD_INVENTORYCOSTINFO,
  35. API_POST_EDIT_INVENTORYCOSTINFO,
  36. API_GET_WEIGHTEDDETAILS,
  37. API_GET_WAREHOUSE,
  38. API_GET_WAREHOUSERESPONSIBLE,
  39. API_GET_WAREHOUSETASK,
  40. API_GET_CHECKORUPDATE,
  41. API_GET_RECEIPTTASKNO,
  42. API_POST_EXPORT,
  43. } from '@/api/V2/warehouse'
  44. // import { app } from 'electron'
  45. // 列表
  46. export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  47. // 添加
  48. export const addList = appRx.post(API_POST_ADD_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  49. //仓库查看
  50. export const getLook = appRx.get(API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter)
  51. //仓库下拉
  52. export const xiala = appRx.get(API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  53. //删除
  54. export const deletewarehouse = appRx.post(API_POST_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter)
  55. //删除仓库列表
  56. export const delectlist = appRx.get(API_GET_WAREHOUSE_DELETELIST, errorCatcher, errorHandle, filter)
  57. //隐藏
  58. export const hide = appRx.post(API_POST_WAREHOUSE_HIDE, errorCatcher, errorHandle, filter)
  59. //仓库编辑
  60. export const edit = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorHandle, filter)
  61. //盘损
  62. export const ioss = appRx.get(API_GET_WAREHOUSE_IOSS, errorCatcher, errorHandle, filter)
  63. //货名下拉
  64. export const goodsname = appRx.get(API_GET_WAREHOUSE_NAME, errorCatcher, errorHandle, filter)
  65. // 货名等下拉
  66. export const pullDown = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  67. // 入库添加
  68. export const addstorageputList = appRx.post(API_POST_STORAGE_PUT, errorCatcher, errorHandle, filter)
  69. // 流转记录
  70. export const addselectinfoList = appRx.get(API_GET_SELECT_INFO, errorCatcher, errorHandle, filter)
  71. // 盘损记录
  72. export const adjustmentrecordList = appRx.get(API_GET_WAREHOUSE_INVENTORYCOUNT, errorCatcher, errorHandle, filter)
  73. //盘损提交
  74. export const submitioss = appRx.post(API_POST_STORAGE_IOSS, errorCatcher, errorHandle, filter)
  75. //待完善记录
  76. export const complete = appRx.get(API_GET_WAREHOUSE_COMPLETE, errorCatcher, errorHandle, filter)
  77. // 编辑删除仓位
  78. export const delPosition = appRx.post(API_POST_WAREHOUSE_DEL_POSITION, errorCatcher, errorHandle, filter)
  79. //删除待完善记录
  80. export const delInOut = appRx.post(API_POST_WAREHOUSE_DEL_INOUTINFO, errorCatcher, errorHandle, filter)
  81. //临时仓库增加add
  82. export const increase = appRx.post(API_POST_WAREHOUSE_ADD, errorCatcher, errorHandle, filter)
  83. //临时仓库清仓
  84. export const clearancee = appRx.post(API_POST_WAREHOUSE_CLEARANCEE, errorCatcher, errorHandle, filter)
  85. //获取负责人
  86. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  87. //临时仓库记录
  88. export const recordss = appRx.get(API_GET_WAREHOUSE_RECORDSS, errorCatcher, errorHandle, filter)
  89. //临时出库货名下拉
  90. export const goodsnameXiala = appRx.get(API_GET_GOODSNAME_XIALA, errorCatcher, errorHandle, filter)
  91. //临时仓库待完成
  92. export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, errorHandle, filter)
  93. //临时出入库合同编号下拉
  94. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  95. //获取检斤打印数据
  96. export const getPrintInfo = appRx.get(API_GET_PRINT_INFO, errorCatcher, errorHandle, filter)
  97. //任务列表
  98. export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
  99. // 成本管理
  100. export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter)
  101. // 修改成本
  102. export const editcost = appRx.post(API_POST_EDITCOST,errorCatcher, errorHandle, filter)
  103. // 库点费用列表
  104. export const getinventory = appRx.get(API_GET_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  105. // 添加库点费用
  106. export const addinventory = appRx.post(API_POST_ADD_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  107. // 编辑库点费用
  108. export const editinventory = appRx.post(API_POST_EDIT_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  109. // 编辑库点费用
  110. export const weighteddetails = appRx.get(API_GET_WEIGHTEDDETAILS,errorCatcher, errorHandle, filter)
  111. // 编辑库点费用
  112. export const getwarehousebase = appRx.get(API_GET_WAREHOUSE,errorCatcher, errorHandle, filter)
  113. //负责人
  114. export const getsponsible = appRx.get(API_GET_WAREHOUSERESPONSIBLE,errorCatcher, errorHandle, filter)
  115. //出入库任务
  116. export const getwarehousetask = appRx.get(API_GET_WAREHOUSETASK,errorCatcher, errorHandle, filter)
  117. //修改经办人
  118. export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
  119. //获取出入库任务编号
  120. export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)
  121. //导出
  122. export const postExport = appRx.post(API_POST_EXPORT)