|  |  | 
 |  |  |     <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> | 
 |  |  |     <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> | 
 |  |  |     <link rel="stylesheet" href="../../static/css/cool.css" media="all"> | 
 |  |  |     <link rel="stylesheet" href="../../static/css/element.css"> | 
 |  |  |     <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> | 
 |  |  |     <script type="text/javascript" src="../../static/layui/layui.js"></script> | 
 |  |  |     <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 type="text/javascript" src="../../static/js/element.js"></script> | 
 |  |  |     <style> | 
 |  |  |         .pointContainer { | 
 |  |  |             display: flex; | 
 |  |  | 
 |  |  |             margin-top: 1px; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /*.pointBox {*/ | 
 |  |  |         /*    background: #bababa;*/ | 
 |  |  |         /*    width: 40px;*/ | 
 |  |  |         /*    height: 40px;*/ | 
 |  |  |         /*    margin-right: 1px;*/ | 
 |  |  |         /*    display: flex;*/ | 
 |  |  |         /*    justify-content: center;*/ | 
 |  |  |         /*    align-items: center;*/ | 
 |  |  |         /*    font-size: 14px;*/ | 
 |  |  |         /*    user-select: none;*/ | 
 |  |  |         /*    color: #fff;*/ | 
 |  |  |         /*}*/ | 
 |  |  |  | 
 |  |  |         .pointBox { | 
 |  |  |             background: #bababa; | 
 |  |  |             background: #fffef9; | 
 |  |  |             width: 40px; | 
 |  |  |             height: 40px; | 
 |  |  |             margin-right: 1px; | 
 |  |  | 
 |  |  |             font-size: 14px; | 
 |  |  |             user-select: none; | 
 |  |  |             color: #fff; | 
 |  |  |             /*transform: perspective(130px) rotateX(30deg) translateZ(-20px);*/ | 
 |  |  |             box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); | 
 |  |  |             /*border-radius: 50% 20% / 10% 40%;*/ | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBox:hover{ | 
 |  |  |             background: #00ff7f; | 
 |  |  |             /*background: #20a162;*/ | 
 |  |  |             /*background: #55bb8a;*/ | 
 |  |  |             background: #945833; | 
 |  |  |             /*background: #20894d;*/ | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxEmpty { | 
 |  |  |             background: #c2c934; | 
 |  |  |             /*background: #12a182;*/ | 
 |  |  |             background: #57c3c2; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxOut { | 
 |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxInYy { | 
 |  |  |             background: #fa736f; | 
 |  |  |             background: #e2c027; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxGreen { | 
 |  |  |             background: #00ff7f; | 
 |  |  |             background: #945833; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxBlue { | 
 |  |  |             background: #55aaff; | 
 |  |  |             background: #89BCEF; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxRed { | 
 |  |  |             background: #ff0000; | 
 |  |  |             background: #ee4866; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxStart { | 
 |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxDefault { | 
 |  |  |             background: #86779d; | 
 |  |  |             background: #f9f4dc; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxSelected { | 
 |  |  |             background: #00ff7f !important; | 
 |  |  |             /*background: #945833 !important;*/ | 
 |  |  |             background: #20894d !important; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .pointBoxSearch { | 
 |  |  |             background: #9900ff; | 
 |  |  |             background: #8076a3; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .crnLine{ | 
 |  |  | 
 |  |  |             position: relative; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .crnBox{ | 
 |  |  |             width: 120px; | 
 |  |  |             height: 40px; | 
 |  |  |             background: url("../../static/image/Crane_manual.png") no-repeat; | 
 |  |  |             position: absolute; | 
 |  |  |             top: -25px; | 
 |  |  |             left: -120px; | 
 |  |  |             transition:left 2s; | 
 |  |  |             cursor: pointer; | 
 |  |  |         } | 
 |  |  |         /*.crnBox{*/ | 
 |  |  |         /*    width: 120px;*/ | 
 |  |  |         /*    height: 40px;*/ | 
 |  |  |         /*    background: url("../../static/image/Crane_manual.png") no-repeat;*/ | 
 |  |  |         /*    position: absolute;*/ | 
 |  |  |         /*    top: -25px;*/ | 
 |  |  |         /*    left: -120px;*/ | 
 |  |  |         /*    transition:left 2s;*/ | 
 |  |  |         /*    cursor: pointer;*/ | 
 |  |  |         /*}*/ | 
 |  |  |  | 
 |  |  |         .carBox{ | 
 |  |  |             width: 40px; | 
 |  |  |             height: 40px; | 
 |  |  |             background: url("../../static/image/ste/car.png") no-repeat; | 
 |  |  |             background-size: 100% 100%; | 
 |  |  |             position: absolute; | 
 |  |  |             top: 0; | 
 |  |  |             left: 0; | 
 |  |  |             transition:left 2s; | 
 |  |  |             cursor: pointer; | 
 |  |  |         } | 
 |  |  |         /*.carBox{*/ | 
 |  |  |         /*    width: 40px;*/ | 
 |  |  |         /*    height: 40px;*/ | 
 |  |  |         /*    background: url("../../static/image/ste/car.png") no-repeat;*/ | 
 |  |  |         /*    background-size: 100% 100%;*/ | 
 |  |  |         /*    position: absolute;*/ | 
 |  |  |         /*    top: 0;*/ | 
 |  |  |         /*    left: 0;*/ | 
 |  |  |         /*    transition:left 2s;*/ | 
 |  |  |         /*    cursor: pointer;*/ | 
 |  |  |         /*}*/ | 
 |  |  |  | 
 |  |  |         .popBox { | 
 |  |  |             position: absolute; | 
 |  |  | 
 |  |  |  | 
 |  |  |         /*滑动卡片start*/ | 
 |  |  |         .hoverCard { | 
 |  |  |             width: 160px; | 
 |  |  |             width: 152px; | 
 |  |  |             height: 224px; | 
 |  |  |             border-radius: 20px; | 
 |  |  |             background: #f5f5f5; | 
 |  |  | 
 |  |  |     </style> | 
 |  |  | </head> | 
 |  |  | <body> | 
 |  |  | <div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: wrap;" @click="bgClick()"> | 
 |  |  |     <div style="flex: 12;"> | 
 |  |  | <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 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-else-if="map[index][idx].value  == 0" @contextmenu.prevent="rightEvent(index,idx,$event)"> | 
 |  |  |                             <div v-if="map[index][idx].locSts == 'O'" class="pointBox pointBoxBlue">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-if="map[index][idx].locSts == 'O'" :class="{'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxBlue">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'F'" @click.left.stop="selectLoc(index,idx)" :class="{'pointBoxSelected':map[index][idx].locOutSelected,'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxRed">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'D'" class="pointBox pointBoxEmpty">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'P'" class="pointBox pointBoxOut">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'D'" :class="{'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxEmpty">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'P'" :class="{'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxOut">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'R'" :class="{'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxOutYy">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'S'" class="pointBox pointBoxInYy">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else class="pointBox pointBoxDefault">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else-if="map[index][idx].locSts == 'S'" :class="{'pointBoxSearch':map[index][idx].searchStatus}" class="pointBox pointBoxInYy">{{ map[index][idx].locSts }}</div> | 
 |  |  |                             <div v-else class="pointBox pointBoxDefault" :class="{'pointBoxSearch':map[index][idx].searchStatus}">{{ map[index][idx].locSts }}</div> | 
 |  |  |                         </div> | 
 |  |  |  | 
 |  |  |                         <!--堆垛机--> | 
 |  |  | 
 |  |  |  | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |  | 
 |  |  |                 <div style="width: 40px;display: flex;justify-content: center;align-items: center;"> | 
 |  |  |                     {{ getRealRowByX(index) }} | 
 |  |  |                 </div> | 
 |  |  |  | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |     </div> | 
 |  |  |     <div style="padding: 20px;flex: 5;margin-top: -70px;"> | 
 |  |  |     <div style="padding: 20px;flex: 1;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 class="card-details" style="place-content: normal;height: auto;"> | 
 |  |  | 
 |  |  |                         <div style="width: 100%;margin-bottom: 20px;"> | 
 |  |  |                             <div style="display: flex;justify-content: space-between;"> | 
 |  |  |                                 <div><input v-model="searchMatnr" placeholder="物料号" type="text" class="search-input"></div> | 
 |  |  |                                 <div><input v-model="searchOrderNo" placeholder="订单号" type="text" class="search-input"></div> | 
 |  |  |                                 <div style="margin-left: 20px"><input v-model="searchOrderNo" placeholder="订单号" type="text" class="search-input"></div> | 
 |  |  |                             </div> | 
 |  |  |                             <div style="display: flex;justify-content: space-between;margin-top: 10px;"> | 
 |  |  |                                 <div><input style="width: 110px;" v-model="searchMaktx" placeholder="物料名称" type="text" class="search-input"></div> | 
 |  |  | 
 |  |  |                             <button style="width: 100%;margin-top: 10px;" @click="searchLoc" class="layui-btn layui-btn-sm">搜索</button> | 
 |  |  |                         </div> | 
 |  |  |                         <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 style="margin-left: 10px;"> | 
 |  |  |                             <button @click="locToLoc2" class="layui-btn layui-btn-sm">侧边移库</button> | 
 |  |  |                         </div> | 
 |  |  |                         <div v-if="!locOutStatus" style="margin-left: 10px;"> | 
 |  |  | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |                 <button class="card-button">功能区</button> | 
 |  |  |             </div> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             <div class="hoverCard"> | 
 |  |  |                 <div class="card-details"> | 
 |  |  |                     <p class="text-title" style="text-align: center;">库位层 {{currentLev}}</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"> | 
 |  |  |                             <label for="05">5F</label> | 
 |  |  |                             <input id="05" type="radio" v-model="currentLev" name="r" value="5"> | 
 |  |  |                             <label for="06">6F</label> | 
 |  |  |                             <input id="06" type="radio" v-model="currentLev" name="r" value="6"> | 
 |  |  |                             <label for="07">7F</label> | 
 |  |  |                             <input id="07" type="radio" v-model="currentLev" name="r" value="7"> | 
 |  |  |                         </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;">库区 {{areaName}}</p> | 
 |  |  |                     <div class="text-body" style="display: flex;"> | 
 |  |  |                         <div class="floorSelect"> | 
 |  |  |                             <label for="area01">立库</label> | 
 |  |  |                             <input id="area01" type="radio" name="r" v-model="area" value="1" checked=""> | 
 |  |  |                             <label for="area03">平库B区</label> | 
 |  |  |                             <input id="area03" type="radio" v-model="area" name="r" value="3"> | 
 |  |  |                             <label for="area032">平库B区2层</label> | 
 |  |  |                             <input id="area032" type="radio" v-model="area" name="r" value="32"> | 
 |  |  |                             <label for="area04">平库C区</label> | 
 |  |  |                             <input id="area04" type="radio" v-model="area" name="r" value="4"> | 
 |  |  |                             <label for="area042">平库C区2层</label> | 
 |  |  |                             <input id="area042" type="radio" v-model="area" name="r" value="42"> | 
 |  |  |                             <label for="area05">平库D区</label> | 
 |  |  |                             <input id="area05" type="radio" v-model="area" name="r" value="5"> | 
 |  |  |                             <label for="area052">平库D区2层</label> | 
 |  |  |                             <input id="area052" type="radio" v-model="area" name="r" value="52"> | 
 |  |  |  | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |                 <button class="card-button">库区 {{areaName}}</button> | 
 |  |  |             </div> | 
 |  |  |  | 
 |  |  |             <div class="hoverCard"> | 
 |  |  | 
 |  |  |                             <div style="font-size: 10px;">选择结果</div><div class="pointBox pointBoxSelected"></div> | 
 |  |  |                         </div> | 
 |  |  |                         <div style="flex: 1;margin-top: 10px;"> | 
 |  |  |                             <div style="font-size: 10px;">其他</div><div class="pointBox pointBoxDefault">其他</div> | 
 |  |  |                             <div style="font-size: 10px;text-align: center">其他</div><div class="pointBox pointBoxDefault"></div> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |                 <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"> | 
 |  |  |                             <label for="05">5F</label> | 
 |  |  |                             <input id="05" type="radio" v-model="currentLev" name="r" value="5"> | 
 |  |  |                             <label for="06">6F</label> | 
 |  |  |                             <input id="06" type="radio" v-model="currentLev" name="r" value="6"> | 
 |  |  |                             <label for="07">7F</label> | 
 |  |  |                             <input id="07" type="radio" v-model="currentLev" name="r" value="7"> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |                 <button class="card-button">楼层 {{currentLev}}F</button> | 
 |  |  |             </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;"> | 
 |  |  | 
 |  |  |             rightBoxLeft: "0px", | 
 |  |  |             pointContainerWidth: 0, | 
 |  |  |             currentLev: 1, | 
 |  |  |             area:1, | 
 |  |  |             areaName:"立库", | 
 |  |  |             crnList: null, | 
 |  |  |             crnBox: false, | 
 |  |  |             crnBoxTop: "0px", | 
 |  |  | 
 |  |  |             searchLocNo: "", | 
 |  |  |             outSite: null, | 
 |  |  |             outSites: null, | 
 |  |  |             showScale: 85, //控制地图显示大小比例 | 
 |  |  |             showScaleMarks: {//比例滑动条显示标记 | 
 |  |  |                 0: "0%", | 
 |  |  |                 50: { | 
 |  |  |                     style: { | 
 |  |  |                         color: '#1989FA' | 
 |  |  |                     }, | 
 |  |  |                     label: "50%" | 
 |  |  |                 }, | 
 |  |  |                 100: "100%", | 
 |  |  |             }, | 
 |  |  |             locStsList: [],//库位状态列表 | 
 |  |  |             y: 1 | 
 |  |  |         }, | 
 |  |  |         created(){ | 
 |  |  |             this.init() | 
 |  |  | 
 |  |  |                 deep: true, | 
 |  |  |                 handler(val) { | 
 |  |  |                     this.init() | 
 |  |  |                     if (this.searchMatnr != "" | 
 |  |  |                         || this.searchOrderNo != "" | 
 |  |  |                         || this.searchSpecs != "" | 
 |  |  |                         || this.searchMaktx != "" | 
 |  |  |                         || this.searchLocNo != "") { | 
 |  |  |                         this.searchLoc() | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             }, | 
 |  |  |             area: { | 
 |  |  |                 deep: true, | 
 |  |  |                 handler(val) { | 
 |  |  |                     if (val == 1){ | 
 |  |  |                         this.areaName = "立库" | 
 |  |  |  | 
 |  |  |                     }else if (val == 3){ | 
 |  |  |                         this.areaName = "B区" | 
 |  |  |                     } | 
 |  |  |                     else if (val == 4){ | 
 |  |  |                         this.areaName = "C区" | 
 |  |  |                     } | 
 |  |  |                     else if (val == 5){ | 
 |  |  |                         this.areaName = "D区" | 
 |  |  |                     } | 
 |  |  |                     else if (val == 32){ | 
 |  |  |                         this.areaName = "B区2层" | 
 |  |  |                     } | 
 |  |  |                     else if (val == 42){ | 
 |  |  |                         this.areaName = "C区2层" | 
 |  |  |                     } | 
 |  |  |                     else if (val == 52){ | 
 |  |  |                         this.areaName = "D区2层" | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                     this.init() | 
 |  |  |                     if (this.searchMatnr != "" | 
 |  |  |                         || this.searchOrderNo != "" | 
 |  |  |                         || this.searchSpecs != "" | 
 |  |  |                         || this.searchMaktx != "" | 
 |  |  |                         || this.searchLocNo != "") { | 
 |  |  |                         this.searchLoc() | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }, | 
 |  |  | 
 |  |  |             init(){ | 
 |  |  |                 let that = this | 
 |  |  |                 $.ajax({ | 
 |  |  |                     url: baseUrl + "/map/getData/" + this.currentLev + "/auth", | 
 |  |  |                     url: baseUrl + "/map/getData/auth", | 
 |  |  |                     data:{ | 
 |  |  |                         lev : this.currentLev, | 
 |  |  |                         area : this.area | 
 |  |  |                     }, | 
 |  |  |                     headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                     method: "get", | 
 |  |  |                     success: (data) => { | 
 |  |  |                         console.log("========") | 
 |  |  |                         console.log(data) | 
 |  |  |                         console.log("========") | 
 |  |  |                         that.importDataClick(data) | 
 |  |  |                     } | 
 |  |  |                 }) | 
 |  |  |  | 
 |  |  |                 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) | 
 |  |  |             }, | 
 |  |  |             importDataClick(mapData) { | 
 |  |  |                 console.log("========") | 
 |  |  |                 console.log(mapData) | 
 |  |  |                 console.log("========") | 
 |  |  |                 let tmp = JSON.parse(mapData); | 
 |  |  |                 let data = [] | 
 |  |  |                 tmp.forEach((item, index) => { | 
 |  |  | 
 |  |  |                 }) | 
 |  |  |                 this.map = data | 
 |  |  |                 this.printData() | 
 |  |  |             }, | 
 |  |  |             getRealRowByX(x) { | 
 |  |  |                 //获取真实库位行号,通过坐标x | 
 |  |  |                 let data = this.map | 
 |  |  |                 let rowData = data[x] | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 for (var i = 1; i < rowData.length; i++) { | 
 |  |  |  | 
 |  |  |                     if (this.area == 1){ | 
 |  |  |                         if (rowData[i].locNo != undefined) { | 
 |  |  |                             let locNo = rowData[i].locNo; | 
 |  |  |                             return "#" + parseInt(locNo.substr(0, 2)); | 
 |  |  |                         } | 
 |  |  |                     }else if (this.area > 10){ | 
 |  |  |                         if (rowData[i].locNo != undefined) { | 
 |  |  |                             let locNo = rowData[i].locNo; | 
 |  |  |                             return "#" + parseInt(locNo.substr(8, 2)); | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                     else { | 
 |  |  |                         if (rowData[i].locNo != undefined) { | 
 |  |  |                             let locNo = rowData[i].locNo; | 
 |  |  |                             return "#" + parseInt(locNo.substr(7, 2)); | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 return ""; | 
 |  |  |             }, | 
 |  |  |             rightEvent(x, y, e) { | 
 |  |  |                 this.rightBox = true | 
 |  |  | 
 |  |  |                     success: function(layero, index){ | 
 |  |  |                     } | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             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) { | 
 |  |  |                 //库位移转 | 
 |  |  | 
 |  |  |  | 
 |  |  |                                 }) | 
 |  |  |                             }) | 
 |  |  |                             data.forEach((item,index) => { | 
 |  |  |                             // data.forEach((item,index) => { | 
 |  |  |                             //     let locNo = item.locNo | 
 |  |  |                             //     let y = parseInt(locNo.substr(2,3)) | 
 |  |  |                             //     let x = parseInt(locNo.substr(0,2)) | 
 |  |  |                             //     console.log(x) | 
 |  |  |                             //     // if ( (x+2) %5 === 0 ) { | 
 |  |  |                             //     //     x = 5*item.crnNo-2; | 
 |  |  |                             //     // }else | 
 |  |  |                             //     if(x<17){ | 
 |  |  |                             //         if (x % 4 == 0 || (x+1) % 4 == 0){ | 
 |  |  |                             //             x = item.crnNo+x | 
 |  |  |                             //         }else { | 
 |  |  |                             //             x = item.crnNo+x-1 | 
 |  |  |                             //         } | 
 |  |  |                             //     } | 
 |  |  |                             //     console.log(x) | 
 |  |  |                             // | 
 |  |  |                             //     tmp[x][y].searchStatus = true//搜索标记 | 
 |  |  |                             // }) | 
 |  |  |                             data.forEach((item,i) => { | 
 |  |  |                                 let locNo = item.locNo | 
 |  |  |                                 let y = parseInt(locNo.substr(2,3)) | 
 |  |  |                                 let x = parseInt(locNo.substr(0,2)) | 
 |  |  |                                 if (x >= 2 && x <= 12) { | 
 |  |  |                                     x += 1; | 
 |  |  |                                 }else if (x == 13) { | 
 |  |  |                                     x += 2; | 
 |  |  |                                 } | 
 |  |  |  | 
 |  |  |                                 tmp[x][y].searchStatus = true//搜索标记 | 
 |  |  |                                 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("搜索成功"); |