| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>库位码</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="locNo" type="text" placeholder="扫码 / 输入" |
| | | placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo()"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="square-1"> |
| | |
| | | check:false, |
| | | checkText:'全选', |
| | | checkedData:[], |
| | | batch:'' |
| | | batch:'', |
| | | locNo:'' |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | resst() { |
| | | this.matList = [] |
| | | this.barcode = '' |
| | | this.locNo = '' |
| | | this.barcodeFocuss() |
| | | uni.vibrateShort(); |
| | | }, |
| | |
| | | this.$nextTick(function() { |
| | | this.barcodeFocus = true; |
| | | }); |
| | | }, |
| | | removeLocNo() { |
| | | this.locNo = '' |
| | | uni.vibrateShort(); |
| | | }, |
| | | removeMatnr() { |
| | | this.matnr = '' |
| | |
| | | uni.showToast({title: '请扫描托盘条码', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | if (that.locNo === '') { |
| | | uni.showToast({title: '请输入库位码', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | if (that.matList.length === 0) { |
| | | uni.showToast({title: '请添加商品列表', icon: "none", position: 'top'}); |
| | | return; |
| | |
| | | url: that.commonUrl + '/mobile/comb/auth', |
| | | data: JSON.stringify({ |
| | | barcode: that.barcode, |
| | | locno: that.locNo, |
| | | combMats: that.matList |
| | | }), |
| | | method: 'POST', |