#
whycq
2024-11-28 248ef3ba3de9994dc83d2b36690542893f9fb6e6
pages/phyz/AGV/AGVPakin2.vue
@@ -3,20 +3,20 @@
      <view class="code">
         <view class="item">
            <input type="text" placeholder=" 扫码 / 输入 订单号" v-model="orderNo" :focus="orderNoFocus"
               @input="findOrder()">
               @input="findOrder()" disabled>
         </view>
         <view class="item">
            <input type="text" placeholder=" 扫码 / 输入 货架码" v-model="barcode" :focus="barcodeFocus"
               @input="barcodeInput()">
         </view>
         <view class="item">
         <!-- <view class="item">
            <input type="text" placeholder=" 扫码 / 输入 物料码" v-model="matnr" :focus="matFocus" @input="findMat()">
            <view class="item-right">
               <button></button>
               <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text>
               <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
         </view>
         </view> -->
      </view>
      <view class="mat-list-title">
         商品列表
@@ -181,8 +181,8 @@
            messageText: '',
            title: '',
            content: '',
            orderNoFocus: true,
            barcodeFocus: false,
            orderNoFocus: false,
            barcodeFocus: true,
            matFocus: false,
            matData: '',
            removeNum: 0,
@@ -201,6 +201,16 @@
            }
         },20)
         // #endif
         let that = this
         // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
         const eventChannel = this.getOpenerEventChannel();
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('mats', function(data) {
            console.log(data);
            that.orderNo = data.mats[0].orderNo
            that.dataList = data.mats
         })
      },
      onBackPress() {
         this.hide = false
@@ -513,10 +523,6 @@
                  return;
               }
            }
            console.log(that.dataList);
            console.log(that.barcode);
            console.log(that.orderNo);
            // return
            uni.request({
               url: that.baseUrl + '/agvMobile/comb/auth',
               data: JSON.stringify({
@@ -532,14 +538,12 @@
                  var res = result.data
                  if (res.code === 200) {
                     that.dataList = []
                     that.findOrder()
                     // that.resst();
                     that.barcode = ''
                     that.messageText = "组托成功"
                     that.messageToggle('success')
                     const innerAudioContext = uni.createInnerAudioContext();
                     innerAudioContext.src = '/static/music/pakinOk.mp3';
                     innerAudioContext.play()
                     uni.navigateBack({
                        delta: 2
                     });
                  } else if (res.code == 403) {
                     that.messageText = res.msg
                     that.messageToggle('error')
@@ -600,12 +604,12 @@
   }
   .list:first-child {
      margin-top: 340rpx;
      margin-top: 270rpx;
   }
   .code {
      width: 100%;
      position: fixed;
      min-height: 200rpx;
      min-height: 100rpx;
      background-color: #FFF;
      z-index: 10;
   }
@@ -638,7 +642,7 @@
      width: 100%;
      background-color: white;
      position: fixed;
      margin-top: 210rpx;
      margin-top: 140rpx;
      z-index: 9;
      /* border-top: 1px solid #DCDFE6; */
      text-align: center;