自动化立体仓库 - WMS系统
Junjie
2023-06-03 1ccbafd4845918b45cea28a834fd889e3ba4e0b6
src/main/webapp/views/home/map.html
@@ -1061,19 +1061,16 @@
                                })
                            })
                            data.forEach((item,index) => {
                                let locNo = item.locNo
                                let y = parseInt(locNo.substr(2,3))
                                let x = parseInt(locNo.substr(0,2))
                                if (x >= 4 && x <= 11) {
                                    x++;
                                }else if (x >= 12 && x <= 18) {
                                    x += 2;
                                } else if (x >= 19 && x <= 21) {
                                    x += 3;
                                }
                                tmp[x][y].searchStatus = true//搜索标记
                            data.forEach((item,i) => {
                                let locNo = item.locNo
                                tmp.forEach((item,index) => {
                                    item.forEach((val,idx) => {
                                        if (tmp[index][idx].locNo == locNo) {
                                            tmp[index][idx].searchStatus = true//搜索标记
                                        }
                                    })
                                })
                            })
                            that.map = tmp
                            $layui.layer.msg("搜索成功");