huangxiaoqiang
6 天以前 c3877b2ebec19f473f45e8c2245926f65d2a3948
ÏîÄ¿´úÂë/LGPDA/pages/task/Inbound.vue
@@ -10,7 +10,7 @@
                     placeholder="请输入托盘编码" ref='midInput' />
               </uni-forms-item>
               <uni-forms-item label="入库站台">
                  <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point"
                  <uni-easyinput type="text" :focus="istrue" v-model="Point"
                     placeholder="请输入入库站台" ref='midInput' />
               </uni-forms-item>
            </uni-forms>
@@ -22,11 +22,11 @@
         <view style="padding: 5%;">
            <uni-forms label-width="120">
               <uni-forms-item label="托盘编码">
                  <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Barcode"
                  <uni-easyinput type="text" :focus="!barcodefocus" @input="inputChangebarcode" v-model="Barcode"
                     placeholder="请输入托盘编码" ref='midInput' />
               </uni-forms-item>
               <uni-forms-item label="入库站台">
                  <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="EndAddress"
                  <uni-easyinput type="text" :focus="barcodefocus" v-model="EndAddress"
                     placeholder="请输入入库站台" ref='midInput' />
               </uni-forms-item>
            </uni-forms>
@@ -43,13 +43,14 @@
      data() {
         return {
            istrue: false,
            barcodefocus: false,
            range: [],
            EndAddress: "",
            StartAddress: "",
            PalletCode: "",
            Point: "",
            Barcode: "",
            items: ['入库', '抽检回库'],
            items: ['入库', '抽检入库'],
            current: 0
         }
      },
@@ -62,6 +63,22 @@
               this.current = e.currentIndex;
            }
         },
         // carNoInputChange() {
         //    this.istrue = false;
         //    this.$nextTick(function(x) {
         //       if (this.barcode != '') {
         //          this.istrue = true;
         //       }
         //    })
         // },
         // inputChangebarcode() {
         //    this.barcodefocus = false;
         //    this.$nextTick(function(x) {
         //       if (this.barcode != '') {
         //          this.barcodefocus = true;
         //       }
         //    })
         // },
         InboundTask() {
            if (this.PalletCode.length <= 0 && this.Point.length) {
               this.$refs.InboundTaskluToast.show({
@@ -112,14 +129,11 @@
            }
            this.$u.post('/api/PDA/SamplingInboundTask', param).then(res => {
               if (res.status) {
                  // this.$refs.uToast.show({
                  //    title: "呼叫Agv搬运成功",
                  //    type: "success"
                  // })
                  this.$refs.SamplingInboundTaskluToast.show({
                     title: res.message,
                     type: "success"
                  })
                  this.Barcode = "";
                  this.EndAddress = "";
                  this.istrue = false;
               } else {