index.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_CUSTOMER_MANAGE,
  5. API_POST_CUSTOMER_ADD,
  6. API_GET_CUSTOMER_IDENTITY,
  7. API_GET_CUSTOMER_DELETE,
  8. API_GET_CUSTOMER_LOOK,
  9. API_GET_PURCHASEPRICE_MANAGE,
  10. API_POST_PURCHASEPRICE_ADD,
  11. API_GET_PURCHASEPRICE_LOOK,
  12. API_POST_PURCHASEPRICE_EDIT,
  13. API_POST_PURCHASEPRICE_DEL,
  14. API_POST_PURCHASEPRICE_ALLOWEDIT,
  15. API_GET_WAREHOUSESELF,
  16. API_POST_CUSTOMER_EDIT,
  17. API_POST_INSPECT_ADD,
  18. API_GET_INSPECT_GETBINNUMBER,
  19. API_GET_INSPECT_GETCUSTOMER,
  20. API_GET_INSPECT_GETINSPECTLIST,
  21. API_GET_INSPECT_GETINSPECTLOOK,
  22. API_GET_INSPECT_GETINSPECTLOOKUNITPRICE,
  23. API_GET_INSPECT_GETINSPECTLOOKGOODS,
  24. API_POST_INSPECT_GETINSPECTEDIT,
  25. API_POST_INSPECT_GETINSPECTDELETE,
  26. API_GET_PAYMENTMANAGEMENT,
  27. API_GET_WEIGHTCHECK_GETWEIGHINGLIST,
  28. API_POST_WEIGHTCHECK_GROSSWEIGHT,
  29. API_POST_WEIGHTCHECK_TARE,
  30. API_GET_PAYMENT,
  31. API_POST_PAYMENT_EDIT,
  32. API_GET_INSPECT_GETAMOUNT,
  33. API_GET_CUSTOMER_GETIDENTITY,
  34. API_GET_CUSTOMER_GETBANK,
  35. API_GET_INSPECT_GETCOUNT,
  36. API_GET_WEIGHTCHECK_GETPRINT,
  37. API_POST_PAYMENT_DEL,
  38. API_POST_PAYMENT_AUDIT
  39. } from '@/api/V2/houseSelfCollect'
  40. //客户管理列表
  41. export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
  42. //新增粮商1
  43. export const customerAdd = appRx.post(API_POST_CUSTOMER_ADD, errorCatcher, errorHandle, filter)
  44. //新增粮商2
  45. export const customerIdentity = appRx.get(API_GET_CUSTOMER_IDENTITY, errorCatcher, errorHandle, filter)
  46. //客户管理删除
  47. export const getCustomerDelete = appRx.post(API_GET_CUSTOMER_DELETE, errorCatcher, errorHandle, filter)
  48. //客户查看
  49. export const getCustomerLook = appRx.get(API_GET_CUSTOMER_LOOK, errorCatcher, errorHandle, filter)
  50. //收购管理列表
  51. export const getPurchasePrice = appRx.get(API_GET_PURCHASEPRICE_MANAGE, errorCatcher, errorHandle, filter)
  52. //收购管理添加
  53. export const purchasePriceAdd = appRx.post(API_POST_PURCHASEPRICE_ADD, errorCatcher, errorHandle, filter)
  54. //收购管理查看
  55. export const purchasePriceLook = appRx.get(API_GET_PURCHASEPRICE_LOOK, errorCatcher, errorHandle, filter)
  56. //收购管理编辑
  57. export const purchasePriceEdit = appRx.post(API_POST_PURCHASEPRICE_EDIT, errorCatcher, errorHandle, filter)
  58. //收购管理删除
  59. export const purchasePriceDel = appRx.post(API_POST_PURCHASEPRICE_DEL, errorCatcher, errorHandle, filter)
  60. //收购管理手动编辑
  61. export const purchasePriceAllowEdit = appRx.post(API_POST_PURCHASEPRICE_ALLOWEDIT, errorCatcher, errorHandle, filter)
  62. //查看仓库
  63. export const selectWarehouseSelf = appRx.get(API_GET_WAREHOUSESELF, errorCatcher, errorHandle, filter)
  64. //客户查看
  65. export const CustomerEdit = appRx.post(API_POST_CUSTOMER_EDIT, errorCatcher, errorHandle, filter)
  66. //质检添加
  67. export const inspectAdd = appRx.post(API_POST_INSPECT_ADD, errorCatcher, errorHandle, filter)
  68. //仓位下拉
  69. export const getbinNumber = appRx.get(API_GET_INSPECT_GETBINNUMBER, errorCatcher, errorHandle, filter)
  70. //客户下拉
  71. export const getcustomer = appRx.get(API_GET_INSPECT_GETCUSTOMER, errorCatcher, errorHandle, filter)
  72. //质检列表
  73. export const getinspectList = appRx.get(API_GET_INSPECT_GETINSPECTLIST, errorCatcher, errorHandle, filter)
  74. //质检查看
  75. export const getinspectLook = appRx.get(API_GET_INSPECT_GETINSPECTLOOK, errorCatcher, errorHandle, filter)
  76. //质检查看潮粮单价
  77. export const getinspectLookUnitPrice = appRx.get(API_GET_INSPECT_GETINSPECTLOOKUNITPRICE, errorCatcher, errorHandle, filter)
  78. //质检查看货名下拉
  79. export const getinspectLookGoods = appRx.get(API_GET_INSPECT_GETINSPECTLOOKGOODS, errorCatcher, errorHandle, filter)
  80. //质检修改
  81. export const getinspectEdit = appRx.post(API_POST_INSPECT_GETINSPECTEDIT, errorCatcher, errorHandle, filter)
  82. //质检删除
  83. export const getinspectDelete = appRx.post(API_POST_INSPECT_GETINSPECTDELETE, errorCatcher, errorHandle, filter)
  84. //付款管理列表
  85. export const getpayment = appRx.get(API_GET_PAYMENTMANAGEMENT, errorCatcher, errorHandle, filter)
  86. //检斤列表查看
  87. export const getweighingList = appRx.get(API_GET_WEIGHTCHECK_GETWEIGHINGLIST, errorCatcher, errorHandle, filter)
  88. //皮重检斤保存
  89. export const tare = appRx.post(API_POST_WEIGHTCHECK_TARE, errorCatcher, errorHandle, filter)
  90. //毛重检斤保存
  91. export const grossWeight = appRx.post(API_POST_WEIGHTCHECK_GROSSWEIGHT, errorCatcher, errorHandle, filter)
  92. //付款信息查看
  93. export const getpaymentexamine = appRx.get(API_GET_PAYMENT, errorCatcher, errorHandle, filter)
  94. //付款信息结算
  95. export const postpaymentedit = appRx.post(API_POST_PAYMENT_EDIT, errorCatcher, errorHandle, filter)
  96. //质检客户下拉校验
  97. export const getamount = appRx.get(API_GET_INSPECT_GETAMOUNT, errorCatcher, errorHandle, filter)
  98. //身份证识别
  99. export const getIdentity = appRx.get(API_GET_CUSTOMER_GETIDENTITY, errorCatcher, errorHandle, filter)
  100. //银行卡识别
  101. export const getBank = appRx.get(API_GET_CUSTOMER_GETBANK, errorCatcher, errorHandle, filter)
  102. //查询货名有未结算状态
  103. export const getCount = appRx.get(API_GET_INSPECT_GETCOUNT, errorCatcher, errorHandle, filter)
  104. //检斤打印查看
  105. export const getPrint = appRx.get(API_GET_WEIGHTCHECK_GETPRINT, errorCatcher, errorHandle, filter)
  106. //付款删除
  107. export const delpayment = appRx.post(API_POST_PAYMENT_DEL, errorCatcher, errorHandle, filter)
  108. //付款审核
  109. export const auditpayment = appRx.post(API_POST_PAYMENT_AUDIT, errorCatcher, errorHandle, filter)