|
|
|
|
const install = (Vue, vm) => {
|
|
|
|
|
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
|
|
|
|
vm.$u.api = {
|
|
|
|
|
// 登录
|
|
|
|
|
login: (params = {}) => vm.$u.post('/pda/login', params),
|
|
|
|
|
logout: (params = {}) => vm.$u.delete('/auth/token/logout', params),
|
|
|
|
|
|
|
|
|
|
// 用户信息
|
|
|
|
|
getUserInfo: () => vm.$u.get('/getInfo'),
|
|
|
|
|
// 菜单信息
|
|
|
|
|
getMenuInfo: () => vm.$u.get('/system/menu/pda/getMenu'),
|
|
|
|
|
// 获取版本管理详细信息
|
|
|
|
|
getVersionInfo: () => vm.$u.get(`/wms/version/${id}`),
|
|
|
|
|
getCheckVersion: () => vm.$u.get(`/wms/version/check`),
|
|
|
|
|
|
|
|
|
|
//登陆时根据输入的用户名获取仓库选择框列表
|
|
|
|
|
getOptionBranchByUserName: (params = {}) => vm.$u.get('/system/branch/pda/optionBranchByUserName/' + params
|
|
|
|
|
.userName),
|
|
|
|
|
|
|
|
|
|
//根据货位或者条码查询库存信息
|
|
|
|
|
queryGoodsStock: (params = {}) => vm.$u.get('/wms/pda/stockLot/queryGoodsStock/' + params.content),
|
|
|
|
|
|
|
|
|
|
//货位调整确认
|
|
|
|
|
pdaAdjustConfirm: (params = {}) => vm.$u.post('/wms/stock/adjust/pdaAdjustConfirm', params),
|
|
|
|
|
|
|
|
|
|
//收货管理
|
|
|
|
|
recevie: {
|
|
|
|
|
//分页查询带订单明细汇总
|
|
|
|
|
pageOrder: (params = {}) => vm.$u.get('/wms/receiving/pda/pageOrder', params),
|
|
|
|
|
|
|
|
|
|
//获取汇总以及详情信息
|
|
|
|
|
getOrder: (params = {}) => vm.$u.get('/wms/receiving/pda/getOrder', params),
|
|
|
|
|
|
|
|
|
|
//查询商品对应的包装信息
|
|
|
|
|
queryBasPackageByGoodId: (params = {}) => vm.$u.get('/wms/receiving/pda/queryBasPackageByGoodId',
|
|
|
|
|
params),
|
|
|
|
|
|
|
|
|
|
//确认收货
|
|
|
|
|
confirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/confirmReceiving', params),
|
|
|
|
|
//确认收货(多选)
|
|
|
|
|
multipleConfirmReceiving: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceiving', params),
|
|
|
|
|
//确认收货(多选)改
|
|
|
|
|
multipleConfirmReceivingList: (params = {}) => vm.$u.post('/wms/receiving/pda/multipleConfirmReceivingList', params),
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//补货上架
|
|
|
|
|
replenishment: {
|
|
|
|
|
//查询列表中区域分组查询对应的任务数
|
|
|
|
|
queryTaskNumberGroupByArea: (params = {}) => vm.$u.get(
|
|
|
|
|
'/wms/pda/stock/replenish/queryTaskNumberGroupByArea', params),
|
|
|
|
|
|
|
|
|
|
//根据条码商品区域信息查询未补货完成的数据信息
|
|
|
|
|
queryReplenishTaskByBarCode: (params = {}) => vm.$u.get(
|
|
|
|
|
'/wms/pda/stock/replenish/queryReplenishTaskByBarCode', params),
|
|
|
|
|
|
|
|
|
|
//补货上架确认
|
|
|
|
|
replenishShelfConfirm: (params = {}) => vm.$u.post('/wms/pda/stock/replenish/replenishShelfConfirm',
|
|
|
|
|
params),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//AGV上架
|
|
|
|
|
AvgOnShelf: {
|
|
|
|
|
//上架界面 = AGV区 分页查询带上架明细列表 料箱区的上架任务
|
|
|
|
|
ListAvgOnShelf: (params = {}) => vm.$u.get('/wms/shelf/pda/pageShelfByAGV', params),
|
|
|
|
|
//上架作业界面 - 查看上架详情
|
|
|
|
|
getAvgShelf: (params = {}) => vm.$u.get('/wms/shelf/pda/getShelf', params),
|
|
|
|
|
//AGV上架作业 - AGV入库
|
|
|
|
|
agvSubmit: (params = {}) => vm.$u.post('/wms/shelf/pda/agvSubmit', params),
|
|
|
|
|
//AVG上架作业 - 呼出AGV
|
|
|
|
|
callAGV:(params = {}) => vm.$u.post('/wms/shelf/pda/callAGV',params),
|
|
|
|
|
//AVG上架作业 - 取消AGV
|
|
|
|
|
cancelAGV:(params = {}) => vm.$u.post('/wms/shelf/pda/cancelAGV',params),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//AGV拣货
|
|
|
|
|
AvgOrderPkg:{
|
|
|
|
|
//AGV开始拣货页面 -- 统计AGV任务数量
|
|
|
|
|
getAGVStatistics:(params = {}) => vm.$u.get('/wms/pick/pda/v2/getAGVStatistics',params),
|
|
|
|
|
//AGV开始拣货页面 -- 点击开始拣选调接口
|
|
|
|
|
startPick:(params = {}) => vm.$u.get('/wms/pick/pda/v2/startPick',params),
|
|
|
|
|
//AGV拣货页面 -- 扫描容器编号显示商品信息(详情页直接带过去)
|
|
|
|
|
queryPick:(containerCode) => vm.$u.get(`/wms/pick/pda/v2/pickAGVByContainerCode/${containerCode}`),
|
|
|
|
|
//AGV拣货页面 -- 完成拣货
|
|
|
|
|
pickAGV:(params = {}) => vm.$u.post('/wms/pick/pda/v2/pickAGV',params)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//AGV搬运
|
|
|
|
|
AvgCarry:{
|
|
|
|
|
// moveByAGV:(params = {}) => vm.$u.post('/wms/pick/pda/v2/moveByAGV',params)
|
|
|
|
|
queryBillingDByContainerCode:(params = {}) => vm.$u.post('/wms/billing/pda/queryBillingDByContainerCode',params),
|
|
|
|
|
//点位
|
|
|
|
|
getPointList:(params = {}) => vm.$u.get('/wcs/base/point/list',params),
|
|
|
|
|
//呼叫AGV搬运
|
|
|
|
|
agvCarry:(params = {}) => vm.$u.post('/wcs/agv/agvCarry',params)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//入库上架
|
|
|
|
|
onShelf: {
|
|
|
|
|
//分页查询带上架明细汇总
|
|
|
|
|
pageShelf: (params = {}) => vm.$u.get('/wms/shelf/pda/pageShelfByRG', params),
|
|
|
|
|
|
|
|
|
|
//查看上架详情
|
|
|
|
|
getShelf: (params = {}) => vm.$u.get('/wms/shelf/pda/getShelf', params),
|
|
|
|
|
|
|
|
|
|
//上架确认
|
|
|
|
|
confirmShelf: (params = {}) => vm.$u.post('/wms/shelf/pda/confirmShelf', params),
|
|
|
|
|
|
|
|
|
|
//容器上架任务查看
|
|
|
|
|
queryContainerTask: (params = {}) => vm.$u.get('/wms/shelf/pda/queryContainerTask', params),
|
|
|
|
|
|
|
|
|
|
//提报异常
|
|
|
|
|
billingToAdnormal: (params = {}) => vm.$u.post('/wms/shelf/pda/shelfToAdnormal', params),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 外复核界面管理
|
|
|
|
|
reviewManage: {
|
|
|
|
|
// 查询未完成的外复核任务
|
|
|
|
|
searchReviewTask: (params = {}) => vm.$u.get('/wms/pda/barcode/getNoEndOutCheckTask',
|
|
|
|
|
params),
|
|
|
|
|
// 外复核根据出库条码查询商品详细数据
|
|
|
|
|
reviewTaskDetail: (params = {}) => vm.$u.post('/wms/pda/barcode/getOutCheckDetailByBarCode',
|
|
|
|
|
params),
|
|
|
|
|
// 外复核确认
|
|
|
|
|
confirmSearchReviewTask: (params = {}) => vm.$u.post(`/wms/pda/barcode/outCheckConfirmById`, params)
|
|
|
|
|
},
|
|
|
|
|
// 拣货管理
|
|
|
|
|
pickingManage: {
|
|
|
|
|
// 第一步先校验索取任务
|
|
|
|
|
checkOutPick: (params = {}) => vm.$u.get('/wms/pick/pda/checkOutPick',
|
|
|
|
|
params),
|
|
|
|
|
// 任务索取统计
|
|
|
|
|
queryTaskStatic: (params = {}) => vm.$u.get('/wms/pick/pda/queryTaskStatic',
|
|
|
|
|
params),
|
|
|
|
|
// 零货任务索取
|
|
|
|
|
pickPieceTask: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickPieceTask`, params),
|
|
|
|
|
// 整散拣货(特殊)任务索取
|
|
|
|
|
pickCasePieceTask: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickCasePieceTask`, params),
|
|
|
|
|
// pda 整件任务索取
|
|
|
|
|
pickCaseTask: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickCaseTask`, params),
|
|
|
|
|
// 周转箱绑定
|
|
|
|
|
relatePickTaskAndContainer: (params = {}) => vm.$u.post(
|
|
|
|
|
`/wms/pick/pda/pdaRelatePickTaskAndContainer`, params),
|
|
|
|
|
// 整件确认存盘
|
|
|
|
|
pickCaseTaskConfirm: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickCaseTaskConfirm`, params),
|
|
|
|
|
// 零货确认存盘
|
|
|
|
|
pickPieceTaskConfirm: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickPieceTaskConfirm`, params),
|
|
|
|
|
// 整散拣货(特殊)任务确认存盘
|
|
|
|
|
pickCasePieceTaskConfirm: (params = {}) => vm.$u.post(`/wms/pick/pda/pdaPickCasePieceTaskConfirm`,
|
|
|
|
|
params),
|
|
|
|
|
// 是否有冲红权限
|
|
|
|
|
loginConfirm: (params = {}) => vm.$u.post('/wms/pick/pda/loginConfirm', params),
|
|
|
|
|
// 明细冲红
|
|
|
|
|
orderDetailRed: (params = {}) => vm.$u.post('/wms/pick/pda/pdaPickTaskRed', params),
|
|
|
|
|
//输入账号密码检验是否有权限
|
|
|
|
|
pdaCheckPlatform: (params = {}) => vm.$u.get('/wms/pick/pda/pdaCheckPlatform', params),
|
|
|
|
|
},
|
|
|
|
|
// 盘点计划
|
|
|
|
|
inventoryPlanning: {
|
|
|
|
|
// 盘点计划列表
|
|
|
|
|
inventoryPlanningList: (params = {}) => vm.$u.get(`/wms/pda/stock/inv/listStockInvGroupNo`, params),
|
|
|
|
|
// pda盘点执行页面根据盘点单号查询巷道下拉框列表
|
|
|
|
|
optionByInvOrderNo: (params = {}) => vm.$u.get(`/wms/pda/stock/inv/optionByInvOrderNo/${params}`,
|
|
|
|
|
params),
|
|
|
|
|
//pda盘点执行页面根据盘点单号查询详情
|
|
|
|
|
queryDetailStockInv: (params = {}) => vm.$u.post(`/wms/pda/stock/inv/queryDetailStockInv`, params),
|
|
|
|
|
// 盘点录入保存
|
|
|
|
|
pdaEntrySave: (params = {}) => vm.$u.post(`/wms/pda/stock/inv/pdaEntrySave`, params),
|
|
|
|
|
},
|
|
|
|
|
//缓存墙上架
|
|
|
|
|
cache:{
|
|
|
|
|
updCacheWallShelf:(params={})=>vm.$u.post(`/wms/billing/pda/updCacheWallShelf`, params),
|
|
|
|
|
},
|
|
|
|
|
// 验收界面
|
|
|
|
|
acceptance: {
|
|
|
|
|
// 分页查询带收货明细汇总
|
|
|
|
|
pageReceiving: (params = {}) => vm.$u.get(`/wms/billing/pda/pageReceivingDetail`, params),
|
|
|
|
|
// 验收作业界面 - 获取汇总以及详情信息
|
|
|
|
|
getReceiving: (params = {}) => vm.$u.get(`/wms/billing/pda/getReceiving`, params),
|
|
|
|
|
// 容器待验收任务查看(分页)
|
|
|
|
|
queryContainerTask: (params = {}) => vm.$u.get(`/wms/billing/pda/queryContainerTask`, params),
|
|
|
|
|
// 验收作业界面 - 验收确认
|
|
|
|
|
confirmBilling: (params = {}) => vm.$u.post(`/wms/billing/pda/confirmBilling`, params),
|
|
|
|
|
confirmError: (params = {}) => vm.$u.post(`/wms/billing/pda/billingToAdnormal`, params),
|
|
|
|
|
//确认收货(多选)
|
|
|
|
|
multipleConfirmBilling: (params = {}) => vm.$u.post('/wms/billing/pda/multipleConfirmBilling', params),
|
|
|
|
|
//确认验收(多选)新
|
|
|
|
|
multipleConfirmBillingList: (params = {}) => vm.$u.post('/wms/billing/pda/multipleConfirmBillingList', params),
|
|
|
|
|
},
|
|
|
|
|
//查询库别资料列表
|
|
|
|
|
storageList: (params = {}) => vm.$u.get('/wms/storage/pda/list', params),
|
|
|
|
|
|
|
|
|
|
// 查询字典数据详情
|
|
|
|
|
getByDicType: (params = {}) => vm.$u.get('/system/dict/data/type/goods_unit'),
|
|
|
|
|
// 收货结论
|
|
|
|
|
getByDicReceivingStatus: (params = {}) => vm.$u.get('/system/dict/data/type/receiving_status'),
|
|
|
|
|
// 验收结论
|
|
|
|
|
getAcceptanceConclusion: (params = {}) => vm.$u.get('/system/dict/data/type/acceptance_conclusion'),
|
|
|
|
|
// 处理原因
|
|
|
|
|
getByDicAcceptanceReason: (params = {}) => vm.$u.get('/system/dict/data/type/sys_acceptance_reason'),
|
|
|
|
|
// 获取比例
|
|
|
|
|
getCaseCheckRatio: (params = {}) => vm.$u.get('/system/config/configKey/case_check_ratio'),
|
|
|
|
|
// 获取任务数
|
|
|
|
|
getTaskNumber: (params = {}) => vm.$u.get('/system/dict/data/type/once_pick_task_number'),
|
|
|
|
|
// 获取盘点类型的字典
|
|
|
|
|
getInvType: (params = {}) => vm.$u.get('/system/dict/data/type/inv_type_dict'),
|
|
|
|
|
//获取AGV点位的字典
|
|
|
|
|
getCarry:(params = {}) => vm.$u.get('/system/dict/data/type/agv_move_location')
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
install
|
|
|
|
|
}
|