From 2d2d672e5bdc7e6ea4e7658030229cb3b67ec89a Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期一, 14 二月 2022 17:18:06 +0800
Subject: [PATCH] 无数据的情况下去掉提示,直接显示无数据的列表,且带出操作工具栏

---
 WebTM/views/生产工序管理/委外工序计划汇报单/WW_EntrustProcessReportBillList.html |   53 ++++++++++++++++++++++++++++-------------------------
 1 files changed, 28 insertions(+), 25 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
index 1a7c10e..a5dbcfa 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
@@ -15,9 +15,9 @@
     <div class="layui-card layadmin-header">
         <div class="layui-breadcrumb" lay-filter="breadcrumb">
             <a lay-href="">涓婚〉</a>
-            <a><cite>閲囪喘璁㈠崟</cite></a>
+            <!--<a><cite>閲囪喘璁㈠崟</cite></a>
             <a><cite>閲囪喘璁㈠崟琛ㄦ牸</cite></a>
-            <a><cite>閲囪喘璁㈠崟琛ㄦ牸鐨勯噸杞�</cite></a>
+            <a><cite>閲囪喘璁㈠崟琛ㄦ牸鐨勯噸杞�</cite></a>-->
         </div>
     </div>
 
@@ -136,13 +136,13 @@
                     <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                     <script type="text/html" id="toolbarDemo">
                         <div class="layui-btn-container">
-                            <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
-                            <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>-->
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>
                         </div>
                     </script>
                 </div>
@@ -233,11 +233,11 @@
                 , toolbar: '#toolbarDemo' //寮�鍚ご閮ㄥ伐鍏锋爮锛屽苟涓哄叾缁戝畾宸︿晶妯℃澘
                 , defaultToolbar: ['filter', 'exports', 'print']
                 // , where: { msg: "", NowPage: 1, OnePage: 10 }
-              , cellMinWidth: 100
-              , cols: [[
-                      { type: 'checkbox', fixed: 'left' }
-                     ,{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
-                     ,{ field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+                , cellMinWidth: 100
+                , cols: [[
+                    { type: 'checkbox', fixed: 'left' }
+                    , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+                    , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
                     , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
                     , { field: 'HDeptID ', title: 'HDeptID', width: 105 }
                     , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜' }
@@ -245,9 +245,12 @@
                     , { field: 'HMaterID', title: 'HMaterID' }
                     , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜' }
                     , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115 }
+                    , { field: 'HSupID', title: 'HSupID' }
+                    , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 115 }
+                    , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 115 }
                     , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115 }
                     , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
-                    , { field: 'hsubid', title: 'hsubid',  hide: true ,width: 160 }
+                    , { field: 'hsubid', title: 'hsubid', hide: true, width: 160 }
                     , { field: '宸ュ簭', title: '宸ュ簭', width: 160 }
                     , { field: '鍗曚环 ', title: '鍗曚环', width: 215 }
                     , { field: '鏁伴噺 ', title: '鏁伴噺 ', width: 115 }
@@ -261,7 +264,7 @@
                     , { field: '淇敼浜� ', title: '淇敼浜�' }
                     , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
                     , { field: '鍏抽棴浜�	', title: '鍏抽棴浜�' }
-                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡'}
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
                     , { field: '浣滃簾浜�', title: '浣滃簾浜�' }
                     , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
                     , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�' }
@@ -273,18 +276,18 @@
                     , { field: 'HBillSubType', title: 'HBillSubType' }
                     , { field: 'HICMOInterID', title: 'HICMOInterID' }
                     , { field: '浠诲姟鍗曞彿', title: '浠诲姟鍗曞彿' }
-              
-              ]]
+
+                ]]
                 //, skin: 'row' //琛ㄦ牸椋庢牸
                 // , even: true
-            , page: true //鏄惁鏄剧ず鍒嗛〉
-            , limits: [10, 20, 50, 100]
-            , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+                , page: true //鏄惁鏄剧ず鍒嗛〉
+                , limits: [50, 500, 5000, 20000]
+                , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
                 //, height: 500
-            , done: function (res, curr, count) {
-                _cur_page = curr;
-                layer.closeAll("loading");
-            }
+                , done: function (res, curr, count) {
+                    _cur_page = curr;
+                    layer.closeAll("loading");
+                }
             });
 
             //澶村伐鍏锋爮浜嬩欢
@@ -450,7 +453,7 @@
                     type: "get",
                     url: GetWEBURL()+"/Sc_ProcessMangement/MES_WW_EntrustProcessReportBill_Json",
                     async: true,
-                    data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"], 
+                    data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"]},//"HSupNo": sessionStorage["HUserName"],
                     success: function (result) {
                         if (result.count == 1) {
                          ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
@@ -465,16 +468,16 @@
 
                             }
                         });
-                        layer.close(index0);
+                        //layer.close(index0);
                     } else {
-                            layer.close(index0);
+                            //layer.close(index0);
                             layer.alert(result.code + result.Message, { icon: 5 });
                     }
                      
                     },
                     error: function (result) {
                         console.log(result);
-                        layer.close(index0);
+                        //layer.close(index0);
                         layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
                     }
                 });

--
Gitblit v1.9.1