api.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. import ajax from '../utils/request.js'
  2. export default {
  3. doLogin(data) {
  4. return ajax.postForm('/api/doLogin', data)
  5. },
  6. doLoginByOpenid(data) {
  7. return ajax.postForm('/api/doLoginByOpenid', data)
  8. },
  9. register(data) {
  10. return ajax.postForm('/api/register', data)
  11. },
  12. getItemList(data) {
  13. return ajax.get('/TbItemType/getList', data)
  14. },
  15. getCustomerList(data) {
  16. return ajax.get('/TbCostomer/getList', data)
  17. },
  18. getCurrentAuthCode() {
  19. return ajax.get('/admin/getCurrentAuthCode')
  20. },
  21. getCarList() {
  22. return ajax.get('/TbCar/getList', {
  23. pageNo: 1,
  24. pageSize: 500
  25. })
  26. },
  27. getDriverList() {
  28. return ajax.get('/TbDriver/getList', {
  29. pageNo: 1,
  30. pageSize: 500
  31. })
  32. },
  33. getGoodsList() {
  34. return ajax.get('/TbGoods/getList', {
  35. pageNo: 1,
  36. pageSize: 50
  37. })
  38. },
  39. getGoodsById(data) {
  40. return ajax.get('/TbGoods/getById', data)
  41. },
  42. saveBusiness(data) {
  43. return ajax.postForm('/TbBusiness/add', data)
  44. },
  45. getBusinessList(data) {
  46. return ajax.get('/TbBusiness/getList', data)
  47. },
  48. adminConfirmPay(data) {
  49. return ajax.postForm('/TbBusiness/adminConfirmPay', data)
  50. },
  51. adminConfirmIn(data) {
  52. return ajax.postForm('/TbBusiness/adminConfirmIn', data)
  53. },
  54. getInOutRecord(data) {
  55. //return ajax.get('/api/getInOutRecord', data)
  56. return ajax.get('/TbBusinessCar/getList', data)
  57. },
  58. getCustomerList(data) {
  59. return ajax.get('/api/getCustomerList', data)
  60. },
  61. getCarType() {
  62. return ajax.get('/TbItem/getItemType')
  63. },
  64. getTypeByGoodsId(data) {
  65. return ajax.get('/TbItemType/getTypeByGoodsId', data)
  66. },
  67. addOtherBusiness(data) {
  68. return ajax.postForm('/TbBusiness/addOtherBusiness', data)
  69. },
  70. editOtherBusiness(data) {
  71. return ajax.postForm('/TbBusiness/editOtherBusiness', data)
  72. },
  73. confirmCustomer(data) {
  74. return ajax.postForm('/api/confirmCustomer', data)
  75. },
  76. deleteHsPeople(data) {
  77. return ajax.postForm('/TbBusinessPeople/deleteById', data)
  78. },
  79. getCurrentPerCode() {
  80. return ajax.get('/SpRolePermission/getPcodeByCurrRid')
  81. },
  82. getBusinessById(data) {
  83. return ajax.get('/TbBusiness/getById', data)
  84. },
  85. confirmBusiness(data) {
  86. return ajax.postForm('/TbBusiness/confirm', data)
  87. },
  88. confirmPay(data) {
  89. return ajax.postForm('/TbBusiness/pay', data)
  90. },
  91. adminSetIn(data) {
  92. return ajax.postForm('/TbBusiness/adminSetIn', data)
  93. },
  94. calJwPartMoney(data) {
  95. return ajax.postForm('/TbBusiness/calJwPartMoney', data)
  96. },
  97. calChinaPartMoney(data) {
  98. return ajax.postForm('/TbBusiness/calChinaPartMoney', data)
  99. },
  100. completeOrder(data) {
  101. return ajax.postForm('/TbBusiness/complete', data)
  102. },
  103. adminSetOut(data) {
  104. return ajax.postForm('/TbBusiness/adminOut', data)
  105. },
  106. deleteBusiness(data) {
  107. return ajax.postForm('/TbBusiness/delete', data)
  108. },
  109. getBusinessPeople(data) {
  110. return ajax.get('/TbBusinessPeople/getList', data)
  111. },
  112. getCustomerById(data) {
  113. return ajax.get('/TbCostomer/getById', data)
  114. },
  115. editCustomer(data) {
  116. return ajax.postForm('/TbCostomer/update', data)
  117. },
  118. judgeCustomer(data) {
  119. return ajax.postForm('/TbCostomer/judge', data)
  120. },
  121. getUnitList() {
  122. return ajax.get('/TbUnit/getList')
  123. },
  124. // getPrePay(data) {
  125. // return ajax.get('/wx/pre-pay', data)
  126. // },
  127. getPrePay(data) {
  128. return ajax.get('/jh/init-pay', data)
  129. },
  130. checkPayResult(data) {
  131. return ajax.get('/jh/check-pay-result', data)
  132. },
  133. getRedirectUrl(data) {
  134. return ajax.get('/wx/getRedirectUrl', data)
  135. },
  136. getOpenidByCode(data) {
  137. return ajax.get('/wx/getOpenidByCode', data)
  138. },
  139. searchPartCar(data) {
  140. return ajax.get('/api/searchPartCar', data)
  141. },
  142. getBusinessMoney(data) {
  143. return ajax.get('/api/getBusinessMoney', data)
  144. },
  145. getWxConfig(data) {
  146. return ajax.get('/wx/getWxConfig', data)
  147. },
  148. getPartCarByChannel(data) {
  149. return ajax.get('/api/getPartCarByChannel', data)
  150. },
  151. addDeclare(data) {
  152. return ajax.postJson('/api/addDeclare', data)
  153. },
  154. addDisinfect(data) {
  155. return ajax.postJson('/api/addDisinfect', data)
  156. },
  157. uploadReport(data) {
  158. return ajax.postJson('/TbBusiness/uploadReport', data)
  159. },
  160. getDeclareList(data) {
  161. return ajax.get('/TbDeclare/getNotBindList', data)
  162. },
  163. getAccountInfo() {
  164. return ajax.get('/api/getAccountInfo')
  165. },
  166. getDiscountInfo() {
  167. return ajax.get('/api/getDiscountInfo')
  168. },
  169. getBusinessItem(data) {
  170. return ajax.get('/api/getBusinessItem', data)
  171. },
  172. pickBusinessItem(data) {
  173. return ajax.postForm('/api/pickBusinessItem', data)
  174. },
  175. confirmBusinessItem(data) {
  176. return ajax.postForm('/api/confirmBusinessItem', data)
  177. },
  178. getPartnerBusinessItem(data) {
  179. return ajax.get('/api/getPartnerBusinessItem', data)
  180. },
  181. checkUserType() {
  182. return ajax.get('/api/checkUserType')
  183. },
  184. getRoleList(data) {
  185. return ajax.get('/role/getCustomerRoleList', data)
  186. },
  187. getUserList(data) {
  188. return ajax.get('/admin/getCustomerAdminList', data)
  189. },
  190. addCustomerAdmin(data) {
  191. return ajax.postForm('/admin/addCustomerAdmin', data)
  192. },
  193. editCustomerAdmin(data) {
  194. return ajax.postForm('/admin/editCustomerAdmin', data)
  195. },
  196. adminConfirm(data) {
  197. return ajax.postForm('/TbBusiness/confirm', data)
  198. },
  199. addCarDisinfect(data) {
  200. return ajax.postJson('/api/addCarDisinfect', data)
  201. },
  202. editCarDisinfect(data) {
  203. return ajax.postJson('/api/editCarDisinfect', data)
  204. },
  205. getCarDisinFect(data) {
  206. return ajax.get('/TbBusiness/getList', data)
  207. },
  208. getItemType(data) {
  209. return ajax.get('/TbItemType/getItemTypeById', data);
  210. },
  211. getOtherBusinessById(data) {
  212. return ajax.get('/TbBusiness/getOtherBusinessById', data)
  213. },
  214. deleteOtherBusiness(data) {
  215. return ajax.postForm('/TbBusiness/deleteOtherBusiness', data)
  216. },
  217. getOtherBusiness(data) {
  218. return ajax.get('/TbBusiness/getOtherBusiness', data)
  219. },
  220. getItemTypeList(data) {
  221. return ajax.get('/TbItemType/getList', data)
  222. },
  223. getItemTypeEnum() {
  224. return ajax.get('/TbItem/getItemType')
  225. },
  226. searchCar(data) {
  227. return ajax.get('/TbBusinessCar/searchInNotOutCar', data)
  228. }
  229. }