分支自 SuZhouGuanHong/TaiYuanTaiZhong

huanghongfeng
2024-07-04 08dd2afd7a9614dad029e94918516b068d413cac
´úÂë¹ÜÀí/Ì«ÖØPDA/pages/feeding/feeding.vue
@@ -53,14 +53,14 @@
               this.barcode = e.detail.value;
            } else {
               var len = this.barcode.split(',').length;
               if (len <= 4) {
               if (len <= 5) {
                  this.barcode = this.barcode + ',';
               }
               else if(len < 5){
               else if(len < 6){
                  this.barcode = this.barcode;
               }
                else {
                  this.$t.message.toast('数量最多为5个');
                  this.$t.message.toast('数量最多为6个');
                  this.isfill=true;
                  return;
               }
@@ -86,26 +86,34 @@
               this.$t.message.toast('请选择下料口!')
               return;
            }
            this.$u.post("/api/ToWms/OutsourceInbound", {
               MainData: {
                  dataSN: this.barcode,
                  stationNo: this.stationNo,
                  creator: uni.getStorageSync('jo_user').userName,
               }
            }).then(res => {
               if (res.status) {
                  this.barcode = '',
                     this.station = '',
                     this.stationNo = '',
                     this.$t.message.toast('呼叫AGV成功,请等待AGV取货');
               } else {
                  this.$t.message.toast(res.message);
               }
               console.log(res);
            }).catch(err => {
            })
            uni.showModal({
                title: '确认',
                content: '车轮信息:'+this.barcode+',是否呼叫AGV?',
                success: (res) => {
                  if (res.confirm) {
                   // this.$u.post("/api/ToWms/OutsourceInbound", {
                   //    MainData: {
                   //       dataSN: this.barcode,
                   //       stationNo: this.stationNo,
                   //       creator: uni.getStorageSync('jo_user').userName,
                   //    }
                   // }).then(res => {
                   //    if (res.status) {
                   //       this.barcode = '',
                   //          this.station = '',
                   //          this.stationNo = '',
                   //          this.$t.message.toast('呼叫AGV成功,请等待AGV取货');
                   //    } else {
                   //       this.$t.message.toast(res.message);
                   //    }
                   //    console.log(res);
                   // }).catch(err => {
                   // })
                  }
                }
              });
         }
      }
   }