index.js 7.5 KB

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