From a1012ee8adec17e2a746786bb2843b93925ad9c2 Mon Sep 17 00:00:00 2001
From: 仲国强 <519541279@qq.com>
Date: 星期三, 08 九月 2021 14:29:03 +0800
Subject: [PATCH] 巡检记录单列表优化sz
---
WebTM/views/质量管理/巡检记录单/QC_PatrolProcCheckBillList.html | 196 ++++++++++++++++++++++++-------------------------
1 files changed, 96 insertions(+), 100 deletions(-)
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_PatrolProcCheckBillList.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_PatrolProcCheckBillList.html"
index 4470f3b..36b1e63 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_PatrolProcCheckBillList.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_PatrolProcCheckBillList.html"
@@ -12,62 +12,57 @@
</head>
<body>
- <div class="layui-card layadmin-header">
+ <!--<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>-->
- </div>
- </div>
+ <a lay-href="">涓婚〉</a>-->
+ <!--<a><cite>閲囪喘璁㈠崟</cite></a>
+ <a><cite>閲囪喘璁㈠崟琛ㄦ牸</cite></a>
+ <a><cite>閲囪喘璁㈠崟琛ㄦ牸鐨勯噸杞�</cite></a>-->
+ <!--</div>
+ </div>-->
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
-
- <div class="layui-card-body">
- <!--<div class="test-table-reload-btn" style="margin-bottom: 10px;">-->
- <form class="layui-form" action="">
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label">鍗曟嵁鍙�</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
+ <div class="layui-card" style="padding: 1px">
+ <form class="layui-form" action="" lay-filter="component-form-group">
+ <div class="layui-collapse">
+ <div class="layui-colla-item">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍗曟嵁鍙�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
+ </div>
</div>
- </div>
-
- <div class="layui-inline">
- <label class="layui-form-label">寮�濮嬫棩鏈�</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="HDate1" id="HDate1">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">寮�濮嬫棩鏈�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HDate1" id="HDate1">
+ </div>
</div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">缁撴潫鏃ユ湡</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="HDate2" id="HDate2">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">缁撴潫鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HDate2" id="HDate2">
+ </div>
</div>
- </div>
- <div class="layui-inline">
- <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="f_Query">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
</button>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
+
</div>
</div>
-
+ <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-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-form"></i>鍒犻櫎</button>
+ </div>
+ </script>
</form>
- <!--</div>-->
</div>
-
-
- <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-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-form"></i>鍒犻櫎</button>
- </div>
- </script>
</div>
</div>
</div>
@@ -130,12 +125,12 @@
index: 'lib/index' //涓诲叆鍙fā鍧�
}).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer'], function () {
var $ = layui.$
- , admin = layui.admin
- , layer = layui.layer
- , laydate = layui.laydate
- , table = layui.table
- , form = layui.form
- , element = layui.element;
+ , admin = layui.admin
+ , layer = layui.layer
+ , laydate = layui.laydate
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element;
//甯歌鐢ㄦ硶
laydate.render({
elem: '#HDate1'
@@ -156,43 +151,43 @@
, 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: 'hsubid', title: 'hsubid' ,hide: true }
- , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
- , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
- , { field: '琛ㄥご澶囨敞 ', title: '琛ㄥご澶囨敞', width: 105 }
- , { field: '鐢熶骇璧勬簮鍚嶇О', title: '鐢熶骇璧勬簮鍚嶇О' }
- , { field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜' }
- , { field: '浜у搧鍐呯爜', title: '浜у搧鍐呯爜' }
- , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О' }
- , { field: '浜у搧鍨嬪彿', title: '浜у搧鍨嬪彿', width: 115 }
- , { field: '妫�楠屽憳浠g爜', title: '妫�楠屽憳浠g爜', width: 115 }
- , { field: '妫�楠屽憳鍚嶇О', title: '妫�楠屽憳鍚嶇О' }
- , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 160 }
- , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 160 }
- , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 160 }
- , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 160 }
- , { field: '淇敼浜�', title: '淇敼浜�', width: 160 }
- , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 160 }
- , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 160 }
- , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 160 }
- , { field: '浣滃簾浜�', title: '浣滃簾浜�', hide: true, width: 160 }
- , { field: '浣滃簾鏃ユ湡 ', title: '浣滃簾鏃ユ湡', width: 215 }
- , { field: '鍗曟嵁绫诲瀷 ', title: '鍗曟嵁绫诲瀷 ', width: 115 }
- ]]
+ , cellMinWidth: 100
+ , cols: [[
+ { type: 'checkbox', fixed: 'left' }
+ , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+ , { field: 'hsubid', title: 'hsubid', hide: true }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+ , { field: '琛ㄥご澶囨敞 ', title: '琛ㄥご澶囨敞', width: 105 }
+ , { field: '鐢熶骇璧勬簮鍚嶇О', title: '鐢熶骇璧勬簮鍚嶇О' }
+ , { field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜' }
+ , { field: '浜у搧鍐呯爜', title: '浜у搧鍐呯爜' }
+ , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О' }
+ , { field: '浜у搧鍨嬪彿', title: '浜у搧鍨嬪彿', width: 115 }
+ , { field: '妫�楠屽憳浠g爜', title: '妫�楠屽憳浠g爜', width: 115 }
+ , { field: '妫�楠屽憳鍚嶇О', title: '妫�楠屽憳鍚嶇О' }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 160 }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 160 }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 160 }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 160 }
+ , { field: '淇敼浜�', title: '淇敼浜�', width: 160 }
+ , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 160 }
+ , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 160 }
+ , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 160 }
+ , { field: '浣滃簾浜�', title: '浣滃簾浜�', hide: true, width: 160 }
+ , { field: '浣滃簾鏃ユ湡 ', title: '浣滃簾鏃ユ湡', width: 215 }
+ , { field: '鍗曟嵁绫诲瀷 ', title: '鍗曟嵁绫诲瀷 ', width: 115 }
+ ]]
//, skin: 'row' //琛ㄦ牸椋庢牸
// , even: true
- , page: true //鏄惁鏄剧ず鍒嗛〉
- , limits: [10, 20, 50, 100]
- , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+ , page: true //鏄惁鏄剧ず鍒嗛〉
+ , limits: [10, 20, 50, 100]
+ , 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");
+ }
});
//澶村伐鍏锋爮浜嬩欢
@@ -269,36 +264,37 @@
///鍔犺浇鏄剧ず鏁版嵁
function RoadHBillNo(sqlWhere) {
+ var ajaxLoad = layer.load();
where = sqlWhere;
$.ajax({
type: "get",
- url: GetWEBURL() +"/QC_Management/MES_QC_PatrolProcCheckBillList_Json",
+ url: GetWEBURL() + "/QC_Management/MES_QC_PatrolProcCheckBillList_Json",
async: true,
data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"],
success: function (result) {
if (result.count == 1) {
- ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
- table.reload('mainTable', {
- data: ajaxReturnData
- , height: 'full-10'
- , page: {
- curr: _cur_page //蹇呴』浠庣 1 椤靛紑濮�
- }
- , loading: false
- , done: function (index, res) {
+ ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+ table.reload('mainTable', {
+ data: ajaxReturnData
+ , height: 'full-10'
+ , page: {
+ curr: _cur_page //蹇呴』浠庣 1 椤靛紑濮�
+ }
+ , loading: false
+ , done: function (index, res) {
- }
- });
- layer.close(index0);
- } else {
- layer.close(index0);
+ }
+ });
+ layer.close(ajaxLoad);
+ } else {
+ layer.close(ajaxLoad);
layer.alert(result.code + result.Message, { icon: 5 });
- }
+ }
},
error: function (result) {
- layer.close(index0);
- layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ layer.close(ajaxLoad);
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
}
});
};
@@ -314,7 +310,7 @@
var HDate2 = $("#HDate2").val();//缁撴潫鏃ユ湡
if (HBillNo)
- sqlWhere += " and 鍗曟嵁鍙� like '%" + HBillNo+ "%'";
+ sqlWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
if (HNumber)
sqlWhere += " and 鐗╂枡浠g爜 like '%" + HNumber + "%'";
if (HName)
--
Gitblit v1.9.1