index.js 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_TRAN_LIST,
  5. API_POST_TRAN_ADD,
  6. API_POST_PERSON,
  7. API_POST_TRAN_LOOK,
  8. API_GET_TRAN_TASK_WAREHOUSE,
  9. API_GET_WAREHOUSE_NO,
  10. API_POST_WORKFLOW_API_HANDLE,
  11. API_POST_TRAN_DEL,
  12. API_GET_TRAN_EXAMINE,
  13. API_GET_TRAN_EDIT,
  14. API_POST_OUT_PUT,
  15. API_GET_OUT_LIST,
  16. API_GET_OUT_EXAMINE,
  17. API_POST_OUT_DEL,
  18. API_GET_CONTRACT_GOODSNAME,
  19. API_GET_OUT_MOVE,
  20. API_POST_INOUTWAREHOUSETASK,
  21. API_GET_OUT_MOVELOOK,
  22. API_POST_OUT_STATES,
  23. API_POST_OUT_MOVESTATES,
  24. API_POST_DEL_HAULAGE_STAGE,
  25. API_GET_TASKHISTORIES
  26. } from '@/api/V2/taskspost'
  27. //运输任务列表
  28. export const gain = appRx.get(API_GET_TRAN_LIST, errorCatcher, errorHandle, filter)
  29. //运输任务添加
  30. export const addtrantask = appRx.post(API_POST_TRAN_ADD, errorCatcher, errorHandle, filter)
  31. // 识别身份证
  32. export const getidentity = appRx.get(API_POST_PERSON, errorCatcher, errorHandle, filter)
  33. // 审核通过不通过
  34. export const woekflowhandle = appRx.post(API_POST_WORKFLOW_API_HANDLE, errorCatcher, errorHandle, filter)
  35. // 审核编辑
  36. export const warehousetask = appRx.post(API_POST_INOUTWAREHOUSETASK, errorCatcher, errorHandle, filter)
  37. //运输任务查看
  38. export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
  39. //运输任务-添加-根据仓库类型选库名
  40. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  41. //临时出入库合同编号下拉
  42. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  43. //运输任务-删除
  44. export const deltran = appRx.post(API_POST_TRAN_DEL, errorCatcher, errorHandle, filter)
  45. //运输任务-查看
  46. export const examinetran = appRx.get(API_GET_TRAN_EXAMINE, errorCatcher, errorHandle, filter)
  47. //运输任务-编辑
  48. export const edittran = appRx.post(API_GET_TRAN_EDIT, errorCatcher, errorHandle, filter)
  49. //出入库任务-编辑(新增)
  50. export const addoreditoutput = appRx.post(API_POST_OUT_PUT, errorCatcher, errorHandle, filter)
  51. //出入库任务-列表
  52. export const getoreditoutput = appRx.get(API_GET_OUT_LIST, errorCatcher, errorHandle, filter)
  53. //出入库任务-查看
  54. export const outexamine = appRx.get(API_GET_OUT_EXAMINE, errorCatcher, errorHandle, filter)
  55. //出入库任务-删除
  56. export const outdelete = appRx.post(API_POST_OUT_DEL, errorCatcher, errorHandle, filter)
  57. //出入库任务-货名
  58. export const getGoodsName = appRx.get(API_GET_CONTRACT_GOODSNAME, errorCatcher, errorHandle, filter)
  59. //移库列表
  60. export const moveList = appRx.get(API_GET_OUT_MOVE, errorCatcher, errorHandle, filter)
  61. //移库详情
  62. export const moveLook = appRx.get(API_GET_OUT_MOVELOOK, errorCatcher, errorHandle, filter)
  63. //运输任务状态修改
  64. export const states = appRx.post(API_POST_OUT_STATES, errorCatcher, errorHandle, filter)
  65. //移库任务状态修改
  66. export const movestates = appRx.post(API_POST_OUT_MOVESTATES, errorCatcher, errorHandle, filter)
  67. //删除运输阶段
  68. export const delhaulagestage = appRx.post(API_POST_DEL_HAULAGE_STAGE, errorCatcher, errorHandle, filter)
  69. //删除运输阶段
  70. export const gettaskhistories = appRx.get(API_GET_TASKHISTORIES, errorCatcher, errorHandle, filter)