119 lines
5.1 KiB
HTML
119 lines
5.1 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-2">借款金额<font>*</font></td>
|
||
|
<td><input type="text" name="amount" value="" autocomplete="off" placeholder="请输入借款金额" lay-verify="required|number" lay-reqText="请输入借款金额" class="layui-input"></td>
|
||
|
<td class="layui-td-gray">借款类型<font>*</font></td>
|
||
|
<td>
|
||
|
<select name="detail_type" lay-verify="required" lay-reqText="请选择">
|
||
|
<option value="">--请选择--</option>
|
||
|
{volist name=":oa_cost_cate()" id="vo"}
|
||
|
<option value="{$vo.id}">{$vo.title}</option>
|
||
|
{/volist}
|
||
|
</select>
|
||
|
</td>
|
||
|
<td class="layui-td-gray">申请日期<font>*</font></td>
|
||
|
<td>
|
||
|
<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><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><input type="text" name="bank" value="" autocomplete="off" placeholder="请输入银行账号" lay-verify="required|number" lay-reqText="请输入银行账号" class="layui-input"></td>
|
||
|
<td class="layui-td-gray">开户行<font>*</font></td>
|
||
|
<td>
|
||
|
<input name="address" autocomplete="off" class="layui-input" value="" lay-verify="required" placeholder="请输入开户行" lay-reqText="请输入开户行">
|
||
|
</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">备注</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><input type="text" name="amount" value="{$detail.amount}" autocomplete="off" placeholder="请输入借款金额" lay-verify="required|number" lay-reqText="请输入借款金额" class="layui-input"></td>
|
||
|
<td class="layui-td-gray">费用类型<font>*</font></td>
|
||
|
<td>
|
||
|
<select name="detail_type" lay-verify="required" lay-reqText="请选择">
|
||
|
<option value="">--请选择--</option>
|
||
|
{volist name=":oa_cost_cate()" id="vo"}
|
||
|
<option value="{$vo.id}" {eq name="$detail.detail_type" value="$vo.id"}selected=""{/eq}>{$vo.title}</option>
|
||
|
{/volist}
|
||
|
</select>
|
||
|
</td>
|
||
|
<td class="layui-td-gray">申请日期<font>*</font></td>
|
||
|
<td>
|
||
|
<input id="detail_time" name="detail_time" autocomplete="off" 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><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><input type="text" name="bank" value="{$detail.bank}" autocomplete="off" placeholder="请输入银行账号" lay-verify="required|number" lay-reqText="请输入银行账号" class="layui-input"></td>
|
||
|
<td class="layui-td-gray">开户行<font>*</font></td>
|
||
|
<td>
|
||
|
<input name="address" autocomplete="off" class="layui-input" value="{$detail.address}" lay-verify="required" placeholder="请输入开户行" lay-reqText="请输入开户行">
|
||
|
</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">备注</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}
|
||
|
<!-- /脚本 -->
|