skyouc
10 小时以前 ad1e4e950a4e961a41344e5847d47f91dabd0c29
pages/AGV/CallEmptyCar.vue
@@ -2,7 +2,11 @@
   <view>
      <view class="code">
         <view class="item">
            <view class="code-decs">入库区:</view>
            <view class="code-decs">起始区:</view>
            <uni-combox :candidates="staList" placeholder="请选择站点" v-model="orgSite"></uni-combox>
         </view>
         <view class="item">
            <view class="code-decs">终点站:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="tarSite" :focus="barcodeFocus">
         </view>
@@ -70,7 +74,7 @@
            locNo: "",
            orgSite: '',
            tarSite: '',
            staList: ["e"],
            staList: ["SO", "EO"],
         }
      },
      onLoad() {
@@ -88,7 +92,7 @@
         this.token = uni.getStorageSync('token');
      },
      mounted() {
         this.tarSite = uni.getStorageSync('tarSite')
         // this.tarSite = uni.getStorageSync('tarSite')
      },
      methods: {
         messageToggle(type) {
@@ -284,11 +288,16 @@
            this.$refs.combConfirm.close()
         },
         comb() {
            uni.setStorageSync('tarSite', this.tarSite);
            // uni.setStorageSync('tarSite', this.tarSite);
            uni.vibrateShort();
            let that = this;
            if (that.orgSite === '') {
               this.messageText = "起始区为空"
               this.messageToggle('error')
               return;
            }
            if (that.tarSite === '') {
               this.messageText = "入库区为空"
               this.messageText = "终点站为空"
               this.messageToggle('error')
               return;
            }
@@ -343,7 +352,7 @@
         resst() {
            this.orgSite = ''
            this.dataList = []
            this.tarSite = ''
         },
      }