index.js 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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_GET_RELATION_CONTRACTNO,
  17. API_POST_CONTRACT_DELETE,
  18. API_GET_TRAN_TASK_WAREHOUSE,
  19. API_GET_SELECTCONFIRMATIONSHEET,
  20. API_POST_CONFIRMATIONSHEET_EDIT,
  21. API_POST_CONFIRMATIONSHEET_ADD,
  22. API_GET_GETINFO,
  23. API_POST_CONFIRMATIONSHEET_DELETE,
  24. API_GET_STAFF,
  25. API_GET_STAFF_FIND
  26. } from '@/api/V2/contract'
  27. // 列表
  28. export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  29. // 添加
  30. export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  31. // 包装方式
  32. export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter)
  33. // 查看
  34. export const examineList = appRx.get(API_GET_CONTRACT_MANAGEMENTINFO, errorCatcher, errorHandle, filter)
  35. // 下拉
  36. export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  37. export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter)
  38. export const editxiala = appRx.post(API_POST_CUSTOM_DOWN_EDIT, errorCatcher, errorHandle, filter)
  39. export const delxiala = appRx.post(API_POST_CUSTOM_DOWN_DELETE, errorCatcher, errorHandle, filter)
  40. // 导出
  41. export const export1 = appRx.get(API_POST_EXPORT)
  42. // 操作历史
  43. export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher, errorHandle, filter)
  44. // 修改状态
  45. export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)
  46. // 补充协议查看关联合同
  47. export const getRelationContractNo = appRx.get(API_GET_RELATION_CONTRACTNO, errorCatcher, errorHandle, filter)
  48. //删除销售合同
  49. export const deletecontract = appRx.post(API_POST_CONTRACT_DELETE, errorCatcher, errorHandle, filter)
  50. //修改销售合同编辑
  51. export const editInfo = appRx.post(API_POST_EDITINFO, errorCatcher, errorHandle, filter)
  52. //获取负责人
  53. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  54. //获取现货采购负责人
  55. export const getstafffind = appRx.get(API_GET_STAFF_FIND, errorCatcher, errorHandle, filter)
  56. //运输任务-添加-根据仓库类型选库名
  57. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  58. //查看点价确认单
  59. export const selectConfirmationSheet = appRx.get(API_GET_SELECTCONFIRMATIONSHEET, errorCatcher, errorHandle, filter)
  60. //编辑点价确认单
  61. export const editPriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_EDIT, errorCatcher, errorHandle, filter)
  62. //创建点价确认单
  63. export const addPriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_ADD, errorCatcher, errorHandle, filter)
  64. //删除点价确认单
  65. export const deletePriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_DELETE, errorCatcher, errorHandle, filter)
  66. //编辑时查看点价确认单
  67. export const getInfo = appRx.get(API_GET_GETINFO, errorCatcher, errorHandle, filter)