|
@@ -152,7 +152,9 @@ export struct WarehouseMap {
|
|
|
}
|
|
|
//获取当前选择料格详情
|
|
|
getBoxInfos = async(y:string,x:string)=>{
|
|
|
- let res: boxItem[] = await StorageRequest.get("/api/v1/wms/position/lineStockDetails/"+x+'-'+y)
|
|
|
+ console.log('dyy',y,x)
|
|
|
+ let res: boxItem[] = await StorageRequest.get("/api/v1/wms/position/lineStockDetails/"+ x +'-'+y)
|
|
|
+ console.log('dyy',res)
|
|
|
this.boxInfo=res;
|
|
|
}
|
|
|
// 获取仓库坐标信息,x和y轴的信息
|
|
@@ -345,7 +347,7 @@ export struct WarehouseMap {
|
|
|
Text(x.toString())
|
|
|
.commonSquare().backgroundColor($r('app.color.green_100'))
|
|
|
.onClick(async () => {
|
|
|
- await this.getBoxInfos(index1.toString(),index2.toString())
|
|
|
+ await this.getBoxInfos((index1+1).toString(),(index2+1).toString())
|
|
|
this.YCoordinate = index1
|
|
|
this.XCoordinate = index2
|
|
|
this.SelectOut = ChooseStatus.Chosen
|