index.js 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_STAFF,
  26. API_GET_TASKHISTORIES,
  27. API_SPONSOR_WITHDRAW,
  28. API_POST_WORKFLOW_TASK,
  29. API_EDIT_SOURCEOFGOODS,
  30. API_GET_SOURCEGOOD,
  31. API_SET_CORRECT,
  32. API_GET_SOURCEOFGOODS,
  33. API_GET_GOODSOURCEINFO,
  34. API_GET_TASKNO
  35. } from '@/api/V2/taskspost'
  36. //运输任务列表
  37. export const gain = appRx.get(API_GET_TRAN_LIST, errorCatcher, errorHandle, filter)
  38. //运输任务添加
  39. export const addtrantask = appRx.post(API_POST_TRAN_ADD, errorCatcher, errorHandle, filter)
  40. // 识别身份证
  41. export const getidentity = appRx.get(API_POST_PERSON, errorCatcher, errorHandle, filter)
  42. // 审核通过不通过
  43. export const woekflowhandle = appRx.post(API_POST_WORKFLOW_API_HANDLE, errorCatcher, errorHandle, filter)
  44. // 审核之后
  45. export const workflowcontent = appRx.get(API_POST_WORKFLOW_TASK, errorCatcher, errorHandle, filter)
  46. // 审核编辑
  47. export const warehousetask = appRx.post(API_POST_INOUTWAREHOUSETASK, errorCatcher, errorHandle, filter)
  48. //运输任务查看
  49. export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
  50. //运输任务-添加-根据仓库类型选库名
  51. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  52. //临时出入库合同编号下拉
  53. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  54. //运输任务-删除
  55. export const deltran = appRx.post(API_POST_TRAN_DEL, errorCatcher, errorHandle, filter)
  56. //运输任务-查看
  57. export const examinetran = appRx.get(API_GET_TRAN_EXAMINE, errorCatcher, errorHandle, filter)
  58. //运输任务-编辑
  59. export const edittran = appRx.post(API_GET_TRAN_EDIT, errorCatcher, errorHandle, filter)
  60. //出入库任务-编辑(新增)
  61. export const addoreditoutput = appRx.post(API_POST_OUT_PUT, errorCatcher, errorHandle, filter)
  62. //出入库任务-列表
  63. export const getoreditoutput = appRx.get(API_GET_OUT_LIST, errorCatcher, errorHandle, filter)
  64. //出入库任务-查看
  65. export const outexamine = appRx.get(API_GET_OUT_EXAMINE, errorCatcher, errorHandle, filter)
  66. //出入库任务-删除
  67. export const outdelete = appRx.post(API_POST_OUT_DEL, errorCatcher, errorHandle, filter)
  68. //出入库任务-货名
  69. export const getGoodsName = appRx.get(API_GET_CONTRACT_GOODSNAME, errorCatcher, errorHandle, filter)
  70. //移库列表
  71. export const moveList = appRx.get(API_GET_OUT_MOVE, errorCatcher, errorHandle, filter)
  72. //移库详情
  73. export const moveLook = appRx.get(API_GET_OUT_MOVELOOK, errorCatcher, errorHandle, filter)
  74. //运输任务状态修改
  75. export const states = appRx.post(API_POST_OUT_STATES, errorCatcher, errorHandle, filter)
  76. //移库任务状态修改
  77. export const movestates = appRx.post(API_POST_OUT_MOVESTATES, errorCatcher, errorHandle, filter)
  78. //删除运输阶段
  79. export const delhaulagestage = appRx.post(API_POST_DEL_HAULAGE_STAGE, errorCatcher, errorHandle, filter)
  80. //查询审核记录
  81. export const gettaskhistories = appRx.get(API_GET_TASKHISTORIES, errorCatcher, errorHandle, filter)
  82. //获取发货人
  83. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  84. //货源提交编辑
  85. export const editSourceOfGoods = appRx.post(API_EDIT_SOURCEOFGOODS, errorCatcher, errorHandle, filter)
  86. //货源查看
  87. export const getSourceOfGoods = appRx.get(API_GET_SOURCEGOOD, errorCatcher, errorHandle, filter)
  88. // 退库货源列表
  89. export const getSourceOfGoodslist = appRx.get(API_GET_SOURCEOFGOODS, errorCatcher, errorHandle, filter)
  90. //矫正
  91. export const setcorrect = appRx.post(API_SET_CORRECT, errorCatcher, errorHandle, filter)
  92. //出库货源列表
  93. export const getSourceOfGoodsinfo = appRx.get(API_GET_GOODSOURCEINFO, errorCatcher, errorHandle, filter)
  94. //退库选择的任务编号
  95. export const gettaskNo = appRx.get(API_GET_TASKNO, errorCatcher, errorHandle, filter)
  96. // 发起人撤回
  97. export const sponsorWithdraw = appRx.post(API_SPONSOR_WITHDRAW, errorCatcher, errorHandle, filter)