|  |  | 
 |  |  |     <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script> | 
 |  |  |     <script type="text/javascript" src="../../static/js/common.js"></script> | 
 |  |  |     <script type="text/javascript" src="../../static/js/vue.min.js"></script> | 
 |  |  |     <script src="../../static/js/element.js"></script> | 
 |  |  |     <script type="text/javascript" src="../../static/js/element.js"></script> | 
 |  |  |     <style> | 
 |  |  |         .pointContainer { | 
 |  |  |             display: flex; | 
 |  |  | 
 |  |  |  | 
 |  |  |         /*滑动卡片start*/ | 
 |  |  |         .hoverCard { | 
 |  |  |             width: 160px; | 
 |  |  |             width: 150px; | 
 |  |  |             height: 224px; | 
 |  |  |             border-radius: 20px; | 
 |  |  |             background: #f5f5f5; | 
 |  |  | 
 |  |  | </head> | 
 |  |  | <body> | 
 |  |  | <div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: wrap;" @click="bgClick()"> | 
 |  |  |     <div style="flex: 12;" :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}"> | 
 |  |  |     <div style="flex: 12;display: flex;" :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}"> | 
 |  |  |         <div> | 
 |  |  |             <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> | 
 |  |  |         </div> | 
 |  |  |  | 
 |  |  |         <div> | 
 |  |  |             <div style="margin-top: 20px;"><button class="layui-btn" @click="currentLev = 1" :style="{background: currentLev==1?'red':''}">1F</button></div> | 
 |  |  |             <div style="margin-top: 20px;"><button class="layui-btn" @click="currentLev = 2" :style="{background: currentLev==2?'red':''}">2F</button></div> | 
 |  |  |             <div style="margin-top: 20px;"><button class="layui-btn" @click="currentLev = 3" :style="{background: currentLev==3?'red':''}">3F</button></div> | 
 |  |  |             <div style="margin-top: 20px;"><button class="layui-btn" @click="currentLev = 4" :style="{background: currentLev==4?'red':''}">4F</button></div> | 
 |  |  |         </div> | 
 |  |  |     </div> | 
 |  |  |     <div style="padding: 20px;flex: 5;margin-top: -70px;"> | 
 |  |  |     <div style="padding: 40px 20px 10px 10px;flex: 5;margin-top: -70px;"> | 
 |  |  |         <el-slider v-model="showScale" :marks="showScaleMarks"></el-slider> | 
 |  |  |         <div style="display: flex;justify-content: space-between;flex-wrap: wrap;"> | 
 |  |  |             <div class="hoverCard" style="width: 100%;"> | 
 |  |  | 
 |  |  | <!--                        <div>--> | 
 |  |  | <!--                            <button @click="locToLoc2" class="layui-btn layui-btn-sm">侧边移库</button>--> | 
 |  |  | <!--                        </div>--> | 
 |  |  |                         <div v-if="!locOutStatus"> | 
 |  |  |                         <div> | 
 |  |  |                             <button @click="init" class="layui-btn layui-btn-sm">刷新</button> | 
 |  |  |                         </div> | 
 |  |  |                         <div style="margin-left: 10px;"> | 
 |  |  |                             <button @click="resetSearch" class="layui-btn layui-btn-sm">重置</button> | 
 |  |  |                         </div> | 
 |  |  |                         <div v-if="!locOutStatus" style="margin-left: 10px;"> | 
 |  |  |                             <button @click="locOutStatus = true" class="layui-btn layui-btn-sm">出库选择</button> | 
 |  |  |                         </div> | 
 |  |  |                         <div v-else style="margin-left: 10px;border: 1px red solid;display: flex;"> | 
 |  |  | 
 |  |  |                 <button class="card-button">库位状态</button> | 
 |  |  |             </div> | 
 |  |  |  | 
 |  |  |             <div class="hoverCard"> | 
 |  |  |                 <div class="card-details"> | 
 |  |  |                     <p class="text-title" style="text-align: center;">楼层 {{currentLev}}F</p> | 
 |  |  |                     <div class="text-body" style="display: flex;"> | 
 |  |  |                         <div class="floorSelect"> | 
 |  |  |                             <label for="01">1F</label> | 
 |  |  |                             <input id="01" type="radio" name="r" v-model="currentLev" value="1" checked=""> | 
 |  |  |                             <label for="02">2F</label> | 
 |  |  |                             <input id="02" type="radio" v-model="currentLev" name="r" value="2"> | 
 |  |  |                             <label for="03">3F</label> | 
 |  |  |                             <input id="03" type="radio" v-model="currentLev" name="r" value="3"> | 
 |  |  |                             <label for="04">4F</label> | 
 |  |  |                             <input id="04" type="radio" v-model="currentLev" name="r" value="4"> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |                 <button class="card-button">楼层 {{currentLev}}F</button> | 
 |  |  |             </div> | 
 |  |  | <!--            <div class="hoverCard">--> | 
 |  |  | <!--                <div class="card-details">--> | 
 |  |  | <!--                    <p class="text-title" style="text-align: center;">楼层 {{currentLev}}F</p>--> | 
 |  |  | <!--                    <div class="text-body" style="display: flex;">--> | 
 |  |  | <!--                        <div class="floorSelect">--> | 
 |  |  | <!--                            <label for="01">1F</label>--> | 
 |  |  | <!--                            <input id="01" type="radio" name="r" v-model="currentLev" value="1" checked="">--> | 
 |  |  | <!--                            <label for="02">2F</label>--> | 
 |  |  | <!--                            <input id="02" type="radio" v-model="currentLev" name="r" value="2">--> | 
 |  |  | <!--                            <label for="03">3F</label>--> | 
 |  |  | <!--                            <input id="03" type="radio" v-model="currentLev" name="r" value="3">--> | 
 |  |  | <!--                            <label for="04">4F</label>--> | 
 |  |  | <!--                            <input id="04" type="radio" v-model="currentLev" name="r" value="4">--> | 
 |  |  | <!--                        </div>--> | 
 |  |  | <!--                    </div>--> | 
 |  |  | <!--                </div>--> | 
 |  |  | <!--                <button class="card-button">楼层 {{currentLev}}F</button>--> | 
 |  |  | <!--            </div>--> | 
 |  |  |  | 
 |  |  |         </div> | 
 |  |  |     </div> | 
 |  |  | 
 |  |  |                     库位号: {{ 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;"> | 
 |  |  | 
 |  |  |             searchLocNo: "", | 
 |  |  |             outSite: null, | 
 |  |  |             outSites: null, | 
 |  |  |             showScale: 75, //控制地图显示大小比例 | 
 |  |  |             showScale: 77, //控制地图显示大小比例 | 
 |  |  |             showScaleMarks: {//比例滑动条显示标记 | 
 |  |  |                 0: "0%", | 
 |  |  |                 50: { | 
 |  |  | 
 |  |  |                     label: "50%" | 
 |  |  |                 }, | 
 |  |  |                 100: "100%", | 
 |  |  |             } | 
 |  |  |             }, | 
 |  |  |             locStsList: [],//库位状态列表 | 
 |  |  |         }, | 
 |  |  |         created(){ | 
 |  |  |             this.init() | 
 |  |  | 
 |  |  |                 deep: true, | 
 |  |  |                 handler(val) { | 
 |  |  |                     this.init() | 
 |  |  |                     if (this.searchMatnr != "" | 
 |  |  |                         || this.searchOrderNo != "" | 
 |  |  |                         || this.searchSpecs != "" | 
 |  |  |                         || this.searchMaktx != "" | 
 |  |  |                         || this.searchLocNo != "") { | 
 |  |  |                         this.searchLoc() | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }, | 
 |  |  | 
 |  |  |  | 
 |  |  |                 this.locOutStatus = false | 
 |  |  |                 this.locOutLocNo = [] | 
 |  |  |  | 
 |  |  |                 this.getLocStsList();//获取库位状态列表 | 
 |  |  |             }, | 
 |  |  |             resetSearch(){ | 
 |  |  |                 this.searchMatnr = "" | 
 |  |  |                 this.searchOrderNo = "" | 
 |  |  |                 this.searchSpecs = "" | 
 |  |  |                 this.searchMaktx = "" | 
 |  |  |                 this.searchLocNo = "" | 
 |  |  |                 this.searchLoc() | 
 |  |  |             }, | 
 |  |  |             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 |