|
|
|
@ -2,80 +2,53 @@
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
|
|
<head>
|
|
|
|
|
<th:block th:include="include :: header('新增人员离职')" />
|
|
|
|
|
<th:block th:include="include :: select2-css" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body class="white-bg">
|
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
|
|
<form class="form-horizontal m" id="form-leave-add">
|
|
|
|
|
<form class="form-horizontal m" id="form-leave-add" th:object="${addleave}">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">提交人:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">提交人:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="username" class="form-control" type="text">
|
|
|
|
|
<input disabled name="username" class="form-control" th:field="*{userName}" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">城市:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">地区:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="country" class="form-control" type="text">
|
|
|
|
|
<input name="areaname" placeholder="请输入地区" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">地区:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">离职原因:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="areaname" class="form-control" type="text">
|
|
|
|
|
<textarea name="leavereason" placeholder="请输入离职原因" class="form-control"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">离职原因:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">单位:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="leavereason" class="form-control"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">单位:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="depart" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">离职时间:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="leavedate" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input name="depart" onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择单位" class="form-control">
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">离职状态:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="leavestate" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">审核人:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="examinename" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">审核日期:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">离职时间:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="examinedate" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
|
|
|
<input name="leavedate" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">审核意见:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="examinestate" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<th:block th:include="include :: select2-js" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var prefix = ctx + "system/leave"
|
|
|
|
@ -88,7 +61,25 @@
|
|
|
|
|
$.operate.save(prefix + "/add", $('#form-leave-add').serialize());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 用户管理-新增-选择部门树 */
|
|
|
|
|
function selectDeptTree() {
|
|
|
|
|
var treeId = $("#treeId").val();
|
|
|
|
|
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
|
|
|
|
|
var url = ctx + "system/user/selectDeptTree/" + deptId;
|
|
|
|
|
var options = {
|
|
|
|
|
title: '选择部门',
|
|
|
|
|
width: "380",
|
|
|
|
|
url: url,
|
|
|
|
|
callBack: doSubmit
|
|
|
|
|
};
|
|
|
|
|
$.modal.openOptions(options);
|
|
|
|
|
}
|
|
|
|
|
function doSubmit(index, layero){
|
|
|
|
|
var body = $.modal.getChildFrame(index);
|
|
|
|
|
$("#treeId").val(body.find('#treeId').val());
|
|
|
|
|
$("#treeName").val(body.find('#treeName').val());
|
|
|
|
|
$.modal.close(index);
|
|
|
|
|
}
|
|
|
|
|
$("input[name='leavedate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|