| | |
| | | <view class="text-title">{{matData.specs}}</view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>序列号</text></view> |
| | | <view class="text-title"><text>批号</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.batch"></view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>数量</text></view> |
| | | <view class="text-title"> |
| | | <view> |
| | | <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> |
| | | <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | eventChannel.on('matData', function(data) { |
| | | that.matData = data.data |
| | | }) |
| | | |
| | | }, |
| | | onShow() { |
| | | this.matData.anfme = 0 |
| | | |
| | | }, |
| | | methods: { |
| | | blur() { |
| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="10" |
| | | :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" |
| | | :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | // barcode input 事件 |
| | | barcodeInput() { |
| | | console.log(1) |
| | | // 不设置定时器 会出现扫入的字符串不全 |
| | | setTimeout(()=>{ |
| | | var len = this.barcode.length |
| | |
| | | }, |
| | | // 托盘码有误重置 |
| | | barcodeFocuss() { |
| | | // #ifdef APP |
| | | let that = this; |
| | | that.barcodeFocus = false; |
| | | setTimeout(()=>{ |
| | | that.barcode = ''; |
| | | that.barcodeFocus = true; |
| | | }, 100); |
| | | // #endif |
| | | }, |
| | | // 商品光标清空重置 |
| | | focuss() { |
| | |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 |
| | | matList: function(data) { |
| | | that.matList.push(data.data) |
| | | console.log(that.matList) |
| | | }, |
| | | }, |
| | | success: function(res) { |