| | |
| | | <template> |
| | | <view> |
| | | <view class="code"> |
| | | <view class="item"> |
| | | <!-- <view class="item" style="display: none;"> |
| | | <view class="code-decs">订单号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus" |
| | | @input="orderNoInput()"> |
| | | </view> |
| | | </view> --> |
| | | <view class="item" style="display: none;"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | |
| | | @input="boxType1Input()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">物料码:</view> |
| | | <view class="code-decs">BS Code:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | |
| | | }, |
| | | // 搜索物料 |
| | | findMat() { |
| | | |
| | | if (this.boxType1 == null || this.boxType1 == '') { |
| | | this.messageText = "格层编码不能为空!!" |
| | | this.messageToggle('error') |
| | |
| | | method: 'POST', |
| | | data: { |
| | | orderNo: that.orderNo, |
| | | matnr: that.matnr |
| | | threeCode: that.matnr |
| | | }, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | |
| | | that.matData = result.data |
| | | that.matnr = '' |
| | | that.matData['suppCode'] = '' |
| | | that.orderNo = that.matData[0].orderNo |
| | | uni.navigateTo({ |
| | | url: "../mat/matSelected", |
| | | // 通过eventChannel向被打开页面传送数据 |
| | |
| | | title: result.msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | }) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 另外一个页面传过来的 |
| | | acceptDataFromOpenedPage: function(data) { |
| | | that.matnr = data.data |
| | | |
| | | that.findMat(that.matnr) |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | checkMat(mat) { |
| | | var len = this.dataList.length |
| | | var add = true, |
| | | sameItem = false |
| | | var add = true, sameItem = false |
| | | for (var i = 0; i < len; i++) { |
| | | if (mat.matnr == this.dataList[i].matnr) { |
| | | for (var j = 0; j < len; j++) { |
| | |
| | | @import url('../../static/css/wms.css/wms.css'); |
| | | |
| | | .list:first-child { |
| | | margin-top: 460rpx; |
| | | margin-top: 320rpx; |
| | | } |
| | | |
| | | .code { |
| | |
| | | } |
| | | |
| | | .code-decs { |
| | | width: 20vw; |
| | | width: 28vw; |
| | | font-size: 18px; |
| | | color: #303133; |
| | | } |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | position: fixed; |
| | | margin-top: 300rpx; |
| | | margin-top: 200rpx; |
| | | z-index: 9; |
| | | /* border-top: 1px solid #DCDFE6; */ |
| | | text-align: center; |