index.js 3.5 KB

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