fetch.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. import { $http } from "./config";
  2. export default {
  3. // 员工登录
  4. staffLogin(data) {
  5. return $http("/staff/login", data);
  6. },
  7. // 获取用户列表 货主/船东
  8. getUserList(data) {
  9. return $http("user/list", data);
  10. },
  11. getShipOwnerList(data) {
  12. return $http("/shipOwner/list", data);
  13. },
  14. getShipOwnerDetail(data) {
  15. return $http("/shipOwner/details", data);
  16. },
  17. updateShipOwner(data) {
  18. return $http("/shipOwner/update", data);
  19. },
  20. // 添加用户
  21. addUser(data) {
  22. return $http("user/add", data);
  23. },
  24. // 添加船东
  25. addShipOwner(data) {
  26. return $http("/shipOwner/add", data);
  27. },
  28. // 获取用户详情
  29. getUserDetail(data) {
  30. return $http("user/details", data);
  31. },
  32. // 更新用户详情
  33. updateUserDetail(data) {
  34. return $http("/user/update", data);
  35. },
  36. // 获取航次列表
  37. getVoyageList(data) {
  38. return $http("voyage/list", data);
  39. },
  40. // 获取航次详情
  41. getVoyageDetail(data) {
  42. return $http("/voyage/detail", data);
  43. },
  44. // 更新航次
  45. updateVoyage(data) {
  46. return $http("/voyage/update", data);
  47. },
  48. // 完成航次
  49. finishVoyage(data) {
  50. return $http("/voyage/finish", data);
  51. },
  52. // 根据船名/MMSI/船东手机号获取船舶用户信息(员工端添加航次选择船)
  53. getUserInfoAndShipInfo(data) {
  54. return $http("ship/userShipInfo", data);
  55. },
  56. // 添加航次
  57. addVoyage(data) {
  58. return $http("voyage/add", data);
  59. },
  60. // 获取媒体列表
  61. getMediaList(data) {
  62. return $http("/media/list", data);
  63. },
  64. // 审核媒体文件
  65. auditMedia(data) {
  66. return $http("/media/audit", data);
  67. },
  68. // 标记媒体文件
  69. markMedia(data) {
  70. return $http("/media/markMedia", data);
  71. },
  72. // 模糊搜索用户
  73. searchUser(data) {
  74. return $http("/user/search", data);
  75. },
  76. // 获取船舶列表
  77. getShipList(data) {
  78. return $http("/ship/list", data);
  79. },
  80. // 更新船舶信息
  81. updateShip(data) {
  82. return $http("/ship/update", data);
  83. },
  84. // 更新船东信息
  85. updateShipOwner(data) {
  86. return $http("/shipOwner/update", data);
  87. },
  88. // 获取船舶详情
  89. getShipDetail(data) {
  90. return $http("/ship/detail", data);
  91. },
  92. // 船舶查询
  93. searchShip(data) {
  94. return $http("ship/search", data);
  95. },
  96. // 根据shipId获取船东列表
  97. getShipOwnerListByShipId(data) {
  98. return $http("/ship/detail/shopOwner/list", data);
  99. },
  100. // 添加卸货记录
  101. addDischarge(data) {
  102. return $http("/voyage/addDischarge", data);
  103. },
  104. // 删除卸货记录
  105. deleteDischarge(data) {
  106. return $http("/voyage/deleteDischarge", data);
  107. },
  108. // 导出excel
  109. exportExcel(data) {
  110. return $http("/voyage/exportExcel", data);
  111. },
  112. // 获取卸货列表
  113. getDischargeList(data) {
  114. return $http("/voyage/getDischargeList", data);
  115. },
  116. // 修改卸货记录
  117. updateDischarge(data) {
  118. return $http("/voyage/updateDischarge", data);
  119. },
  120. // 获取未拍照航次
  121. getUnphotographNotice() {
  122. return $http("/voyage/notice");
  123. },
  124. // 计算预计到港时间
  125. calExpectedArrivalTime(data) {
  126. return $http("/voyage/calExpectedArrivalTime", data);
  127. },
  128. // 删除运单
  129. deleteWaybill(data) {
  130. return $http("/voyage/deleteWaybill", data);
  131. },
  132. // 上传运单
  133. updateVoyageWaybill(data) {
  134. return $http("/voyage/updateVoyageWaybill", data);
  135. },
  136. // 获取港口列表
  137. getCol(data) {
  138. return $http("/port/getCol", data);
  139. },
  140. // 取消航次
  141. cancelVoyage(data) {
  142. return $http("/voyage/cancel", data);
  143. },
  144. // 添加汽车装货记录
  145. addTruckLoadRecord(data) {
  146. return $http("/voyage/addCarLoadRecord", data);
  147. },
  148. // 获取汽车装货记录
  149. getTruckLoadRecord(data) {
  150. return $http("/voyage/getCarLoadRecordList", data);
  151. },
  152. // 删除汽车装货记录
  153. deleteTruckLoadRecord(data) {
  154. return $http("/voyage/deleteCarLoadRecord", data);
  155. },
  156. // 更新汽车装货记录
  157. updateTruckLoadRecord(data) {
  158. return $http("/voyage/updateCarLoadRecord", data);
  159. },
  160. // 分配单据
  161. distribute(data) {
  162. return $http("/shipownerUploadFile/distribute", data);
  163. },
  164. // ocr识别
  165. ocr(data) {
  166. return $http("/shipownerUploadFile/ocr", data);
  167. },
  168. // 用户选择
  169. getUserSelect(data) {
  170. return $http("/user/select", data);
  171. },
  172. // 添加提货单
  173. addLab(data) {
  174. return $http("/voyage/addLab", data);
  175. },
  176. // 获取提货单
  177. getLabList(data) {
  178. return $http("/voyage/getLabList", data);
  179. },
  180. // 更新提货单
  181. updateLab(data) {
  182. return $http("/voyage/updateLab", data);
  183. },
  184. // 删除提货单
  185. deleteLab(data) {
  186. return $http("/voyage/deleteLab", data);
  187. },
  188. // 获取港口天气列表
  189. getPortWeatherList(data) {
  190. return $http("/voyage/getPortWeatherList", data);
  191. },
  192. // 获取超期航次提醒
  193. getLongDaysInPort(data) {
  194. return $http("/voyage/cargo/longDaysInPort", data);
  195. },
  196. // 获取区块链列表
  197. getBlockChainList(data) {
  198. return $http("/block/voyage/list", data);
  199. },
  200. // 航次上链
  201. upBlockChain(data) {
  202. return $http("/block/voyage/up", data);
  203. },
  204. // 插入卸货港
  205. addNewPort(data) {
  206. return $http("/voyage/addNewPort", data);
  207. },
  208. // 代理列表
  209. getAgencyList(data) {
  210. return $http("/proxy/list", data);
  211. },
  212. // 代理子账户列表
  213. getAgencySubAccountList(data) {
  214. return $http("/proxy/detail/account/list", data);
  215. },
  216. // 添加代理子账户
  217. addAgencySubAccount(data) {
  218. return $http("/proxy/detail/account/add", data);
  219. },
  220. // 获取货主公司列表
  221. getCargoOwnerCompanyList(data) {
  222. return $http("/cargoOwner/list", data);
  223. },
  224. // 获取货主公司详情
  225. getCargoOwnerCompanyDetail(data) {
  226. return $http("/cargoOwner/detail", data);
  227. },
  228. // 添加货主公司
  229. addCargoOwnerCompany(data) {
  230. return $http("/cargoOwner/add", data);
  231. },
  232. // 获取货主公司账号列表
  233. getCargoOwnerAccountList(data) {
  234. return $http("/cargoOwner/detail/account/list", data);
  235. },
  236. // 添加货主公司账号
  237. addCargoOwnerAccount(data) {
  238. return $http("/cargoOwner/detail/account/add", data);
  239. },
  240. // 添加代理公司
  241. addAgencyCompany(data) {
  242. return $http("/proxy/add", data);
  243. },
  244. // 获取代理公司列表
  245. getAgencyCompanyList(data) {
  246. return $http("/proxy/list", data);
  247. },
  248. // 获取代理公司详情
  249. getAgencyCompanyDetail(data) {
  250. return $http("/proxy/detail", data);
  251. },
  252. // 货主公司详情-代理公司列表
  253. getAgencyCompanyByCargoOwnerCompany(data) {
  254. return $http("/cargoOwner/detail/proxy/list", data);
  255. },
  256. // 货主公司添加账号-关联货种
  257. getCargoList(data) {
  258. return $http("/cargo/account/add/cargo/select", data);
  259. },
  260. // 关联代理公司-select
  261. getAgencySelect(data) {
  262. return $http("/cargoOwner/detail/proxy/select", data);
  263. },
  264. // 货主公司详情-关联代理;代理公司详情-关联货主公司
  265. relateCargoAgency(data) {
  266. return $http("/proxy/cargoOwner/add", data);
  267. },
  268. // 代理公司详情-货主公司列表
  269. getCargoOwnerCompanyByAgencyCompany(data) {
  270. return $http("/proxy/detail/cargoOwner/list", data);
  271. },
  272. // 关联货主公司-select
  273. getCargoOwnerCompanySelect(data) {
  274. return $http("/proxy/detail/cargoOwner/select", data);
  275. },
  276. // 添加港口
  277. addPort(data) {
  278. return $http("/port/add", data);
  279. },
  280. // 港口列表
  281. getPortsList(data) {
  282. return $http("/port/list", data);
  283. },
  284. // 获取港口列表select
  285. getPortsSelect(data) {
  286. return $http("/port/select", data);
  287. },
  288. // 启用禁用港口
  289. updatePortStatus(data) {
  290. return $http("/port/updateStatus", data);
  291. },
  292. // 添加港口航期
  293. addTransPort(data) {
  294. return $http("/port/trans/add", data);
  295. },
  296. // 港口航期列表
  297. getTransPortsList(data) {
  298. return $http("/port/trans/list", data);
  299. },
  300. };