From 75a6bc306d469b4e262e7a600e3fa52df289ceca Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期一, 08 八月 2022 11:03:29 +0800
Subject: [PATCH] 威龙测试修复

---
 WebTM/views/设备管理/设备规程单/Sb_EquipDotCheckRuleList.html |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\350\247\204\347\250\213\345\215\225/Sb_EquipDotCheckRuleList.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\350\247\204\347\250\213\345\215\225/Sb_EquipDotCheckRuleList.html"
index c1f579a..3691314 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\350\247\204\347\250\213\345\215\225/Sb_EquipDotCheckRuleList.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\350\247\204\347\250\213\345\215\225/Sb_EquipDotCheckRuleList.html"
@@ -138,8 +138,11 @@
             form.on('submit(btnSearch)', function (data) {
                 get_FastQuery();
             });
-
-
+            
+            //閲嶇疆鎸夐挳
+            form.on('submit(btnReSearch)', function (data) {
+                get_Refresh();
+            });
 
             //#endregion
 
@@ -160,15 +163,14 @@
                     , toolbar: '#toolbarDemo'
                     , height: 'full-50'
                     , page: true
-                    , limits: [50,200,500,1000,5000,10000]
+                    , limits: [50, 500, 5000, 20000]
                     , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
                     , cellMinWidth: 200
-                    , limit: 50
-                    , limits: [50, 200, 500, 1000, 5000, 10000]
                     , cols: [[
                         { type: 'checkbox', fixed: 'left' }
                         , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                         , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
+                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�' }
                         , { field: '鐐规鍛ㄦ湡', title: '鐐规鍛ㄦ湡' }
                         , { field: '鍛ㄦ湡鍗曚綅', title: '鍛ㄦ湡鍗曚綅' }
                         , { field: '璁″垝寮�濮嬫棩鏈�', title: '璁″垝寮�濮嬫棩鏈�', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
@@ -199,20 +201,22 @@
 
             //鏌ヨ
             function get_Display(sWhere) {
-                var index = layer.load(0, { shade: false });
+                var index = layer.load();
                 //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
                 $.ajax({
                     url: GetWEBURL() + '/Sb_EquipDotCheckRuleBill/GetEquipDotCheckRuleList',
                     type: "GET",
-                    data: { "sWhere": sWhere},
+                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                     success: function (data1) {
                         if (data1.count == 1) {
                             option.data = data1.data;
                             table.render(option);
                             layer.close(index);
                         } else {
+                            option.data = data1.data;
+                            table.render(option);
                             layer.close(index);
-                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                            layer.alert("鏆傛棤璁板綍", { icon: 5 });
                         }
                     }, error: function () {
                         layer.close(index);
@@ -280,7 +284,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: '../璁惧妗f/Sb_EquipDotCheckRuleEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
+                        , content: '../璁惧瑙勭▼鍗�/Sb_EquipDotCheckRuleEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                         , resize: false,
                         end: function () {
                             //鍒锋柊椤甸潰,
@@ -308,7 +312,7 @@
                         $.ajax({
                             type: "GET",
                             url: GetWEBURL() + '/Sb_EquipDotCheckRuleBill/DeleteEquipDotCheckRuleBillList',
-                            data: { "HInterID": HInterID},
+                            data: { "HInterID": HInterID, "user": sessionStorage["HUserName"]},
                             success: function (result) {
                                 if (result.count == 1) {
                                     layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -417,9 +421,12 @@
 
             //鍒锋柊
             function get_Refresh() {
-                $("#HNumber").val("");
-                $("#HName").val("");
-                $("#btnSearch").click();
+                 $("#HBillNo").val("");//鍗曟嵁鍙�
+                 $("#HCreateBy").val("");//鍒跺崟浜�
+                $("#BenginHCreateDate").val("");//寮�濮嬪埗鍗曟椂闂�
+                $("#EndHCreateDate").val("");//缁撴潫鍒跺崟鏃堕棿
+                sWhere = "";
+                get_Display(sWhere);
             }
 
             //浠ヤ笂鏄痩ayui妯″潡

--
Gitblit v1.9.1