| | |
| | | <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" |
| | |
| | | <view><text style="width: 700rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 700rpx;">批次:{{item.batch}}</text></view> |
| | | <view><text style="width: 700rpx;">单号:{{item.orderNo}}</text></view> |
| | | <view><text style="width: 700rpx;">型号:{{item.model}}</text></view> |
| | | <view><text style="width: 700rpx;">数量:{{item.anfme}}</text></view> |
| | | <view> |
| | | <text style="width: 700rpx;">辅数量:{{item.weight}}</text> |
| | |
| | | return { |
| | | commonUrl: null, |
| | | matList: [], |
| | | barcode: null |
| | | |
| | | barcode: null, |
| | | timeout: null, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | request() { |
| | | let that = this |
| | | if(that.barcode == null || that.barcode == "") { |
| | | that.matList = [] |
| | | return; |
| | | } |
| | | |
| | | uni.request({ |
| | | url: that.commonUrl + '/waitPakin/list/auth', |
| | | header: { |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | searchByBarcodeTime() { |
| | | clearTimeout(this.timeout) |
| | | this.timeout = setTimeout(() => { |
| | | this.searchByBarcode() |
| | | },600) |
| | | }, |
| | | // 根据托盘码搜索 |
| | | searchByBarcode() { |
| | |
| | | |
| | | .data-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 240rpx; |
| | | height: 410rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | |
| | | /* background-color: #ffff7f; */ |
| | | display: inline-block; |
| | | float: left; |
| | | height: 180rpx; |
| | | height: 280rpx; |
| | | width: 500rpx; |
| | | color: #676767; |
| | | } |
| | |
| | | float: right; |
| | | width: 100rpx; |
| | | height: 180rpx; |
| | | line-height: 180rpx; |
| | | line-height: 450rpx; |
| | | } |
| | | |
| | | .data-list-right label { |