index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_GET_WAREHOUSE_DELETE,
  9. API_POST_WAREHOUSE_EDIT,
  10. API_GET_WAREHOUSE_IOSS,
  11. API_POST_WAREHOUSE_NAME,
  12. API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN,
  13. API_POST_STORAGE_PUT,
  14. API_POST_STORAGE_IOSS
  15. } from '@/api/V2/warehouse'
  16. // 列表
  17. export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  18. // 添加
  19. export const addList = appRx.post(API_POST_ADD_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
  20. //仓库查看
  21. export const getLook = appRx.get(API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter)
  22. //仓库下拉
  23. export const xiala = appRx.get( API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  24. //删除
  25. export const deletewarehouse = appRx.get(API_GET_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter)
  26. //仓库编辑
  27. export const edit = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorHandle, filter)
  28. //盘损
  29. export const ioss = appRx.get(API_GET_WAREHOUSE_IOSS, errorCatcher, errorHandle, filter)
  30. //货名下拉
  31. export const goodsname = appRx.get(API_POST_WAREHOUSE_NAME, errorCatcher, errorHandle, filter)
  32. // 货名等下拉
  33. export const pullDown = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  34. // 入库添加
  35. export const addstorageputList = appRx.post(API_POST_STORAGE_PUT, errorCatcher, errorHandle, filter)
  36. //盘损提交
  37. export const submitioss = appRx.post(API_POST_STORAGE_IOSS, errorCatcher, errorHandle, filter)