|  |  | 
 |  |  | <template> | 
 |  |  |    <view> | 
 |  |  |       <view class="code"> | 
 |  |  |          <uni-search-bar  v-model="searchValue1"  | 
 |  |  |          <!-- <uni-search-bar  v-model="searchValue1"  | 
 |  |  |             maxlength="500" ancel="cancel" @confirm="searchValueInput1()" @clear="clearVal" placeholder="输入 / 扫描 货架码"> | 
 |  |  |          </uni-search-bar> | 
 |  |  |          </uni-search-bar> --> | 
 |  |  |          <view style="display: flex;padding: 10rpx 20rpx;"> | 
 |  |  |             <view class="dropdown"> | 
 |  |  |                <input type="text" style="flex: 1;" v-model="row1"  placeholder="请输入排" @confirm="getLocMastList('')"> | 
 |  |  | 
 |  |  |       onShow() { | 
 |  |  |          this.baseUrl = uni.getStorageSync('baseUrl'); | 
 |  |  |          this.token = uni.getStorageSync('token'); | 
 |  |  |          this.lev1 = uni.getStorageSync('lev1'); | 
 |  |  |          if (uni.getStorageSync('lev1')) { | 
 |  |  |             // this.lev1 = uni.getStorageSync('lev1'); | 
 |  |  |          } else { | 
 |  |  |             this.lev1 = '' | 
 |  |  |          } | 
 |  |  | 			 | 
 |  |  |          this.getLocMastList() | 
 |  |  |          this.barcode = '' | 
 |  |  |       }, | 
 |  |  | 
 |  |  |          }, | 
 |  |  |          getLocMastList(barcode) { | 
 |  |  |             let _this = this | 
 |  |  |             uni.setStorageSync('lev1', this.lev1); | 
 |  |  |             // uni.setStorageSync('lev1', this.lev1); | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/locMast/list/auth`, | 
 |  |  |                header: {'token': uni.getStorageSync('token')}, | 
 |  |  | 
 |  |  |    .locSts-P { | 
 |  |  |       background-color: #ffaa00; | 
 |  |  |    } | 
 |  |  |    .locSts-Q { | 
 |  |  |       background-color: #47a301; | 
 |  |  |    } | 
 |  |  |    .locSts-X { | 
 |  |  |       background-color: #767676; | 
 |  |  |    } |