148 lines
2.9 KiB
TypeScript
148 lines
2.9 KiB
TypeScript
import request from "@/sheep/utils/request"
|
|
|
|
export default {
|
|
/**
|
|
* app获取智能柜授权信息
|
|
* @param doorHardId 智能柜设备id
|
|
* @param cabinetNo 货柜编号
|
|
*/
|
|
appGetAuthHardDoor: (data: { doorHardId: any; cabinetNo: any }) =>
|
|
request({
|
|
url: "hard/hard-auth/app/get-auth-hard-door",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
/**
|
|
* app获取智能柜授权信息
|
|
* @param authId 授权id
|
|
* @param authStatus 是否授权
|
|
*/
|
|
appAuthHardDoor: (data: { authId: any; authStatus: any }) =>
|
|
request({
|
|
url: "hard/hard-auth/app/get-auth-hard-door",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
/**
|
|
* app查询智能柜列表(有分页)
|
|
*/
|
|
hardDoorPage: (params: any) =>
|
|
request({
|
|
url: "hard/hard-door-manager/app/page",
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* app查询智能柜详情
|
|
* @param hardDoorId 智能柜id
|
|
*/
|
|
hardDoorDetail: (params: { hardDoorId: any }): Promise<any> =>
|
|
request({
|
|
url: "hard/hard-door-manager/app/detail",
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* 上架
|
|
* @param id 绑定id
|
|
* @param hardSpuId 商品id
|
|
*/
|
|
putaway: (data: { hardDoorId: any }) =>
|
|
request({
|
|
url: "hard/hard-spu/app/putaway",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* 下架
|
|
* @param id 绑定id
|
|
* @param hardSpuId 商品id
|
|
*/
|
|
unPutaway: (data: { hardDoorId: { id: any; hardSpuId: any } }) =>
|
|
request({
|
|
url: "hard/hard-spu/app/un-putaway",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
/**
|
|
* app查询货柜补货商品列表
|
|
* @param hardDoorId 智能柜编号
|
|
* @param cabinetNo 货柜编号
|
|
*/
|
|
cabinetPutawayList: (params: { hardDoorId: any; cabinetNo: any }): Promise<any> =>
|
|
request({
|
|
url: "hard/hard-spu/app/cabinet-putaway-list",
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* app查询货柜商品列表
|
|
* @param hardId 智能柜编号
|
|
* @param cabinetNo 货柜编号
|
|
*/
|
|
cabinetList: (params: { hardId: any; cabinetNo: any }): Promise<any> =>
|
|
request({
|
|
url: "hard/hard-spu/app/cabinet-list",
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* app上架完成
|
|
* @param flowId
|
|
* @param list
|
|
*/
|
|
repertoryDone: (data: { flowId: any; list: Array<{ hardSpuId: any; plusCount: any }> }): Promise<any> =>
|
|
request({
|
|
url: "hard/hard-spu-repertory/app/repertory-done",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
|
|
/**
|
|
* 上架开门
|
|
* @param hardDoorId 智能柜编号
|
|
* @param cabinetNo 货柜编号
|
|
*/
|
|
openRepertory: (data: { hardDoorId: string; cabinetNo: string }): Promise<any> =>
|
|
request({
|
|
url: "hard/hard-door-flow/app/open-repertory",
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
}
|