| | |
| | | <template> |
| | | <view> |
| | | <view class="code"> |
| | | <view class="item"> |
| | | <!-- <view class="item"> |
| | | <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> |
| | |
| | | <view class="desc">格层编码:</view> |
| | | <view class="left-item"> |
| | | <uni-tag :text="item.boxType1" type="primary"></uni-tag> |
| | | </view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">BS Code:</view> |
| | | <view class="left-item"> |
| | | <uni-tag :text="item.threeCode" type="primary"></uni-tag> |
| | | </view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | |
| | | orderNo: null, |
| | | dataList: [], |
| | | count: 0, |
| | | threeCode: '', |
| | | rowNum: '', |
| | | matnr: '', |
| | | suppCode: '', |
| | |
| | | }, |
| | | // 搜索物料 |
| | | findMat() { |
| | | |
| | | if (this.boxType1 == null || this.boxType1 == '') { |
| | | this.messageText = "格层编码不能为空!!" |
| | | this.messageToggle('error') |
| | |
| | | method: 'POST', |
| | | data: { |
| | | orderNo: that.orderNo, |
| | | matnr: that.matnr |
| | | threeCode: that.matnr |
| | | // matnr: 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向被打开页面传送数据 |
| | |
| | | barcode: that.barcode, |
| | | boxType1: that.boxType1, |
| | | combMats: that.dataList, |
| | | type: '1' |
| | | type: '1', |
| | | pakinType: "1" |
| | | }), |
| | | method: 'POST', |
| | | header: { |
| | |
| | | @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; |