index.js 4.0 KB

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