97 lines
3.6 KiB
HTML
Raw Normal View History

{extend name="../../base/view/common/base" /}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-4">
<h3 class="pb-3">权限配置</h3>
<table class="layui-table layui-table-form">
<tr>
<td colspan="4" class="red" style="line-height:1.8">
<p><strong>财务模块使用说明:</strong></p>
<p><strong>1、设置报销打款管理员可设置多个</strong></p>
<p style="text-indent:1.6em">拥有报销打款管理员权限的员工可以设置报销的打款情况。</p>
<p><strong>2、设置发票管理员可设置多个</strong></p>
<p style="text-indent:1.6em">拥有发票管理员权限的员工可以开具、废弃发票。</p>
<p><strong>3、设置到账管理员可设置多个</strong></p>
<p style="text-indent:1.6em">拥有到账管理员权限的员工可以设置发票的到账情况。</p>
</td>
</tr>
<tr>
<td class="layui-td-gray">权限名称</td>
<td>
<input type="hidden" name="id" value="{$detail.id}" />
{$detail.title}
</td>
<td class="layui-td-gray">权限标识</td>
<td>{$detail.name}</td>
</tr>
<tr>
<td class="layui-td-gray-2">报销管理员<font>*</font>
</td>
<td colspan="3">
<input type="text" name="unames" value="{$detail.unames}" readonly placeholder="请选择报销管理员" autocomplete="off" class="layui-input picker-more" lay-verify="required" lay-reqText="请选择报销管理员">
<input type="hidden" id="uids" name="uids" value="{$detail.uids}">
</td>
</tr>
<tr>
<td class="layui-td-gray-2">发票管理员<font>*</font></td>
<td colspan="3">
<input type="text" name="conf_unames_1" value="{$detail.conf_unames_1}" readonly placeholder="请选择发票管理员" autocomplete="off" class="layui-input picker-more" lay-verify="required" lay-reqText="请选择发票管理员">
<input type="hidden" name="conf_1" value="{$detail.conf_1}">
</td>
</tr>
<tr>
<td class="layui-td-gray-2">到账管理员<font>*</font></td>
<td colspan="3">
<input type="text" name="conf_unames_2" value="{$detail.conf_unames_2}" readonly placeholder="请选择到账管理员" autocomplete="off" class="layui-input picker-more" lay-verify="required" lay-reqText="请选择到账管理员">
<input type="hidden" name="conf_2" value="{$detail.conf_2}">
</td>
</tr>
</table>
<div class="py-3">
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</form>
{/block}
<!-- /主体 -->
<!-- 脚本 -->
{block name="script"}
<script>
const moduleInit = ['tool','employeepicker'];
function gouguInit() {
var form = layui.form, tool = layui.tool,employeepicker = layui.employeepicker;
//选择多个员工弹窗
$('body').on('click','.picker-more',function () {
let that = $(this);
let ids=that.next().val()+'',names = that.val()+'',ids_array=[],names_array=[];
if(ids.length>0){
ids_array=ids.split(',');
names_array=names.split(',');
}
employeepicker.init({
ids:ids_array,
names:names_array,
type:1,
department_url: "/api/index/get_department_tree",
employee_url: "/api/index/get_employee",
callback:function(ids,names,dids,departments){
that.val(names.join(','));
that.next().val(ids.join(','));
}
});
});
//监听提交
form.on('submit(webform)', function (data) {
let callback = function (e) {
layer.msg(e.msg);
}
tool.post("/contract/cate/conf", data.field, callback);
return false;
});
}
</script>
{/block}
<!-- /脚本 -->