#
zhou zhou
2026-01-15 4e4414bc9d1604fd2a3ed443cb9484143eab7e2c
pages/listing/matnrPalletising.vue
@@ -6,12 +6,12 @@
         <view class="cu-form-group margin-top">
            <view class="title">订单号</view>
            <input placeholder="请输入订单号" v-model="asnCode"></input>
            <text class='cuIcon-search text-blue' @click="search"></text>
            <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
         </view>
         <view class="cu-form-group">
            <view class="title">容器号</view>
            <input placeholder="请扫描容器编码" v-model="container" focus></input>
            <text class='cuIcon-search text-blue' @click="getList"></text>
            <input placeholder="请扫描容器编码" v-model="container" @input="getList" focus></input>
            <!-- <text class='cuIcon-search text-blue' @click="getList"></text> -->
         </view>         
         <view class="cu-form-group">
            <view class="title">物料号</view>
@@ -27,7 +27,7 @@
      
      </view>
      <view class="padding-lr margin-top-sm">
      <view class="padding-lr margin-top-sm" style="padding-bottom: 120upx;">
         <block v-for="(item, index) in list" :key="index">
            <view class="cu-list det menu sm-border margin-bottom-sm " :class="[item.trackCode===barcode&&'act']"
               :ref="item.trackCode+'ref'">
@@ -154,7 +154,7 @@
               <view class="form-item">
                  <text class="form-label">目标库区</text>
                  <view class="input-wrapper picker-wrapper">
                     <picker mode="selector" :range="rangeText" @change="pickerChange">
                     <picker class="picker" mode="selector" :range="rangeText" @change="pickerChange">
                        <view class="picker-view">
                           <text>{{ whAreaId ? selectedText : '请选择库区' }}</text>
                           <text class="cuIcon-right picker-arrow"></text>
@@ -205,7 +205,7 @@
      computed: {
         ...mapState('user', ['dynamicFields']),
         allCount() {
            return this.list.reduce((acc, row) => +row.anfme + acc, 0) || 0
            return this.list.reduce((acc, row) => +row.receiptQty + acc, 0) || 0
         },
         rangeText() {
            return this.range.map(item => item.text)
@@ -216,7 +216,7 @@
         }
      },
      mounted() {
         this.getRece()
         // this.getRece()
         // 获取按钮权限
         this.buttonPermissions = uni.getStorageSync('buttonPermissions') || [];
         console.log('当前页面按钮权限:', this.buttonPermissions);
@@ -323,11 +323,12 @@
               barcode: this.container
            })
            if (code === 200) {
               uni.showToast({
                  title: msg,
                  icon: "success",
                  position: 'top'
               })
               this.range = data.map(item => ({
                  value: item.id,
                  text:  item.name
               }));
               this.whAreaId = this.range[0].value
            } else {
               uni.showToast({
                  title: msg,
@@ -534,7 +535,7 @@
         if (code === 200) {
            this.range = data.map(item => ({
               value: item.id,
               text: item.warehouseId$ + "-- " + item.name
               text:  item.name
            }));
         }
      },
@@ -664,6 +665,9 @@
      color: #333;
      background-color: transparent;
   }
   .picker{
      width: 100%;
   }
   
   .picker-view {
      width: 100%;
@@ -672,7 +676,7 @@
      font-size: 30rpx;
      color: #333;
      display: flex;
      justify-content: space-between;
      justify-content:space-between;
      align-items: center;
   }