| | |
| | | <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('')"> |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | if (uni.getStorageSync('lev1')) { |
| | | this.lev1 = uni.getStorageSync('lev1'); |
| | | // this.lev1 = uni.getStorageSync('lev1'); |
| | | } else { |
| | | this.lev1 = 2 |
| | | this.lev1 = '' |
| | | } |
| | | |
| | | this.getLocMastList() |
| | |
| | | }, |
| | | 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')}, |