| | |
| | | <style> |
| | | .pointContainer { |
| | | display: flex; |
| | | justify-content: center; |
| | | justify-content: flex-start; |
| | | margin-top: 1px; |
| | | } |
| | | |
| | |
| | | |
| | | .pointBox { |
| | | background: #fffef9; |
| | | width: 40px; |
| | | height: 40px; |
| | | width: 35px; |
| | | height: 35px; |
| | | margin-right: 1px; |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: nowrap; scale: 0.9" @click="bgClick()"> |
| | | <div style="flex: 3;" :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}"> |
| | | <div> |
| | | <div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: nowrap; " @click="bgClick()"> |
| | | <div style="flex: 3;overflow: auto; " :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}"> |
| | | <div style="width: 100%;overflow: auto;"> |
| | | <div class="pointContainer" v-for="(x,index) in map" :key="index"> |
| | | <div v-if="index != 0 && (index != map.length-1)" v-for="(y,idx) in x" :key="idx"> |
| | | <div v-if="idx != 0 && (idx != map[index].length-1)"> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="width: 40px;display: flex;justify-content: center;align-items: center;"> |
| | | <div style="width: 40px; display: flex;justify-content: flex-end;align-items: center;"> |
| | | {{ getRealRowByX(index) }} |
| | | </div> |
| | | |
| | |
| | | <div style="margin-top: 5px;"> |
| | | <button class="layui-btn layui-btn-sm" @click="openLocDetail(map[mapI][mapJ].locNo)">库位详情</button> |
| | | </div> |
| | | <div style="margin-top: 5px;"> |
| | | <button v-if="map[mapI][mapJ].locSts == 'F'" class="layui-btn layui-btn-sm" @click="locMove(map[mapI][mapJ].locNo)">库位移转</button> |
| | | <button v-else-if="map[mapI][mapJ].locSts == 'D'" class="layui-btn layui-btn-sm" @click="locMove(map[mapI][mapJ].locNo)">库位移转</button> |
| | | <button v-else class="layui-btn layui-btn-sm layui-btn-disabled" disabled>库位移转</button> |
| | | </div> |
| | | <!-- <div style="margin-top: 5px;">--> |
| | | <!-- <button v-if="map[mapI][mapJ].locSts == 'F'" class="layui-btn layui-btn-sm" @click="locMove(map[mapI][mapJ].locNo)">库位移转</button>--> |
| | | <!-- <button v-else-if="map[mapI][mapJ].locSts == 'D'" class="layui-btn layui-btn-sm" @click="locMove(map[mapI][mapJ].locNo)">库位移转</button>--> |
| | | <!-- <button v-else class="layui-btn layui-btn-sm layui-btn-disabled" disabled>库位移转</button>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | val.searchStatus = false//搜索标记 |
| | | data2.push(val) |
| | | }) |
| | | this.pointContainerWidth = item.length * (40+1) |
| | | this.pointContainerWidth = item.length * (35+1) |
| | | data.push(data2) |
| | | }) |
| | | this.map = data |
| | |
| | | let locNo = rowData[i].locNo; |
| | | return "#" + parseInt(locNo.substr(0, 2)); |
| | | } |
| | | }else if (this.area > 10){ |
| | | }else if (this.area == 6){ |
| | | if (rowData[i].locNo != undefined) { |
| | | let locNo = rowData[i].locNo; |
| | | return "#" + parseInt(locNo.substr(8, 2)); |
| | | return "#" + parseInt(locNo.substr(7, 2)); |
| | | } |
| | | } |
| | | else { |
| | |
| | | return "#" + parseInt(locNo.substr(7, 2)); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | return ""; |