236 lines
12 KiB
HTML
236 lines
12 KiB
HTML
{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">开始时间<font>*</font></td>
|
|
<td>
|
|
<input id="start_time_a" name="start_time_a" autocomplete="off" class="layui-input" value="" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
|
|
</td>
|
|
<td>
|
|
<select lay-filter="time_b" id="start_time_b" name="start_time_b">
|
|
<option value="">--请选择--</option>
|
|
<option value="08:00">08:00</option>
|
|
<option value="08:30">08:30</option>
|
|
<option value="09:00">09:00</option>
|
|
<option value="09:30">09:30</option>
|
|
<option value="10:00">10:00</option>
|
|
<option value="10:30">10:30</option>
|
|
<option value="11:00">11:00</option>
|
|
<option value="11:30">11:30</option>
|
|
<option value="12:00">12:00</option>
|
|
<option value="13:30">13:30</option>
|
|
<option value="14:00">14:00</option>
|
|
<option value="14:30">14:30</option>
|
|
<option value="15:00">15:00</option>
|
|
<option value="15:30">15:30</option>
|
|
<option value="16:00">16:00</option>
|
|
<option value="16:30">16:30</option>
|
|
<option value="17:00">17:00</option>
|
|
<option value="17:30">17:30</option>
|
|
<option value="18:00">18:00</option>
|
|
<option value="18:30">18:30</option>
|
|
<option value="19:00">19:00</option>
|
|
<option value="19:30">19:30</option>
|
|
<option value="20:00">20:00</option>
|
|
</select>
|
|
</td>
|
|
<td class="layui-td-gray">结束时间<font>*</font></td>
|
|
<td>
|
|
<input id="end_time_a" name="end_time_a" autocomplete="off" class="layui-input" value="" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
|
|
</td>
|
|
<td>
|
|
<input type="hidden" name="duration" value="">
|
|
<select lay-filter="time_b" id="end_time_b" name="end_time_b">
|
|
<option value="">--请选择--</option>
|
|
<option value="08:00">08:00</option>
|
|
<option value="08:30">08:30</option>
|
|
<option value="09:00">09:00</option>
|
|
<option value="09:30">09:30</option>
|
|
<option value="10:00">10:00</option>
|
|
<option value="10:30">10:30</option>
|
|
<option value="11:00">11:00</option>
|
|
<option value="11:30">11:30</option>
|
|
<option value="12:00">12:00</option>
|
|
<option value="13:30">13:30</option>
|
|
<option value="14:00">14:00</option>
|
|
<option value="14:30">14:30</option>
|
|
<option value="15:00">15:00</option>
|
|
<option value="15:30">15:30</option>
|
|
<option value="16:00">16:00</option>
|
|
<option value="16:30">16:30</option>
|
|
<option value="17:00">17:00</option>
|
|
<option value="17:30">17:30</option>
|
|
<option value="18:00">18:00</option>
|
|
<option value="18:30">18:30</option>
|
|
<option value="19:00">19:00</option>
|
|
<option value="19:30">19:30</option>
|
|
<option value="20:00">20:00</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray">出差地点<font>*</font></td>
|
|
<td colspan="5"><input type="text" name="address" value="" autocomplete="off" placeholder="请输入出差地点" lay-verify="required" lay-reqText="请输入出差地点" class="layui-input"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray">出差事由<font>*</font></td>
|
|
<td colspan="5">
|
|
<textarea name="content" placeholder="请输入出差事由" class="layui-textarea" lay-verify="required" lay-reqText="请输入出差事由"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray"><div class="layui-input-inline">附件</div> <div class="layui-input-inline"><button type="button" class="layui-btn layui-btn-xs" id="upFile"><i class="layui-icon"></i></button></div></td>
|
|
<td colspan="5">
|
|
<div class="layui-row" id="fileList">
|
|
<input type="hidden" name="file_ids" value="">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{else/}
|
|
<table class="layui-table layui-table-form">
|
|
<tr>
|
|
<td class="layui-td-gray">开始时间<font>*</font></td>
|
|
<td>
|
|
<input id="start_time_a" name="start_time_a" autocomplete="off" readonly class="layui-input" value="{$detail.start_time_a}" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
|
|
</td>
|
|
<td>
|
|
<select lay-filter="time_b" id="start_time_b" name="start_time_b" lay-verify="required" lay-reqText="请选择具体时间">
|
|
<option value="">--请选择--</option>
|
|
<option value="08:00" {eq name="$detail.start_time_b" value="08:00"}selected=""{/eq}>08:00</option>
|
|
<option value="08:30" {eq name="$detail.start_time_b" value="08:30"}selected=""{/eq}>08:30</option>
|
|
<option value="09:00" {eq name="$detail.start_time_b" value="09:00"}selected=""{/eq}>09:00</option>
|
|
<option value="09:30" {eq name="$detail.start_time_b" value="09:30"}selected=""{/eq}>09:30</option>
|
|
<option value="10:00" {eq name="$detail.start_time_b" value="10:00"}selected=""{/eq}>10:00</option>
|
|
<option value="10:30" {eq name="$detail.start_time_b" value="10:30"}selected=""{/eq}>10:30</option>
|
|
<option value="11:00" {eq name="$detail.start_time_b" value="11:00"}selected=""{/eq}>11:00</option>
|
|
<option value="11:30" {eq name="$detail.start_time_b" value="11:30"}selected=""{/eq}>11:30</option>
|
|
<option value="12:00" {eq name="$detail.start_time_b" value="12:00"}selected=""{/eq}>12:00</option>
|
|
<option value="13:30" {eq name="$detail.start_time_b" value="13:30"}selected=""{/eq}>13:30</option>
|
|
<option value="14:00" {eq name="$detail.start_time_b" value="14:00"}selected=""{/eq}>14:00</option>
|
|
<option value="14:30" {eq name="$detail.start_time_b" value="14:30"}selected=""{/eq}>14:30</option>
|
|
<option value="15:00" {eq name="$detail.start_time_b" value="15:00"}selected=""{/eq}>15:00</option>
|
|
<option value="15:30" {eq name="$detail.start_time_b" value="15:30"}selected=""{/eq}>15:30</option>
|
|
<option value="16:00" {eq name="$detail.start_time_b" value="16:00"}selected=""{/eq}>16:00</option>
|
|
<option value="16:30" {eq name="$detail.start_time_b" value="16:30"}selected=""{/eq}>16:30</option>
|
|
<option value="17:00" {eq name="$detail.start_time_b" value="17:00"}selected=""{/eq}>17:00</option>
|
|
<option value="17:30" {eq name="$detail.start_time_b" value="17:30"}selected=""{/eq}>17:30</option>
|
|
<option value="18:00" {eq name="$detail.start_time_b" value="18:00"}selected=""{/eq}>18:00</option>
|
|
<option value="18:30" {eq name="$detail.start_time_b" value="18:30"}selected=""{/eq}>18:30</option>
|
|
<option value="19:00" {eq name="$detail.start_time_b" value="19:00"}selected=""{/eq}>19:00</option>
|
|
<option value="19:30" {eq name="$detail.start_time_b" value="19:30"}selected=""{/eq}>19:30</option>
|
|
<option value="20:00" {eq name="$detail.start_time_b" value="18:00"}selected=""{/eq}>20:00</option>
|
|
</select>
|
|
</td>
|
|
<td class="layui-td-gray">结束时间<font>*</font></td>
|
|
<td>
|
|
<input id="end_time_a" name="end_time_a" autocomplete="off" readonly class="layui-input" value="{$detail.end_time_a}" readonly lay-verify="required" placeholder="请选择时间" lay-reqText="请选择时间">
|
|
</td>
|
|
<td>
|
|
<input type="hidden" name="duration" value="{$detail.duration}">
|
|
<select lay-filter="time_b" id="end_time_b" name="end_time_b" lay-verify="required" lay-reqText="请选择具体时间">
|
|
<option value="">--请选择--</option>
|
|
<option value="08:00" {eq name="$detail.end_time_b" value="08:00"}selected=""{/eq}>08:00</option>
|
|
<option value="08:30" {eq name="$detail.end_time_b" value="08:30"}selected=""{/eq}>08:30</option>
|
|
<option value="09:00" {eq name="$detail.end_time_b" value="09:00"}selected=""{/eq}>09:00</option>
|
|
<option value="09:30" {eq name="$detail.end_time_b" value="09:30"}selected=""{/eq}>09:30</option>
|
|
<option value="10:00" {eq name="$detail.end_time_b" value="10:00"}selected=""{/eq}>10:00</option>
|
|
<option value="10:30" {eq name="$detail.end_time_b" value="10:30"}selected=""{/eq}>10:30</option>
|
|
<option value="11:00" {eq name="$detail.end_time_b" value="11:00"}selected=""{/eq}>11:00</option>
|
|
<option value="11:30" {eq name="$detail.end_time_b" value="11:30"}selected=""{/eq}>11:30</option>
|
|
<option value="12:00" {eq name="$detail.end_time_b" value="12:00"}selected=""{/eq}>12:00</option>
|
|
<option value="13:30" {eq name="$detail.end_time_b" value="13:30"}selected=""{/eq}>13:30</option>
|
|
<option value="14:00" {eq name="$detail.end_time_b" value="14:00"}selected=""{/eq}>14:00</option>
|
|
<option value="14:30" {eq name="$detail.end_time_b" value="14:30"}selected=""{/eq}>14:30</option>
|
|
<option value="15:00" {eq name="$detail.end_time_b" value="15:00"}selected=""{/eq}>15:00</option>
|
|
<option value="15:30" {eq name="$detail.end_time_b" value="15:30"}selected=""{/eq}>15:30</option>
|
|
<option value="16:00" {eq name="$detail.end_time_b" value="16:00"}selected=""{/eq}>16:00</option>
|
|
<option value="16:30" {eq name="$detail.end_time_b" value="16:30"}selected=""{/eq}>16:30</option>
|
|
<option value="17:00" {eq name="$detail.end_time_b" value="17:00"}selected=""{/eq}>17:00</option>
|
|
<option value="17:30" {eq name="$detail.end_time_b" value="17:30"}selected=""{/eq}>17:30</option>
|
|
<option value="18:00" {eq name="$detail.end_time_b" value="18:00"}selected=""{/eq}>18:00</option>
|
|
<option value="18:30" {eq name="$detail.end_time_b" value="18:30"}selected=""{/eq}>18:30</option>
|
|
<option value="19:00" {eq name="$detail.end_time_b" value="19:00"}selected=""{/eq}>19:00</option>
|
|
<option value="19:30" {eq name="$detail.end_time_b" value="19:30"}selected=""{/eq}>19:30</option>
|
|
<option value="20:00" {eq name="$detail.end_time_b" value="18:00"}selected=""{/eq}>20:00</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray">出差地点<font>*</font></td>
|
|
<td colspan="5"><input type="text" name="address" value="{$detail.address}" autocomplete="off" placeholder="请输入出差地点" lay-verify="required" lay-reqText="请输入出差地点" class="layui-input"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray">出差事由<font>*</font></td>
|
|
<td colspan="5">
|
|
<textarea name="content" placeholder="请输入出差事由" class="layui-textarea" lay-verify="required" lay-reqText="请输入出差事由">{$detail.content}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="layui-td-gray"><div class="layui-input-inline">附件</div> <div class="layui-input-inline"><button type="button" class="layui-btn layui-btn-xs" id="upFile"><i class="layui-icon"></i></button></div></td>
|
|
<td colspan="5">
|
|
<div class="layui-row" id="fileList">
|
|
<input type="hidden" name="file_ids" value="{$detail.file_ids}">
|
|
{notempty name="$detail.file_ids"}
|
|
{volist name="$detail.fileArray" id="vo"}
|
|
<div class="layui-col-md3" id="uploadImg{$vo.id}">
|
|
<div class="file-card">
|
|
<i class="file-icon iconfont icon-renwuguanli"></i>
|
|
<div class="file-title">{$vo.name}</div>
|
|
<div class="file-tool">
|
|
<a href="{$vo.filepath}" download="{$vo.name}" target="_blank" title="下载查看"><i class="layui-icon layui-icon-download-circle" style="color: #12bb37;"></i></a>
|
|
<i class="btn-delete layui-icon layui-icon-delete" data-id="{$vo.id}" style="color: #FF5722;" title="删除"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/volist}
|
|
{/notempty}
|
|
</div>
|
|
</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;
|
|
//日期时间范围
|
|
laydate.render({
|
|
elem: '#start_time_a',
|
|
type: 'date',
|
|
format: 'yyyy-MM-dd',
|
|
showBottom: false
|
|
});
|
|
|
|
//日期时间范围
|
|
laydate.render({
|
|
elem: '#end_time_a',
|
|
type: 'date',
|
|
format: 'yyyy-MM-dd',
|
|
showBottom: false
|
|
});
|
|
|
|
if (typeof (flowStep) == "function") {
|
|
flowStep();
|
|
}
|
|
}
|
|
</script>
|
|
{/block}
|
|
<!-- /脚本 --> |