| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMatInput()" |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | |
| | | check:false, |
| | | checkText:'全选', |
| | | checkedData:[], |
| | | batch:'' |
| | | batch:'', |
| | | timeout: null, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | }); |
| | | that.matnr = '' |
| | | }, |
| | | findMatInput() { |
| | | clearTimeout(this.timeout) |
| | | this.timeout = setTimeout(() => { |
| | | this.findMat() |
| | | },600) |
| | | }, |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |