wtt
2025-10-30 c219c2c41488d1dc1d48032df57e16bd1582eff8
pages/caigourukujiaoyan/form.vue
@@ -4,7 +4,7 @@
         <view class="form-item">
            <view class="title">条码:</view>
            <view class="right">
               <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" @blur="getCode(hform.HBarCode)" @input="handleInput" />
               <input  v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" @blur="getCode(hform.HBarCode)"  />
            </view>
            <uni-icons type="scan"
               style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
@@ -271,8 +271,13 @@
            async refreshHBarCodeFocus() {
                this.HBarCodeFocus = false
                this.hform.HBarCode = ''
                await this.$nextTick()
                this.HBarCodeFocus = true
                // this.$nextTick(() => {
                //     this.HBarCodeFocus = true
                // })
            setTimeout(() => {
              this.HBarCodeFocus = true;
            }, 300);
            },
         //扫码
         toScanCode() {
@@ -723,17 +728,19 @@
                         }
                         //显示表体明细
                         this.DisBillEntryList()
                     this.refreshHBarCodeFocus()
                         //清空数量
                         this.hform.HQty = ''
                     } else {
                         CommonUtils.playSound(0);
                     this.refreshHBarCodeFocus()
                         uni.showToast({
                             title: res.data.Message,
                             icon: 'none'
                         })
                     }
         
                     this.refreshHBarCodeFocus()
         
                 } catch (e) {
                     CommonUtils.playSound(0)