#
zhou zhou
2026-03-16 05e891c85909a0716a161987941e321879bc5d52
pages/emptyTray/outBound.vue
@@ -5,7 +5,8 @@
            <view class="title">接驳站点</view>
            <input
               placeholder=" 请扫描接驳站点条码"
               v-model="barcode"
               v-model="agvStationInput"
               @input="checkAgvStation"
            />
         </view>
@@ -55,7 +56,9 @@
         range: [],
         curCode: '',
         palletTypeId: '',
         isconfirm : false
         isconfirm: false,
         agvStationInput: '', // AGV站点输入值
         agvStationName: ''
      }
   },
   computed: {
@@ -66,6 +69,33 @@
         (this.palletTypeId = uni.getStorageSync('palletTypeId'))
   },
   methods: {
      async checkAgvStation() {
         const that = this
         if (this.agvStationInput === '' || this.agvStationInput === null) {
            uni.showToast({
               title: '容器码为空',
               icon: 'none',
               position: 'top'
            })
            return
         }
         const { code, data, msg } = await request('/check/agvStation', {
            transferStationNo: this.agvStationInput
         })
         if (code === 200) {
            this.agvStationName = data.stationName
         } else {
            uni.showToast({
               title: msg,
               icon: 'none',
               position: 'top'
            })
            setTimeout(function () {
               that.agvStationName = ''
               that.agvStationInput = ''
            }, 200)
         }
      },
      selChange(val) {
         uni.setStorageSync('palletTypeId', val.value)
      },
@@ -133,7 +163,7 @@
      },
      async confirm() {
         if (this.barcode === '' || this.barcode === null) {
         if (this.agvStationName === '' || this.agvStationName === null) {
            uni.showToast({
               title: '接驳站点不能为空',
               icon: 'none'
@@ -148,11 +178,11 @@
            return
         } else {
            this.isconfirm = true
            try{
            try {
               const { code, data, msg } = await request(
                  '/callForEmptyContainers',
                  {
                     staNo: this.barcode,
                     staNo: this.agvStationName,
                     type: this.palletTypeId
                  }
               )
@@ -170,10 +200,9 @@
                     position: 'top'
                  })
               }
            }finally{
            } finally {
               this.isconfirm = false
            }
         }
         // const {