| | |
| | | </uni-table> |
| | | |
| | | </view> |
| | | <view> |
| | | <button class="cu-btn bg-yellow pda-btn" @click="comb()">组托</button> |
| | | <button class="cu-btn bg-grey pda-btn" @click="reset">重置</button> |
| | | <view style="height: 200rpx;"> |
| | | <!-- 空白层 --> |
| | | </view> |
| | | <view class="cu-bar foot"> |
| | | <view class="flex solid-bottom padding justify-start"> |
| | | <button class="cu-btn bg-yellow lg margin-xs" style="width: 250rpx;" @click="comb()">组 托</button> |
| | | <button class="cu-btn bg-grey lg margin-xs" @click="reset">重 置</button> |
| | | </view> |
| | | </view> |
| | | |
| | | <view> |
| | | <!-- 普通弹窗 --> |
| | | <uni-popup ref="popup" background-color="#fff" style="width: 500rpx;"> |
| | |
| | | if(that.matNo.length===0){ |
| | | return; |
| | | } |
| | | console.log('http://'+ that.baseUrl + ':8082/xgmwms' + "/matCode/auth") |
| | | uni.request({ |
| | | url: that.baseUrl + "/matCode/auth", |
| | | url: that.baseHttp + that.baseIP + that.baseUrl + "/matCode/auth", |
| | | |
| | | header:{ |
| | | 'content-type':'application/x-www-form-urlencoded', |
| | |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | let data = res.data.data |
| | | |
| | | if(res.data.code === 200){ |
| | |
| | | let that = this |
| | | let barcode = that.code |
| | | if(barcode.length === 0){ |
| | | console.log(1) |
| | | that.messageToggle('error') |
| | | that.messageText = '托盘条码为空' |
| | | return; |
| | |
| | | } |
| | | uni.request({ |
| | | |
| | | url: that.baseUrl + "/mobile/comb/auth", |
| | | url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/comb/auth", |
| | | header:{ |
| | | // #ifdef H5 |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | if(res.data.code===200){ |
| | | that.reset() |
| | | that.messageToggle('success') |