| | |
| | | JSONObject jsonObject = JSON.parseObject(o.toString()); |
| | | jsonObject.put("locNo", locMast.getLocNo());//设置库位号 |
| | | jsonObject.put("locSts", locMast.getLocSts());//库位状态 |
| | | jsonObject.put("locSts$", locMast.getLocSts$());//库位状态 |
| | | // jsonObject.put("locSts$", locMast.getLocSts$());//库位状态 |
| | | //更新list |
| | | rowData.set(bay, jsonObject); |
| | | arrayLists.set(row, rowData); |
| | |
| | | 库位号: {{ map[mapI][mapJ].locNo }} |
| | | </div> |
| | | <div style="margin-top: 10px;"> |
| | | 库位状态: {{ map[mapI][mapJ].locSts$ }} |
| | | 库位状态: {{ getLocSts(map[mapI][mapJ].locSts) }} |
| | | </div> |
| | | <div style="margin-top: 10px;display: flex;justify-content: space-between;flex-wrap: wrap;"> |
| | | <div style="margin-top: 5px;"> |
| | |
| | | label: "50%" |
| | | }, |
| | | 100: "100%", |
| | | } |
| | | }, |
| | | locStsList: [],//库位状态列表 |
| | | }, |
| | | created(){ |
| | | this.init() |
| | |
| | | |
| | | this.locOutStatus = false |
| | | this.locOutLocNo = [] |
| | | |
| | | this.getLocStsList();//获取库位状态列表 |
| | | }, |
| | | printData() { |
| | | this.mapData = JSON.stringify(this.map) |
| | |
| | | } |
| | | }); |
| | | }, |
| | | getLocStsList() { |
| | | //获取库位状态列表 |
| | | let that = this |
| | | $.ajax({ |
| | | url: baseUrl + "/basLocSts/list/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: "get", |
| | | success: (res) => { |
| | | that.locStsList = res.data.records |
| | | } |
| | | }) |
| | | }, |
| | | getLocSts(locSts) { |
| | | //获取库位状态 |
| | | let locStsList = this.locStsList |
| | | let locDesc = "" |
| | | locStsList.forEach((item,index) => { |
| | | if (item.locSts == locSts) { |
| | | locDesc = item.locDesc |
| | | } |
| | | }) |
| | | return locDesc |
| | | }, |
| | | locMove(locNo) { |
| | | //库位移转 |
| | | let that = this |