#
whycq
2024-05-14 746d109e5fd6d0890e2e11f91c20acde269d5475
pages/pakin/pakin.vue
@@ -7,8 +7,8 @@
               @input="barcodeInput()">
         </view>
         <view class="item">
            <view class="code-decs">品番二维码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()">
            <view class="code-decs">物料二维码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()" maxlength="600">
         </view>
      </view>
      <view class="mat-list-title">
@@ -61,7 +61,7 @@
      <!-- 底部操作按钮 -->
      <view class="buttom">
         <button size="mini" @click="reset('warn')">重置</button>
         <button size="mini" type="primary" @click="combConfirm('warn')">组托</button>
         <button size="mini" type="primary" @click="comb()">组托</button>
      </view>
      <!-- 弹窗 -->
      <!-- 修改数量 -->
@@ -186,6 +186,7 @@
         // 托盘码有误重置
         barcodeFocuss() {
            let that = this;
            this.matFocus = false;
            that.barcodeFocus = false;
            setTimeout(() => {
               that.barcode = '';
@@ -194,7 +195,7 @@
         },
         // 商品光标清空重置
         focuss() {
            this.focus = false;
            this.matFocus = false;
            setTimeout(() => {
               this.matnr = '';
               this.matFocus = true;
@@ -339,7 +340,7 @@
            uni.request({
               url: that.baseUrl + '/mobile/comb/auth',
               data: JSON.stringify({
                  barcode: that.barcode,
                  threeCode: that.barcode,
                  combMats: that.dataList
               }),
               method: 'POST',
@@ -379,8 +380,10 @@
         // 确认重置
         resetConfirm() {
            this.dataList = []
            this.barcode = ''
            this.messageText = "重置完成"
            this.messageToggle('success')
            this.barcodeFocuss()
         },
         // 取消重置
         resetClose() {
@@ -427,7 +430,7 @@
   .code-decs {
      width: 20vw;
      font-size: 18px;
      font-size: 14px;
      color: #303133;
   }
@@ -448,4 +451,4 @@
      text-align: center;
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
   }
</style>
</style>