| | |
| | | <view class="search-area"> |
| | | <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view> |
| | | <input type="text" v-model="zpallet" placeholder=" 托盘条码"/> |
| | | <view class="close-icon" v-show="zpallet" @click="remove(zpallet)"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view> |
| | | <view class="close-icon" v-show="zpallet" @click="remove('zpallet')"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view> |
| | | </view> |
| | | <view class="search-btn"><button @click="getList(zpallet)" class="cu-btn bg-blue">搜索</button></view> |
| | | </view> |
| | |
| | | if (res.data.records.length>0) { |
| | | that.listData = res.data.records |
| | | } else { |
| | | console.log('-----------'); |
| | | that.listData = [] |
| | | uni.showToast({title: '托盘码:' + barcode + ' 无数据!', icon: "none",position: 'center'}) |
| | | } |
| | | } else if(res.code === 403) { |