zhou zhou
2026-03-19 eea08904d36b4ede047f7f08709da5e9046fbde5
pages/inbound/buffStore.vue
@@ -29,6 +29,15 @@
            <input
               placeholder="请扫描接驳站点条码"
               v-model="palletStaBarcode"
               @input="checkAgvStation"
            />
         </view>
         <view class="cu-form-group">
            <view class="title">站点名称:</view>
            <input
               disabled
               placeholder="这里显示站点名称"
               v-model="agvStationName"
            />
         </view>
         <view class="cu-bar btn-group top margin-top">
@@ -153,52 +162,6 @@
            </view>
         </view>
      </view>
      <!-- <view class="cu-list det menu sm-border  padding">
         <block v-for="(item, index) in list" :key="index">
            <view class="cu-bar bg-white solid-bottom margin-top-sm">
               <view class="action">
                  <view class="index">
                     {{index+1}}
                  </view>
                  <view class="text-blue">
                     {{`${item.maktx}`}}
                  </view>
               </view>
                  <view class="action" >
                  <text @click="remove(index)" class="cuIcon-close text-red" style="font-size: 24px;"></text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">ASN:</text>
               </view>
               <view class="action">
                  <text class="text-grey ">{{item.asnCode}}</text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">批次:</text>
               </view>
               <view class="action">
                  <text class="text-grey ">{{item.batch}}</text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">收货数量:</text>
               </view>
               <view class="action">
                  <text class="text-grey ">{{item.anfme}}</text>
               </view>
            </view>
         </block>
      </view> -->
   </view>
</template>
@@ -226,7 +189,8 @@
         palletStaBarcode: '',
         matNr: '',
         makTx: '',
         transferStationNo: ''
         transferStationNo: '',
         agvStationName: ''
      }
   },
   computed: {
@@ -238,6 +202,36 @@
      this.whAreaId = uni.getStorageSync('whAreaId')
   },
   methods: {
      async checkAgvStation() {
         const that = this
         if (
            this.palletStaBarcode === '' ||
            this.palletStaBarcode === null
         ) {
            uni.showToast({
               title: '站点号为空',
               icon: 'none',
               position: 'top'
            })
            return
         }
         const { code, data, msg } = await request('/check/agvStation', {
            transferStationNo: this.palletStaBarcode
         })
         if (code === 200) {
            this.agvStationName = data.stationId
         } else {
            uni.showToast({
               title: msg,
               icon: 'none',
               position: 'top'
            })
            setTimeout(function () {
               that.agvStationName = ''
               that.palletStaBarcode = ''
            }, 200)
         }
      },
      toEmptyIn() {
         uni.navigateTo({
            url: '/pages/emptyTray/inBound'
@@ -448,20 +442,20 @@
                  icon: 'success'
               })
               // 更新物料编码、物料名称
               // this.matNr = item.matnrCode || ''
               // this.makTx = '&nbsp;待入库物料名称:' + (item.makTx || '')
               this.matNr = item.matnrCode || ''
               this.makTx = '&nbsp;待入库物料名称:' + (item.makTx || '')
               // 从列表中移除该项
               // const index = this.bagList.findIndex(
               //    (i) => i.palletId === item.palletId
               // )
               // if (index > -1) {
               //    this.bagList.splice(index, 1)
               // }
               // // 如果列表为空,关闭弹窗
               // if (this.bagList.length === 0) {
               //    this.closeModal()
               // }
               const index = this.bagList.findIndex(
                  (i) => i.palletId === item.palletId
               )
               if (index > -1) {
                  this.bagList.splice(index, 1)
               }
               // 如果列表为空,关闭弹窗
               if (this.bagList.length === 0) {
                  this.closeModal()
               }
            } else {
               uni.showToast({
                  title: msg,