#
Your Name
2022-07-20 6ff974ca03d6a8b75c2193eae0e267eef1f22b12
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" @input="barcodeInput">
                  <input v-model="barcode" type="text" placeholder="扫码 / 输入" placeholder-style="margin-top:10px" maxlength="10"
                  :focus="barcodeFocus" @confirm="barcodeInput()">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
               </view>
            </view>
@@ -24,7 +24,7 @@
            <view class="square-content">
               <view class="content-input-btn">
                  <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()"
                  :focus="focus">
                  :focus="focus" placeholder-style="margin-top:9px">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
               </view>
               <view class="content-btn">
@@ -94,7 +94,7 @@
               <text class="title">组托数量</text>
            </view>
            <view class="text-box">
               <text>可组数量:{{enableQty}}</text>
               <text>确认组托数量</text>
            </view>
            <view class="changeBox">
               <view class="num-box">
@@ -150,15 +150,19 @@
      methods: {
         // barcode input 事件
         barcodeInput() {
            var len = this.barcode.length
            if (len != 8) {
               uni.showToast({title: '托盘码有误请重试', icon: "none", position: 'top'});
               this.barcodeFocuss()
               return;
            }
            if (len == 8) {
               this.focuss()
            }
            // 不设置定时器 会出现扫入的字符串不全
            setTimeout(()=>{
               var len = this.barcode.length
               if (len != 8) {
                  uni.showToast({title: '托盘码有误请重试', icon: "none", position: 'top'});
                  this.barcodeFocuss()
                  return;
               }
               if (len == 8) {
                  this.focuss()
               }
            },100)
         },
         // 托盘码有误重置
         barcodeFocuss() {
@@ -529,6 +533,7 @@
      height: 180rpx;
      margin: 15rpx;
      border-radius: 20rpx;
      font-size: 12px;
   }
   .data-list:first-child {
      margin-top: 20rpx;
@@ -571,4 +576,50 @@
      width: 80rpx;
      height: 180rpx;
   }
   .revise-box {
      width: 500rpx;
      height: 500rpx;
   }
   .revise-box-top {
      width: 100%;
      height: 100rpx;
      background-color: #fff;
      padding: 10rpx;
   }
   .changeBox {
      width: 100%;
      height: 100rpx;
      line-height: 120rpx;
      text-align: center;
      background-color: #FFF;
      margin-top: 20rpx;
      border-bottom: 1px solid #e3e3e3;
   }
   .text-box {
      width: 100%;
      height: 100rpx;
      line-height: 120rpx;
      text-align: center;
      /* padding-left: 120rpx; */
      background-color: #FFF;
      margin-top: 20rpx;
      border-bottom: 1px solid #e3e3e3;
   }
   .changeBox .num-box {
      display:  inline-block;
      /* float: left; */
   }
   .changeBox button {
      float: left;
   }
   .revise-box-buttom {
      position: absolute;
      width: 100%;
      height: 100rpx;
      line-height: 100rpx;
      background-color: #FFFFFF;
      bottom: 0;
      text-align: center;
   }
</style>