| | |
| | | @input="findOrder()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <view class="code-decs">料箱码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | | @input="barcodeInput()"> |
| | | </view> |
| | |
| | | orderNoFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | tempOrderInfo: {csocode: '',isoseq: ''} |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200 && res.data[0]) { |
| | | for (var i = 0; i < res.data[0].combMats.length; i++) { |
| | | that.checkMat(res.data[0].combMats[i]) |
| | | if (res.code === 200) { |
| | | if(res.data) { |
| | | for (var i = 0; i < res.data[0].combMats.length; i++) { |
| | | that.checkMat(res.data[0].combMats[i]) |
| | | } |
| | | that.tempOrderInfo.csocode = res.data[0].combMats.csocode ? res.data[0].combMats.csocode : '' |
| | | that.tempOrderInfo.isoseq = res.data[0].combMats.isoseq ? res.data[0].combMats.isoseq : '' |
| | | } else { |
| | | uni.showToast({ |
| | | title: that.orderNo + '请检查订单号是否正确', |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | } |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ |
| | |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mat/auth', |
| | | data: { |
| | | matnr: that.matnr |
| | | }, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | | }, |
| | | data: { matnr: that.matnr }, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | success(result) { |
| | | result = result.data |
| | | if (result.code === 200 && result.data) { |
| | |
| | | that.matnr = '' |
| | | that.matData['batch'] = '' |
| | | uni.navigateTo({ |
| | | url: "../mat/matSelected", |
| | | url: "../../mat/matSelected", |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | success: function(res) { |
| | | res.eventChannel.emit('mat', { |
| | | data: result.data |
| | | data: result.data, |
| | | tempOrderInfo: that.tempOrderInfo |
| | | }) |
| | | }, |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 |
| | |
| | | selectMat() { |
| | | let that = this |
| | | uni.navigateTo({ |
| | | url: "../mat/matQuery", |
| | | url: "../../mat/matQuery", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('commonUrl', { |
| | |
| | | @import url('../../../static/css/wms.css/wms.css'); |
| | | |
| | | .list:first-child { |
| | | margin-top: 460rpx; |
| | | margin-top: 340rpx; |
| | | } |
| | | .code { |
| | | width: 100%; |
| | |
| | | .item { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | height: 70rpx; |
| | | margin-left: 20rpx; |
| | | border-bottom: 1px solid #DCDFE6; |
| | | } |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | position: fixed; |
| | | margin-top: 300rpx; |
| | | margin-top: 210rpx; |
| | | z-index: 9; |
| | | /* border-top: 1px solid #DCDFE6; */ |
| | | text-align: center; |