0f7e72632d470492ff58aef13621e674.php 13.2 KB
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"D:\sos\public/../application/web\view\agent_user\agentuser_management.php";i:1593486913;s:46:"D:\sos\application\web\view\layouts\layout.php";i:1593486913;}*/ ?>
<!DOCTYPE html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <title>永保电销系统</title>
    <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" />
    <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />
    <script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>
	<script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
    <script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script>
    
	<!-- 插件调用 --->
	<script type="text/javascript" src="/assets/common/js/datagrid-detailview.js"></script>
	<script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>
	<!-- 基础 JS 调用 -->
	<script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
	<script type="text/javascript" src="/assets/web/js/src/common.menu.js"></script>
    <!--业务-组织机构树-->
    <script type="text/javascript" src="/assets/web/js/src/operation.orgManageMain.js"></script>
    <!--业务-机构人员-->
	<script type="text/javascript" src="/assets/web/js/src/user_management.js"></script>
    <!--业务-代理用户-->
    <script type="text/javascript" src="/assets/web/js/src/agentuser_management.js"></script>
	<script type="text/javascript">
        $(function () {
			$("<div class=\"datagrid-mask\"></div>").css({
                display: "none",                position: "absolute",
                width: "100%",
                height: "100%"
            }).appendTo("#Loading");
			$("<div class=\"loading\"></div>").html("<div><img src='/assets/web/img/loading.gif' style='width:80px;height:80px;'></div><div style='font-size:12px;color:#666;'>首页加载中……</div>").css({
                position: "relative",
                left: $(window).width() / 2 - $(window).width() * 0.1,
				top: $(window).height() / 2 - 100,
				width: $(window).width() * 0.2
            }).appendTo("#Loading").css({display: "block"});
			setTimeout(function () {
                $("#Loading").fadeOut("normal", function () {
                    $(this).remove();
                });
            }, 300)
        });
	</script>
