lihai-oa/app/oa/view/approve/add_ruzhi.html

126 lines
5.0 KiB
HTML
Raw Normal View History

2023-10-24 15:17:16 +08:00
{extend name="../../base/view/common/base" /}
{block name="style"}
{include file="/approve/add_style" /}
{/block}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-4">
<h3 class="pb-3">入职申请审批</h3>
{eq name="$id" value="0"}
<table class="layui-table layui-table-form">
<tr>
<td class="layui-td-gray-2">员工姓名<font>*</font></td>
<td colspan="2"><input type="text" name="name" value="" autocomplete="off" placeholder="请输入员工姓名" lay-verify="required" lay-reqText="请输入员工姓名" class="layui-input"></td>
<td class="layui-td-gray">入职日期<font>*</font></td>
<td colspan="2">
<input id="detail_time" name="detail_time" autocomplete="off" readonly class="layui-input" value="" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
</td>
</tr>
<tr>
<td class="layui-td-gray">手机号码<font>*</font></td>
<td colspan="2"><input type="text" name="num" value="" autocomplete="off" placeholder="请输入手机号码" lay-verify="required|phone" lay-reqText="请输入手机号码" class="layui-input"></td>
<td class="layui-td-gray">性别<font>*</font></td>
<td colspan="2">
<input type="radio" name="other_type" value="1" title="男" checked>
<input type="radio" name="other_type" value="2" title="女">
</td>
</tr>
<tr>
<td class="layui-td-gray">入职部门<font>*</font></td>
<td colspan="2">
<select name="department_type" lay-verify="required" lay-reqText="请选择入职部门">
<option value="">--请选择--</option>
{volist name=":get_department()" id="vo"}
<option value="{$vo.id}">{$vo.title}</option>
{/volist}
</select>
</td>
<td class="layui-td-gray">担任职务<font>*</font></td>
<td colspan="2">
<select name="position_type" lay-verify="required" lay-reqText="请选择担任职务">
<option value="">--请选择--</option>
{volist name=":get_position()" id="vo"}
<option value="{$vo.id}">{$vo.title}</option>
{/volist}
</select>
</td>
</tr>
<tr>
<td class="layui-td-gray">备注</td>
<td colspan="5">
<textarea name="remark" placeholder="请输入备注" class="layui-textarea"></textarea>
</td>
</tr>
</table>
{else/}
<table class="layui-table layui-table-form">
<tr>
<td class="layui-td-gray-2">员工姓名<font>*</font></td>
<td colspan="2"><input type="text" name="name" value="{$detail.name}" autocomplete="off" placeholder="请输入员工姓名" lay-verify="required" lay-reqText="请输入员工姓名" class="layui-input"></td>
<td class="layui-td-gray">入职日期<font>*</font></td>
<td colspan="2">
<input id="detail_time" name="detail_time" autocomplete="off" readonly class="layui-input" value="{$detail.detail_time}" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
</td>
</tr>
<tr>
<td class="layui-td-gray">手机号码<font>*</font></td>
<td colspan="2"><input type="text" name="num" value="{$detail.num}" autocomplete="off" placeholder="请输入手机号码" lay-verify="required|phone" lay-reqText="请输入手机号码" class="layui-input"></td>
<td class="layui-td-gray">性别<font>*</font></td>
<td colspan="2">
<input type="radio" name="other_type" value="1" title="男" {eq name="$detail.other_type" value="1"}checked{/eq}>
<input type="radio" name="other_type" value="2" title="女" {eq name="$detail.other_type" value="2"}checked{/eq}>
</td>
</tr>
<tr>
<td class="layui-td-gray">入职部门<font>*</font></td>
<td colspan="2">
<select name="department_type" lay-verify="required" lay-reqText="请选择入职部门">
<option value="">--请选择--</option>
{volist name=":get_department()" id="vo"}
<option value="{$vo.id}" {eq name="$vo.id" value="$detail.department_type"}selected=""{/eq}>{$vo.title}</option>
{/volist}
</select>
</td>
<td class="layui-td-gray">担任职务<font>*</font></td>
<td colspan="2">
<select name="position_type" lay-verify="required" lay-reqText="请选择担任职务">
<option value="">--请选择--</option>
{volist name=":get_position()" id="vo"}
<option value="{$vo.id}" {eq name="$vo.id" value="$detail.position_type"}selected=""{/eq}>{$vo.title}</option>
{/volist}
</select>
</td>
</tr>
<tr>
<td class="layui-td-gray">备注</td>
<td colspan="5">
<textarea name="remark" placeholder="请输入备注" class="layui-textarea">{$detail.remark}</textarea>
</td>
</tr>
</table>
{/eq}
{include file="/approve/add_flow" /}
</form>
{/block}
<!-- /主体 -->
<!-- 脚本 -->
{block name="script"}
<script>
const moduleInit = ['tool','employeepicker'];
function gouguInit() {
var form = layui.form,tool=layui.tool, employeepicker = layui.employeepicker,laydate = layui.laydate;
if (typeof (flowStep) == "function") {
flowStep();
}
//日期时间范围
laydate.render({
elem: '#detail_time',
type: 'date',
format: 'yyyy-MM-dd',
showBottom: false
});
}
</script>
{/block}
<!-- /脚本 -->