import { $http } from "./config"; export default { // 代理登录 staffLogin(data) { return $http("user/proxy/login", data); }, // 获取航次列表 getVoyageList(data) { return $http("voyage/list", data); }, // 更新航次 updateVoyage(data) { return $http("/voyage/update", data); }, // 完成航次 finishVoyage(data) { return $http("/voyage/finish", data); }, // 添加航次 addVoyage(data) { return $http("voyage/add", data); }, // 获取媒体列表 getMediaList(data) { return $http("/media/list", data); }, // 导出excel exportExcel(data) { return $http("/voyage/exportExcel", data); }, // 获取卸货列表 getDischargeList(data) { return $http("/voyage/getDischargeList", data); }, // 获取汽车装货记录 getTruckLoadRecord(data) { return $http("/voyage/getCarLoadRecordList", data); }, // 添加职位 addRole(data) { return $http("/role/permission/addRole", data); }, // 获取权限数据 getPermisiionData(data) { return $http("/role/permission/getPermisiionData", data); }, // 获取角色列表 getRoleList(data) { return $http("/role/permission/list", data); }, // 获取角色下拉列表 getRoleSelect(data) { return $http("/role/permission/getRoleSelect", data); }, // 修改角色信息 updateRole(data) { return $http("/role/permission/updateRole", data); }, // 添加货种 addCargo(data) { return $http("/cargo/add", data); }, // 货种列表 getCargoList(data) { return $http("/cargo/list", data); }, // 获取代理列表 getAgencyList(data) { return $http("/user/cargo/proxy/list", data); }, // 添加代理 addAgency(data) { return $http("/user/cargo/add/proxy", data); }, // 获取代理子账户列表 getSubAccountList(data) { return $http("/user/proxy/account/list", data); }, // 添加代理子账户 addSubAccount(data) { return $http("/user/proxy/add/loginAccount", data); }, // 修改代理子账户 updateSubAccount(data) { return $http("/user/proxy/update/loginAccount", data); }, // 获取角色详情 getRoleDetail(data) { return $http("/role/permission/getRoleDetail", data); }, // 获取登录人权限 getPermissionByUserId(data) { return $http("/role/permission/getPermissionByUserId", data); }, // 添加部门 addDepartment(data) { return $http("/department/add", data); }, // 获取部门列表 getDepartmentList(data) { return $http("/department/list", data); }, // 获取部门下拉 getDepartmentSelect(data) { return $http("/department/select", data); }, // 修改部门 updateDepartment(data) { return $http("/department/update", data); }, // 获取FYDI指数下载链接 getFYFIDownloadUrl(data) { return $http("/fydi/getLastest", data); }, // 获取提货单列表 getLabList(data) { return $http("/voyage/getLabList", data); }, // 获取港口天气列表 getPortWeatherList(data) { return $http("/voyage/getPortWeatherList", data); }, // 获取超期航次提醒 getLongDaysInPort(data) { return $http("/voyage/cargo/longDaysInPort", data); }, // 获取客户列表 getClientList(data) { return $http("/client/account/list", data); }, // 添加客户 addClient(data) { return $http("/client/account/add", data); }, // 修改客户 updateClient(data) { return $http("/client/account/update", data); }, // 获取港口列表 getCol(data) { return $http("/port/getCol", data); }, // 获取货种下拉 getCargoSelect(data) { return $http("/cargo/select", data); }, // 获取用户列表 货主/船东 getUserList(data) { return $http("user/list", data); }, // 添加用户 addUser(data) { return $http("user/add", data); }, // 添加船东 addShipOwner(data) { return $http("/ship/add", data); }, // 获取用户详情 getUserDetail(data) { return $http("user/details", data); }, // 更新用户详情 updateUserDetail(data) { return $http("/user/update", data); }, // 获取航次详情 getVoyageDetail(data) { return $http("/voyage/detail", data); }, // 根据船名/MMSI/船东手机号获取船舶用户信息(员工端添加航次选择船) getUserInfoAndShipInfo(data) { return $http("ship/userShipInfo", data); }, // 审核媒体文件 auditMedia(data) { return $http("/dayReport/audit", data); }, // 标记媒体文件 markMedia(data) { return $http("/media/markMedia", data); }, // 模糊搜索用户 searchUser(data) { return $http("/user/search", data); }, // 获取船舶列表 getShipList(data) { return $http("/ship/list", data); }, // 获取船东列表 getShipOwnerList(data) { return $http("/ship/list", data); }, // 更新船舶信息 updateShip(data) { return $http("/ship/update", data); }, // 更新船东信息 updateShipOwner(data) { return $http("/user/update", data); }, // 获取船舶详情 getShipDetail(data) { return $http("/ship/detail", data); }, // 船舶查询 searchShip(data) { return $http("ship/search", data); }, // 根据shipId获取船东列表 getShipOwnerListByShipId(data) { return $http("/user/shopOwnerlist", data); }, // 添加卸货记录 addDischarge(data) { return $http("/voyage/addDischarge", data); }, // 删除卸货记录 deleteDischarge(data) { return $http("/voyage/deleteDischarge", data); }, // 修改卸货记录 updateDischarge(data) { return $http("/voyage/updateDischarge", data); }, // 获取未拍照航次 getUnphotographNotice() { return $http("/voyage/notice"); }, // 计算预计到港时间 calExpectedArrivalTime(data) { return $http("/voyage/calExpectedArrivalTime", data); }, // 删除运单 deleteWaybill(data) { return $http("/voyage/deleteWaybill", data); }, // 上传运单 updateVoyageWaybill(data) { return $http("/voyage/updateVoyageWaybill", data); }, // 取消航次 cancelVoyage(data) { return $http("/voyage/cancel", data); }, // 添加汽车装货记录 addTruckLoadRecord(data) { return $http("/voyage/addCarLoadRecord", data); }, // 删除汽车装货记录 deleteTruckLoadRecord(data) { return $http("/voyage/deleteCarLoadRecord", data); }, // 更新汽车装货记录 updateTruckLoadRecord(data) { return $http("/voyage/updateCarLoadRecord", data); }, // 分配单据 distribute(data) { return $http("/bill/distribute", data); }, // ocr识别 ocr(data) { return $http("/bill/ocr", data); }, // 用户选择 getUserSelect(data) { return $http("/user/select", data); }, // 添加提货单 addLab(data) { return $http("/voyage/addLab", data); }, // 更新提货单 updateLab(data) { return $http("/voyage/updateLab", data); }, // 删除提货单 deleteLab(data) { return $http("/voyage/deleteLab", data); }, // 获取区块链列表 getBlockChainList(data) { return $http("/block/voyage/list", data); }, // 航次上链 upBlockChain(data) { return $http("/block/voyage/up", data); }, // 插入卸货港 addNewPort(data) { return $http("/voyage/addNewPort", data); }, // 代理子账户列表 getAgencySubAccountList(data) { return $http("/proxy/account/list", data); }, // 添加代理子账户 addAgencySubAccount(data) { return $http("/proxy/account/add", data); }, // 获取船舶下拉 getShipSelect(data) { return $http("/ship/select", data); }, // 获取货主下拉 getCargoOwnerSelect(data) { return $http("/user/cargoOwner/select", data); }, // 获取日报列表 getDailyList(data) { return $http("/dayReport/list", data); }, // 获取日报媒体 getDailyMedia(data) { return $http("/dayReport/getMedia", data); }, // 日报媒体审核 auditDailyMedia(data) { return $http("/dayReport/audit", data); }, // 获取报岗列表 getReportList(data) { return $http("/port/report/list", data); }, // 获取报岗详情 getReportDetail(data) { return $http("/port/report/detail", data); }, // 报港 portReport(data) { return $http("/port/report/report", data); }, // 检测船东手机号 checkShipOwnerPhone(data) { return $http("/ship/search/shipOwner", data); }, // 获取单据媒体 getBill(data) { return $http("/bill/getBill", data); }, // 获取单据列表 getBillList(data) { return $http("/bill/list", data); }, // 检测mmsi checkShipMmsi(data) { return $http("/ship/search/ship", data); }, // 添加出险记录 addAccident(data) { return $http("/voyage/addAccident", data); }, // 删除出险记录 deleteAccident(data) { return $http("/voyage/deleteAccident", data); }, // 更新出险记录 updateAccident(data) { return $http("/voyage/updateAccident", data); }, // 获取出险记录列表 getAccidentList(data) { return $http("/voyage/getAccidentList", data); }, // 获取首页数据 getIndexData(data) { return $http("/pc/index", data); }, // 获取首页select getIndexSelect(data) { return $http("/pc/index/select", data); }, // 发送验证码 sendEmailVerifyCode(data) { return $http("/mail/send/verification", data); }, // 修改密码(已登录) changePassword(data) { return $http("/user/change/password", data); }, // 忘记密码(未登录) forgetPassword(data) { return $http("/user/forget/password", data); }, // 修改登录子账户邮箱 changeSubAccountEmail(data) { return $http("/user/proxy/update/email", data); }, // 添加订单(PC/小程序) addOrder(data) { return $http("/order/add", data); }, // 订单详情-全部信息 getOrderDetail(data) { return $http("/order/detail", data); }, // 订单详情-签单-审核订单 auditOrder(data) { return $http("/order/detail/audit", data); }, // 订单详情-签单-上传支付定金回执 uploadReceipt(data) { return $http("/order/detail/audit/receipt", data); }, // 订单详情-签单-保存/修改合同信息 editOrderContract(data) { return $http("/order/detail/edit/contract", data); }, // 订单详情-签单-保存/修改船东船舶信息 editOrderShipOwner(data) { return $http("/order/detail/edit/shipOwner", data); }, // 订单详情-签单-审核信息 getAuditInfo(data) { return $http("/order/detail/info/audit", data); }, // 订单详情-签单-合同信息 getContractInfo(data) { return $http("/order/detail/info/contract", data); }, // 订单详情-签单-船东船舶信息 getShipOwnerInfo(data) { return $http("/order/detail/info/shipowner", data); }, // 订单详情-航次-装货信息 getOrderVoyageLoadInfo(data) { return $http("/order/detail/info/voyage/load", data); }, // 订单详情-航次-在途信息 getOrderVoyageTranInfo(data) { return $http("/order/detail/info/voyage/tran", data); }, // 订单详情-航次-卸货信息 getOrderVoyageUnloadInfo(data) { return $http("/order/detail/info/voyage/unload", data); }, // 订单详情-签单-保存/修改船东船舶信息-选择船东 getOrderShipOwnerSelect(data) { return $http("/order/detail/select/shipOwner", data); }, // 订单详情-签单-保存/修改船东船舶信息-新增船东银行卡 addShipOwnerBankCard(data) { return $http("/order/detail/shipOwner/add/bankCard", data); }, // 订单详情-签单-保存/修改船东船舶信息-查询船东银行卡及船舶信息 getShipOwnerBankCardShipInfo(data) { return $http("/order/detail/shipOwner/bankCard/info", data); }, // 订单列表(WEB端) getOrderList(data) { return $http("/order/web/list", data); }, // 上传导入卸货明细 uploadDischargeExcel(data) { return $http("/voyage/upload/discharge/excel", data); }, // 下载卸货导入模板 downloadDischargeTemp(data) { return $http("/voyage/download/discharge/temp", data); }, // 招标详情 getTenderDetail(data) { return $http("/tender/detail", data); }, // 招标详情-参与投标-新增/修改船舶 tenderShip(data) { return $http("/tender/detail/bid", data); }, // 招标详情-删除投标 deleteTender(data) { return $http("/tender/detail/bid/delete", data); }, // 招标详情-放弃投标 giveupTender(data) { return $http("/tender/detail/bid/giveup", data); }, // 招标详情-参与投标-船舶选择 tenderSelectShip(data) { return $http("/tender/detail/bid/selectShip", data); }, // 招标详情-创建航次 createTenderVoyage(data) { return $http("/tender/detail/bid/voyage", data); }, // 投标列表 getTenderList(data) { return $http("/tender/list", data); }, };