| | |
| | | <view class="searchBox"> |
| | | <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> |
| | | <view class="searchArea"> |
| | | <input v-model="barcode" type="text" placeholder="托盘码" @input="searchByBarcode" |
| | | <input v-model="barcode" type="text" placeholder="托盘码" @input="searchByBarcodeTime" |
| | | placeholder-style="line-height: 85rpx;"> |
| | | </view> |
| | | <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" |
| | |
| | | return { |
| | | commonUrl: null, |
| | | matList: [], |
| | | barcode: null |
| | | |
| | | barcode: null, |
| | | timeout: null, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | searchByBarcodeTime() { |
| | | clearTimeout(this.timeout) |
| | | this.timeout = setTimeout(() => { |
| | | this.searchByBarcode() |
| | | },600) |
| | | }, |
| | | // 根据托盘码搜索 |
| | | searchByBarcode() { |
| | | let that = this |