From 0d5cf440dc1ce1d7964edc3bccde9c3bd3c2bd7a Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 16 十月 2023 09:13:29 +0800
Subject: [PATCH] 生产 计划 平台 计划结束日期 可修改 功能优化
---
WebTM/views/设备管理/设备档案/Gy_EquipFileBillResume.html | 48 +++++++++++++++++++++++++-----------------------
1 files changed, 25 insertions(+), 23 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..89aab92 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"
@@ -168,7 +168,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) {
@@ -198,6 +198,8 @@
//#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)
@@ -282,15 +284,15 @@
, 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: '瀹℃牳浜�' }
@@ -315,16 +317,16 @@
, 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: '瀹℃牳浜�' }
@@ -395,7 +397,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 +407,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