index.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. API_GET_PRINT,
  44. API_POST_EXPORTOUT,
  45. API_GET_WAREHOUSE_BINNUMBER,
  46. API_GET_TURNAROUND_LIST,
  47. API_POST_TURNAROUND_ADD,
  48. API_GET_TURNAROUND_XIALA,
  49. API_get_goodsName_All,
  50. API_SEND_BACK,
  51. API_DELETE_WAREHOUSE
  52. } from '@/api/V2/warehouse'
  53. // import { app } from 'electron'
  54. // 列表
  55. export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  56. // 添加
  57. export const addList = appRx.post(API_POST_ADD_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  58. //仓库查看
  59. export const getLook = appRx.get(API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter)
  60. //仓库下拉
  61. export const xiala = appRx.get(API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  62. //删除
  63. export const deletewarehouse = appRx.post(API_POST_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter)
  64. //删除仓库列表
  65. export const delectlist = appRx.get(API_GET_WAREHOUSE_DELETELIST, errorCatcher, errorHandle, filter)
  66. //隐藏
  67. export const hide = appRx.post(API_POST_WAREHOUSE_HIDE, errorCatcher, errorHandle, filter)
  68. //仓库编辑
  69. export const edit = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorHandle, filter)
  70. //盘损
  71. export const ioss = appRx.get(API_GET_WAREHOUSE_IOSS, errorCatcher, errorHandle, filter)
  72. //货名下拉
  73. export const goodsname = appRx.get(API_GET_WAREHOUSE_NAME, errorCatcher, errorHandle, filter)
  74. // 货名等下拉
  75. export const pullDown = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  76. // 入库添加
  77. export const addstorageputList = appRx.post(API_POST_STORAGE_PUT, errorCatcher, errorHandle, filter)
  78. // 流转记录
  79. export const addselectinfoList = appRx.get(API_GET_SELECT_INFO, errorCatcher, errorHandle, filter)
  80. // 盘损记录
  81. export const adjustmentrecordList = appRx.get(API_GET_WAREHOUSE_INVENTORYCOUNT, errorCatcher, errorHandle, filter)
  82. //盘损提交
  83. export const submitioss = appRx.post(API_POST_STORAGE_IOSS, errorCatcher, errorHandle, filter)
  84. //待完善记录
  85. export const complete = appRx.get(API_GET_WAREHOUSE_COMPLETE, errorCatcher, errorHandle, filter)
  86. // 编辑删除仓位
  87. export const delPosition = appRx.post(API_POST_WAREHOUSE_DEL_POSITION, errorCatcher, errorHandle, filter)
  88. //删除待完善记录
  89. export const delInOut = appRx.post(API_POST_WAREHOUSE_DEL_INOUTINFO, errorCatcher, errorHandle, filter)
  90. //临时仓库增加add
  91. export const increase = appRx.post(API_POST_WAREHOUSE_ADD, errorCatcher, errorHandle, filter)
  92. //临时仓库清仓
  93. export const clearancee = appRx.post(API_POST_WAREHOUSE_CLEARANCEE, errorCatcher, errorHandle, filter)
  94. //获取负责人
  95. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  96. //临时仓库记录
  97. export const recordss = appRx.get(API_GET_WAREHOUSE_RECORDSS, errorCatcher, errorHandle, filter)
  98. //临时出库货名下拉
  99. export const goodsnameXiala = appRx.get(API_GET_GOODSNAME_XIALA, errorCatcher, errorHandle, filter)
  100. //临时仓库待完成
  101. export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, errorHandle, filter)
  102. //临时出入库合同编号下拉
  103. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  104. //获取检斤打印数据
  105. export const getPrintInfo = appRx.get(API_GET_PRINT_INFO, errorCatcher, errorHandle, filter)
  106. //任务列表
  107. export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
  108. // 成本管理
  109. export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter)
  110. // 修改成本
  111. export const editcost = appRx.post(API_POST_EDITCOST,errorCatcher, errorHandle, filter)
  112. // 库点费用列表
  113. export const getinventory = appRx.get(API_GET_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  114. // 添加库点费用
  115. export const addinventory = appRx.post(API_POST_ADD_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  116. // 编辑库点费用
  117. export const editinventory = appRx.post(API_POST_EDIT_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  118. // 编辑库点费用
  119. export const weighteddetails = appRx.get(API_GET_WEIGHTEDDETAILS,errorCatcher, errorHandle, filter)
  120. // 编辑库点费用
  121. export const getwarehousebase = appRx.get(API_GET_WAREHOUSE,errorCatcher, errorHandle, filter)
  122. //负责人
  123. export const getsponsible = appRx.get(API_GET_WAREHOUSERESPONSIBLE,errorCatcher, errorHandle, filter)
  124. //出入库任务
  125. export const getwarehousetask = appRx.get(API_GET_WAREHOUSETASK,errorCatcher, errorHandle, filter)
  126. //修改经办人
  127. export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
  128. //获取出入库任务编号
  129. export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)
  130. //导出入库
  131. export const postExport = appRx.post(API_POST_EXPORT)
  132. //导出出库
  133. export const postExportOut = appRx.post(API_POST_EXPORTOUT)
  134. //打印增量
  135. export const printAdd = appRx.get(API_GET_PRINT,errorCatcher, errorHandle, filter)
  136. //仓位号
  137. export const getbinnumber = appRx.get(API_GET_WAREHOUSE_BINNUMBER,errorCatcher, errorHandle, filter)
  138. //添加折转
  139. export const turnAroundAdd = appRx.post(API_POST_TURNAROUND_ADD,errorCatcher, errorHandle, filter)
  140. //折转列表
  141. export const turnAroundList = appRx.get(API_GET_TURNAROUND_LIST,errorCatcher, errorHandle, filter)
  142. //添加折转信息下拉
  143. export const turnAroundXiaLa = appRx.get(API_GET_TURNAROUND_XIALA,errorCatcher, errorHandle, filter)
  144. //折转后所有货名
  145. export const turnAroundGoodsNameAll = appRx.get(API_get_goodsName_All,errorCatcher, errorHandle, filter)
  146. //退回
  147. export const sendback = appRx.post(API_SEND_BACK,errorCatcher, errorHandle, filter)
  148. //删除
  149. export const postdeletewarehouse = appRx.post(API_DELETE_WAREHOUSE,errorCatcher, errorHandle, filter)