| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input type="text" v-model="locno" placeholder="扫码 / 输入" :focus="locnoFocus"> |
| | | <uni-icons v-show="locno" type="closeempty" size="20" color="#dadada" @click="remove('locno')"></uni-icons> |
| | | <input type="text" v-model="locNo" placeholder="扫码 / 输入" :focus="locnoFocus"> |
| | | <uni-icons v-show="locNo" type="closeempty" size="20" color="#dadada" @click="remove('locno')"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | locno: '', |
| | | locNo: '', |
| | | locnoFocus: true, |
| | | matnr: '', |
| | | matnrFocus: true, |
| | |
| | | }, |
| | | resst() { |
| | | this.matList = [] |
| | | this.locno = '' |
| | | this.locNo = '' |
| | | // this.barcodeFocuss() |
| | | uni.vibrateShort(); |
| | | }, |
| | | comb() { |
| | | uni.vibrateShort(); |
| | | let that = this; |
| | | if (that.locno === '') { |
| | | if (that.locNo === '') { |
| | | uni.showToast({title: '请扫描库位条码', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | |
| | | } |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/comb/auth', |
| | | url: that.commonUrl + '/locCheck/pda', |
| | | data: JSON.stringify({ |
| | | barcode: that.barcode, |
| | | locNo: that.locNo, |
| | | combMats: that.matList |
| | | }), |
| | | method: 'POST', |