wankeda
2025-05-26 0864509e1eb593c3dedb66196ec19fe51437922b
´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/½ÐÁÏ/¿ÕÍлØÁ÷.vue
ÎļþÃû´Ó ´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/½ÐÁÏ/ÊäËÍÏß»ØÁ÷.vue ÐÞ¸Ä
@@ -6,22 +6,14 @@
         <view v-if="current === 0" class="headerstyle">
            <view class="itemstyle">
               <uni-forms label-width="120">
                  <uni-forms-item label="起点地址">
                     <!-- <uni-easyinput type="text" :focus="!addressFocus" v-model="sourceAddress"
                        placeholder="请扫瞄起点地址" ref='midInput' @input="inputChangebarcode" /> -->
                     <uni-data-select v-model="value" :localdata="rangs"></uni-data-select>
                  <uni-forms-item label="起点缓存架地址">
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="sourceAddress"
                        placeholder="请扫瞄起点地址" ref='midInput' @input="inputChangebarcode" />
                     <!-- <uni-data-select v-model="value" :localdata="rangs"></uni-data-select> -->
                  </uni-forms-item>
                  <uni-forms-item label="终点地址">
                  <uni-forms-item label="终点输送线地址">
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="targetAddress"
                        placeholder="请扫描终点地址" ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
                  <uni-forms-item label="第一托盘条码">
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode" placeholder="请扫描托盘条码"
                        ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
                  <uni-forms-item label="第二托盘条码">
                     <uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode1" placeholder="请扫描托盘条码"
                        ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
                  <uni-forms-item>
                     <button @click="inbound" type="primary" size="default"
@@ -54,8 +46,6 @@
            addressFocus: false,
            targetAddress: "",
            sourceAddress: "",
            pallcode: "",
            pallcode1: "",
            Exception: "",
            address: "",
            check: true,
@@ -64,15 +54,6 @@
            value2: "",
            matTotals: [],
            value: 0,
            rangs: [{
                  value: "FJXL-KPHLX001",
                  text: "FJXL-KPHLX001"
               },
               {
                  value: "ZJXL-KPHLX001",
                  text: "ZJXL-KPHLX001"
               },
            ],
            // range: [],
         }
      },
@@ -136,13 +117,9 @@
         },
         inbound() {
            // æå–输入框的值
            const sourceAddress = this.value;
            const sourceAddress = this.sourceAddress;
            const targetAddress = this.targetAddress;
            // æå–工单编号
            const pallcode =this.pallcode;
            // æå–型号
            const pallcode1 = this.pallcode1;
            if (sourceAddress == "") {
               this.$t.message.toast('请选择起点位置');
               return;
@@ -151,36 +128,25 @@
               this.$t.message.toast('请扫瞄终点位置');
               return;
            }
            // if (pallcode == "") {
            //    this.$t.message.toast('请扫描第一拖盘条码');
            //    return;
            // }
            // if (pallcode1 == "") {
            //    this.$t.message.toast('请扫描第二拖盘条码');
            //    return;
            // }
            var postData = {
               MainData: {
                  "sourceAddress": this.value,
                  "sourceAddress": this.sourceAddress,
                  "targetAddress": this.targetAddress,
                  "Exception": this.pallcode + "," + this.pallcode1
               }
            }
            // console.log(Exception);
            this.$u.post('/api/PDA/EmptyTask', postData).then(res => {
            this.$t.message.closeLoading();
            console.log(postData);
            if (res.code == 200) {
               this.$t.message.toast('呼叫成功');
               this.value="",
               this.targetAddress="",
               this.pallcode="",
               this.pallcode1="",
               this.$refs.popup.close();
               // this.submit();
            } else {
               this.$t.message.toast(res.message);
            }
               this.$t.message.closeLoading();
               console.log(postData);
               if (res.code == 0) {
                  this.$t.message.toast('呼叫成功');
                  this.sourceAddress = "";
                     this.targetAddress = "";
                     // this.$refs.popup.close();
                  // this.submit();
               } else {
                  this.$t.message.toast(res.message);
               }
            }).catch(err => {
               this.$refs.uToast.show({
                  title: err.message,