fetch.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. import { $http } from "./config";
  2. export default {
  3. // 登录
  4. login(data) {
  5. return $http("/user/web/login", data);
  6. },
  7. // 获取首页信息
  8. getIndexData(data) {
  9. return $http("/index", data);
  10. },
  11. // 新增船东
  12. addShipOwner(data) {
  13. return $http("/shipOwner/add", data);
  14. },
  15. // 获取船东列表
  16. getShipOwnerList(data) {
  17. return $http("/shipOwner/list", data);
  18. },
  19. // 获取船东详情
  20. getShipOwnerDetail(data) {
  21. return $http("/shipOwner/detail", data);
  22. },
  23. // 更新船东信息
  24. updateShipOwner(data) {
  25. return $http("/shipOwner/update", data);
  26. },
  27. // 新增船舶
  28. addShip(data) {
  29. return $http("/ship/add", data);
  30. },
  31. // 删除船舶
  32. deleteShip(data) {
  33. return $http("/ship/delete", data);
  34. },
  35. // 删除船舶证书
  36. deleteShipCert(data) {
  37. return $http("/ship/delete/cert", data);
  38. },
  39. // 首页船舶详情
  40. getIndexShipDetail(data) {
  41. return $http("/index/detail", data);
  42. },
  43. // 船舶详情
  44. getShipDetail(data) {
  45. return $http("/ship/detail", data);
  46. },
  47. // 获取船舶列表
  48. getShipList(data) {
  49. return $http("/ship/list", data);
  50. },
  51. // 使用mmsi匹配船舶
  52. searchShip(data) {
  53. return $http("/ship/search", data);
  54. },
  55. // 更新船舶基础信息
  56. updateShip(data) {
  57. return $http("/ship/update", data);
  58. },
  59. // 更新证书有效期
  60. updateShipCertValid(data) {
  61. return $http("/ship/update/cert/valid", data);
  62. },
  63. // 获取证书/保险列表
  64. getCertList(data) {
  65. return $http("/cert/list", data);
  66. },
  67. // 获取初始化数据-新增船舶
  68. getAddShipCerts(data) {
  69. return $http("/cert/addShip/type", data);
  70. },
  71. // 获取证书及有效期类型-证书列表
  72. getCertListType(data) {
  73. return $http("/cert/certList/type", data);
  74. },
  75. // 新增安全检查模板
  76. addSecurityTemplate(data) {
  77. return $http("/security/template/add", data);
  78. },
  79. // 删除安全检查模板
  80. deleteSecurityTemplate(data) {
  81. return $http("/security/template/delete", data);
  82. },
  83. // 获取安全检查模板详情
  84. getSecurityTemplateDetail(data) {
  85. return $http("/security/template/detail", data);
  86. },
  87. // 获取安全检查项目下拉
  88. getSecurityTemplateTypeSelect() {
  89. return $http("/security/template/item/select");
  90. },
  91. // 获取安全检查模板列表
  92. getSecurityTemplateList(data) {
  93. return $http("/security/template/list", data);
  94. },
  95. // 修改安全检查模板
  96. updateSecurityTemplate(data) {
  97. return $http("/security/template/update", data);
  98. },
  99. // 获取首页通知数据
  100. getIndexNotice() {
  101. return $http("/index/notice", {});
  102. },
  103. // 发布船舶安检
  104. addSecurityCheck(data) {
  105. return $http("/security/check/add", data);
  106. },
  107. // 发起船舶安检-安检模板下拉选择
  108. getAddTemplateSelect(data) {
  109. return $http("/security/check/add/template/select", data);
  110. },
  111. // 发起船舶安检-根据模板选择船舶
  112. getAddTemplateShipSelect(data) {
  113. return $http("/security/check/add/template/ship/select", data);
  114. },
  115. // 安检列表
  116. getSecurityCheckList(data) {
  117. return $http("/security/check/list", data);
  118. },
  119. // 船舶安检详情
  120. getSecurityCheckDetail(data) {
  121. return $http("/security/check/ship/detail", data);
  122. },
  123. // 审核安检项目
  124. checkSecurityItem(data) {
  125. return $http("/security/check/ship/item/check", data);
  126. },
  127. // 船舶安检列表
  128. getSecurityCheckShipList(data) {
  129. return $http("/security/check/ship/list", data);
  130. },
  131. // 审核异常船舶
  132. auditAbnormalShip(data) {
  133. return $http("/ship/audit/abnormal", data);
  134. },
  135. // 获取海事公告列表
  136. getShippingNoticeList(data) {
  137. return $http("/maritime/notice/getFileList", data);
  138. },
  139. // 新增消防检查模板
  140. addFireSafetyTemplate(data) {
  141. return $http("/fire/inspection/temp/add", data);
  142. },
  143. // 删除消防检查模板
  144. deleteFireSafetyTemplate(data) {
  145. return $http("/fire/inspection/temp/delete", data);
  146. },
  147. // 获取消防检查模板详情
  148. getFireSafetyTemplateDetail(data) {
  149. return $http("/fire/inspection/temp/detail", data);
  150. },
  151. // 发起消防检查
  152. addFireSafetyCheck(data) {
  153. return $http("/fire/inspection/temp/initiate", data);
  154. },
  155. // 获取消防安检项目类型下拉
  156. getFireSafetyTemplateTypeSelect() {
  157. return $http("/fire/inspection/temp/item/select");
  158. },
  159. // 获取消防检查模板列表
  160. getFireSafetyTemplateList(data) {
  161. return $http("/fire/inspection/temp/list", data);
  162. },
  163. // 修改消防检查模板
  164. updateFireSafetyTemplate(data) {
  165. return $http("/fire/inspection/temp/update", data);
  166. },
  167. // 选择安全检查人员/承诺人
  168. getFireSafetyCheckUser(data) {
  169. return $http("/fire/inspection/account/select", data);
  170. },
  171. // 消防检查详情
  172. getFireSafetyCheckDetail(data) {
  173. return $http("/fire/inspection/detail", data);
  174. },
  175. // 审核消防检查项目
  176. checkFireSafetyItem(data) {
  177. return $http("/fire/inspection/item/check", data);
  178. },
  179. // 消防检查列表
  180. getFireSafetyCheckList(data) {
  181. return $http("/fire/inspection/list", data);
  182. },
  183. // 保存整改意见
  184. saveFireSafetyCheckRectification(data) {
  185. return $http("/fire/inspection/save/rectification", data);
  186. },
  187. // 保存安全检查员
  188. saveFireSafetyCheckUser(data) {
  189. return $http("/fire/inspection/save/security/account", data);
  190. },
  191. // 新增船员
  192. addCrew(data) {
  193. return $http("/ship/crew/add", data);
  194. },
  195. // 删除船员
  196. deleteCrew(data) {
  197. return $http("/ship/crew/delete", data);
  198. },
  199. // 获取船员列表
  200. getCrewList(data) {
  201. return $http("/ship/crew/list", data);
  202. },
  203. // 获取船员详情
  204. getCrewDetail(data) {
  205. return $http("/ship/crew/detail", data);
  206. },
  207. // 更新船员
  208. updateCrew(data) {
  209. return $http("/ship/crew/update", data);
  210. },
  211. // 上传船员文件
  212. uploadCrewFile(data) {
  213. return $http("/ship/crew/uploadCert", data);
  214. },
  215. // 修改船舶-基础信息-船籍省份选择
  216. getProvinceSelect() {
  217. return $http("/ship/province/select");
  218. },
  219. };