index.js 5.1 KB

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