index.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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_GETQRCODE,
  21. API_GET_INSPECT_GETINSPECTLIST,
  22. API_GET_INSPECT_GETINSPECTLOOK,
  23. API_GET_INSPECT_GETINSPECTLOOKUNITPRICE,
  24. API_GET_INSPECT_GETINSPECTLOOKGOODS,
  25. API_POST_INSPECT_GETINSPECTEDIT,
  26. API_POST_INSPECT_GETINSPECTDELETE,
  27. API_GET_PAYMENTMANAGEMENT,
  28. API_GET_WEIGHTCHECK_GETWEIGHINGLIST,
  29. API_POST_WEIGHTCHECK_GROSSWEIGHT,
  30. API_POST_WEIGHTCHECK_TARE,
  31. API_GET_PAYMENT,
  32. API_POST_PAYMENT_EDIT,
  33. API_GET_INSPECT_GETAMOUNT,
  34. API_GET_CUSTOMER_GETIDENTITY,
  35. API_GET_CUSTOMER_GETBANK,
  36. API_GET_INSPECT_GETCOUNT,
  37. API_GET_WEIGHTCHECK_GETPRINT,
  38. API_POST_PAYMENT_DEL,
  39. API_POST_PAYMENT_AUDIT,
  40. API_POST_PAYMENT_PAYMENTSUBMIT,
  41. API_POST_PAYMENT_SETTLEMENTEDIT,
  42. API_GET_CUSTOMER_CODE,
  43. API_GET_CUSTOMER_CODEJY,
  44. API_GET_INSPECT_GETDRYGRAINPRICE,
  45. API_GET_INSPECT_GETJURISDICTION,
  46. API_POST_INVOICING,
  47. API_POST_EXPORT,
  48. API_GET_SHIPPINGINFOFORMATION,
  49. API_POST_INSPECTIONCHECK,
  50. API_GAT_QRCODE,
  51. API_GAT_GETQRCODE,
  52. API_GAT_INFO,
  53. API_POST_WORKFLOW_TASK,
  54. API_POST_INSPECT_GETWEIGHTDELETE,
  55. API_POST_SUSPENDINSTANCE,
  56. API_POST_IMPORT,
  57. API_GET_INSPECT_CONTRACTNO,
  58. API_GET_SETTLEACCOUT,
  59. API_POST_RETURN,
  60. API_POST_SUBMIT,
  61. API_POST_DELETE
  62. } from '@/api/V2/houseSelfCollect'
  63. //客户管理列表
  64. export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
  65. //新增粮商1
  66. export const customerAdd = appRx.post(API_POST_CUSTOMER_ADD, errorCatcher, errorHandle, filter)
  67. //新增粮商2
  68. export const customerIdentity = appRx.get(API_GET_CUSTOMER_IDENTITY, errorCatcher, errorHandle, filter)
  69. //客户管理删除
  70. export const getCustomerDelete = appRx.post(API_GET_CUSTOMER_DELETE, errorCatcher, errorHandle, filter)
  71. //客户查看
  72. export const getCustomerLook = appRx.get(API_GET_CUSTOMER_LOOK, errorCatcher, errorHandle, filter)
  73. //收购管理列表
  74. export const getPurchasePrice = appRx.get(API_GET_PURCHASEPRICE_MANAGE, errorCatcher, errorHandle, filter)
  75. //收购管理添加
  76. export const purchasePriceAdd = appRx.post(API_POST_PURCHASEPRICE_ADD, errorCatcher, errorHandle, filter)
  77. //收购管理查看
  78. export const purchasePriceLook = appRx.get(API_GET_PURCHASEPRICE_LOOK, errorCatcher, errorHandle, filter)
  79. //收购管理编辑
  80. export const purchasePriceEdit = appRx.post(API_POST_PURCHASEPRICE_EDIT, errorCatcher, errorHandle, filter)
  81. //收购管理删除
  82. export const purchasePriceDel = appRx.post(API_POST_PURCHASEPRICE_DEL, errorCatcher, errorHandle, filter)
  83. //收购管理手动编辑
  84. export const purchasePriceAllowEdit = appRx.post(API_POST_PURCHASEPRICE_ALLOWEDIT, errorCatcher, errorHandle, filter)
  85. //查看仓库
  86. export const selectWarehouseSelf = appRx.get(API_GET_WAREHOUSESELF, errorCatcher, errorHandle, filter)
  87. //客户查看
  88. export const CustomerEdit = appRx.post(API_POST_CUSTOMER_EDIT, errorCatcher, errorHandle, filter)
  89. // 获取验证码
  90. export const GetCustomerCode = appRx.get(API_GET_CUSTOMER_CODE, errorCatcher, errorHandle, filter)
  91. // 验证码校验
  92. export const GetCustomerCodeJY = appRx.get(API_GET_CUSTOMER_CODEJY, errorCatcher, errorHandle, filter)
  93. //质检添加
  94. export const inspectAdd = appRx.post(API_POST_INSPECT_ADD, errorCatcher, errorHandle, filter)
  95. //仓位下拉
  96. export const getbinNumber = appRx.get(API_GET_INSPECT_GETBINNUMBER, errorCatcher, errorHandle, filter)
  97. //客户下拉
  98. export const getcustomer = appRx.get(API_GET_INSPECT_GETCUSTOMER, errorCatcher, errorHandle, filter)
  99. //获取二维码
  100. export const getQRCode = appRx.get(API_GET_INSPECT_GETQRCODE, errorCatcher, errorHandle, filter)
  101. //质检列表
  102. export const getinspectList = appRx.get(API_GET_INSPECT_GETINSPECTLIST, errorCatcher, errorHandle, filter)
  103. //质检查看
  104. export const getinspectLook = appRx.get(API_GET_INSPECT_GETINSPECTLOOK, errorCatcher, errorHandle, filter)
  105. //质检查看潮粮单价
  106. export const getinspectLookUnitPrice = appRx.get(API_GET_INSPECT_GETINSPECTLOOKUNITPRICE, errorCatcher, errorHandle, filter)
  107. //质检查看货名下拉
  108. export const getinspectLookGoods = appRx.get(API_GET_INSPECT_GETINSPECTLOOKGOODS, errorCatcher, errorHandle, filter)
  109. //质检修改
  110. export const getinspectEdit = appRx.post(API_POST_INSPECT_GETINSPECTEDIT, errorCatcher, errorHandle, filter)
  111. //质检删除
  112. export const getinspectDelete = appRx.post(API_POST_INSPECT_GETINSPECTDELETE, errorCatcher, errorHandle, filter)
  113. //付款管理列表
  114. export const getpayment = appRx.get(API_GET_PAYMENTMANAGEMENT, errorCatcher, errorHandle, filter)
  115. //检斤列表查看
  116. export const getweighingList = appRx.get(API_GET_WEIGHTCHECK_GETWEIGHINGLIST, errorCatcher, errorHandle, filter)
  117. //皮重检斤保存
  118. export const tare = appRx.post(API_POST_WEIGHTCHECK_TARE, errorCatcher, errorHandle, filter)
  119. //毛重检斤保存
  120. export const grossWeight = appRx.post(API_POST_WEIGHTCHECK_GROSSWEIGHT, errorCatcher, errorHandle, filter)
  121. //检斤删除
  122. export const getweighingDelete = appRx.post(API_POST_INSPECT_GETWEIGHTDELETE, errorCatcher, errorHandle, filter)
  123. //付款信息查看
  124. export const getpaymentexamine = appRx.get(API_GET_PAYMENT, errorCatcher, errorHandle, filter)
  125. //付款信息结算
  126. export const postpaymentedit = appRx.post(API_POST_PAYMENT_EDIT, errorCatcher, errorHandle, filter)
  127. //质检客户下拉校验
  128. export const getamount = appRx.get(API_GET_INSPECT_GETAMOUNT, errorCatcher, errorHandle, filter)
  129. //质检运输方式
  130. export const getinspectcontractno = appRx.get(API_GET_INSPECT_CONTRACTNO, errorCatcher, errorHandle, filter)
  131. //身份证识别
  132. export const getIdentity = appRx.get(API_GET_CUSTOMER_GETIDENTITY, errorCatcher, errorHandle, filter)
  133. //银行卡识别
  134. export const getBank = appRx.get(API_GET_CUSTOMER_GETBANK, errorCatcher, errorHandle, filter)
  135. //查询货名有未结算状态
  136. export const getCount = appRx.get(API_GET_INSPECT_GETCOUNT, errorCatcher, errorHandle, filter)
  137. //检斤打印查看
  138. export const getPrint = appRx.get(API_GET_WEIGHTCHECK_GETPRINT, errorCatcher, errorHandle, filter)
  139. //付款删除
  140. export const delpayment = appRx.post(API_POST_PAYMENT_DEL, errorCatcher, errorHandle, filter)
  141. //付款审核
  142. export const auditpayment = appRx.post(API_POST_PAYMENT_AUDIT, errorCatcher, errorHandle, filter)
  143. //付款提交
  144. export const paymentCommit = appRx.post(API_POST_PAYMENT_PAYMENTSUBMIT, errorCatcher, errorHandle, filter)
  145. //付款结算修改
  146. export const settlementEdit = appRx.post(API_POST_PAYMENT_SETTLEMENTEDIT, errorCatcher, errorHandle, filter)
  147. //质检干粮单价查看
  148. export const getDryGrainPrice = appRx.get(API_GET_INSPECT_GETDRYGRAINPRICE, errorCatcher, errorHandle, filter)
  149. //付款权限查询
  150. export const getJurisdiction = appRx.get(API_GET_INSPECT_GETJURISDICTION, errorCatcher, errorHandle, filter)
  151. //财务开票post
  152. export const invoicing = appRx.post(API_POST_INVOICING, errorCatcher, errorHandle, filter)
  153. export const export1 = appRx.post(API_POST_EXPORT)
  154. // 车牌号
  155. export const getshippinginfo = appRx.get(API_GET_SHIPPINGINFOFORMATION, errorCatcher, errorHandle, filter)
  156. // 确认初检信息
  157. export const postCheck = appRx.post(API_POST_INSPECTIONCHECK, errorCatcher, errorHandle, filter)
  158. // 单据二维码
  159. export const getQRcode = appRx.get(API_GAT_QRCODE, errorCatcher, errorHandle, filter)
  160. // 二维码获取数据
  161. export const getQRCodeData = appRx.get(API_GAT_GETQRCODE, errorCatcher, errorHandle, filter)
  162. // 车型
  163. export const getcartype = appRx.get(API_GAT_INFO, errorCatcher, errorHandle, filter)
  164. // 审核之后
  165. export const workflowcontent = appRx.get(API_POST_WORKFLOW_TASK, errorCatcher, errorHandle, filter)
  166. // 反结算
  167. export const suspendinstance = appRx.post(API_POST_SUSPENDINSTANCE, errorCatcher, errorHandle, filter)
  168. // 导入
  169. export const importWord = appRx.post(API_POST_IMPORT, errorCatcher, errorHandle, filter)
  170. // 查看结算单
  171. export const getsettleaccout = appRx.get(API_GET_SETTLEACCOUT, errorCatcher, errorHandle, filter)
  172. // 退回
  173. export const returnInfo = appRx.post(API_POST_RETURN, errorCatcher, errorHandle, filter)
  174. // 删除
  175. export const deleteInfo = appRx.post(API_POST_DELETE, errorCatcher, errorHandle, filter)
  176. // 新检斤保存
  177. export const newSubmit = appRx.post(API_POST_SUBMIT, errorCatcher, errorHandle, filter)