888
zhang
2025-05-24 24f8c69039edd1e07b8b0a5b5c2cb8d5c3c00e3d
pages/pakin/pakin.vue
@@ -5,6 +5,11 @@
            <view class="code-decs">单据编号:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" 
               @input="barcodeInput()">
               <view class="item-right">
                  <button></button>
                  <text style="text-align: right;color: #409EFF;" @click="selectOrder()">提取+</text>
                  <uni-icons type="right" color="#c1c1c1"></uni-icons>
               </view>
         </view>
         <view class="item">
            <view class="code-decs">托盘码:</view>
@@ -16,8 +21,8 @@
            <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>
               <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> -->
               <!-- <uni-icons type="right" color="#c1c1c1"></uni-icons> -->
            </view>
         </view>
         <!-- <view class="item">
@@ -164,6 +169,8 @@
            dataList: [],
            count: 0,
            rowNum: '',
            orderNo: '',
            matnr: '',
            matnr: '',
            batch: '',
            weight: '',
@@ -320,6 +327,28 @@
            });
            that.matnr = ''
         },
         selectOrder() {
            let that = this
            uni.navigateTo({
               url: "../order/orderList",
               success: function(res) {
                  // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                  res.eventChannel.emit('commonUrl', {
                     commonUrl: ''
                  })
               },
               events: {
                  // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的
                  acceptDataFromOpenedPage: function(data) {
                     that.orderNo = data.data
                     //that.findMat(that.matnr)
                  },
               },
            });
            that.orderNo = ''
         },
         checkMat(mat) {
            var len = this.dataList.length
            var add = true ,sameItem = false