userlist.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Cache-Control" content="no-store" />
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Expires" content="-1" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  10. <title>注册用户信息</title>
  11. <script type="text/javascript" src="../../scripts/jquery-1.8.3.js"></script>
  12. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  13. <script type="text/javascript" src="../../scripts/jquery.easyui.js"></script>
  14. <script type="text/javascript" src="../../scripts/easyui-lang-zh_CN.js"></script>
  15. <script type="text/javascript" src="../../scripts/jquery.validate.rules.generate.js"></script>
  16. <script type="text/javascript" src="../../scripts/config.js"></script>
  17. <script type="text/javascript" src="../../scripts/comment.js"></script>
  18. <script type="text/javascript" src="../../scripts/utils.js"></script>
  19. <script type="text/javascript" src="../../scripts/init.js"></script>
  20. <script type="text/javascript" src="../../scripts/jquery.edatagrid.js"></script>
  21. <link rel="stylesheet" href="../../themes/zTreeStyle/zTreeStyle.css" type="text/css">
  22. <script type="text/javascript" src="../../scripts/jquery.ztree.core.js"></script>
  23. <script type="text/javascript" src="../../scripts/jquery.ztree.excheck.js"></script>
  24. </head>
  25. <body>
  26. <table id="dg" style="width: 98%; height: 512px" toolbar="#toolbar" pagination="true" idField="roleid"
  27. rownumbers="true" fitColumns="false" singleSelect="true">
  28. <thead>
  29. <tr>
  30. <th field="ck" data-options="checkbox:true" width="5"></th>
  31. <th field="nickName" align="left" sortable="true" width="180">昵称</th>
  32. <th field="userName" align="left" sortable="true" width="200">用户名称</th>
  33. <th field="certNo" align="left" sortable="true" width="200">证件号</th>
  34. <th field="authenticationState" data-options="formatter:dataFmt('authenticationState') " align="left"
  35. sortable="true" width="100">认证状态</th>
  36. <th field="certTime" align="left" sortable="true" width="100">认证时间</th>
  37. <th field="mobnub" align="left" sortable="true" width="100">手机号码</th>
  38. <th field="adminName" align="left" sortable="true" width="100">管理员姓名</th>
  39. <th field="menuids1" align="center" data-options="formatter:linkMenuFmt()" width="300">操作</th>
  40. </tr>
  41. </thead>
  42. </table>
  43. <div id="toolbar">
  44. <span>审核状态:</span>
  45. <input id="authenticationStateBos" class="easyui-combobox" value="-1" data-options="
  46. valueField: 'id',
  47. textField: 'text',
  48. data: [{
  49. id: '-1',
  50. text: '请选择'
  51. },
  52. {
  53. id: '0',
  54. text: '未发起'
  55. },{
  56. id: '1',
  57. text: '待审核'
  58. },{
  59. id: '2',
  60. text: '审核成功'
  61. },{
  62. id: '3',
  63. text: '审核失败'
  64. }]" />
  65. <a href="#" class="easyui-linkbutton" plain="true" data-options="iconCls:'icon-search',plain:true"
  66. onclick="doSearch()">查询</a>
  67. </div>
  68. <div id="addjfbox" class="easyui-dialog" style="width:300px;height:200px"
  69. data-options="title:'充值积分',buttons:'#addjfBtn',modal:true,closed:true">
  70. <div style="margin:10px">
  71. <span>积分数量:</span>
  72. <input id="addjfNum" type="text" class="easyui-numberbox" value="0" data-options="min:0">
  73. </div>
  74. </div>
  75. <div id="addjfBtn">
  76. <a href="#" class="easyui-linkbutton" onclick="addjf()">确定</a>
  77. <a href="#" class="easyui-linkbutton" onclick="javascript:$('#addjfbox').dialog('close')">取消</a>
  78. </div>
  79. <!-- 用户信息 -->
  80. <div id="userWin" iconCls="icon-edit" class="easyui-dialog" title="用户信息"
  81. style="width: 1200px; height: 700px; padding: 10px; align: 'center'; top: 20px;"
  82. data-options="modal:true,closed:true">
  83. <div id="jfToolBar">
  84. <a id="btn" href="#" class="easyui-linkbutton" onclick="javascript:$('#addjfbox').dialog('open')">充值积分</a>
  85. </div>
  86. <div id="tt" class="easyui-tabs" style="padding:20px;">
  87. <div title="用户基本信息" style="padding:20px;" id="baseUser">
  88. </div>
  89. <div title="审批历史" data-options="closable:true" style="padding:20px;" id="auditTrace">
  90. </div>
  91. <div title="审批" data-options="closable:true" style="padding:20px;" id="auditsub">
  92. <input id="bussId" hidden />
  93. <span>审核说明:</span>
  94. <input class="easyui-textbox" id="auditremark" data-options="multiline:true"
  95. style="width:300px;height: 100px;">
  96. <div style="padding: 5px; text-align: center;">
  97. <a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="javascript:{audit(1);}">通过</a> <a
  98. href="#" class="easyui-linkbutton" icon="icon-cancel" onclick="javascript:{audit(0);}">不通过</a>
  99. </div>
  100. </div>
  101. <div title="资源信息" data-options="closable:true" style="padding:20px;" id="res">
  102. <table id="dgRes" style="width: 98%; height: 512px" pagination="true" idField="roleid" rownumbers="true"
  103. fitColumns="false" singleSelect="true">
  104. <thead>
  105. <tr>
  106. <th field="ck" data-options="checkbox:true" width="5"></th>
  107. <th field="name" align="left" sortable="true" width="180">资源名称</th>
  108. <th field="number" align="left" sortable="true" width="200">资源编号</th>
  109. <th field="starttime" align="left" sortable="true" width="100">开始时间</th>
  110. <th field="endtime" align="left" sortable="true" width="100">结束时间</th>
  111. <th field="capacity" align="left" sortable="true" width="100">规格</th>
  112. <th field="state" align="left" data-options="formatter:dataFmt('zyState') " sortable="true"
  113. width="100">状态</th>
  114. <th field="resIp" align="left" data-options="formatter:setzyIp()" sortable="true"
  115. width="150">IP</th>
  116. <th field="czRes" align="center" data-options="formatter:linkMenuFmt()" width="100">操作</th>
  117. </tr>
  118. </thead>
  119. </table>
  120. <!-- <div id="toolbar">
  121. <input type="text" id="checkedUserId"/>
  122. <a href="#" class="easyui-linkbutton" plain="true"
  123. data-options="iconCls:'icon-search',plain:true" onclick="doResSearch()">查询</a>
  124. </div> -->
  125. </div>
  126. <div title="积分信息" data-options="closable:true" style="padding:20px;" id="jf">
  127. <table id="dgJf" style="width: 98%; height: 512px" toolbar="#jfToolBar" pagination="true"
  128. idField="roleid" rownumbers="true" fitColumns="false" singleSelect="true">
  129. <thead>
  130. <tr>
  131. <th field="ck" data-options="checkbox:true" width="5"></th>
  132. <th field="userName" align="left" sortable="true" width="180">账户名称</th>
  133. <th field="createTime" align="left" sortable="true" width="100">创建时间</th>
  134. <th field="desc" align="left" sortable="true" width="200">描述</th>
  135. <th field="point" align="left" sortable="true" width="100">积分变动大小</th>
  136. <th field="direction" align="left" sortable="true" width="100">积分变动方向(+/-)</th>
  137. <th field="invoiceState" align="left" data-options="formatter:dataFmt('invoiceStatate') "
  138. sortable="true" width="100">开票状态</th>
  139. <th field="money" align="left" sortable="true" width="100">金额</th>
  140. <th field="pointId" align="left" sortable="true" width="100">积分id</th>
  141. <th field="invoiceId" align="left" sortable="true" width="100">发票id</th>
  142. <th field="type" align="left" data-options="formatter:dataFmt('jfType')" sortable="true"
  143. width="180">类型</th>
  144. <!-- <th field="czRes" align="center" data-options="formatter:linkMenuFmt()" width="100">操作</th> -->
  145. </tr>
  146. </thead>
  147. </table>
  148. </div>
  149. </div>
  150. </div>
  151. <script type="text/javascript">
  152. //页面加载调用
  153. $(function () {
  154. var authenticationStateDate = getListData('authenticationState');
  155. var zyState = getListData('zyState')
  156. var jfType = getListData('jfType')
  157. var invoiceStatate = getListData('invoiceStatate')
  158. var userid = ''
  159. doSearch();
  160. });
  161. function doSearch(download) {
  162. var systemType = "service";
  163. var authenticationState = $("#authenticationStateBos").combobox('getValue');
  164. var params = "";
  165. if (authenticationState == "-1") {
  166. } else {
  167. params = "proNames=authenticationState" + "&proValues=" + authenticationState + "";
  168. }
  169. $('#dg').edatagrid({
  170. url: getUrl('XG0001', params),
  171. striped: true,
  172. pagination: true,
  173. pageSize: 15,//每页显示的记录条数,默认为10
  174. pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
  175. loadFilter: function (data) {
  176. loadFilterError(data);
  177. return data;
  178. }
  179. });
  180. };
  181. function linkMenuFmt() {
  182. return function (value, row, index) {
  183. if (row.name) {
  184. return '<a href="javascript:void(0)" onclick="saveIp(' + index + ')">保存</a>';
  185. } else {
  186. return '<a href="javascript:void(0)" onclick="showUserAuditWin(' + index + ')">查看</a>';
  187. }
  188. // return '<a href="javascript:void(0)" onclick="showUserAuditWin(' + index + ')">查看</a>'
  189. };
  190. };
  191. function setzyIp() {
  192. return function (value, row, index) {
  193. if (row.resIp) {
  194. return `<input id='ip${index}' type="text" class="easyui-numberbox" value="${row.resIp}">`
  195. } else {
  196. return `<input id='ip${index}' type="text" class="easyui-numberbox" value="">`
  197. }
  198. }
  199. }
  200. function audit(state) {
  201. $('#bussId').val();
  202. $('#auditremark').val();
  203. syncAjaxCall('XG0003',
  204. 'bussId=' + $('#bussId').val() + '&bussType=1&state=' + state
  205. + '&remark=' + $('#auditremark').val()
  206. + '&auditUid=administrator'
  207. + '&auditName=系统管理员',
  208. function (data) {
  209. // console.log(data);
  210. })
  211. }
  212. function saveIp(index) {
  213. var rows = $('#dgRes').datagrid('getRows')
  214. syncAjaxCall('XG0006', 'resId=' + rows[index].resId + '&resIp=' + $("#ip" + index).val(),
  215. function (data) {
  216. // console.log(data)
  217. })
  218. }
  219. function addjf() {
  220. syncAjaxCall('XG0008', 'count=' + $("#addjfNum").val() + '&uid=' + userid,
  221. function (data) {
  222. $('#addjfbox').dialog('close')
  223. })
  224. }
  225. function showUserAuditWin(selectIndex) {
  226. var row = $("#dg").datagrid("getSelected");
  227. if (row) {
  228. userid = row.uid
  229. // console.log(row)
  230. var index = $('#dg').datagrid('getRowIndex', row);
  231. if (selectIndex != index) {
  232. $.messager.alert('系统提示', '请勾选当前行后,再进行菜单修改!', 'info');
  233. return;
  234. }
  235. $('#userWin').dialog('open');
  236. if(row.userType=='0'){
  237. var baseUserHtml = "<span >姓名:" + row.certName + " </span>\
  238. <span >证件号码:"+ row.certNo + " </span><br/>\
  239. <span >手机号码:"+ row.mobnub + " </span><br/>"
  240. }else{
  241. var baseUserHtml = "<span >企业名称:" + row.certName + " </span>\
  242. <span >证件号码:"+ row.certNo + " </span><br/>\
  243. <span >管理员名称:"+ row.adminName + " </span>\
  244. <span >管理员手机:"+ row.mobnub + " </span><br/>\
  245. <span >营业执照:</span><br/>"
  246. if (row.fileId) {
  247. // console.log(xgitalser)
  248. baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId + "'/><br/>"
  249. }
  250. baseUserHtml += "<span >其他: </span><br/>"
  251. if (row.fileId1) {
  252. baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId1 + "'/>"
  253. }
  254. if (row.fileId2) {
  255. baseUserHtml += "<img src=''" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId2 + "'/>"
  256. }
  257. if (row.fileId3) {
  258. baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId3 + "'/>"
  259. }
  260. if (row.fileId4) {
  261. baseUserHtml += "<img src='" + xgitalser + "?transCode=B00022&clientToken=88dad8262f184192a3735e008a38a4cd&id=" + row.fileId4 + "'/><br/>"
  262. }
  263. }
  264. $('#baseUser').html(baseUserHtml);
  265. if (row.authenticationState == 2 || row.authenticationState == 3) {//获取审核轨迹
  266. syncAjaxCall('XG0002', 'bussId=' + row.uid + '&bussType=1', function (data) {
  267. var auditTracehtml = ""
  268. if (data.rows) {
  269. data.rows.forEach(row => {
  270. auditTracehtml += "<span> " + row.auditName + " " + row.auditTime + " " + row.remark + " " + getTypeDecs("auditState", row.state) + " </span><br/>"
  271. });
  272. $('#auditTrace').html(auditTracehtml);
  273. }
  274. });
  275. $('#tt').tabs('disableTab', "审批");
  276. } else {
  277. $('#tt').tabs('enableTab', "审批");
  278. $('#bussId').val(row.uid);
  279. }
  280. var resParams = "uid=" + row.uid;
  281. //资源
  282. $('#dgRes').edatagrid({
  283. url: getUrl('XG0005', resParams),
  284. striped: true,
  285. pagination: true,
  286. pageSize: 15,//每页显示的记录条数,默认为10
  287. pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
  288. loadFilter: function (data) {
  289. loadFilterError(data);
  290. // console.log(data.rows)
  291. return data;
  292. }
  293. });
  294. $('#dgJf').edatagrid({
  295. url: getUrl('XG0007', resParams),
  296. striped: true,
  297. pagination: true,
  298. pageSize: 15,//每页显示的记录条数,默认为10
  299. pageList: [10, 15, 25, 50, 100],//可以设置每页记录条数的列表
  300. loadFilter: function (data) {
  301. loadFilterError(data);
  302. // console.log(data)
  303. return data;
  304. }
  305. });
  306. }
  307. };
  308. </script>
  309. </body>
  310. </html>