index.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. API_GET_CONTRACT_MANAGEMENTINFO,
  15. API_POST_EDITINFO,
  16. API_POST_CONTRACT_DELETE
  17. } from '@/api/V2/contract'
  18. // 列表
  19. export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  20. // 添加
  21. export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  22. // 包装方式
  23. export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter)
  24. // 查看
  25. export const examineList = appRx.get(API_GET_CONTRACT_MANAGEMENTINFO, errorCatcher, errorHandle, filter)
  26. // 下拉
  27. export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  28. export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter)
  29. export const editxiala = appRx.post(API_POST_CUSTOM_DOWN_EDIT, errorCatcher, errorHandle, filter)
  30. export const delxiala = appRx.post(API_POST_CUSTOM_DOWN_DELETE, errorCatcher, errorHandle, filter)
  31. // 导出
  32. export const export1 = appRx.get(API_POST_EXPORT)
  33. // 操作历史
  34. export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher, errorHandle, filter)
  35. // 修改状态
  36. export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)
  37. //修改销售合同编辑
  38. export const editInfo = appRx.post(API_POST_EDITINFO, errorCatcher, errorHandle, filter)
  39. //删除
  40. export const deletecontract = appRx.post(API_POST_CONTRACT_DELETE,errorCatcher,errorHandle,filter)