| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- import { $http } from "./config";
- export default {
- // 员工登录
- staffLogin(data) {
- return $http("post", "staff/backstage/login", data);
- },
- // 获取用户列表 货主/船东
- getUserList(data) {
- return $http("post", "user/backstage/list", data);
- },
- // 添加用户
- addUser(data) {
- return $http("post", "user/backstage/add", data);
- },
- // 获取用户详情
- getUserDetail(data) {
- return $http("post", "user/backstage/details", data);
- },
- // 更新用户详情
- updateUserDetail(data) {
- return $http("post", "/user/backstage/update", data);
- },
- // 获取航次列表
- getVoyageList(data) {
- return $http("post", "voyage/list", data);
- },
- // 获取航次详情
- getVoyageDetail(data) {
- return $http("post", "/voyage/detail", data);
- },
- // 更新航次
- updateVoyage(data) {
- return $http("post", "/voyage/backstage/update", data);
- },
- // 完成航次
- finishVoyage(data) {
- return $http("post", "/voyage/backstage/finish", data);
- },
- // 根据船名/MMSI/船东手机号获取船舶用户信息(员工端添加航次选择船)
- getUserInfoAndShipInfo(data) {
- return $http("post", "ship/backstage/userShipInfo", data);
- },
- // 添加航次
- addVoyage(data) {
- return $http("post", "voyage/backstage/add", data);
- },
- // 获取媒体列表
- getMediaList(data) {
- return $http("post", "/media/backstage/list", data);
- },
- // 审核媒体文件
- auditMedia(data) {
- return $http("post", "/media/backstage/audit", data);
- },
- // 模糊搜索用户
- seachUser(data) {
- return $http("post", "/user/backstage/search", data);
- },
- // 获取船舶列表
- getShipList(data) {
- return $http("post", "/ship/backstage/list", data);
- },
- // 更新船舶信息
- updateShip(data) {
- return $http("post", "/ship/backstage/update", data);
- },
- // 更新船东信息
- updateShipOwner(data) {
- return $http("post", "/user/backstage/update", data);
- },
- // 获取船舶详情
- getShipDetail(data) {
- return $http("post", "/ship/backstage/detail", data);
- },
- // 船舶查询
- searchShip(data) {
- return $http("post", "ship/backstage/search", data);
- },
- // 根据shipId获取船东列表
- getShipOwnerListByShipId(data) {
- return $http("post", "/user/backstage/shopOwnerlist", data);
- },
- // 添加卸货记录
- addDischarge(data) {
- return $http("post", "/voyage/addDischarge", data);
- },
- // 删除卸货记录
- deleteDischarge(data) {
- return $http("post", "/voyage/deleteDischarge", data);
- },
- // 导出excel
- exportExcel(data) {
- return $http("post", "/voyage/exportExcel", data);
- },
- // 获取卸货列表
- getDischargeList(data) {
- return $http("post", "/voyage/getDischargeList", data);
- },
- // 修改卸货记录
- updateDischarge(data) {
- return $http("post", "/voyage/updateDischarge", data);
- },
- // 获取未拍照航次
- getUnphotographNotice() {
- return $http("get", "/voyage/backstage/notice");
- },
- // 计算预计到港时间
- calExpectedArrivalTime(data) {
- return $http("post", "/voyage/calExpectedArrivalTime", data);
- },
- // 删除运单
- deleteWaybill(data) {
- return $http("post", "/voyage/deleteWaybill", data);
- },
- // 上传运单
- updateVoyageWaybill(data) {
- return $http("post", "/voyage/updateVoyageWaybill", data);
- },
- };
|