index.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. } from '@/api/V2/warehouse'
  39. // import { app } from 'electron'
  40. // 列表
  41. export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  42. // 添加
  43. export const addList = appRx.post(API_POST_ADD_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  44. //仓库查看
  45. export const getLook = appRx.get(API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter)
  46. //仓库下拉
  47. export const xiala = appRx.get(API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  48. //删除
  49. export const deletewarehouse = appRx.post(API_POST_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter)
  50. //删除仓库列表
  51. export const delectlist = appRx.get(API_GET_WAREHOUSE_DELETELIST, errorCatcher, errorHandle, filter)
  52. //隐藏
  53. export const hide = appRx.post(API_POST_WAREHOUSE_HIDE, errorCatcher, errorHandle, filter)
  54. //仓库编辑
  55. export const edit = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorHandle, filter)
  56. //盘损
  57. export const ioss = appRx.get(API_GET_WAREHOUSE_IOSS, errorCatcher, errorHandle, filter)
  58. //货名下拉
  59. export const goodsname = appRx.get(API_GET_WAREHOUSE_NAME, errorCatcher, errorHandle, filter)
  60. // 货名等下拉
  61. export const pullDown = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  62. // 入库添加
  63. export const addstorageputList = appRx.post(API_POST_STORAGE_PUT, errorCatcher, errorHandle, filter)
  64. // 流转记录
  65. export const addselectinfoList = appRx.get(API_GET_SELECT_INFO, errorCatcher, errorHandle, filter)
  66. // 盘损记录
  67. export const adjustmentrecordList = appRx.get(API_GET_WAREHOUSE_INVENTORYCOUNT, errorCatcher, errorHandle, filter)
  68. //盘损提交
  69. export const submitioss = appRx.post(API_POST_STORAGE_IOSS, errorCatcher, errorHandle, filter)
  70. //待完善记录
  71. export const complete = appRx.get(API_GET_WAREHOUSE_COMPLETE, errorCatcher, errorHandle, filter)
  72. // 编辑删除仓位
  73. export const delPosition = appRx.post(API_POST_WAREHOUSE_DEL_POSITION, errorCatcher, errorHandle, filter)
  74. //删除待完善记录
  75. export const delInOut = appRx.post(API_POST_WAREHOUSE_DEL_INOUTINFO, errorCatcher, errorHandle, filter)
  76. //临时仓库增加add
  77. export const increase = appRx.post(API_POST_WAREHOUSE_ADD, errorCatcher, errorHandle, filter)
  78. //临时仓库清仓
  79. export const clearancee = appRx.post(API_POST_WAREHOUSE_CLEARANCEE, errorCatcher, errorHandle, filter)
  80. //获取负责人
  81. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  82. //临时仓库记录
  83. export const recordss = appRx.get(API_GET_WAREHOUSE_RECORDSS, errorCatcher, errorHandle, filter)
  84. //临时出库货名下拉
  85. export const goodsnameXiala = appRx.get(API_GET_GOODSNAME_XIALA, errorCatcher, errorHandle, filter)
  86. //临时仓库待完成
  87. export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, errorHandle, filter)
  88. //临时出入库合同编号下拉
  89. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  90. //获取检斤打印数据
  91. export const getPrintInfo = appRx.get(API_GET_PRINT_INFO, errorCatcher, errorHandle, filter)
  92. //任务列表
  93. export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
  94. // 成本管理
  95. export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter)
  96. // 修改成本
  97. export const editcost = appRx.post(API_POST_EDITCOST,errorCatcher, errorHandle, filter)
  98. // 库点费用列表
  99. export const getinventory = appRx.get(API_GET_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  100. // 添加库点费用
  101. export const addinventory = appRx.post(API_POST_ADD_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  102. // 编辑库点费用
  103. export const editinventory = appRx.post(API_POST_EDIT_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
  104. // 编辑库点费用
  105. export const weighteddetails = appRx.get(API_GET_WEIGHTEDDETAILS,errorCatcher, errorHandle, filter)
  106. // 编辑库点费用
  107. export const getwarehousebase = appRx.get(API_GET_WAREHOUSE,errorCatcher, errorHandle, filter)