index.js 8.5 KB

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