From 8e2b58a4bbe75ed3d29f14d004d9dc69e73f2a1d Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期四, 25 四月 2024 11:06:00 +0800
Subject: [PATCH] 指导书
---
WebTM/views/设备管理/设备档案/Gy_EquipFileBillResume.html | 204 +++++++++++++++++++++++++++++++++-----------------
1 files changed, 133 insertions(+), 71 deletions(-)
diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\241\243\346\241\210/Gy_EquipFileBillResume.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\241\243\346\241\210/Gy_EquipFileBillResume.html"
index b0040ff..2510934 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\241\243\346\241\210/Gy_EquipFileBillResume.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\241\243\346\241\210/Gy_EquipFileBillResume.html"
@@ -9,6 +9,8 @@
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
<script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/soulTable.slim.js"></script>
+
<style type="text/css">
input.layui-input.layui-unselect {
padding-right: 0;
@@ -67,11 +69,12 @@
</div>
<table class="" id="mainTable" lay-filter="mainTable"></table>
-
+
<div class="layui-tab layui-tab-card">
<ul class="layui-tab-title">
<li class="layui-this">鏃ュ父璁板綍</li>
<li>缁翠慨璁板綍</li>
+ <li>閰嶄欢鏇存崲娓呭崟</li>
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
@@ -79,6 +82,9 @@
</div>
<div class="layui-tab-item">
<table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table>
+ </div>
+ <div class="layui-tab-item">
+ <table class="layui-hide" id="mainTable3" lay-filter="mainTable3"></table>
</div>
</div>
</div>
@@ -95,6 +101,9 @@
{{d.LAY_TABLE_INDEX+1}}
</script>
<script type="text/html" id="xuhao1">
+ {{d.LAY_TABLE_INDEX+1}}
+ </script>
+ <script type="text/html" id="xuhao2">
{{d.LAY_TABLE_INDEX+1}}
</script>
@@ -116,7 +125,7 @@
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
index: 'lib/index', //涓诲叆鍙fā鍧�
- }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+ }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
//#region 鍏叡鍙橀噺
var $ = layui.$
, admin = layui.admin
@@ -124,16 +133,20 @@
, table = layui.table
, table1 = layui.table
, table2 = layui.table
+ , table3 = layui.table
, form = layui.form
, element = layui.element
, laypage = layui.laypage
, laydate = layui.laydate
, util = layui.util
+ , soulTable = layui.soulTable
+
//鏌ヨ鏉′欢
var sWhere = "";
var option = [];
var option1 = [];
var option2 = [];
+ var option3 = [];
//#endregion
@@ -168,7 +181,7 @@
var datas = obj.data; //鑾峰緱褰撳墠琛屾暟鎹�
var linterid = datas.hmainid;
$.ajax({
- url: GetWEBURL() + 'Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetaiNew',
+ url: GetWEBURL() + 'Gy_EquipFileMain/Sb_EquipFileBillResumeDate',
type: "GET",
data: { "HInterID": linterid },
success: function (data1) {
@@ -177,6 +190,8 @@
table1.render(option1);
option2.data = data1.list[1];
table2.render(option2);
+ option3.data = data1.list[2];
+ table3.render(option3);
} else {
layer.alert("鑾峰彇澶辫触", { icon: 5 });
}
@@ -198,12 +213,16 @@
//#region 姝ら〉闈㈡墍鏈夋柟娉�
function set_ClearBill() {
+ $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//寮�濮嬫棩鏈�
+ $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//缁撴潫鏃ユ湡
//鍒濆鍖栬〃鏍�(涓昏〃)
set_InitGrid();
//鍒濆鍖栬〃鏍�(瀛愯〃1)
set_InitGrid1();
//鍒濆鍖栬〃鏍�(瀛愯〃2)
set_InitGrid2();
+ //鍒濆鍖栬〃鏍�(瀛愯〃3)
+ set_InitGrid3();
//鏌ヨ
get_Display(sWhere);
}
@@ -214,57 +233,61 @@
, toolbar: '#toolbarDemo'
, height: '400'
, page: true
+ , totalRow: true
, cellMinWidth: 90
, limit: 50
, limits: [50, 500, 5000, 20000]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
, cols: [[
- { type: 'checkbox', fixed: 'left' }
+ { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣琛�'}
, { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
- , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�' }
- , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '鏉″舰鐮�', title: '鏉$爜缂栧彿' }
- , { field: 'HMaterID', title: 'HMaterID', hide: true }
- , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О' }
- , { field: '璁惧绫诲瀷', title: '璁惧鍒嗙被' }
- , { field: '璁惧浠g爜', title: '璁惧浠g爜' }
- , { field: '璁惧缂栫爜', title: '璁惧缂栫爜' }
- , { field: '璁惧鍚嶇О', title: '璁惧鍚嶇О' }
- , { field: '璁惧瑙勬牸', title: '璁惧瑙勬牸' }
- , { field: '璁惧鍨嬪彿', title: '璁惧鍨嬪彿' }
- , { field: 'HUnitID', title: 'HUnitID', hide: true }
- , { field: '鍗曚綅', title: '鍗曚綅' }
- , { field: '璁惧鍑哄巶鏃ユ湡', title: '璁惧鍑哄巶鏃ユ湡', templet: "<div>{{d.璁惧鍑哄巶鏃ユ湡 ==null ?'':layui.util.toDateString(d.璁惧鍑哄巶鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '璁惧鍑哄巶缂栧彿', title: '璁惧鍑哄巶缂栧彿' }
- , { field: 'HDeptID', title: 'HDeptID', hide: true }
- , { field: '浣跨敤閮ㄩ棬', title: '浣跨敤閮ㄩ棬' }
- , { field: 'HUseEmpID', title: 'HUseEmpID', hide: true }
- , { field: '浣跨敤璐熻矗浜�', title: '浣跨敤璐熻矗浜�' }
- , { field: 'HRepairEmpID', title: 'HRepairEmpID', hide: true }
- , { field: '缁存姢璐熻矗浜�', title: '缁存姢璐熻矗浜�' }
- , { field: '瀹夎鍦扮偣', title: '瀹夎鍦扮偣' }
- , { field: '瀹夎鏃ユ湡', title: '瀹夎鏃ユ湡', templet: "<div>{{d.瀹夎鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹夎鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '杩愯寮�濮嬫棩鏈�', title: '杩愯寮�濮嬫棩鏈�', templet: "<div>{{d.杩愯寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.杩愯寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>" }
- , { field: '褰撳墠鐘舵��', title: '褰撳墠鐘舵��' }
- , { field: 'HEquipFileTypeID', title: 'HEquipFileTypeID', hide: true }
- , { field: '宸ョ▼缂栫爜', title: '宸ョ▼缂栫爜' }
- , { field: '浜у搧', title: '浜у搧' }
- , { field: '鍝佺墝', title: '鍝佺墝' }
- , { field: 'HSellSupID', title: 'HSellSupID', hide: true }
- , { field: '渚涘簲鍟�', title: '渚涘簲鍟�' }
- , { field: 'HMakeSupID', title: 'HMakeSupID', hide: true }
- , { field: '鍒堕�犲晢', title: '鍒堕�犲晢' }
- , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
- , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
- , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '淇敼浜�', title: '淇敼浜�' }
- , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '鍏抽棴浜�', title: '鍏抽棴浜�' }
- , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: 'hbilltype', title: 'hbilltype', hide: true }
- , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷' }
- , { field: 'HMoudType', title: 'HMoudType', hide: true }
- , { field: 'hsubid', title: 'hsubid', hide: true }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true}
+ , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true}
+ , { field: '鏉″舰鐮�', title: '鏉$爜缂栧彿', sort: true }
+ , { field: 'HMaterID', title: 'HMaterID', hide: true, sort: true }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', sort: true }
+ , { field: '璁惧绫诲瀷', title: '璁惧鍒嗙被', sort: true }
+ , { field: '璁惧浠g爜', title: '璁惧浠g爜', sort: true }
+ , { field: '璁惧缂栫爜', title: '璁惧缂栫爜', sort: true }
+ , { field: '璁惧鍚嶇О', title: '璁惧鍚嶇О', sort: true }
+ , { field: '璁惧瑙勬牸', title: '璁惧瑙勬牸', sort: true }
+ , { field: '璁惧鍨嬪彿', title: '璁惧鍨嬪彿', sort: true }
+ , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true }
+ , { field: '鍗曚綅', title: '鍗曚綅', sort: true }
+ , { field: '璁惧鍑哄巶鏃ユ湡', title: '璁惧鍑哄巶鏃ユ湡', templet: "<div>{{d.璁惧鍑哄巶鏃ユ湡 ==null ?'':layui.util.toDateString(d.璁惧鍑哄巶鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '璁惧鍑哄巶缂栧彿', title: '璁惧鍑哄巶缂栧彿', sort: true }
+ , { field: 'HDeptID', title: 'HDeptID', hide: true, sort: true }
+ , { field: '浣跨敤閮ㄩ棬', title: '浣跨敤閮ㄩ棬', sort: true }
+ , { field: 'HUseEmpID', title: 'HUseEmpID', hide: true, sort: true }
+ , { field: '浣跨敤璐熻矗浜�', title: '浣跨敤璐熻矗浜�', sort: true }
+ , { field: 'HRepairEmpID', title: 'HRepairEmpID', hide: true, sort: true }
+ , { field: '缁存姢璐熻矗浜�', title: '缁存姢璐熻矗浜�', sort: true }
+ , { field: '瀹夎鍦扮偣', title: '瀹夎鍦扮偣', sort: true }
+ , { field: '瀹夎鏃ユ湡', title: '瀹夎鏃ユ湡', templet: "<div>{{d.瀹夎鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹夎鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '杩愯寮�濮嬫棩鏈�', title: '杩愯寮�濮嬫棩鏈�', templet: "<div>{{d.杩愯寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.杩愯寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '褰撳墠鐘舵��', title: '褰撳墠鐘舵��', sort: true }
+ , { field: 'HEquipFileTypeID', title: 'HEquipFileTypeID', hide: true, sort: true }
+ , { field: '宸ョ▼缂栫爜', title: '宸ョ▼缂栫爜', sort: true }
+ , { field: '浜у搧', title: '浜у搧', sort: true }
+ , { field: '鍝佺墝', title: '鍝佺墝', sort: true }
+ , { field: 'HSellSupID', title: 'HSellSupID', hide: true, sort: true }
+ , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', sort: true }
+ , { field: 'HMakeSupID', title: 'HMakeSupID', hide: true, sort: true }
+ , { field: '鍒堕�犲晢', title: '鍒堕�犲晢', sort: true }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', sort: true }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', sort: true }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '淇敼浜�', title: '淇敼浜�', sort: true }
+ , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', sort: true }
+ , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true }
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
+ , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true }
+ , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
]]
}
}
@@ -276,21 +299,22 @@
//, toolbar: '#toolbarDemo'
, height: '350'
, page: true
+ , totalRow: true
, cellMinWidth: 90
, limit: 50
, limits: [50, 500, 5000, 20000]
, cols: [[
//{ type: 'checkbox', fixed: 'left' }
, { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
- , { field: 'HMaintainItemID', title: '鏃ユ湡', width: 200}
- , { field: 'HMaintainItemNumber', title: '鍗曟嵁绫诲瀷', width: 200 }
- , { field: 'HMaintainItem', title: '鍗曟嵁鍙�', width: 200 }
- , { field: 'HMaintainPart', title: '璁惧鍒嗙被', width: 200 }
- , { field: 'HClaim', title: '璁惧鏉$爜', width: 200 }
- , { field: 'HManagerID', title: '璁惧缂栫爜', width: 200, hide: true }
- , { field: 'HManagerNumber', title: '璁惧鍚嶇О', width: 200 }
- , { field: 'HManagerName', title: '璁惧瑙勬牸', width: 200 }
- , { field: 'HRemark', title: '璁惧鍨嬪彿', width: 200 }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', width: 200}
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 200 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 200 }
+ , { field: '璁惧鍒嗙被', title: '璁惧鍒嗙被', width: 200 }
+ , { field: '璁惧鏉$爜', title: '璁惧鏉$爜', width: 200 }
+ , { field: '璁惧缂栫爜', title: '璁惧缂栫爜', width: 200, hide: true }
+ , { field: '璁惧鍚嶇О', title: '璁惧鍚嶇О', width: 200 }
+ , { field: '璁惧瑙勬牸', title: '璁惧瑙勬牸', width: 200 }
+ , { field: '璁惧鍨嬪彿', title: '璁惧鍨嬪彿', width: 200 }
, { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
, { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
, { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
@@ -310,21 +334,22 @@
//, toolbar: '#toolbarDemo'
, height: '350'
, page: true
+ , totalRow: true
, cellMinWidth: 90
, limit: 50
, limits: [50, 500, 5000, 20000]
, cols: [[
//{ type: 'checkbox', fixed: 'left' }
- , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
- , { field: 'HMaintainItemID', title: '鏃ユ湡', width: 200 }
- , { field: 'HMaintainItemNumber', title: '鍗曟嵁绫诲瀷', width: 200 }
- , { field: 'HMaintainItem', title: '鍗曟嵁鍙�', width: 200 }
- , { field: 'HMaintainPart', title: '璁惧鍒嗙被', width: 200 }
- , { field: 'HClaim', title: '璁惧鏉$爜', width: 200 }
- , { field: 'HManagerID', title: '璁惧缂栫爜', width: 200, hide: true }
- , { field: 'HManagerNumber', title: '璁惧鍚嶇О', width: 200 }
- , { field: 'HManagerName', title: '璁惧瑙勬牸', width: 200 }
- , { field: 'HRemark', title: '璁惧鍨嬪彿', width: 200 }
+ , { templet: '#xuhao1', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', width: 200 }
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 200 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 200 }
+ , { field: '璁惧鍒嗙被', title: '璁惧鍒嗙被', width: 200 }
+ , { field: '璁惧鏉$爜', title: '璁惧鏉$爜', width: 200 }
+ , { field: '璁惧缂栫爜', title: '璁惧缂栫爜', width: 200, hide: true }
+ , { field: '璁惧鍚嶇О', title: '璁惧鍚嶇О', width: 200 }
+ , { field: '璁惧瑙勬牸', title: '璁惧瑙勬牸', width: 200 }
+ , { field: '璁惧鍨嬪彿', title: '璁惧鍨嬪彿', width: 200 }
, { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
, { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
, { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
@@ -334,6 +359,43 @@
};
option2.data = [];
table2.render(option2);
+ layer.close(ajaxLoad);
+ }
+ //鍒濆鍖栬〃鏍�(瀛愯〃3)
+ function set_InitGrid3() {
+ var ajaxLoad = layer.load();
+ option3 = {
+ elem: '#mainTable3'
+ //, toolbar: '#toolbarDemo'
+ , height: '350'
+ , page: true
+ , totalRow: true
+ , cellMinWidth: 90
+ , limit: 50
+ , limits: [50, 500, 5000, 20000]
+ , cols: [[
+ //{ type: 'checkbox', fixed: 'left' }
+ , { templet: '#xuhao2', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', width: 200 }
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 200 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 200 }
+ , { field: '璁惧鍒嗙被', title: '璁惧鍒嗙被', width: 200 }
+ , { field: '璁惧鏉$爜', title: '璁惧鏉$爜', width: 200 }
+ , { field: '璁惧缂栫爜', title: '璁惧缂栫爜', width: 200, hide: true }
+ , { field: '璁惧鍚嶇О', title: '璁惧鍚嶇О', width: 200 }
+ , { field: '璁惧瑙勬牸', title: '璁惧瑙勬牸', width: 200 }
+ , { field: '璁惧鍨嬪彿', title: '璁惧鍨嬪彿', width: 200 }
+ , { field: '閰嶄欢浠g爜', title: '閰嶄欢浠g爜', width: 200 }
+ , { field: '閰嶄欢鍚嶇О', title: '閰嶄欢鍚嶇О', width: 200 }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+
+ ]]
+ };
+ option3.data = [];
+ table3.render(option3);
layer.close(ajaxLoad);
}
//鍔犺浇缃戞牸
@@ -395,7 +457,7 @@
sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + BenginHCreateDate + "'";
}
if (EndHCreateDate) {
- sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + EndHCreateDate + "'";
+ sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + EndHCreateDate + "'";
}
get_Display(sWhere);
sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
@@ -405,8 +467,8 @@
//$("#HBillType").val("");//鍗曟嵁绫诲瀷
$("#HBillNo").val("");//鍗曟嵁鍙�
$("#HEquipType").val("");//璁惧绫诲瀷
- $("#BenginHCreateDate").val("");//寮�濮嬪埗鍗曟椂闂�
- $("#EndHCreateDate").val("");//缁撴潫鍒跺崟鏃堕棿
+ $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//寮�濮嬫棩鏈�
+ $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//缁撴潫鏃ユ湡
sWhere = "";
$("#btnSearch").click();
}
--
Gitblit v1.9.1