index.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. } from '@/api/V2/houseSelfCollect'
  33. //客户管理列表
  34. export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
  35. //新增粮商1
  36. export const customerAdd = appRx.post(API_POST_CUSTOMER_ADD, errorCatcher, errorHandle, filter)
  37. //新增粮商2
  38. export const customerIdentity = appRx.get(API_GET_CUSTOMER_IDENTITY, errorCatcher, errorHandle, filter)
  39. //客户管理删除
  40. export const getCustomerDelete = appRx.post(API_GET_CUSTOMER_DELETE, errorCatcher, errorHandle, filter)
  41. //客户查看
  42. export const getCustomerLook = appRx.get(API_GET_CUSTOMER_LOOK, errorCatcher, errorHandle, filter)
  43. //收购管理列表
  44. export const getPurchasePrice = appRx.get(API_GET_PURCHASEPRICE_MANAGE, errorCatcher, errorHandle, filter)
  45. //收购管理添加
  46. export const purchasePriceAdd = appRx.post(API_POST_PURCHASEPRICE_ADD, errorCatcher, errorHandle, filter)
  47. //收购管理查看
  48. export const purchasePriceLook = appRx.post(API_GET_PURCHASEPRICE_LOOK, errorCatcher, errorHandle, filter)
  49. //收购管理编辑
  50. export const purchasePriceEdit = appRx.post(API_POST_PURCHASEPRICE_EDIT, errorCatcher, errorHandle, filter)
  51. //收购管理删除
  52. export const purchasePriceDel = appRx.post(API_POST_PURCHASEPRICE_DEL, errorCatcher, errorHandle, filter)
  53. //收购管理手动编辑
  54. export const purchasePriceAllowEdit = appRx.post(API_POST_PURCHASEPRICE_ALLOWEDIT, errorCatcher, errorHandle, filter)
  55. //查看仓库
  56. export const selectWarehouseSelf = appRx.get(API_GET_WAREHOUSESELF, errorCatcher, errorHandle, filter)
  57. //客户查看
  58. export const CustomerEdit = appRx.post(API_POST_CUSTOMER_EDIT, errorCatcher, errorHandle, filter)
  59. //质检添加
  60. export const inspectAdd = appRx.post(API_POST_INSPECT_ADD, errorCatcher, errorHandle, filter)
  61. //仓位下拉
  62. export const getbinNumber = appRx.get(API_GET_INSPECT_GETBINNUMBER, errorCatcher, errorHandle, filter)
  63. //客户下拉
  64. export const getcustomer = appRx.get(API_GET_INSPECT_GETCUSTOMER, errorCatcher, errorHandle, filter)
  65. //质检列表
  66. export const getinspectList = appRx.get(API_GET_INSPECT_GETINSPECTLIST, errorCatcher, errorHandle, filter)
  67. //质检查看
  68. export const getinspectLook = appRx.get(API_GET_INSPECT_GETINSPECTLOOK, errorCatcher, errorHandle, filter)
  69. //质检查看潮粮单价
  70. export const getinspectLookUnitPrice = appRx.get(API_GET_INSPECT_GETINSPECTLOOKUNITPRICE, errorCatcher, errorHandle, filter)
  71. //质检查看货名下拉
  72. export const getinspectLookGoods = appRx.get(API_GET_INSPECT_GETINSPECTLOOKGOODS, errorCatcher, errorHandle, filter)
  73. //质检修改
  74. export const getinspectEdit = appRx.post(API_POST_INSPECT_GETINSPECTEDIT, errorCatcher, errorHandle, filter)
  75. //质检删除
  76. export const getinspectDelete = appRx.post(API_POST_INSPECT_GETINSPECTDELETE, errorCatcher, errorHandle, filter)
  77. //付款管理列表
  78. export const getpayment = appRx.get(API_GET_PAYMENTMANAGEMENT, errorCatcher, errorHandle, filter)
  79. //检斤列表查看
  80. export const getweighingList = appRx.get(API_GET_WEIGHTCHECK_GETWEIGHINGLIST, errorCatcher, errorHandle, filter)
  81. //皮重检斤保存
  82. export const tare = appRx.post(API_POST_WEIGHTCHECK_TARE, errorCatcher, errorHandle, filter)
  83. //毛重检斤保存
  84. export const grossWeight = appRx.post(API_POST_WEIGHTCHECK_GROSSWEIGHT, errorCatcher, errorHandle, filter)
  85. //付款信息查看
  86. export const getpaymentexamine = appRx.get(API_GET_PAYMENT, errorCatcher, errorHandle, filter)
  87. //付款信息结算
  88. export const postpaymentedit = appRx.post(API_POST_PAYMENT_EDIT, errorCatcher, errorHandle, filter)