| | |
| | | <view style="flex: 1;"> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus"> |
| | | </view> |
| | | <view style="height:100%;line-height:2;width:40rpx;margin-right: 20rpx;"> |
| | | <uni-icons type="clear" color="#c1c1c1" @click="clearOrderNo()"></uni-icons> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | | @input="barcodeInput()"> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">物料码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | |
| | | <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> |
| | | <uni-icons type="right" color="#c1c1c1"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="mat-list-title"> |
| | | 商品列表 |
| | |
| | | messageText: '', |
| | | title: '', |
| | | content: '', |
| | | orderNoFocus: true, |
| | | barcodeFocus: false, |
| | | orderNoFocus: false, |
| | | barcodeFocus: true, |
| | | matFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | let that = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | eventChannel.on('orderItem', function(data) { |
| | | console.log(data.item) |
| | | that.orderNo = data.item.orderNo |
| | | that.checkMat(data.item) |
| | | }); |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | |
| | | // 搜索物料 |
| | | findMat() { |
| | | let that = this |
| | | let m = that.matnr.split(";") |
| | | let matnr1 = m[0].slice(3) |
| | | uni.request({ |
| | | url: that.baseUrl + '/mat/auth', |
| | | data: { |
| | | matnr: that.matnr |
| | | matnr: matnr1 |
| | | }, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | |
| | | .code { |
| | | width: 100%; |
| | | position: fixed; |
| | | min-height: 210rpx; |
| | | min-height: 200rpx; |
| | | background-color: #FFF; |
| | | z-index: 10; |
| | | } |
| | |
| | | .item { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 70rpx; |
| | | height: 100rpx; |
| | | margin-left: 20rpx; |
| | | border-bottom: 1px solid #DCDFE6; |
| | | } |