Przeglądaj źródła

手持收货页面

haozi 4 lat temu
rodzic
commit
eb5316c011

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

@@ -3,8 +3,6 @@
 
 @section('content')
     <div class="d-none" id="container">
-{{--        <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 +179,7 @@
                     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+'?test';
-                                //     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;
                             }else {
                                 window.tempTip.setDuration(2000);
                                 window.tempTip.show(res.data.data);
@@ -203,9 +195,6 @@
                         this.onfocus();
                     },100);
                 },
-                // submitForm(){
-                //     document.getElementById('submitForm').submit();
-                // }
             },
         });
     </script>

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

@@ -27,7 +27,7 @@
                     <div class="form-group row m-1">
                         <label for="quantity" class="text-right">已收/预收数量:</label>
                         <span>&nbsp;&nbsp;&nbsp;</span>
-                        <span id="quantity">@{{ info.receivedqty??0 }}/@{{ info.expectedqty??0 }}</span>
+                        <span id="quantity">@{{ info.receivedqty?info.receivedqty:0 }}/@{{ info.expectedqty?info.expectedqty:0 }}</span>
                     </div>
                     <div class="form-group row m-1">
                         <label for="amount" class="text-right text-danger font-weight-bold">实收数量:</label>
@@ -158,7 +158,7 @@
                 isAndroid:false,
                 isInit:true,
                 element:[
-                    "sku","amount",/*"location",*/"trackNumber"
+                    "sku","amount","trackNumber"
                 ],
                 selectTr:'',
             },