skyouc
2025-11-04 bb44fbbe5340a86a16f6deec50cc39a8700e80c6
pages/AGV/AGVOutCall.vue
copy from pages/AGV/AGVMoveCall.vue copy to pages/AGV/AGVOutCall.vue
File was copied from pages/AGV/AGVMoveCall.vue
@@ -2,30 +2,18 @@
   <view>
      <view class="code">         
         <view class="item">
            <view class="code-decs">入库站点:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="orgSite" :focus="barcodeFocus">
         </view>
         <view class="item">
            <view class="code-decs">托盘码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" >
         </view>
         <view class="item">
            <view class="code-decs">目标库位:</view>
            <view class="code-decs">目标站点:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="tarSite" >
            <!-- <uni-combox :candidates="staList" placeholder="请选择站点"  v-model="tarSite"></uni-combox> -->
         </view>
      </view>
      <view class="mat-list-title">
      </view>
      <!-- 底部操作按钮 -->
      <view class="buttom">
         <button size="mini" @click="reset('warn')">重置</button>
         <button size="mini" type="primary" @click="combConfirm('warn')">呼叫</button>
      </view>
      <!-- 弹窗 -->
      <!-- 修改数量 -->
      <!-- 移除确认 -->
      <view>
         <!-- 提示窗示例 -->
@@ -83,21 +71,21 @@
            removeNum: 0,
            locNo:"",
            orgSite:'',
            tarSite:'e',
            tarSite:'',
            staList:[],
         }
      },
      onLoad() {
         let that = this
         const eventChannel = this.getOpenerEventChannel();
         that.getSites()
         // that.getSites()
      },
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
      },
      mounted() {         
         this.tarSite = uni.getStorageSync('tarSite')
         // this.tarSite = uni.getStorageSync('tarSite')
      },
      methods: {
         messageToggle(type) {
@@ -269,16 +257,9 @@
            uni.setStorageSync('tarSite', this.tarSite);
            uni.vibrateShort();
            let that = this;
            if (that.orgSite === '') {
               this.messageText = "产线站为空"
               this.messageToggle('error')
               return;
            }
            uni.request({
               url: that.baseUrl + '/mobile/cache/agv/call',
               url: that.baseUrl + '/mobile/cache/out/call',
               data: JSON.stringify({
                  orgSite: that.orgSite,
                  barcode: that.barcode,
                  tarSite: that.tarSite                  
               }),
               method: 'POST',
@@ -363,7 +344,7 @@
   }
   .code-decs {
      width: 20vw;
      width: 25vw;
      font-size: 18px;
      color: #303133;
   }