fetch.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. import { $http } from "./config";
  2. export default {
  3. // 代理登录
  4. staffLogin(data) {
  5. return $http("user/proxy/login", data);
  6. },
  7. // 获取航次列表
  8. getVoyageList(data) {
  9. return $http("voyage/list", data);
  10. },
  11. // 更新航次
  12. updateVoyage(data) {
  13. return $http("/voyage/update", data);
  14. },
  15. // 完成航次
  16. finishVoyage(data) {
  17. return $http("/voyage/finish", data);
  18. },
  19. // 添加航次
  20. addVoyage(data) {
  21. return $http("voyage/add", data);
  22. },
  23. // 获取媒体列表
  24. getMediaList(data) {
  25. return $http("/media/list", data);
  26. },
  27. // 导出excel
  28. exportExcel(data) {
  29. return $http("/voyage/exportExcel", data);
  30. },
  31. // 获取卸货列表
  32. getDischargeList(data) {
  33. return $http("/voyage/getDischargeList", data);
  34. },
  35. // 获取汽车装货记录
  36. getTruckLoadRecord(data) {
  37. return $http("/voyage/getCarLoadRecordList", data);
  38. },
  39. // 添加职位
  40. addRole(data) {
  41. return $http("/role/permission/addRole", data);
  42. },
  43. // 获取权限数据
  44. getPermisiionData(data) {
  45. return $http("/role/permission/getPermisiionData", data);
  46. },
  47. // 获取角色列表
  48. getRoleList(data) {
  49. return $http("/role/permission/list", data);
  50. },
  51. // 获取角色下拉列表
  52. getRoleSelect(data) {
  53. return $http("/role/permission/getRoleSelect", data);
  54. },
  55. // 修改角色信息
  56. updateRole(data) {
  57. return $http("/role/permission/updateRole", data);
  58. },
  59. // 添加货种
  60. addCargo(data) {
  61. return $http("/cargo/add", data);
  62. },
  63. // 货种列表
  64. getCargoList(data) {
  65. return $http("/cargo/list", data);
  66. },
  67. // 获取代理列表
  68. getAgencyList(data) {
  69. return $http("/user/cargo/proxy/list", data);
  70. },
  71. // 添加代理
  72. addAgency(data) {
  73. return $http("/user/cargo/add/proxy", data);
  74. },
  75. // 获取代理子账户列表
  76. getSubAccountList(data) {
  77. return $http("/user/proxy/account/list", data);
  78. },
  79. // 添加代理子账户
  80. addSubAccount(data) {
  81. return $http("/user/proxy/add/loginAccount", data);
  82. },
  83. // 修改代理子账户
  84. updateSubAccount(data) {
  85. return $http("/user/proxy/update/loginAccount", data);
  86. },
  87. // 获取角色详情
  88. getRoleDetail(data) {
  89. return $http("/role/permission/getRoleDetail", data);
  90. },
  91. // 获取登录人权限
  92. getPermissionByUserId(data) {
  93. return $http("/role/permission/getPermissionByUserId", data);
  94. },
  95. // 添加部门
  96. addDepartment(data) {
  97. return $http("/department/add", data);
  98. },
  99. // 获取部门列表
  100. getDepartmentList(data) {
  101. return $http("/department/list", data);
  102. },
  103. // 获取部门下拉
  104. getDepartmentSelect(data) {
  105. return $http("/department/select", data);
  106. },
  107. // 修改部门
  108. updateDepartment(data) {
  109. return $http("/department/update", data);
  110. },
  111. // 获取FYDI指数下载链接
  112. getFYFIDownloadUrl(data) {
  113. return $http("/fydi/getLastest", data);
  114. },
  115. // 获取提货单列表
  116. getLabList(data) {
  117. return $http("/voyage/getLabList", data);
  118. },
  119. // 获取港口天气列表
  120. getPortWeatherList(data) {
  121. return $http("/voyage/getPortWeatherList", data);
  122. },
  123. // 获取超期航次提醒
  124. getLongDaysInPort(data) {
  125. return $http("/voyage/cargo/longDaysInPort", data);
  126. },
  127. // 获取客户列表
  128. getClientList(data) {
  129. return $http("/client/account/list", data);
  130. },
  131. // 添加客户
  132. addClient(data) {
  133. return $http("/client/account/add", data);
  134. },
  135. // 修改客户
  136. updateClient(data) {
  137. return $http("/client/account/update", data);
  138. },
  139. // 获取港口列表
  140. getCol(data) {
  141. return $http("/port/getCol", data);
  142. },
  143. // 获取货种下拉
  144. getCargoSelect(data) {
  145. return $http("/cargo/select", data);
  146. },
  147. // 获取用户列表 货主/船东
  148. getUserList(data) {
  149. return $http("user/list", data);
  150. },
  151. // 添加用户
  152. addUser(data) {
  153. return $http("user/add", data);
  154. },
  155. // 添加船东
  156. addShipOwner(data) {
  157. return $http("/ship/add", data);
  158. },
  159. // 获取用户详情
  160. getUserDetail(data) {
  161. return $http("user/details", data);
  162. },
  163. // 更新用户详情
  164. updateUserDetail(data) {
  165. return $http("/user/update", data);
  166. },
  167. // 获取航次详情
  168. getVoyageDetail(data) {
  169. return $http("/voyage/detail", data);
  170. },
  171. // 根据船名/MMSI/船东手机号获取船舶用户信息(员工端添加航次选择船)
  172. getUserInfoAndShipInfo(data) {
  173. return $http("ship/userShipInfo", data);
  174. },
  175. // 审核媒体文件
  176. auditMedia(data) {
  177. return $http("/dayReport/audit", data);
  178. },
  179. // 标记媒体文件
  180. markMedia(data) {
  181. return $http("/media/markMedia", data);
  182. },
  183. // 模糊搜索用户
  184. searchUser(data) {
  185. return $http("/user/search", data);
  186. },
  187. // 获取船舶列表
  188. getShipList(data) {
  189. return $http("/ship/list", data);
  190. },
  191. // 获取船东列表
  192. getShipOwnerList(data) {
  193. return $http("/ship/list", data);
  194. },
  195. // 更新船舶信息
  196. updateShip(data) {
  197. return $http("/ship/update", data);
  198. },
  199. // 更新船东信息
  200. updateShipOwner(data) {
  201. return $http("/user/update", data);
  202. },
  203. // 获取船舶详情
  204. getShipDetail(data) {
  205. return $http("/ship/detail", data);
  206. },
  207. // 船舶查询
  208. searchShip(data) {
  209. return $http("ship/search", data);
  210. },
  211. // 根据shipId获取船东列表
  212. getShipOwnerListByShipId(data) {
  213. return $http("/user/shopOwnerlist", data);
  214. },
  215. // 添加卸货记录
  216. addDischarge(data) {
  217. return $http("/voyage/addDischarge", data);
  218. },
  219. // 删除卸货记录
  220. deleteDischarge(data) {
  221. return $http("/voyage/deleteDischarge", data);
  222. },
  223. // 修改卸货记录
  224. updateDischarge(data) {
  225. return $http("/voyage/updateDischarge", data);
  226. },
  227. // 获取未拍照航次
  228. getUnphotographNotice() {
  229. return $http("/voyage/notice");
  230. },
  231. // 计算预计到港时间
  232. calExpectedArrivalTime(data) {
  233. return $http("/voyage/calExpectedArrivalTime", data);
  234. },
  235. // 删除运单
  236. deleteWaybill(data) {
  237. return $http("/voyage/deleteWaybill", data);
  238. },
  239. // 上传运单
  240. updateVoyageWaybill(data) {
  241. return $http("/voyage/updateVoyageWaybill", data);
  242. },
  243. // 取消航次
  244. cancelVoyage(data) {
  245. return $http("/voyage/cancel", data);
  246. },
  247. // 添加汽车装货记录
  248. addTruckLoadRecord(data) {
  249. return $http("/voyage/addCarLoadRecord", data);
  250. },
  251. // 删除汽车装货记录
  252. deleteTruckLoadRecord(data) {
  253. return $http("/voyage/deleteCarLoadRecord", data);
  254. },
  255. // 更新汽车装货记录
  256. updateTruckLoadRecord(data) {
  257. return $http("/voyage/updateCarLoadRecord", data);
  258. },
  259. // 分配单据
  260. distribute(data) {
  261. return $http("/bill/distribute", data);
  262. },
  263. // ocr识别
  264. ocr(data) {
  265. return $http("/bill/ocr", data);
  266. },
  267. // 用户选择
  268. getUserSelect(data) {
  269. return $http("/user/select", data);
  270. },
  271. // 添加提货单
  272. addLab(data) {
  273. return $http("/voyage/addLab", data);
  274. },
  275. // 更新提货单
  276. updateLab(data) {
  277. return $http("/voyage/updateLab", data);
  278. },
  279. // 删除提货单
  280. deleteLab(data) {
  281. return $http("/voyage/deleteLab", data);
  282. },
  283. // 获取区块链列表
  284. getBlockChainList(data) {
  285. return $http("/block/voyage/list", data);
  286. },
  287. // 航次上链
  288. upBlockChain(data) {
  289. return $http("/block/voyage/up", data);
  290. },
  291. // 插入卸货港
  292. addNewPort(data) {
  293. return $http("/voyage/addNewPort", data);
  294. },
  295. // 代理子账户列表
  296. getAgencySubAccountList(data) {
  297. return $http("/proxy/account/list", data);
  298. },
  299. // 添加代理子账户
  300. addAgencySubAccount(data) {
  301. return $http("/proxy/account/add", data);
  302. },
  303. // 获取船舶下拉
  304. getShipSelect(data) {
  305. return $http("/ship/select", data);
  306. },
  307. // 获取货主下拉
  308. getCargoOwnerSelect(data) {
  309. return $http("/user/cargoOwner/select", data);
  310. },
  311. // 获取日报列表
  312. getDailyList(data) {
  313. return $http("/dayReport/list", data);
  314. },
  315. // 获取日报媒体
  316. getDailyMedia(data) {
  317. return $http("/dayReport/getMedia", data);
  318. },
  319. // 日报媒体审核
  320. auditDailyMedia(data) {
  321. return $http("/dayReport/audit", data);
  322. },
  323. // 获取报岗列表
  324. getReportList(data) {
  325. return $http("/port/report/list", data);
  326. },
  327. // 获取报岗详情
  328. getReportDetail(data) {
  329. return $http("/port/report/detail", data);
  330. },
  331. // 报港
  332. portReport(data) {
  333. return $http("/port/report/report", data);
  334. },
  335. // 检测船东手机号
  336. checkShipOwnerPhone(data) {
  337. return $http("/ship/search/shipOwner", data);
  338. },
  339. // 获取单据媒体
  340. getBill(data) {
  341. return $http("/bill/getBill", data);
  342. },
  343. // 获取单据列表
  344. getBillList(data) {
  345. return $http("/bill/list", data);
  346. },
  347. // 检测mmsi
  348. checkShipMmsi(data) {
  349. return $http("/ship/search/ship", data);
  350. },
  351. // 添加出险记录
  352. addAccident(data) {
  353. return $http("/voyage/addAccident", data);
  354. },
  355. // 删除出险记录
  356. deleteAccident(data) {
  357. return $http("/voyage/deleteAccident", data);
  358. },
  359. // 更新出险记录
  360. updateAccident(data) {
  361. return $http("/voyage/updateAccident", data);
  362. },
  363. // 获取出险记录列表
  364. getAccidentList(data) {
  365. return $http("/voyage/getAccidentList", data);
  366. },
  367. // 获取首页数据
  368. getIndexData(data) {
  369. return $http("/pc/index", data);
  370. },
  371. // 获取首页select
  372. getIndexSelect(data) {
  373. return $http("/pc/index/select", data);
  374. },
  375. // 发送验证码
  376. sendEmailVerifyCode(data) {
  377. return $http("/mail/send/verification", data);
  378. },
  379. // 修改密码(已登录)
  380. changePassword(data) {
  381. return $http("/user/change/password", data);
  382. },
  383. // 忘记密码(未登录)
  384. forgetPassword(data) {
  385. return $http("/user/forget/password", data);
  386. },
  387. // 修改登录子账户邮箱
  388. changeSubAccountEmail(data) {
  389. return $http("/user/proxy/update/email", data);
  390. },
  391. // 添加订单(PC/小程序)
  392. addOrder(data) {
  393. return $http("/order/add", data);
  394. },
  395. // 订单详情-全部信息
  396. getOrderDetail(data) {
  397. return $http("/order/detail", data);
  398. },
  399. // 订单详情-签单-审核订单
  400. auditOrder(data) {
  401. return $http("/order/detail/audit", data);
  402. },
  403. // 订单详情-签单-上传支付定金回执
  404. uploadReceipt(data) {
  405. return $http("/order/detail/audit/receipt", data);
  406. },
  407. // 订单详情-签单-保存/修改合同信息
  408. editOrderContract(data) {
  409. return $http("/order/detail/edit/contract", data);
  410. },
  411. // 订单详情-签单-保存/修改船东船舶信息
  412. editOrderShipOwner(data) {
  413. return $http("/order/detail/edit/shipOwner", data);
  414. },
  415. // 订单详情-签单-审核信息
  416. getAuditInfo(data) {
  417. return $http("/order/detail/info/audit", data);
  418. },
  419. // 订单详情-签单-合同信息
  420. getContractInfo(data) {
  421. return $http("/order/detail/info/contract", data);
  422. },
  423. // 订单详情-签单-船东船舶信息
  424. getShipOwnerInfo(data) {
  425. return $http("/order/detail/info/shipowner", data);
  426. },
  427. // 订单详情-航次-装货信息
  428. getOrderVoyageLoadInfo(data) {
  429. return $http("/order/detail/info/voyage/load", data);
  430. },
  431. // 订单详情-航次-在途信息
  432. getOrderVoyageTranInfo(data) {
  433. return $http("/order/detail/info/voyage/tran", data);
  434. },
  435. // 订单详情-航次-卸货信息
  436. getOrderVoyageUnloadInfo(data) {
  437. return $http("/order/detail/info/voyage/unload", data);
  438. },
  439. // 订单详情-签单-保存/修改船东船舶信息-选择船东
  440. getOrderShipOwnerSelect(data) {
  441. return $http("/order/detail/select/shipOwner", data);
  442. },
  443. // 订单详情-签单-保存/修改船东船舶信息-新增船东银行卡
  444. addShipOwnerBankCard(data) {
  445. return $http("/order/detail/shipOwner/add/bankCard", data);
  446. },
  447. // 订单详情-签单-保存/修改船东船舶信息-查询船东银行卡及船舶信息
  448. getShipOwnerBankCardShipInfo(data) {
  449. return $http("/order/detail/shipOwner/bankCard/info", data);
  450. },
  451. // 订单列表(WEB端)
  452. getOrderList(data) {
  453. return $http("/order/web/list", data);
  454. },
  455. // 上传导入卸货明细
  456. uploadDischargeExcel(data) {
  457. return $http("/voyage/upload/discharge/excel", data);
  458. },
  459. // 下载卸货导入模板
  460. downloadDischargeTemp(data) {
  461. return $http("/voyage/download/discharge/temp", data);
  462. },
  463. // 招标详情
  464. getTenderDetail(data) {
  465. return $http("/tender/detail", data);
  466. },
  467. // 招标详情-参与投标-新增/修改船舶
  468. tenderShip(data) {
  469. return $http("/tender/detail/bid", data);
  470. },
  471. // 招标详情-删除投标
  472. deleteTender(data) {
  473. return $http("/tender/detail/bid/delete", data);
  474. },
  475. // 招标详情-放弃投标
  476. giveupTender(data) {
  477. return $http("/tender/detail/bid/giveup", data);
  478. },
  479. // 招标详情-参与投标-船舶选择
  480. tenderSelectShip(data) {
  481. return $http("/tender/detail/bid/selectShip", data);
  482. },
  483. // 招标详情-创建航次
  484. createTenderVoyage(data) {
  485. return $http("/tender/detail/bid/voyage", data);
  486. },
  487. // 投标列表
  488. getTenderList(data) {
  489. return $http("/tender/list", data);
  490. },
  491. };