Zhouzhendong 5 лет назад
Родитель
Сommit
901f645d8b

+ 14 - 6
resources/js/utilities/tempTip.js

@@ -13,24 +13,32 @@ const tempTip={
         this.inputType=type;
     },
     showSuccess:function(text){
-        let tiper=$("<div class='row' style='color:white;opacity:0.9;position:fixed;top:40%;transform:translateY(-50%);z-index:"+this.index+";width:100%;'>" +
+        let parWidth = document.body.offsetWidth;
+        let parHeight = document.body.offsetHeight;
+        let parentDom = $("<div style='top: 0;left: 0;width: "+parWidth+"px;height: "+parHeight+"px;position:fixed'></div>");
+        let tiper=$("<div class='row' style='color:white;opacity:0.9;position: relative;top:40%;transform:translateY(-50%);z-index:"+this.index+";width:100%;'>" +
             "<div class='col-8 offset-2'><div class='card'><div class='card-body h4 bg-success text-center'>" +
             text +
             "</div></div></div></div>");
         tiper.animate({opacity:'0'},this.fadingDuration,'swing',function () {
-            tiper.remove();
+            parentDom.remove();
         });
-        $('body').append(tiper)
+        parentDom.append(tiper);
+        $('body').append(parentDom);
     },
     show:function(text){
-        let tiper=$("<div class='row' style='color:white;opacity:0.9;position:fixed;top:40%;transform:translateY(-50%);width:100%;z-index:"+this.index+";'>" +
+        let parWidth = document.body.offsetWidth;
+        let parHeight = document.body.offsetHeight;
+        let parentDom = $("<div style='top: 0;left: 0;width: "+parWidth+"px;height: "+parHeight+"px;position:fixed'></div>");
+        let tiper=$("<div class='row' style='color:white;opacity:0.9;top:40%;position: relative;transform:translateY(-50%);width:100%;z-index:"+this.index+";'>" +
             "<div class='col-8 offset-2'><div class='card'><div class='card-body h2 bg-danger text-center'>" +
             text +
             "</div></div></div></div>");
         tiper.animate({opacity:'0'},this.fadingDuration,'swing',function () {
-            tiper.remove();
+            parentDom.remove();
         });
-        $('body').append(tiper)
+        parentDom.append(tiper);
+        $('body').append(parentDom);
     },
     okWindow:function(text,okText){
         let bg=$("<div style='opacity:0.4;position:fixed;top:0;width:100%;height:100%;z-index:"+this.index+";background-color:#000;'></div>" );

+ 7 - 18
resources/views/store/checkingReceive/mission.blade.php

@@ -41,16 +41,10 @@
         <button class="btn btn-sm btn-outline-info" @click="openImport()">导入</button>
     </div>
 
-    <label for="all" class="d-none" id="cloneCheckAll">
-        <input id="all" type="checkbox" @click="checkAll($event)">全选
-    </label>
     <table class="table table-sm text-nowrap table-bordered d-none" id="headerRoll"></table>
     <table class="table table-striped table-sm text-nowrap table-hover mt-1" id="headerParent">
         <tr id="header"></tr>
         <tr v-for="(storeCheckingReceive,i) in storeCheckingReceives">
-            <td>
-                <label><input class="checkItem" type="checkbox" :value="storeCheckingReceives.id" v-model="checkData" /></label>
-            </td>
             <td>@{{ i+1 }}</td>
             <td>@{{ storeCheckingReceive.id }}</td>
             <td>@{{ storeCheckingReceive.owner_name }}</td>
@@ -129,8 +123,6 @@
                 });
                 _this.form.init();
                 let column = [
-                    {name:'cloneCheckAll',customization:true,type:'checkAll',column:'id',
-                        dom:$('#cloneCheckAll').removeClass('d-none'), neglect: true},
                     {name:'index',value: '序号', neglect: true},
                     {name:'id',value: 'ID', neglect: true},
                     {name:'owner_name',value: '货主'},
@@ -141,16 +133,13 @@
                     {name:'created_at',value: '创建时间'},
                     {name:'operating',value: '操作', neglect: true},
                 ];
-                setTimeout(function () {
-                    let header = new Header({
-                        el: "#header",
-                        column: column,
-                        data: _this.storeCheckingReceives,
-                        restorationColumn: 'id',
-                        vue:vue,
-                    });
-                    header.init();
-                },0);
+                let header = new Header({
+                    el: "#header",
+                    column: column,
+                    data: _this.storeCheckingReceives,
+                    restorationColumn: 'id',
+                });
+                header.init();
             },
             methods:{
                 checkAll(event){

+ 3 - 3
resources/views/store/checkingReceive/show.blade.php

@@ -82,9 +82,9 @@
         </div>
         @endcan
         <div class="ml-2 mt-2">
-            <button class="btn btn-sm btn-outline-dark" @click="exportItem()">导出</button>
-            @can('入库管理-盘收一体-盘收-编辑')<button v-if="storeCheckingReceive.status != '已收货'" class="btn btn-sm btn-outline-danger" @click="isResetAmount()">重新清点</button>@endcan
-            @can('入库管理-盘收一体-盘收-编辑')<button v-if="storeCheckingReceive.status != '已收货'" class="btn btn-sm btn-outline-success" data-toggle="modal" data-target="#asnWindow">匹配ASN单据</button>@endcan
+            <button type="button" class="btn btn-sm btn-outline-dark" @click="exportItem()">导出</button>
+            @can('入库管理-盘收一体-盘收-编辑')<button type="button" v-if="storeCheckingReceive.status != '已收货'" class="btn btn-sm btn-outline-danger" @click="isResetAmount()">重新清点</button>@endcan
+            @can('入库管理-盘收一体-盘收-编辑')<button type="button" v-if="storeCheckingReceive.status != '已收货'" class="btn btn-sm btn-outline-success" data-toggle="modal" data-target="#asnWindow">匹配ASN单据</button>@endcan
         </div>
         <div class="row text-primary ml-1 mr-2 mt-1 mb-1 w-100" style="background-color: #c3e3b5">
             <span class="ml-1">任务ID: <b class="text-dark">@{{ storeCheckingReceive.id }}</b></span>