提交 27afdc94 编写于 作者: doc_wei's avatar doc_wei

员工家庭成员信息管理托管到表单布局

上级 99625135
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'textool'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
textool = layui.textool;
// 家庭成员关系
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeFamilySituation"]["key"], 'select', "relationshipId", '', form);
// 证件类型
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeDocumentType"]["key"], 'select', "cardType", '', form);
// 政治面貌
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeesPoliticalOutlook"]["key"], 'select', "politicId", '', form);
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
sex: $("input[name='userSex']:checked").val(),
relationshipId: $("#relationshipId").val(),
cardType: $("#cardType").val(),
cardNumber: $("#cardNumber").val(),
politicId: $("#politicId").val(),
workUnit: $("#workUnit").val(),
job: $("#job").val(),
emergencyContact: $("#emergencyContact").val(),
staffId: parent.staffId
};
AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstafffamily002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'textool'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
textool = layui.textool;
showGrid({
id: "showForm",
url: sysMainMation.ehrBasePath + "sysstafffamily003",
params: {rowId: parent.rowId},
pagination: false,
method: "GET",
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb) {},
ajaxSendAfter:function (json) {
$("input:radio[name=userSex][value=" + json.bean.sex + "]").attr("checked", true);
$("#emergencyContact").val(json.bean.emergencyContact);
// 家庭成员关系
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeFamilySituation"]["key"], 'select', "relationshipId", json.bean.relationshipId, form);
// 证件类型
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeDocumentType"]["key"], 'select', "cardType", json.bean.cardType, form);
// 政治面貌
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeesPoliticalOutlook"]["key"], 'select', "politicId", json.bean.politicId, form);
matchingLanguage();
form.render();
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
sex: $("input[name='userSex']:checked").val(),
relationshipId: $("#relationshipId").val(),
cardType: $("#cardType").val(),
cardNumber: $("#cardNumber").val(),
politicId: $("#politicId").val(),
workUnit: $("#workUnit").val(),
job: $("#job").val(),
emergencyContact: $("#emergencyContact").val(),
rowId: parent.rowId
};
AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstafffamily004", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
form.render();
}
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
var rowId = "";
var objectKey = "";
var objectId = "";
layui.config({
base: basePath,
version: skyeyeVersion
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
initTable();
function initTable(){
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstafffamily001',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '名称', align: 'left', width: 100 },
{ field: 'relationshipName', title: '与本人关系', width: 100},
{ field: 'sex', title: '性别', width: 80, templet: function (d) {
if(d.sex == '0'){
return "保密";
} else if (d.sex == '1'){
return "";
} else if (d.sex == '2'){
return "";
}
}},
{ field: 'cardTypeName', title: '证件类型', width: 100},
{ field: 'cardNumber', title: '证件编号', width: 150 },
{ field: 'politicName', title: '政治面貌', width: 100},
{ field: 'workUnit', title: '工作单位', width: 140},
{ field: 'job', title: '职务', width: 120},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { // 编辑
edit(data);
} else if (layEvent === 'delete') { // 删除
deleteRow(data);
}
});
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
objectKey = GetUrlParam("objectKey");
objectId = GetUrlParam("objectId");
if (isNull(objectKey) || isNull(objectId)) {
winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000});
return false;
}
form.render();
// 编辑
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'queryFamilyList',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '姓名', align: 'left', width: 160, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
}},
{ field: 'workUnit', title: '工作单位', width: 150 },
{ field: 'job', title: '岗位', width: 100 },
{ field: 'sex', title: '性别', width: 100, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("sexEnum", 'id', d.sex, 'name');
}},
{ field: 'emergencyContact', title: '紧急联系人', width: 140, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("whetherEnum", 'id', d.emergencyContact, 'name');
}},
{ field: 'relationshipId', title: '与本人关系', width: 140, templet: function (d) {
return sysDictDataUtil.getDictDataNameByCodeAndKey("EMPLOYEE_FAMILY_SITUATION", d.relationshipId);
}},
{ field: 'cardType', title: '证件类型', width: 150, templet: function (d) {
return sysDictDataUtil.getDictDataNameByCodeAndKey("EMPLOYEE_DOCUMENT_TYPE", d.cardType);
}},
{ field: 'cardNumber', title: '证件号码', width: 150 },
{ field: 'politicId', title: '政治面貌', width: 120, templet: function (d) {
return sysDictDataUtil.getDictDataNameByCodeAndKey("EMPLOYEES_POLITICAL_OUTLOOK", d.politicId);
}},
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入姓名", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { //编辑
edit(data);
} else if (layEvent === 'details') { //详情
details(data);
} else if (layEvent === 'del') { //删除
del(data);
}
});
// 新增
$("body").on("click", "#addBean", function() {
parent._openNewWindows({
url: systemCommonUtil.getUrl('FP2023120100001&objectId=' + objectId + '&objectKey=' + objectKey, null),
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "sysStaffArchivesAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/sysStaffFamily/sysStaffFamilyEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "sysStaffFamilyEdit",
parent._openNewWindows({
url: systemCommonUtil.getUrl('FP2023120100002&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null),
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "sysStaffArchivesEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}
});
}
// 删除
function deleteRow(data) {
}
});
}
// 详情
function details(data) {
parent._openNewWindows({
url: systemCommonUtil.getUrl('FP2023120100003&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "sysStaffArchivesDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}});
}
// 删除
function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstafffamily005", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "deleteFamilyById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 搜索表单
$("body").on("click", "#formSearch", function() {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
// 刷新数据
form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return {
name: $("#name").val(),
workUnit: $("#workUnit").val(),
userName: $("#userName").val(),
jobNumber: $("#jobNumber").val(),
state: $("#state").val()
};
}
return $.extend(true, {objectKey: objectKey, objectId: objectId}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('sysStaffFamilyList', {});
});
var rowId = "";
var staffId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
authBtn('1601785417437');
// 获取当前登录员工信息
systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
staffId = data.bean.staffId;
});
initTable();
function initTable(){
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstafffamily006',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '名称', align: 'left', width: 100 },
{ field: 'relationshipName', title: '与本人关系', width: 100},
{ field: 'sex', title: '性别', width: 80, templet: function (d) {
if(d.sex == '0'){
return "保密";
} else if (d.sex == '1'){
return "";
} else if (d.sex == '2'){
return "";
}
}},
{ field: 'cardTypeName', title: '证件类型', width: 100},
{ field: 'cardNumber', title: '证件编号', width: 150 },
{ field: 'politicName', title: '政治面貌', width: 100},
{ field: 'workUnit', title: '工作单位', width: 140},
{ field: 'job', title: '职务', width: 120},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { // 编辑
edit(data);
} else if (layEvent === 'delete') { // 删除
deleteRow(data);
}
});
}
form.render();
// 录入家庭成员
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/sysStaffFamily/sysStaffFamilyAdd.html",
title: "录入家庭成员",
pageId: "sysStaffFamilyAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/sysStaffFamily/sysStaffFamilyEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "sysStaffFamilyEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}
});
}
// 删除
function deleteRow(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstafffamily005", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return {
staffId: staffId
};
}
exports('sysStaffFamilyMyList', {});
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
<link href="../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
<link href="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css" rel="stylesheet" />
</head>
<body>
<div style="margin: 0 auto; padding: 20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="20"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">性别<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="userSex" value="0" title="保密" checked="checked"/>
<input type="radio" name="userSex" value="1" title="男" />
<input type="radio" name="userSex" value="2" title="女" />
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">与本人关系<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="relationshipId" lay-search="" win-verify="required" id="relationshipId">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">证件类型<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="cardType" lay-search="" win-verify="required" id="cardType">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">证件编号<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="cardNumber" name="cardNumber" win-verify="required" placeholder="请输入证件编号" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">政治面貌<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="politicId" lay-search="" win-verify="required" id="politicId">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">工作单位<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="workUnit" name="workUnit" win-verify="required" placeholder="请输入工作单位" class="layui-input" maxlength="100"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">职务<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="job" name="job" win-verify="required" placeholder="请输入职务" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">紧急联系人<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="emergencyContact" lay-search="" win-verify="required" id="emergencyContact">
<option value="1"></option>
<option value="2"></option>
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysStaffFamily/'}).use('sysStaffFamilyAdd');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
<link href="../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
<link href="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css" rel="stylesheet" />
</head>
<body>
<div style="margin: 0 auto; padding: 20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入名称" class="layui-input" value="{{name}}" maxlength="20"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">性别<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="userSex" value="0" title="保密" checked="checked"/>
<input type="radio" name="userSex" value="1" title="" />
<input type="radio" name="userSex" value="2" title="" />
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">与本人关系<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="relationshipId" lay-search="" win-verify="required" id="relationshipId">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">证件类型<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="cardType" lay-search="" win-verify="required" id="cardType">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">证件编号<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="cardNumber" name="cardNumber" win-verify="required" placeholder="请输入证件编号" class="layui-input" value="{{cardNumber}}" maxlength="50"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">政治面貌<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="politicId" lay-search="" win-verify="required" id="politicId">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">工作单位<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="workUnit" name="workUnit" win-verify="required" placeholder="请输入工作单位" class="layui-input" value="{{workUnit}}" maxlength="100"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">职务<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="job" name="job" win-verify="required" placeholder="请输入职务" class="layui-input" value="{{job}}" maxlength="50"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">紧急联系人<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="emergencyContact" lay-search="" win-verify="required" id="emergencyContact">
<option value="1"></option>
<option value="2"></option>
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysStaffFamily/'}).use('sysStaffFamilyEdit');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto; padding-top:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">名称</label>
<div class="layui-input-inline">
<input type="text" id="name" name="name" placeholder="请输入名称" class="layui-input" />
</div>
<label class="layui-form-label">工作单位</label>
<div class="layui-input-inline">
<input type="text" id="workUnit" name="workUnit" placeholder="请输入工作单位" class="layui-input" />
</div>
<label class="layui-form-label">员工姓名</label>
<div class="layui-input-inline">
<input type="text" id="userName" name="userName" placeholder="请输入员工姓名" class="layui-input" />
</div>
<label class="layui-form-label">员工工号</label>
<div class="layui-input-inline">
<input type="text" id="jobNumber" name="jobNumber" placeholder="请输入员工工号" class="layui-input" />
</div>
<label class="layui-form-label">员工状态</label>
<div class="layui-input-inline">
<select lay-filter="state" lay-search="" id="state">
<option value="">全部</option>
<option value="1">在职</option>
<option value="2">离职</option>
<option value="3">见习</option>
<option value="4">试用</option>
<option value="5">退休</option>
</select>
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" type="button" id="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1601540549231')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1601540595851')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysStaffFamily/'}).use('sysStaffFamilyList');
</script>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysStaffFamily/'}).use('sysStaffFamilyList');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1601785417437"><i class="fa fa-plus" aria-hidden="true"></i>新增家庭成员</button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1601785425095')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1601785432510')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysStaffFamily/'}).use('sysStaffFamilyMyList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -23,7 +23,7 @@ layui.config({
pageUrl: '../../tpl/sysStaffArchives/sysStaffArchivesList.html'
}, {
title: '家庭情况',
pageUrl: ''
pageUrl: '../../tpl/sysStaffFamily/sysStaffFamilyList.html'
}, {
title: '教育信息',
pageUrl: '../../tpl/sysStaffEducation/sysStaffEducationList.html'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册