index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_CONTRACT_TENANT,
  5. API_POST_ADD_CONTRACT_TENANT,
  6. API_POST_MANNER_OF_PACKING_TENANT,
  7. API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN,
  8. API_POST_CUSTOM_DOWN_ADD,
  9. API_POST_CUSTOM_DOWN_EDIT,
  10. API_POST_CUSTOM_DOWN_DELETE,
  11. API_POST_EXPORT,
  12. API_GET_BILL_OPERATE_HIS,
  13. API_POST_EDITSTATUS
  14. } from '@/api/V2/contract'
  15. // 列表
  16. export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  17. // 添加
  18. export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  19. // 查看数据或包装方式
  20. export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter)
  21. // 下拉
  22. export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  23. export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter)
  24. export const editxiala = appRx.post(API_POST_CUSTOM_DOWN_EDIT, errorCatcher, errorHandle, filter)
  25. export const delxiala = appRx.post(API_POST_CUSTOM_DOWN_DELETE, errorCatcher, errorHandle, filter)
  26. // 导出
  27. export const export1 = appRx.get(API_POST_EXPORT)
  28. // 操作历史
  29. export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher, errorHandle, filter)
  30. // 修改状态
  31. export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)