index.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_TRAN_DEL,
  11. API_GET_TRAN_EXAMINE,
  12. API_GET_TRAN_EDIT,
  13. API_POST_OUT_PUT,
  14. API_GET_OUT_LIST,
  15. API_GET_OUT_EXAMINE,
  16. API_POST_OUT_DEL,
  17. API_GET_CONTRACT_GOODSNAME,
  18. API_GET_OUT_MOVE
  19. } from '@/api/V2/taskspost'
  20. //运输任务列表
  21. export const gain = appRx.get(API_GET_TRAN_LIST, errorCatcher, errorHandle, filter)
  22. //运输任务添加
  23. export const addtrantask = appRx.post(API_POST_TRAN_ADD, errorCatcher, errorHandle, filter)
  24. // 识别身份证
  25. export const getidentity = appRx.get(API_POST_PERSON, errorCatcher, errorHandle, filter)
  26. //运输任务查看
  27. export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
  28. //运输任务-添加-根据仓库类型选库名
  29. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  30. //临时出入库合同编号下拉
  31. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  32. //运输任务-删除
  33. export const deltran = appRx.post(API_POST_TRAN_DEL, errorCatcher, errorHandle, filter)
  34. //运输任务-查看
  35. export const examinetran = appRx.get(API_GET_TRAN_EXAMINE, errorCatcher, errorHandle, filter)
  36. //运输任务-编辑
  37. export const edittran = appRx.post(API_GET_TRAN_EDIT, errorCatcher, errorHandle, filter)
  38. //出入库任务-编辑(新增)
  39. export const addoreditoutput = appRx.post(API_POST_OUT_PUT, errorCatcher, errorHandle, filter)
  40. //出入库任务-列表
  41. export const getoreditoutput = appRx.get(API_GET_OUT_LIST, errorCatcher, errorHandle, filter)
  42. //出入库任务-查看
  43. export const outexamine = appRx.get(API_GET_OUT_EXAMINE, errorCatcher, errorHandle, filter)
  44. //出入库任务-删除
  45. export const outdelete = appRx.post(API_POST_OUT_DEL, errorCatcher, errorHandle, filter)
  46. //出入库任务-货名
  47. export const getGoodsName = appRx.get(API_GET_CONTRACT_GOODSNAME, errorCatcher, errorHandle, filter)
  48. //移库列表
  49. export const moveList = appRx.get(API_GET_OUT_MOVE, errorCatcher, errorHandle, filter)