From d559780d63e92b9cbbdf82b819cbc8bc9053da80 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 16 三月 2021 08:18:59 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/custOrder/custOrder.js |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js
index f5dfd80..d3a2c81 100644
--- a/src/main/webapp/static/js/custOrder/custOrder.js
+++ b/src/main/webapp/static/js/custOrder/custOrder.js
@@ -74,6 +74,7 @@
                 top.location.href = baseUrl+"/";
             }
             pageCurr=curr;
+            tableX.merges('custOrder', [1, 11]);
             limit();
             form.on('checkbox(tableCheckbox)', function (data) {
                 var _index = $(data.elem).attr('table-index')||0;
@@ -196,7 +197,6 @@
                     }),
                     method: 'POST',
                     success: function (res) {
-                        console.log(JSON.stringify(res.data))
                         layer.close(loadIndex);
                         // 鎴愬姛
                         if (res.code === 200){
@@ -205,8 +205,10 @@
                                 ,title: false
                                 ,closeBtn: false
                                 ,offset: '100px'
-                                ,area: '800px;'
+                                // ,area: ['800px','450px']
+                                ,area: '800px'
                                 ,shade: 0.5
+                                ,shadeClose: true
                                 ,id: 'LAY_layuipro'
                                 ,btn: ['绔嬪嵆鐢熸垚', '绋嶅悗澶勭悊']
                                 ,btnAlign: 'c'
@@ -218,6 +220,8 @@
                                         data: res.data,
                                         page: true,
                                         cellMinWidth: 100,
+                                        // ,width: admin.screen() > 1 ? 892 : ''
+                                        height: 432,
                                         cols: [[
                                             {field: 'title', title: '鍟嗗搧', align: 'center'},
                                             {field: 'anfme', title: '鎬绘暟閲�', align: 'center', style: 'font-weight: bold', width: 80},
@@ -228,6 +232,7 @@
                                         ]],
                                         done: function () {
                                             tableX.merges('stoPreTab', [0,1]);
+                                            $('.layui-table-body.layui-table-main').css("overflow", "auto")
                                         }
                                     });
 
@@ -276,7 +281,7 @@
 
     // 寮�濮嬫嫞璐�
     function stockOut(number) {
-        layer.confirm(number + ' 璁㈠崟寮�濮嬫嫞璐э紵', {shadeClose: true}, function(){
+        // layer.confirm(number + ' 璁㈠崟寮�濮嬫嫞璐э紵', {shadeClose: true}, function(){
             layer.closeAll();
             $.ajax({
                 url: baseUrl+"/work/stock/out",
@@ -318,7 +323,7 @@
                     $(".layui-laypage-btn")[0].click();
                 }
             })
-        });
+        // });
     }
 
     // 鎵撳嵃鎷h揣鍗�
@@ -482,22 +487,22 @@
         page: {
             curr: pageCurr
         },
-        done: function (res, curr, count) {
-            if (res.code === 403) {
-                top.location.href = baseUrl+"/";
-            }
-            pageCurr=curr;
-            if (res.data.length === 0 && count !== 0) {
-                tableIns.reload({
-                    where: searchData,
-                    page: {
-                        curr: pageCurr-1
-                    }
-                });
-                pageCurr -= 1;
-            }
-            limit(child);
-        }
+        // done: function (res, curr, count) {
+        //     if (res.code === 403) {
+        //         top.location.href = baseUrl+"/";
+        //     }
+        //     pageCurr=curr;
+        //     if (res.data.length === 0 && count !== 0) {
+        //         tableIns.reload({
+        //             where: searchData,
+        //             page: {
+        //                 curr: pageCurr-1
+        //             }
+        //         });
+        //         pageCurr -= 1;
+        //     }
+        //     limit(child);
+        // }
     });
 }
 

--
Gitblit v1.9.1