</head>
<body>
	<div id='Loading' style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background-color:#fff;text-align:center;"></div>
	<!-- 内容区域 start -->
	<div class="easyui-layout" data-options="fit:true">
    <!-- 左侧模块 -->
    <div data-options="
		split:false,
        region:'west',
        collapsible:true,
   
        " title="机构列表" id="saveBox" style="width:350px;">
        <table id="win_base_org_grid" class="easyui-treegrid" style="width: 100%;"
               data-options="
       		fit:true,
       		fitColumns:true,
       		collapsible:true,
       		iconCls:'kbi-icon-record',
       		singleSelect:true,
       		border:false,
       		method:'get',
       		rownumbers:true,
       		idField: 'org_id',
       		treeField:'cn_name',
       		lines: true,
       		resizeHandle:'right',
            onLoadSuccess:function(){$('.createSelectUpBtn').linkbutton({plain: true});},
            url:'/web/organization/getTree'
       	">
            <thead data-options="frozen:true">
            <tr>
                <th data-options="field:'org_id',hidden:true"></th>
                <th data-options="field:'cn_name',width:180"><b>机构名称</b></th>
            </tr>
            </thead>
            <thead>
            <tr>
                <th data-options="field:'org_code',width:80"><b>编码</b></th>
                <th data-options="field:'caozuo',width:30,formatter:$.h.agentuser.createSelectUpBtn"><b>操作</b></th>

            </tr>
            </thead>
        </table>

    </div>
    <!--	中间模块    -->
    <div data-options="region:'center'" style="width: 100%;">
        <div id="agentuser_toolbar" style="height:33px;">
            <a href="javascript:void(0)" class="easyui-linkbutton"
               data-options="iconCls:'icon-reload',plain:true" onclick="$.h.agentuser.oninit()">刷新</a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
               data-options="iconCls:'icon-remove',plain:true">删除用户</a>
        </div>
        <table id="agentuser_table" class="easyui-datagrid" style="width:100%;" title=""
               data-options="
				idField: 'user_id',
				fit: true,
				rownumbers: true,
				singleSelect:true,
                autoRowHeight:false,
				border:false,
				toolbar:'#agentuser_toolbar',
				method:'get',
				checkOnSelect:false,
				selectOnCheck:false,
				pagination: true,
				pageSize: 20,
				onClickRow:$.h.agentuser.onClickRow,
				onDblClickRow:$.h.user.onDblClickRow,
				url:'/web/agent_user/getAgentUsers'

			">

            <thead data-options="frozen:true">
            <tr>
                <th data-options="field:'id',hidden:false"></th>
                <th data-options="field:'agent_account',sortable:true"><b>登录账号</b></th>
                <th data-options="field:'password',align:'left,sortable:true'"><b>登录密码</b></th>
            </tr>
            </thead>
            <thead>
            <tr>
                <th data-options="field:'user_code'"><b>机构代码</b></th>
                <th data-options="field:'user_ename',align:'left'"><b>英文名</b></th>
                <th data-options="field:'agent_cname',align:'left'"><b>中文名</b></th>
                <th data-options="field:'agent_phone',align:'left'"><b>手机号</b></th>
                <th data-options="field:'agent_address',align:'left'"><b>地址</b></th>
                <th data-options="field:'sex',align:'left'"><b>性别</b></th>
                <th data-options="field:'bank_card_num',align:'left'"><b>银行卡号</b></th>
                <th data-options="field:'bank',align:'left'"><b>员工银行卡开户行</b></th>
                <th data-options="field:'bank_address',align:'left'"><b>开户行地址</b></th>
                <th data-options="field:'id_number',align:'left'"><b>身份证号码</b></th>
                <th data-options="field:'org_name',hidden:false"><b>机构名称</b></th>
                <th data-options="field:'org_code',hidden:false"><b>机构编码</b></th>
            </tr>
            </thead>
        </table>
    </div>
    <!-- 右侧模块 -->
    <div data-options="
			split:true,
	        region:'east',
	        collapsible:true,
	        footer:'#win_base_org_form_footer',

			toolbar:'#orders_grid_details_toolbar',

	        " title="人员信息" id="saveBox" style="width:360px;">
        <div class="easyui-panel" data-options="fit:true,border:false,footer:'#client_list_left_footer'"
             style="background-color:#eee;padding:5px 5px 0px 5px;">
            <form action="" id="agentUserForm" data-options="" method="post" class="form-message " style="padding-top: 20px;">

                <ul class="totalForm totalForm_two">
                    <li id="additem">
                        <div class="formflow-l">所属机构</div>
                        <div class="formflow-r">
                            <input type="text" disabled class="easyui-textbox" id="org_name" value="请在左侧列表选择"
                                   style="width: 100%;"/>
                            <input type="hidden" id="org_code" name="org_code">
                            <input type="hidden" name="id">
                            <input type="hidden" id="lock_version" name="lock_version">
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">登录账号</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="agent_account" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">登录密码</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="password" style="width: 100%;"
                                   data-options=""/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">确认密码</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="password2" style="width: 100%;"
                                   data-options=""/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">英文姓名</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="agent_ename" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">中文姓名</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="agent_cname" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">手机号码</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="agent_phone" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">代理地址</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="agent_address" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">银行卡号</div>
                        <div class="formflow-r">
                            <input type="text" class="easyui-textbox" name="bank_card_num" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">开户行</div>
                        <div class="formflow-r">
                            <input class="easyui-textbox" name="bank" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">开户行地址</div>
                        <div class="formflow-r">
                            <input class="easyui-textbox" name="bank_address" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">身份证号</div>
                        <div class="formflow-r">
                            <input class="easyui-textbox" name="id_number" style="width: 100%;"
                                   data-options="required:true"/>
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">状态</div>
                        <div class="formflow-r">
                            <input id="agentuser_status" name="status" class="easyui-switchbutton" data-options="value:1,onText:'启用',offText:'禁用',width:100,checked:true,onChange:$.h.agentuser.changeStatus" />
                        </div>
                    </li>
                    <li>
                        <div class="formflow-l">备注</div>
                        <div class="formflow-r">
                            <input class="easyui-textbox" name="remark" style="width: 100%;"
                                   data-options=""/>
                        </div>
                    </li>

                </ul>
            </form>
            <div id="client_list_left_footer"
                 style="padding:5px;overflow:hidden; display:flex;justify-content:space-between;align-items:center;">
                <a class="easyui-linkbutton" style="width:46%;height:40px;"
                   data-options="iconCls:'icon-reload',onClick:$.h.org.reset">重置</a>
                <a class="easyui-linkbutton" id="pmm_submitbtn"
                   data-options="iconCls:'icon-ok',onClick:$.h.org.onSubmitUserForm"
                   style="width:46%;height:40px;">添加</a>
            </div>
        </div>
    </div>
</div>
	<!-- 内容区域 end -->
</body>
</html>