#
zjj
2024-10-30 f62410d5ff3124f13612235eea6583088fadffcf
pages/order/orderPakin2.vue
@@ -6,16 +6,14 @@
            <view style="flex: 1;">
               <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus">
            </view>
            <view style="height:100%;line-height:2;width:40rpx;margin-right: 20rpx;">
               <uni-icons type="clear" color="#c1c1c1" @click="clearOrderNo()"></uni-icons>
            </view>
         </view>
         <view class="item">
            <view class="code-decs">托盘码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus"
               @input="barcodeInput()">
         </view>
         <view class="item">
         <!-- <view class="item">
            <view class="code-decs">物料码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()">
            <view class="item-right">
@@ -23,7 +21,7 @@
               <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">
         商品列表
@@ -162,15 +160,22 @@
            messageText: '',
            title: '',
            content: '',
            orderNoFocus: true,
            barcodeFocus: false,
            orderNoFocus: false,
            barcodeFocus: true,
            matFocus: false,
            matData: '',
            removeNum: 0,
         }
      },
      onLoad() {
         let that = this
         const eventChannel = this.getOpenerEventChannel();
         eventChannel.on('orderItem', function(data) {
            console.log(data.item)
            that.orderNo = data.item.orderNo
            that.checkMat(data.item)
         });
      },
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
@@ -234,10 +239,12 @@
         // 搜索物料
         findMat() {
            let that = this
            let m = that.matnr.split(";")
            let matnr1 = m[0].slice(3)
            uni.request({
               url: that.baseUrl + '/mat/auth',
               data: {
                  matnr: that.matnr
                  matnr: matnr1
               },
               header: {
                  'token': uni.getStorageSync('token')
@@ -493,7 +500,7 @@
   .code {
      width: 100%;
      position: fixed;
      min-height: 210rpx;
      min-height: 200rpx;
      background-color: #FFF;
      z-index: 10;
   }
@@ -501,7 +508,7 @@
   .item {
      display: flex;
      align-items: center;
      height: 70rpx;
      height: 100rpx;
      margin-left: 20rpx;
      border-bottom: 1px solid #DCDFE6;
   }