#
Your Name
2022-08-16 0cdc24ed926ec628d932027fd4aa7af8d0e5ae86
pages/basics/pakin.vue
@@ -8,8 +8,8 @@
            </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>
@@ -158,6 +158,7 @@
         },
         // barcode input 事件
         barcodeInput() {
            console.log(1)
            // 不设置定时器 会出现扫入的字符串不全
            setTimeout(()=>{
               var len = this.barcode.length
@@ -173,14 +174,12 @@
         },
         // 托盘码有误重置
         barcodeFocuss() {
            // #ifdef APP
            let that = this;
            that.barcodeFocus = false;
            setTimeout(()=>{
               that.barcode = '';
               that.barcodeFocus = true;
            }, 100);
            // #endif
         },
         // 商品光标清空重置
         focuss() {
@@ -312,7 +311,6 @@
                            // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
                            matList: function(data) {
                              that.matList.push(data.data)
                              console.log(that.matList)
                           },
                        },
                        success: function(res) {