| | |
| | | <text class="title">托盘条码</text> |
| | | </view> |
| | | <view class="box-buttom"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8" @input="findBarcode()"> |
| | | <view class="search-icon"> |
| | | <uni-icons type="closeempty" size="20" color="#a5a5a5" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | |
| | | <button class="cu-btn lg" @click="resst()">重置</button> |
| | | </view> |
| | | <view> |
| | | <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">组托</button> |
| | | <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">确认</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/query/auth', |
| | | data: { |
| | | matnr:that.matnr |
| | | }, |
| | |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | uni.vibrateShort(); |
| | | let res = result.data |
| | | if (res.code === 200 && res.data) { |
| | | that.matData = res.data |
| | | uni.navigateTo({ |
| | | url: "matQuery", |
| | | events: { |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 |
| | | matList: function(data) { |
| | | that.matList.push(data.data) |
| | | }, |
| | | }, |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('matData', { data: that.matData }) |
| | | } |
| | | }); |
| | | } |
| | | console.log(result) |
| | | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | findBarcode() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/query/auth', |
| | | data: { |
| | | barcode:that.barcode |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | getOutBound() { // 获取出库口 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/available/take/check/site', |
| | | method: 'POST', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | that.staNoList = res.data |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | }, |
| | | }); |
| | | }, // getOutBound |
| | | change(e) { |
| | | console.log('当前模式:' + e.type + ',状态:' + e.show); |
| | | }, |