|  |  | 
 |  |  |         <!-- 搜索框 --> | 
 |  |  |         <view class="code"> | 
 |  |  |             <view class="item"> | 
 |  |  |                 <view class="code-decs">托盘码:</view> | 
 |  |  |                 <view class="code-decs">库位码:</view> | 
 |  |  |                 <input type="text" placeholder=" 扫码 / 输入" v-model="locNo"> | 
 |  |  |             </view> | 
 |  |  |             <!-- <view class="item"> | 
 |  |  |             <view class="item"> | 
 |  |  |                 <view class="code-decs">托盘码:</view> | 
 |  |  |                 <input type="text" placeholder=" 扫码 / 输入" v-model="barcode"> | 
 |  |  |             </view> | 
 |  |  |             <view class="item"> | 
 |  |  |                 <view class="code-decs">物料号:</view> | 
 |  |  |                 <input type="text" placeholder=" 扫码 / 输入" v-model="matnr"> | 
 |  |  |                 <view class="item-right"> | 
 |  |  |                 </view> | 
 |  |  |             </view> --> | 
 |  |  |             </view> | 
 |  |  |         </view> | 
 |  |  |         <view class="mat-list-title"> | 
 |  |  |             商品列表 | 
 |  |  | 
 |  |  |                 baseUrl: '', | 
 |  |  |                 token: '', | 
 |  |  |                 locNo: null, | 
 |  |  |                 barcode: null, | 
 |  |  |                 matnr: null, | 
 |  |  |                 dataList: [], | 
 |  |  |                 msgType: '', | 
 |  |  | 
 |  |  |                     data: { | 
 |  |  |                         curr: 1, | 
 |  |  |                         limit: 100, | 
 |  |  |                         zpallet: that.locNo, | 
 |  |  |                         loc_no: that.locNo, | 
 |  |  |                         zpallet: that.barcode, | 
 |  |  |                         matnr: that.matnr | 
 |  |  |                     }, | 
 |  |  |                     method:"GET", | 
 |  |  |                     success(result) { | 
 |  |  |                         console.log(result) | 
 |  |  |                         let res = result.data | 
 |  |  |                         let records = res.data.records | 
 |  |  |                         if (res.code == 200) { | 
 |  |  |                             if (records) { | 
 |  |  |                                 that.dataList = records | 
 |  |  |                                 console.log(that.dataList) | 
 |  |  |                             } else { | 
 |  |  |                                 uni.showToast({ | 
 |  |  |                                     title: "暂无更多数据", | 
 |  |  | 
 |  |  |                 this.dataList = [] | 
 |  |  |                 this.matnr = '' | 
 |  |  |                 this.locNo = '' | 
 |  |  |                 this.barcode = '' | 
 |  |  |                 this.messageText = "重置完成" | 
 |  |  |                 this.messageToggle('success') | 
 |  |  |             }, | 
 |  |  | 
 |  |  |         width: 100%; | 
 |  |  |         background-color: white; | 
 |  |  |         position: fixed; | 
 |  |  |         margin-top: 100rpx; | 
 |  |  |         margin-top: 300rpx; | 
 |  |  |         z-index: 9; | 
 |  |  |         /* border-top: 1px solid #DCDFE6; */ | 
 |  |  |         text-align: center; | 
 
 |  |  | 
 |  |  |     box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2); | 
 |  |  | } | 
 |  |  | .list:first-child { | 
 |  |  |     margin-top: 220rpx; | 
 |  |  |     margin-top: 420rpx; | 
 |  |  | } | 
 |  |  | .list:last-child { | 
 |  |  |     margin-bottom: 120rpx; |