|
@@ -134,10 +134,12 @@ function getLookInfo (id) {
|
|
$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: true });//禁用表单元素日期控件
|
|
$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: true });//禁用表单元素日期控件
|
|
$("#jyrInfoform").find("textarea").attr("disabled","true");//禁用表单元素select
|
|
$("#jyrInfoform").find("textarea").attr("disabled","true");//禁用表单元素select
|
|
$("#tab-tools").attr("hidden",true);
|
|
$("#tab-tools").attr("hidden",true);
|
|
- manageInfo(data);
|
|
|
|
|
|
+ manageInfo(data);//加载数据
|
|
|
|
+ //启用其他选项卡
|
|
$("#tt").tabs('enableTab',1);
|
|
$("#tt").tabs('enableTab',1);
|
|
$("#tt").tabs('enableTab',2);
|
|
$("#tt").tabs('enableTab',2);
|
|
$("#tt").tabs('enableTab',3);
|
|
$("#tt").tabs('enableTab',3);
|
|
|
|
+ //加载选项卡的数据
|
|
bw_initGrid(data[0].id);
|
|
bw_initGrid(data[0].id);
|
|
ck_initGrid(data[0].id);
|
|
ck_initGrid(data[0].id);
|
|
dc_initGrid(data[0].id);
|
|
dc_initGrid(data[0].id);
|
|
@@ -280,14 +282,12 @@ function editInfo() {
|
|
showModelDialog("jyrwin", "编辑");
|
|
showModelDialog("jyrwin", "编辑");
|
|
$("#jyrInfoform").form("reset");//重置表单数据
|
|
$("#jyrInfoform").form("reset");//重置表单数据
|
|
$("#tab-tools").removeAttr("hidden");
|
|
$("#tab-tools").removeAttr("hidden");
|
|
- formQY();
|
|
|
|
- manageInfo(data);
|
|
|
|
|
|
+ formQY();//启用from中的元素
|
|
|
|
+ manageInfo(data);//加载数据
|
|
|
|
+ //隐藏其他选项卡
|
|
$("#tt").tabs("disableTab",1);
|
|
$("#tt").tabs("disableTab",1);
|
|
$("#tt").tabs("disableTab",2);
|
|
$("#tt").tabs("disableTab",2);
|
|
$("#tt").tabs("disableTab",3);
|
|
$("#tt").tabs("disableTab",3);
|
|
-// $("#myTab a:gt(0)").html("");
|
|
|
|
-// $("#myTab a:gt(0)").removeAttr("href");
|
|
|
|
-// $("#myTab a:gt(0)").prop("hidden",true);
|
|
|
|
|
|
|
|
},
|
|
},
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
@@ -400,27 +400,37 @@ function xzqhSelect() {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 启用from表单中的元素
|
|
|
|
+ */
|
|
function formQY () {
|
|
function formQY () {
|
|
$("#jyrInfoform").find("input").removeAttr("disabled");//禁用表单元素input
|
|
$("#jyrInfoform").find("input").removeAttr("disabled");//禁用表单元素input
|
|
$("#jyrInfoform").find("select").removeAttr("disabled");//禁用表单元素select
|
|
$("#jyrInfoform").find("select").removeAttr("disabled");//禁用表单元素select
|
|
$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: false });//禁用表单元素日期控件
|
|
$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: false });//禁用表单元素日期控件
|
|
$("#jyrInfoform").find("textarea").removeAttr("disabled");//禁用表单元素select
|
|
$("#jyrInfoform").find("textarea").removeAttr("disabled");//禁用表单元素select
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 打印
|
|
|
|
+ */
|
|
function printInfo () {
|
|
function printInfo () {
|
|
location.href = basePath + '/jyr/printJyrInfo';
|
|
location.href = basePath + '/jyr/printJyrInfo';
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 关闭模拟框
|
|
|
|
+ */
|
|
function closeWin () {
|
|
function closeWin () {
|
|
hideModelDialog("jyrwin");
|
|
hideModelDialog("jyrwin");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 关闭模拟框
|
|
|
|
+ */
|
|
function closeModelJyr() {
|
|
function closeModelJyr() {
|
|
$('#tt').tabs('select',0);
|
|
$('#tt').tabs('select',0);
|
|
hideModelDialog("jyrwin");
|
|
hideModelDialog("jyrwin");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 日期格式转换
|
|
|
|
+ */
|
|
formatterDate = function (date) {
|
|
formatterDate = function (date) {
|
|
var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
|
|
var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
|
|
var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
|
|
var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
|
|
@@ -430,7 +440,9 @@ formatterDate = function (date) {
|
|
var sec = date.getSeconds();
|
|
var sec = date.getSeconds();
|
|
return date.getFullYear() + '-' + month + '-' + day+" "+hor+":"+min+":"+sec;
|
|
return date.getFullYear() + '-' + month + '-' + day+" "+hor+":"+min+":"+sec;
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * 日期格式转换
|
|
|
|
+ */
|
|
formatterDateNotsfm = function (date) {
|
|
formatterDateNotsfm = function (date) {
|
|
var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
|
|
var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
|
|
var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
|
|
var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
|