| | |
| | | @input="barcodeInput()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">批次号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="batch" :focus="batchFocus" @input="findMat()"> |
| | | <view class="code-decs">验布码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="batchCode" :focus="batchFocus" @input="findMat()"> |
| | | <!-- <view class="item-right"> |
| | | <button></button> |
| | | <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> |
| | |
| | | rowNum: '', |
| | | matnr: '', |
| | | batch: '', |
| | | batchCode: '', |
| | | weight: '', |
| | | msgType1: 'success', |
| | | msgType: 'success', |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/mat/tiaoma/auth?barcode=' + that.batch, |
| | | url: that.baseUrl + '/mobile/mat/tiaoma/auth?barcode=' + that.batchCode, |
| | | |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | |
| | | that.dataList.unshift(result.data) |
| | | that.focuss() |
| | | } else if (result.code == 403) { |
| | | console.info(123) |
| | | uni.showToast({ |
| | | title: result.msg, |
| | | icon: "none", |
| | |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/comb/auth', |
| | | data: JSON.stringify({ |
| | | beBatch: 1, |
| | | beBatch: 0, |
| | | barcodeSize: '0', |
| | | rsta: that.rsta, |
| | | barcode: that.barcode, |