index.js 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. API_GET_CUSTOMERINFO,
  27. API_GET_RECORDPAGE,
  28. API_POST_ADDRECORD,
  29. API_GET_IDENTITYBYCARD,
  30. API_POST_RECORDEDIT
  31. } from '@/api/V2/contract'
  32. // 列表
  33. export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  34. // 添加
  35. export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
  36. // 包装方式
  37. export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter)
  38. // 查看
  39. export const examineList = appRx.get(API_GET_CONTRACT_MANAGEMENTINFO, errorCatcher, errorHandle, filter)
  40. // 下拉
  41. export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
  42. export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter)
  43. export const editxiala = appRx.post(API_POST_CUSTOM_DOWN_EDIT, errorCatcher, errorHandle, filter)
  44. export const delxiala = appRx.post(API_POST_CUSTOM_DOWN_DELETE, errorCatcher, errorHandle, filter)
  45. // 导出
  46. export const export1 = appRx.get(API_POST_EXPORT)
  47. // 操作历史
  48. export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher, errorHandle, filter)
  49. // 修改状态
  50. export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)
  51. // 补充协议查看关联合同
  52. export const getRelationContractNo = appRx.get(API_GET_RELATION_CONTRACTNO, errorCatcher, errorHandle, filter)
  53. //删除销售合同
  54. export const deletecontract = appRx.post(API_POST_CONTRACT_DELETE, errorCatcher, errorHandle, filter)
  55. //修改销售合同编辑
  56. export const editInfo = appRx.post(API_POST_EDITINFO, errorCatcher, errorHandle, filter)
  57. //获取负责人
  58. export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
  59. //获取现货采购负责人
  60. export const getstafffind = appRx.get(API_GET_STAFF_FIND, errorCatcher, errorHandle, filter)
  61. //运输任务-添加-根据仓库类型选库名
  62. export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)
  63. //查看点价确认单
  64. export const selectConfirmationSheet = appRx.get(API_GET_SELECTCONFIRMATIONSHEET, errorCatcher, errorHandle, filter)
  65. //编辑点价确认单
  66. export const editPriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_EDIT, errorCatcher, errorHandle, filter)
  67. //创建点价确认单
  68. export const addPriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_ADD, errorCatcher, errorHandle, filter)
  69. //删除点价确认单
  70. export const deletePriceConfirmationSheet = appRx.post(API_POST_CONFIRMATIONSHEET_DELETE, errorCatcher, errorHandle, filter)
  71. //编辑时查看点价确认单
  72. export const getInfo = appRx.get(API_GET_GETINFO, errorCatcher, errorHandle, filter)
  73. // 客户
  74. export const getcustomerinfo = appRx.get(API_GET_CUSTOMERINFO, errorCatcher, errorHandle, filter)
  75. // 代收合同记录
  76. export const selectCollectionWarehousingRecordPage = appRx.get(API_GET_RECORDPAGE, errorCatcher, errorHandle, filter)
  77. // 代收合同记录
  78. export const insertCollectionWarehousingRecord = appRx.post(API_POST_ADDRECORD, errorCatcher, errorHandle, filter)
  79. // 代收合同身份证号查询认证客户
  80. export const selectIdentityByCard = appRx.get(API_GET_IDENTITYBYCARD, errorCatcher, errorHandle, filter)
  81. // 代收合同记录编辑
  82. export const editCollectionWarehousingRecord = appRx.post(API_POST_RECORDEDIT, errorCatcher, errorHandle, filter)