zhou zhou
14 小时以前 653d7cc01713b1517186de08944d1c8a929ba3ed
pages/emptyTray/inBound.vue
@@ -8,7 +8,7 @@
         </view>
         <view class="cu-form-group ">
            <view class="title">接驳站点</view>
            <input placeholder="请扫描接驳站点条码" v-model="barcode" ></input>
            <input placeholder="请扫描接驳站点条码" v-model="agvStationInput" @input="checkAgvStation"></input>
         </view>
      </form>
@@ -114,6 +114,8 @@
            list: [],
            range: [],
            curCode: '',
            agvStationInput: '', // AGV站点输入值
            agvStationName: '',
            buttonPermissions: [] // 按钮权限列表
         }
      },
@@ -126,6 +128,33 @@
         console.log('当前页面按钮权限:', this.buttonPermissions);
      },
      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)
            }
         },
         async search() {
            const {
               code,
@@ -185,7 +214,7 @@
               })
               return ;
            }
            if(this.barcode === '' || this.barcode ===null){
            if(this.agvStationName === '' || this.agvStationName ===null){
               uni.showToast({
                  title: "接驳站码不能为空",
                  icon: "none",
@@ -198,7 +227,7 @@
               msg
            } = await request('/in/emptyContainer/warehousing',{
                  containerNo: this.container,
                  transferStationNo: this.barcode
                  transferStationNo: this.agvStationName
               }
            )
            if (code === 200) {