| | |
| | | <view class="code-decs">单据编号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" |
| | | @input="barcodeInput()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | | <text style="text-align: right;color: #409EFF;" @click="selectOrder()">提取+</text> |
| | | <uni-icons type="right" color="#c1c1c1"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | | <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> |
| | | <uni-icons type="right" color="#c1c1c1"></uni-icons> |
| | | <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> --> |
| | | <!-- <uni-icons type="right" color="#c1c1c1"></uni-icons> --> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="item"> |
| | |
| | | dataList: [], |
| | | count: 0, |
| | | rowNum: '', |
| | | orderNo: '', |
| | | matnr: '', |
| | | matnr: '', |
| | | batch: '', |
| | | weight: '', |
| | |
| | | }); |
| | | that.matnr = '' |
| | | }, |
| | | selectOrder() { |
| | | let that = this |
| | | uni.navigateTo({ |
| | | url: "../order/orderList", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('commonUrl', { |
| | | commonUrl: '' |
| | | }) |
| | | }, |
| | | events: { |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 另外一个页面传过来的 |
| | | acceptDataFromOpenedPage: function(data) { |
| | | that.orderNo = data.data |
| | | //that.findMat(that.matnr) |
| | | }, |
| | | }, |
| | | |
| | | |
| | | }); |
| | | that.orderNo = '' |
| | | }, |
| | | checkMat(mat) { |
| | | var len = this.dataList.length |
| | | var add = true ,sameItem = false |