lbq
2025-12-23 94d565b9bc2d441972f203ace2423dc1fe156934
pages/AGV/StartInTask.vue
@@ -1,11 +1,19 @@
<template>
   <view class="has-foot">
      <form>
         <view class="cu-form-group ">
            <view class="title">接驳站</view>
            <input placeholder="请扫描接驳站条码" v-model="barcode" ></input>
         <view class="cu-form-group margin-top">
            <view class="title">接驳站点</view>
            <input placeholder="请扫描接驳站点条码" v-model="barcode" ></input>
            <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
         </view>
         <view class="cu-form-group">
            <view class="title">容器号</view>
            <input placeholder="请扫描容器编码" v-model="barcode" ></input>
            <text class='cuIcon-search text-blue' @click="search"></text>
         </view>   
<!--          <view class="flex solid-bottom padding-sm justify-between">
            <view class="text-blue margin-left">容器码:{{container}}</view>
         </view> -->
         <view class="cu-form-group">
            <view class="title">目标库区</view>
            <view style="width: 75%;">
@@ -14,11 +22,6 @@
            </view>
         </view>
      </form>
      <view class="flex solid-bottom padding-sm justify-between">
         <view class="text-blue">容器码:{{container}}</view>
      </view>
      <view class="cu-list det menu sm-border  padding">
@@ -70,7 +73,7 @@
      <view class="cu-bar btn-group foot">
         <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
         <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm">启动</button>
         <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm">入库</button>
      </view>
      
@@ -106,7 +109,10 @@
      computed: {
         ...mapState('user', ['dynamicFields']),
      },
      mounted() {},
      mounted() {
         this.getRece()
         this.whAreaId = uni.getStorageSync('whAreaId')
      },
      methods: {   
         selChange(val) {
            uni.setStorageSync('whAreaId', val)
@@ -166,7 +172,7 @@
         async confirm() {            
            if(this.barcode === '' || this.barcode ===null){
               uni.showToast({
                  title: "接驳站码不能为空",
                  title: "接驳站点不能为空",
                  icon: "none",
               })
               return ;
@@ -177,7 +183,7 @@
                  icon: "none",
               })
               return ;
            }
            }
            this.repeatClick = true
            const {
               code,
@@ -200,10 +206,21 @@
               })
            }
            this.repeatClick = false
         },
         async getRece() {
            const {
               code,
               data,
               msg
            } = await request('/areas/receipt', {}, 'get')
            if (code === 200) {
               this.range = data.map(item => ({
                  value: item.id,
                  text: item.warehouseId$ + "-- " + item.name
               }));
            }
         },
      }
   }
</script>