haozi 4 лет назад
Родитель
Сommit
6bbdff80d4

+ 16 - 1
resources/views/store/blindReceive/index.blade.php

@@ -1,7 +1,7 @@
 @extends('layouts.app')
 
 @section('content')
-    <div class="container">
+    <div class="d-none" id="container">
         <audio src="{{asset('sound/warning_otherBarcode.mp3')}}" controls="controls" preload id="soundWarning" hidden>
         </audio>
         <audio src="{{asset('sound/ding.mp3')}}" controls="controls" preload id="soundDing" hidden>
@@ -136,9 +136,24 @@
                 selectTr:0,
             },
             mounted() {
+                if (navigator.userAgent.indexOf("Android")!==-1)this.isAndroid = true;
+                this.pageInit();
+                $("#container").removeClass("d-none");
                 this.scanListening();
             },
             methods: {
+                //页面初始化
+                pageInit(){
+                    if (!this.isAndroid)return;
+                    let element = document.getElementById("navbarSupportedContent").parentElement;
+                    element.className = "row";
+                    element.children[0].className += " col-5";
+                    element.innerHTML = element.children[0].outerHTML;
+                    let e1 = document.getElementById("menu");
+                    let e2 = document.getElementById("demand-div");
+                    if (e1)e1.remove();
+                    if (e2)e2.remove();
+                },
                 changeToManualInputAmount:function(){
                     this.status.amountDisable=false;
                     this.isManualInputtingAmount=true;

+ 8 - 7
resources/views/store/inStorage/androidIndex.blade.php

@@ -20,16 +20,17 @@
         <div class="w-100 center h-75 row align-items-center justify-content-center">
             <div class="w-100">
 <!--                <a href="{{url('store/inStorage/cacheRackStorage')}}"><button class="btn btn-info w-75 text-white" style="height: 60px"><h4>整箱入库</h4></button></a>-->
-                <a href="{{url('store/handInStorage/receive')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>收货</h4></button></a>
-                <a href="{{url('store/handInStorage/putaway')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>上架</h4></button></a>
-                <a href="{{url('store/inStorage/halfChestStorage')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>半箱入库</h4></button></a>
-                <a href="{{url('store/inStorage/boxBindShelf')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>新箱上架</h4></button></a>
-                <a href="{{url('store/inStorage/boxBindModel')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>料箱型号</h4></button></a>
-                <a href="{{url('store/inStorage/commodityBindModel')}}"><button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>商品型号</h4></button></a>
+                <a href="{{url('store/handInStorage/receive')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>收货</h4></button></a>
+                <a href="{{url('store/handInStorage/putaway')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>上架</h4></button></a>
+                <a href="{{url('store/inStorage/halfChestStorage')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>半箱入库</h4></button></a>
+                <a href="{{url('store/inStorage/boxBindShelf')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>新箱上架</h4></button></a>
+                <a href="{{url('store/inStorage/boxBindModel')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>料箱型号</h4></button></a>
+                <a href="{{url('store/inStorage/commodityBindModel')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>商品型号</h4></button></a>
+                <a href="{{url('store/blindReceive')}}"><button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>盲收</h4></button></a>
 
     <a href="{{ route('logout') }}" onclick="event.preventDefault();
                                                      document.getElementById('logout-form').submit();">
-        <button class="btn btn-info w-75 mt-3 text-white" style="height: 60px"><h4>退出登录</h4></button></a>
+        <button class="btn btn-info w-75 h-25 mt-3 text-white" style="height: 60px"><h4>退出登录</h4></button></a>
     <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
         @csrf
     </form>