reviewed.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('修改列表')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="formId">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <p>企业名称:</p>
  15. <input type="text" name="companyName"/>
  16. </li>
  17. <li>
  18. <p>企业类型:</p>
  19. <select name="companyType" th:with="type=${@dict.getType('company_type')}">
  20. <option value="">所有</option>
  21. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  22. </select>
  23. </li>
  24. <li>
  25. <p>企业法人:</p>
  26. <input type="text" name="legalPerson"/>
  27. </li>
  28. <li>
  29. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  30. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  31. </li>
  32. </ul>
  33. </div>
  34. </form>
  35. </div>
  36. <div class="btn-group-sm" id="toolbar" role="group">
  37. <!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:examine:add">
  38. <i class="fa fa-plus"></i> 添加
  39. </a>
  40. <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:examine:edit">
  41. <i class="fa fa-edit"></i> 修改
  42. </a>
  43. <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:examine:remove">
  44. <i class="fa fa-remove"></i> 删除
  45. </a>
  46. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="companyext:examine:export">
  47. <i class="fa fa-download"></i> 导出
  48. </a>-->
  49. </div>
  50. <div class="col-sm-12 select-table table-striped">
  51. <table id="bootstrap-table"></table>
  52. </div>
  53. </div>
  54. </div>
  55. <th:block th:include="include :: footer" />
  56. <script th:inline="javascript">
  57. var approveFlag = [[${@permission.hasPermi('companyext:noexamine:approve')}]];
  58. var companyTypes = [[${@dict.getType('company_type')}]];
  59. var examineStatus = [[${@dict.getType('examine_status')}]];
  60. var prefix = ctx + "company/editexamine";
  61. $(function() {
  62. var options = {
  63. url: prefix + "/list",
  64. createUrl: prefix + "/add",
  65. modalName: "商户审核",
  66. columns: [{
  67. checkbox: true
  68. },
  69. {
  70. field : 'id',
  71. title : '主键',
  72. visible: false
  73. },
  74. {
  75. field : 'companyId',
  76. title : '商户(公司)Id',
  77. visible: false
  78. },
  79. {
  80. field : 'companyName',
  81. title : '企业名称'
  82. },
  83. {
  84. field : 'companyType',
  85. title : '企业类型',
  86. align: 'center',
  87. formatter: function(value, row, index) {
  88. return $.table.selectDictLabel(companyTypes, value);
  89. }
  90. },
  91. {
  92. field : 'legalPerson',
  93. title : '企业法人'
  94. },
  95. {
  96. field : 'contactNumber',
  97. title : '联系电话'
  98. },
  99. {
  100. field : 'status',
  101. title : '审核状态',
  102. align: 'center',
  103. formatter: function(value, row, index) {
  104. return $.table.selectDictLabel(examineStatus, value)
  105. /* if(value=='0'){
  106. return '<span class="badge badge-warning">'+ $.table.selectDictLabel(examineStatus, value)+'</span>'
  107. }else if(value=='1'){
  108. return '<span class="badge badge-danger">'+ $.table.selectDictLabel(examineStatus, value)+'</span>'
  109. }*/
  110. }
  111. },
  112. {
  113. field : 'createTime',
  114. title : '申请日期'
  115. },
  116. {
  117. field : 'companyExamine.examineDate',
  118. title : '审核日期'
  119. },
  120. {
  121. field : 'companyExamine.createBy',
  122. title : '审核人'
  123. },
  124. {
  125. title: '操作',
  126. align: 'center',
  127. formatter: function(value, row, index) {
  128. var actions = [];
  129. if(row.status=="0"){
  130. actions.push('<a class="btn btn-primary btn-xs ' + approveFlag + '" href="javascript:void(0)" onclick="approve(' + row.id + ')"><i class="fa fa-edit"></i>审核</a> ');
  131. }else{
  132. actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="approve(' + row.id + ')"><i class="fa fa-edit"></i>查看详情</a> ');
  133. }
  134. return actions.join('');
  135. }
  136. }]
  137. };
  138. $.table.init(options);
  139. approve=function(id){
  140. if(id==null && id==""){
  141. return;
  142. }
  143. var modalOption ={
  144. title:"审核商户",
  145. url:prefix + "/approvePage/"+id,
  146. width:1400,
  147. height:800,
  148. callBack:cb,
  149. btn:[],
  150. }
  151. $.modal.openOptions(modalOption);
  152. }
  153. });
  154. function cb(index, layero){
  155. layer.close(index);
  156. $.table.refresh()
  157. }
  158. </script>
  159. </body>
  160. </html>