Przeglądaj źródła

手持收货页面跳转

haozi 4 lat temu
rodzic
commit
89e72cf783

+ 12 - 12
resources/views/store/handInStorage/receive.blade.php

@@ -3,8 +3,8 @@
 
 @section('content')
     <div class="d-none" id="container">
-        <form  :action="'{{url('store/handInStorage/receiveDetailPage')}}/'+asnno+'/'+customerid" method="get" id="submitForm" class="d-none">
-        </form>
+{{--        <form  :action="'{{url('store/handInStorage/receiveDetailPage')}}/'+asnno+'/'+customerid" method="get" id="submitForm" class="d-none">--}}
+{{--        </form>--}}
         <div class="card offset-md-3 col-md-6">
             <div class="card-header text-center mt-2 bg-transparent" id="header_title">
                 <span class="font-weight-bold h4">收货</span>
@@ -181,13 +181,13 @@
                     window.axios.post(url,{info:this.info})
                         .then(res=>{
                             if (res.data.success){
-                                {{--window.location.href="{{url('store/handInStorage/receiveDetailPage')}}/" + res.data.data.asnno+'/'+ res.data.data.customerid;--}}
-                                    this.asnno=res.data.data.asnno;
-                                    this.customerid=res.data.data.customerid;
-                                    let _this=this;
-                                    setTimeout(function (){
-                                        _this.submitForm();
-                                    },10)
+                                window.location.href="{{url('store/handInStorage/receiveDetailPage')}}/" + res.data.data.asnno+'/'+ res.data.data.customerid+'?test';
+                                //     this.asnno=res.data.data.asnno;
+                                //     this.customerid=res.data.data.customerid;
+                                //     let _this=this;
+                                //     setTimeout(function (){
+                                //         _this.submitForm();
+                                //     },10)
                             }else {
                                 window.tempTip.setDuration(2000);
                                 window.tempTip.show(res.data.data);
@@ -203,9 +203,9 @@
                         this.onfocus();
                     },100);
                 },
-                submitForm(){
-                    document.getElementById('submitForm').submit();
-                }
+                // submitForm(){
+                //     document.getElementById('submitForm').submit();
+                // }
             },
         });
     </script>

+ 2 - 2
resources/views/store/handInStorage/receiveDetailPage.blade.php

@@ -196,7 +196,7 @@
                             if (res.data.success){
                                 this.fillInfo(res.data.asnDetail);
                                 if (res.data.asnDetail.lotatt08) this.info.lotatt08=res.data.asnDetail.lotatt08;
-                                if (res.data.asnDetail.lotatt05) this.info.lotatt08=res.data.asnDetail.lotatt05;
+                                if (res.data.asnDetail.lotatt05) this.info.lotatt05=res.data.asnDetail.lotatt05;
                                 this.basSku=res.data.basSku;
                                 this.$forceUpdate()
                                 return;
@@ -217,7 +217,7 @@
                         .then(res=>{
                             if (res.data.success){
                                 if (res.data.asnDetail.lotatt08) this.info.lotatt08=res.data.asnDetail.lotatt08;
-                                if (res.data.asnDetail.lotatt05) this.info.lotatt08=res.data.asnDetail.lotatt05;
+                                if (res.data.asnDetail.lotatt05) this.info.lotatt05=res.data.asnDetail.lotatt05;
                                 this.basSku=res.data.basSku;
                                 this.$forceUpdate()
                                 return;