|
|
@@ -2,201 +2,241 @@ import { $http } from "./config";
|
|
|
export default {
|
|
|
// 员工登录
|
|
|
staffLogin(data) {
|
|
|
- return $http("post", "staff/backstage/login", data);
|
|
|
+ return $http("staff/backstage/login", data);
|
|
|
},
|
|
|
|
|
|
// 获取用户列表 货主/船东
|
|
|
getUserList(data) {
|
|
|
- return $http("post", "user/backstage/list", data);
|
|
|
+ return $http("user/backstage/list", data);
|
|
|
},
|
|
|
|
|
|
// 添加用户
|
|
|
addUser(data) {
|
|
|
- return $http("post", "user/backstage/add", data);
|
|
|
+ return $http("user/backstage/add", data);
|
|
|
},
|
|
|
|
|
|
// 添加船东
|
|
|
addShipOwner(data) {
|
|
|
- return $http("post", "user/backstage/saveShipOwner", data);
|
|
|
+ return $http("user/backstage/saveShipOwner", data);
|
|
|
},
|
|
|
|
|
|
// 获取用户详情
|
|
|
getUserDetail(data) {
|
|
|
- return $http("post", "user/backstage/details", data);
|
|
|
+ return $http("user/backstage/details", data);
|
|
|
},
|
|
|
|
|
|
// 更新用户详情
|
|
|
updateUserDetail(data) {
|
|
|
- return $http("post", "/user/backstage/update", data);
|
|
|
+ return $http("/user/backstage/update", data);
|
|
|
},
|
|
|
|
|
|
// 获取航次列表
|
|
|
getVoyageList(data) {
|
|
|
- return $http("post", "voyage/list", data);
|
|
|
+ return $http("voyage/list", data);
|
|
|
},
|
|
|
|
|
|
// 获取航次详情
|
|
|
getVoyageDetail(data) {
|
|
|
- return $http("post", "/voyage/detail", data);
|
|
|
+ return $http("/voyage/detail", data);
|
|
|
},
|
|
|
|
|
|
// 更新航次
|
|
|
updateVoyage(data) {
|
|
|
- return $http("post", "/voyage/backstage/update", data);
|
|
|
+ return $http("/voyage/backstage/update", data);
|
|
|
},
|
|
|
|
|
|
// 完成航次
|
|
|
finishVoyage(data) {
|
|
|
- return $http("post", "/voyage/backstage/finish", data);
|
|
|
+ return $http("/voyage/backstage/finish", data);
|
|
|
},
|
|
|
|
|
|
// 根据船名/MMSI/船东手机号获取船舶用户信息(员工端添加航次选择船)
|
|
|
getUserInfoAndShipInfo(data) {
|
|
|
- return $http("post", "ship/backstage/userShipInfo", data);
|
|
|
+ return $http("ship/backstage/userShipInfo", data);
|
|
|
},
|
|
|
|
|
|
// 添加航次
|
|
|
addVoyage(data) {
|
|
|
- return $http("post", "voyage/backstage/add", data);
|
|
|
+ return $http("voyage/backstage/add", data);
|
|
|
},
|
|
|
|
|
|
// 获取媒体列表
|
|
|
getMediaList(data) {
|
|
|
- return $http("post", "/media/backstage/list", data);
|
|
|
+ return $http("/media/backstage/list", data);
|
|
|
},
|
|
|
|
|
|
// 审核媒体文件
|
|
|
auditMedia(data) {
|
|
|
- return $http("post", "/media/backstage/audit", data);
|
|
|
+ return $http("/media/backstage/audit", data);
|
|
|
},
|
|
|
|
|
|
// 标记媒体文件
|
|
|
markMedia(data) {
|
|
|
- return $http("post", "/media/backstage/markMedia", data);
|
|
|
+ return $http("/media/backstage/markMedia", data);
|
|
|
},
|
|
|
|
|
|
// 模糊搜索用户
|
|
|
searchUser(data) {
|
|
|
- return $http("post", "/user/backstage/search", data);
|
|
|
+ return $http("/user/backstage/search", data);
|
|
|
},
|
|
|
|
|
|
// 获取船舶列表
|
|
|
getShipList(data) {
|
|
|
- return $http("post", "/ship/backstage/list", data);
|
|
|
+ return $http("/ship/backstage/list", data);
|
|
|
},
|
|
|
|
|
|
// 更新船舶信息
|
|
|
updateShip(data) {
|
|
|
- return $http("post", "/ship/backstage/update", data);
|
|
|
+ return $http("/ship/backstage/update", data);
|
|
|
},
|
|
|
|
|
|
// 更新船东信息
|
|
|
updateShipOwner(data) {
|
|
|
- return $http("post", "/user/backstage/update", data);
|
|
|
+ return $http("/user/backstage/update", data);
|
|
|
},
|
|
|
|
|
|
// 获取船舶详情
|
|
|
getShipDetail(data) {
|
|
|
- return $http("post", "/ship/backstage/detail", data);
|
|
|
+ return $http("/ship/backstage/detail", data);
|
|
|
},
|
|
|
|
|
|
// 船舶查询
|
|
|
searchShip(data) {
|
|
|
- return $http("post", "ship/backstage/search", data);
|
|
|
+ return $http("ship/backstage/search", data);
|
|
|
},
|
|
|
|
|
|
// 根据shipId获取船东列表
|
|
|
getShipOwnerListByShipId(data) {
|
|
|
- return $http("post", "/user/backstage/shopOwnerlist", data);
|
|
|
+ return $http("/user/backstage/shopOwnerlist", data);
|
|
|
},
|
|
|
|
|
|
// 添加卸货记录
|
|
|
addDischarge(data) {
|
|
|
- return $http("post", "/voyage/addDischarge", data);
|
|
|
+ return $http("/voyage/addDischarge", data);
|
|
|
},
|
|
|
|
|
|
// 删除卸货记录
|
|
|
deleteDischarge(data) {
|
|
|
- return $http("post", "/voyage/deleteDischarge", data);
|
|
|
+ return $http("/voyage/deleteDischarge", data);
|
|
|
},
|
|
|
|
|
|
// 导出excel
|
|
|
exportExcel(data) {
|
|
|
- return $http("post", "/voyage/exportExcel", data);
|
|
|
+ return $http("/voyage/exportExcel", data);
|
|
|
},
|
|
|
|
|
|
// 获取卸货列表
|
|
|
getDischargeList(data) {
|
|
|
- return $http("post", "/voyage/getDischargeList", data);
|
|
|
+ return $http("/voyage/getDischargeList", data);
|
|
|
},
|
|
|
|
|
|
// 修改卸货记录
|
|
|
updateDischarge(data) {
|
|
|
- return $http("post", "/voyage/updateDischarge", data);
|
|
|
+ return $http("/voyage/updateDischarge", data);
|
|
|
},
|
|
|
|
|
|
// 获取未拍照航次
|
|
|
getUnphotographNotice() {
|
|
|
- return $http("get", "/voyage/backstage/notice");
|
|
|
+ return $http("/voyage/backstage/notice");
|
|
|
},
|
|
|
|
|
|
// 计算预计到港时间
|
|
|
calExpectedArrivalTime(data) {
|
|
|
- return $http("post", "/voyage/calExpectedArrivalTime", data);
|
|
|
+ return $http("/voyage/calExpectedArrivalTime", data);
|
|
|
},
|
|
|
|
|
|
// 删除运单
|
|
|
deleteWaybill(data) {
|
|
|
- return $http("post", "/voyage/deleteWaybill", data);
|
|
|
+ return $http("/voyage/deleteWaybill", data);
|
|
|
},
|
|
|
|
|
|
// 上传运单
|
|
|
updateVoyageWaybill(data) {
|
|
|
- return $http("post", "/voyage/updateVoyageWaybill", data);
|
|
|
+ return $http("/voyage/updateVoyageWaybill", data);
|
|
|
},
|
|
|
|
|
|
// 获取港口列表
|
|
|
getCol(data) {
|
|
|
- return $http("post", "/port/backstage/getCol", data);
|
|
|
+ return $http("/port/backstage/getCol", data);
|
|
|
},
|
|
|
|
|
|
// 取消航次
|
|
|
cancelVoyage(data) {
|
|
|
- return $http("post", "/voyage/backstage/cancel", data);
|
|
|
+ return $http("/voyage/backstage/cancel", data);
|
|
|
},
|
|
|
|
|
|
// 添加汽车装货记录
|
|
|
addTruckLoadRecord(data) {
|
|
|
- return $http("post", "/voyage/addCarLoadRecord", data);
|
|
|
+ return $http("/voyage/addCarLoadRecord", data);
|
|
|
},
|
|
|
|
|
|
// 获取汽车装货记录
|
|
|
getTruckLoadRecord(data) {
|
|
|
- return $http("post", "/voyage/getCarLoadRecordList", data);
|
|
|
+ return $http("/voyage/getCarLoadRecordList", data);
|
|
|
},
|
|
|
|
|
|
// 删除汽车装货记录
|
|
|
deleteTruckLoadRecord(data) {
|
|
|
- return $http("post", "/voyage/deleteCarLoadRecord", data);
|
|
|
+ return $http("/voyage/deleteCarLoadRecord", data);
|
|
|
},
|
|
|
|
|
|
// 更新汽车装货记录
|
|
|
updateTruckLoadRecord(data) {
|
|
|
- return $http("post", "/voyage/updateCarLoadRecord", data);
|
|
|
+ return $http("/voyage/updateCarLoadRecord", data);
|
|
|
},
|
|
|
|
|
|
// 分配单据
|
|
|
distribute(data) {
|
|
|
- return $http("post", "/shipownerUploadFile/distribute", data);
|
|
|
+ return $http("/shipownerUploadFile/distribute", data);
|
|
|
},
|
|
|
|
|
|
// ocr识别
|
|
|
ocr(data) {
|
|
|
- return $http("post", "/shipownerUploadFile/ocr", data);
|
|
|
+ return $http("/shipownerUploadFile/ocr", data);
|
|
|
},
|
|
|
|
|
|
// 用户选择
|
|
|
getUserSelect(data) {
|
|
|
- return $http("post", "/user/backstage/select", data);
|
|
|
+ return $http("/user/backstage/select", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 添加提货单
|
|
|
+ addLab(data) {
|
|
|
+ return $http("/voyage/addLab", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取提货单
|
|
|
+ getLabList(data) {
|
|
|
+ return $http("/voyage/getLabList", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 更新提货单
|
|
|
+ updateLab(data) {
|
|
|
+ return $http("/voyage/updateLab", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 删除提货单
|
|
|
+ deleteLab(data) {
|
|
|
+ return $http("/voyage/deleteLab", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取港口天气列表
|
|
|
+ getPortWeatherList(data) {
|
|
|
+ return $http("/voyage/getPortWeatherList", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取超期航次提醒
|
|
|
+ getLongDaysInPort(data) {
|
|
|
+ return $http("/voyage/cargo/longDaysInPort", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取区块链列表
|
|
|
+ getBlockChainList(data) {
|
|
|
+ return $http("/block/voyage/list", data);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 航次上链
|
|
|
+ upBlockChain(data) {
|
|
|
+ return $http("/block/voyage/up", data);
|
|
|
},
|
|
|
};
|