index.js 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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. } from '@/api/V2/taskspost'
  14. //运输任务列表
  15. export const gain = appRx.get(API_GET_TRAN_LIST, errorCatcher, errorHandle, filter)
  16. //运输任务添加
  17. export const addtrantask = appRx.post(API_POST_TRAN_ADD, errorCatcher, errorHandle, filter)
  18. // 识别身份证
  19. export const getidentity = appRx.get(API_POST_PERSON, errorCatcher, errorHandle, filter)
  20. //运输任务查看
  21. export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
  22. //运输任务-添加-根据仓库类型选库名
  23. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  24. //临时出入库合同编号下拉
  25. export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
  26. //运输任务-删除
  27. export const deltran = appRx.post(API_POST_TRAN_DEL, errorCatcher, errorHandle, filter)
  28. //运输任务-查看
  29. export const examinetran = appRx.get(API_GET_TRAN_EXAMINE, errorCatcher, errorHandle, filter)
  30. //运输任务-编辑
  31. export const edittran = appRx.post(API_GET_TRAN_EDIT, errorCatcher, errorHandle, filter)