123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Cache-Control" content="no-store" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="-1" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>注册用户信息</title>
- <script type="text/javascript" src="../../scripts/jquery-1.8.3.js"></script>
- <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
- <script type="text/javascript" src="../../scripts/jquery.easyui.js"></script>
- <script type="text/javascript" src="../../scripts/easyui-lang-zh_CN.js"></script>
- <script type="text/javascript" src="../../scripts/jquery.validate.rules.generate.js"></script>
- <script type="text/javascript" src="../../scripts/config.js"></script>
- <script type="text/javascript" src="../../scripts/comment.js"></script>
- <script type="text/javascript" src="../../scripts/utils.js"></script>
- <script type="text/javascript" src="../../scripts/init.js"></script>
- <script type="text/javascript" src="../../scripts/jquery.edatagrid.js"></script>
- <link rel="stylesheet" href="../../themes/zTreeStyle/zTreeStyle.css" type="text/css">
- <script type="text/javascript" src="../../scripts/jquery.ztree.core.js"></script>
- <script type="text/javascript" src="../../scripts/jquery.ztree.excheck.js"></script>
- </head>
- <body>
- <table id="dg" style="width: 98%; height: 512px" toolbar="#toolbar" pagination="true" idField="roleid"
- rownumbers="true" fitColumns="false" singleSelect="true">
- <thead>
- <tr>
- <th field="ck" data-options="checkbox:true" width="5"></th>
- <th field="nickName" align="left" sortable="true" width="180">昵称</th>
- <th field="userName" align="left" sortable="true" width="200">用户名称</th>
- <th field="certNo" align="left" sortable="true" width="200">证件号</th>
- <th field="authenticationState" data-options="formatter:dataFmt('authenticationState') " align="left"
- sortable="true" width="100">认证状态</th>
- <th field="certTime" align="left" sortable="true" width="100">认证时间</th>
- <th field="mobnub" align="left" sortable="true" width="100">手机号码</th>
- <th field="adminName" align="left" sortable="true" width="100">管理员姓名</th>
- <th field="menuids1" align="center" data-options="formatter:linkMenuFmt()" width="300">操作</th>
- </tr>
- </thead>
- </table>
- <div id="toolbar">
- <span>审核状态:</span>
- <input id="authenticationStateBos" class="easyui-combobox" value="-1" data-options="
- valueField: 'id',
- textField: 'text',
- data: [{
- id: '-1',
- text: '请选择'
- },
- {
- id: '0',
- text: '未发起'
- },{
- id: '1',
- text: '待审核'
- },{
- id: '2',
- text: '审核成功'
- },{
- id: '3',
- text: '审核失败'
- }]" />
- <a href="#" class="easyui-linkbutton" plain="true" data-options="iconCls:'icon-search',plain:true"
- onclick="doSearch()">查询</a>
- </div>
-
- <div id="addjfbox" class="easyui-dialog" style="width:300px;height:200px"
- data-options="title:'充值积分',buttons:'#addjfBtn',modal:true,closed:true">
- <div style="margin:10px">
- <span>积分数量:</span>
- <input id="addjfNum" type="text" class="easyui-numberbox" value="0" data-options="min:0">
- </div>
- </div>
- <div id="addjfBtn">
- <a href="#" class="easyui-linkbutton" onclick="addjf()">确定</a>
- <a href="#" class="easyui-linkbutton" onclick="javascript:$('#addjfbox').dialog('close')">取消</a>
- </div>
- <!-- 用户信息 -->
- <div id="userWin" iconCls="icon-edit" class="easyui-dialog" title="用户信息"
- style="width: 1200px; height: 700px; padding: 10px; align: 'center'; top: 20px;"
- data-options="modal:true,closed:true">
- <div id="jfToolBar">
- <a id="btn" href="#" class="easyui-linkbutton" onclick="javascript:$('#addjfbox').dialog('open')">充值积分</a>
- </div>
- <div id="tt" class="easyui-tabs" style="padding:20px;">
- <div title="用户基本信息" style="padding:20px;" id="baseUser">
- </div>
- <div title="审批历史" data-options="closable:true" style="padding:20px;" id="auditTrace">
- </div>
- <div title="审批" data-options="closable:true" style="padding:20px;" id="auditsub">
- <input id="bussId" hidden />
- <span>审核说明:</span>
- <input class="easyui-textbox" id="auditremark" data-options="multiline:true"
- style="width:300px;height: 100px;">
- <div style="padding: 5px; text-align: center;">
- <a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="javascript:{audit(1);}">通过</a> <a
- href="#" class="easyui-linkbutton" icon="icon-cancel" onclick="javascript:{audit(0);}">不通过</a>
- </div>
- </div>
- <div title="资源信息" data-options="closable:true" style="padding:20px;" id="res">
- <table id="dgRes" style="width: 98%; height: 512px" pagination="true" idField="roleid" rownumbers="true"
- fitColumns="false" singleSelect="true">
- <thead>
- <tr>
- <th field="ck" data-options="checkbox:true" width="5"></th>
- <th field="name" align="left" sortable="true" width="180">资源名称</th>
- <th field="number" align="left" sortable="true" width="200">资源编号</th>
- <th field="starttime" align="left" sortable="true" width="100">开始时间</th>
- <th field="endtime" align="left" sortable="true" width="100">结束时间</th>
- <th field="capacity" align="left" sortable="true" width="100">规格</th>
- <th field="state" align="left" data-options="formatter:dataFmt('zyState') " sortable="true"
- width="100">状态</th>
- <th field="resIp" align="left" data-options="formatter:setzyIp()" sortable="true"
- width="150">IP</th>
- <th field="czRes" align="center" data-options="formatter:linkMenuFmt()" width="100">操作</th>
- </tr>
- </thead>
- </table>
- <!-- <div id="toolbar">
- <input type="text" id="checkedUserId"/>
- <a href="#" class="easyui-linkbutton" plain="true"
- data-options="iconCls:'icon-search',plain:true" onclick="doResSearch()">查询</a>
- </div> -->
- </div>
- <div title="积分信息" data-options="closable:true" style="padding:20px;" id="jf">
- <table id="dgJf" style="width: 98%; height: 512px" toolbar="#jfToolBar" pagination="true"
- idField="roleid" rownumbers="true" fitColumns="false" singleSelect="true">
- <thead>
- <tr>
- <th field="ck" data-options="checkbox:true" width="5"></th>
- <th field="userName" align="left" sortable="true" width="180">账户名称</th>
- <th field="createTime" align="left" sortable="true" width="100">创建时间</th>
- <th field="desc" align="left" sortable="true" width="200">描述</th>
- <th field="point" align="left" sortable="true" width="100">积分变动大小</th>
- <th field="direction" align="left" sortable="true" width="100">积分变动方向(+/-)</th>
- <th field="invoiceState" align="left" data-options="formatter:dataFmt('invoiceStatate') "
- sortable="true" width="100">开票状态</th>
- <th field="money" align="left" sortable="true" width="100">金额</th>
- <th field="pointId" align="left" sortable="true" width="100">积分id</th>
- <th field="invoiceId" align="left" sortable="true" width="100">发票id</th>
- <th field="type" align="left" data-options="formatter:dataFmt('jfType')" sortable="true"
- width="180">类型</th>
- <!-- <th field="czRes" align="center" data-options="formatter:linkMenuFmt()" width="100">操作</th> -->
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- //页面加载调用
- $(function () {
- var authenticationStateDate = getListData('authenticationState');
- var zyState = getListData('zyState')
- var jfType = getListData('jfType')
- var invoiceStatate = getListData('invoiceStatate')
- var userid = ''
- doSearch();
- });
- function doSearch(download) {
- var systemType = "service";
- var authenticationState = $("#authenticationStateBos").combobox('getValue');
- var params = "";
- if (authenticationState == "-1") {
- } else {
- params = "proNames=authenticationState" + "&proValues=" + authenticationState + "";
- }
- $('#dg').edatagrid({
- url: getUrl('XG0001', params),
- striped: true,
- pagination: true,
- pageSize: 15,//每页显示的记录条数,默认为10
- pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
- loadFilter: function (data) {
- loadFilterError(data);
- return data;
- }
- });
- };
- function linkMenuFmt() {
- return function (value, row, index) {
- if (row.name) {
- return '<a href="javascript:void(0)" onclick="saveIp(' + index + ')">保存</a>';
- } else {
- return '<a href="javascript:void(0)" onclick="showUserAuditWin(' + index + ')">查看</a>';
- }
- // return '<a href="javascript:void(0)" onclick="showUserAuditWin(' + index + ')">查看</a>'
- };
- };
- function setzyIp() {
- return function (value, row, index) {
- if (row.resIp) {
- return `<input id='ip${index}' type="text" class="easyui-numberbox" value="${row.resIp}">`
- } else {
- return `<input id='ip${index}' type="text" class="easyui-numberbox" value="">`
- }
- }
- }
- function audit(state) {
- $('#bussId').val();
- $('#auditremark').val();
- syncAjaxCall('XG0003',
- 'bussId=' + $('#bussId').val() + '&bussType=1&state=' + state
- + '&remark=' + $('#auditremark').val()
- + '&auditUid=administrator'
- + '&auditName=系统管理员',
- function (data) {
- // console.log(data);
- })
- }
- function saveIp(index) {
- var rows = $('#dgRes').datagrid('getRows')
- syncAjaxCall('XG0006', 'resId=' + rows[index].resId + '&resIp=' + $("#ip" + index).val(),
- function (data) {
- // console.log(data)
- })
- }
- function addjf() {
- syncAjaxCall('XG0008', 'count=' + $("#addjfNum").val() + '&uid=' + userid,
- function (data) {
- $('#addjfbox').dialog('close')
- })
- }
- function showUserAuditWin(selectIndex) {
- var row = $("#dg").datagrid("getSelected");
- if (row) {
- userid = row.uid
- // console.log(row)
- var index = $('#dg').datagrid('getRowIndex', row);
- if (selectIndex != index) {
- $.messager.alert('系统提示', '请勾选当前行后,再进行菜单修改!', 'info');
- return;
- }
- $('#userWin').dialog('open');
- if(row.userType=='0'){
- var baseUserHtml = "<span >姓名:" + row.certName + " </span>\
- <span >证件号码:"+ row.certNo + " </span><br/>\
- <span >手机号码:"+ row.mobnub + " </span><br/>"
- }else{
- var baseUserHtml = "<span >企业名称:" + row.certName + " </span>\
- <span >证件号码:"+ row.certNo + " </span><br/>\
- <span >管理员名称:"+ row.adminName + " </span>\
- <span >管理员手机:"+ row.mobnub + " </span><br/>\
- <span >营业执照:</span><br/>"
- if (row.fileId) {
- // console.log(xgitalser)
- baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId + "'/><br/>"
- }
- baseUserHtml += "<span >其他: </span><br/>"
- if (row.fileId1) {
- baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId1 + "'/>"
- }
- if (row.fileId2) {
- baseUserHtml += "<img src=''" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId2 + "'/>"
- }
- if (row.fileId3) {
- baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId3 + "'/>"
- }
- if (row.fileId4) {
- baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId4 + "'/><br/>"
- }
- }
- $('#baseUser').html(baseUserHtml);
- if (row.authenticationState == 2 || row.authenticationState == 3) {//获取审核轨迹
- syncAjaxCall('XG0002', 'bussId=' + row.uid + '&bussType=1', function (data) {
- var auditTracehtml = ""
- if (data.rows) {
- data.rows.forEach(row => {
- auditTracehtml += "<span> " + row.auditName + " " + row.auditTime + " " + row.remark + " " + getTypeDecs("auditState", row.state) + " </span><br/>"
- });
- $('#auditTrace').html(auditTracehtml);
- }
- });
- $('#tt').tabs('disableTab', "审批");
- } else {
- $('#tt').tabs('enableTab', "审批");
- $('#bussId').val(row.uid);
- }
- var resParams = "uid=" + row.uid;
- //资源
- $('#dgRes').edatagrid({
- url: getUrl('XG0005', resParams),
- striped: true,
- pagination: true,
- pageSize: 15,//每页显示的记录条数,默认为10
- pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
- loadFilter: function (data) {
- loadFilterError(data);
- // console.log(data.rows)
- return data;
- }
- });
- $('#dgJf').edatagrid({
- url: getUrl('XG0007', resParams),
- striped: true,
- pagination: true,
- pageSize: 15,//每页显示的记录条数,默认为10
- pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
- loadFilter: function (data) {
- loadFilterError(data);
- // console.log(data)
- return data;
- }
- });
- }
- };
- </script>
- </body>
- </html>
|