user_management.php 10.3 KB
<div class="easyui-layout" data-options="fit:true">
	<!-- 中间模块 -->
	<div data-options="region:'center'" style="width: 100%;">
		<div id="orders_grid_details_toolbar" style="height:33px;">
						<!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
						<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除人员</a> -->
						<!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:false,onClick:$.h.org.oninit">刷新</a>
						<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:false,onClick:$.h.user.delOrgTip">删除机构</a> -->
					</div>
		<table id="people_table" class="easyui-datagrid" style="width:100%;" title=""
			data-options="
				idField: 'user_id',
				fit: true,
				rownumbers: true,
				singleSelect:true,
                autoRowHeight:false,
				border:false,
				toolbar:'#orders_grid_details_toolbar',
				method:'get',
				checkOnSelect:false,
				selectOnCheck:false,
				pagination: true,
				pageSize: 20,
				onClickRow:$.h.user.onClick,
				onDblClickRow:$.h.user.onDblClickRow,
				url:'/web/agent_user/getUsers'
				
			" >
			<!-- onDblClickRow: function(index, data) {
								$('#people_login_account').textbox('setValue', data.login_account);
								$('#people_password').textbox('setValue', data.password);
								$('#people_user_code').textbox('setValue', data.user_code);
								$('#people_user_ename').textbox('setValue', data.user_ename);
								$('#people_user_cname').textbox('setValue', data.user_cname);
								$('#people_user_phone').textbox('setValue', data.user_phone);
								$('#people_user_address').textbox('setValue', data.user_address);
								$('#people_bank_card_num').textbox('setValue', data.bank_card_num);
								$('#people_bank').textbox('setValue', data.bank);
								$('#people_bank_address').textbox('setValue', data.bank_address);
								$('#people_id_number').textbox('setValue', data.id_number);
							} -->
			
				<thead data-options="frozen:true">
					<tr>
						<th data-options="field:'id',checkbox:true"></th>
						<th data-options="field:'login_account',sortable:true"><b>登录账号</b></th>
						<th data-options="field:'password',align:'left,sortable:true'"><b>登录密码</b></th>
						<th data-options="field:'user_code',align:'left,sortable:true'"><b>人员编码</b></th>
					</tr>
				</thead>
			<thead>
				<tr>
					<th data-options="field:'user_ename',align:'left'"><b>人员英文名</b></th>
					<th data-options="field:'user_cname',align:'left'"><b>人员中文名</b></th>
					<th data-options="field:'user_phone',align:'left'"><b>员工手机号</b></th>
					<th data-options="field:'user_address',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>
				</tr>
			</thead>
		</table>
	</div>

<style>
   
</style>
<!-- 右模块 -->
	<div data-options="
			split:true,
	        region:'east',
	        collapsible:true,
	        footer:'#win_base_org_form_footer'
	       
	        " 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="userForm" 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  disabled class="easyui-textbox" id="org_pname"  value="请在左侧列表选择" style="width: 100%;"/>
						        <input type="hidden" id="id" name="id">
						        <input type="hidden" id="org_code" name="org_code">
						        <input type="hidden" id="lock_version" name="lock_version">
						    </div>
						</li>
	                    <li>
	                        <div class="formflow-l">登录账号</div>
	                        <div class="formflow-r">
	                            <input class="easyui-textbox" name="login_account"  style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>	                   
	                    <li>
	                        <div class="formflow-l">登录密码</div>
	                        <div class="formflow-r">
	                            <input class="easyui-textbox" name="password" id="user-password" style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>	                   
	                    <li>
	                        <div class="formflow-l">确认密码</div>
	                        <div class="formflow-r">
	                            <input  class="easyui-textbox" name="password2" id="user-password2"  style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>	                   
	                    <li>
	                        <div class="formflow-l">人员编码</div>
	                        <div class="formflow-r">
	                            <input class="easyui-textbox"  name="user_code"  style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="formflow-l">人员英文名</div>
	                        <div class="formflow-r">
	                            <input class="easyui-textbox"  name="user_ename"  style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="formflow-l">人员中文名</div>
	                        <div class="formflow-r">
	                            <input  class="easyui-textbox" name="user_cname"  style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="formflow-l">员工手机号</div>
	                        <div class="formflow-r">
	                            <input class="easyui-textbox" name="user_phone" style="width: 100%;" data-options="required:true"/>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="formflow-l">员工地址</div>
	                        <div class="formflow-r">
	                            <input  class="easyui-textbox" name="user_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="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>
	                   
	                </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.user.reset">重置</a>
	                <a class="easyui-linkbutton" id="pmm_submitbtn" data-options="iconCls:'icon-ok',onClick:$.h.user.onSubmitUserForm" style="width:46%;height:40px;">添加</a>
	            </div>
	        </div>
	    </div>		
<!-- 右边模块 -->
	<div data-options="
		split:false,
        region:'west',
        collapsible:true,
        footer:'#win_base_org_form_footer'
   
        " 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',
               onDblClickRow:$.h.org.onDblClickRow,
               onClickRow:$.h.org.onClickRow,
               onRowContextMenu:$.h.org.rightClick,
               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.user.createSelectUpBtn"><b>操作</b></th>
       
           </tr>
           </thead>
       </table>
		
    </div>
	
</div>