1
zhang
2025-09-26 4a01b5f1b111885aa0cadf3d5f96fee78413be16
pages/AGV/AGVkongban.vue
@@ -1,19 +1,22 @@
<template>
   <view>
      <view class="code">         
         <view class="item">
         <!-- <view class="item">
            <view class="code-decs">站点:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="stationCode" :focus="stationCodeFocus"
               >
         </view>
         </view> -->
         <view class="item">
         <view class="code-decs" style="width: 25vw;">大小托盘:</view>
         <radio-group @change="isFullPlt">
            <label>
               <radio :checked="ck1" style="transform: scale(0.7)"/><text>小托盘</text>
               <radio :checked="ck1" style="transform: scale(0.7)"/><text>低</text>
            </label>
            <label>
               <radio :checked="ck2" style="margin-left: 50rpx;transform: scale(0.7);"/><text>大托盘</text>
               <radio :checked="ck2" style="margin-left: 50rpx;transform: scale(0.7);"/><text>中</text>
            </label>
            <label>
               <radio :checked="ck3" style="margin-left: 50rpx;transform: scale(0.7);"/><text>高</text>
            </label>
         </radio-group>
         </view>
@@ -139,6 +142,7 @@
            fullPlt: '1',
            ck1: true,
            ck2: false,
            ck3: false,
         }
      },
      onLoad() {
@@ -150,20 +154,28 @@
      methods: {
         // 大小托盘
         isFullPlt() {
            var temp = this.ck1
            this.ck1 = this.ck2
            this.ck2 = temp
            if (this.ck1) {
               this.fullPlt = '1'
            } else {
               this.ck1 =true
               this.ck2 =false
               this.ck3 =false
            } else if(this.ck2){
               this.fullPlt = '2'
               this.ck1 =false
               this.ck2 =true
               this.ck3 =false
            }else{
               this.fullPlt = '3'
               this.ck1 =false
               this.ck2 =false
               this.ck3 =true
            }
         },
         stationCodeInput() {
            let that = this;
            that.staList = []
            uni.request({
               url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,
               url: that.baseUrl + '/mobile/empty/plate/out/start',
               header: {
                  'token': uni.getStorageSync('token')
               },               
@@ -455,13 +467,13 @@
         },
         comb() {            
            let that = this;
            if (that.stationCode === '') {
               this.messageText = "请扫描站点"
               this.messageToggle('error')
               return;
            }
            // if (that.stationCode === '') {
            //    this.messageText = "请扫描站点"
            //    this.messageToggle('error')
            //    return;
            // }
            uni.request({
               url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,
               url: that.baseUrl + '/mobile/empty/plate/out/start?type='+that.fullPlt,
               header: {
                  'token': uni.getStorageSync('token')
               },