agentuser_management.php 10.4 KB
<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>