list-set.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>档案管理</title>
  7. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  8. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  9. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  12. <style>
  13. .line {
  14. width: 98%;
  15. float: left;
  16. cursor: pointer;
  17. padding: 10px;
  18. border-bottom: 1px solid #fff;
  19. }
  20. .activeItem{
  21. background:#2176d6;
  22. color:#fff
  23. }
  24. .disabledItem {
  25. background: #e7eaec;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div ng-controller="listCtrl as ctl" ng-cloak>
  31. <div class="wrapper wrapper-content">
  32. <div class="row">
  33. <div class="col-md-12">
  34. <div class="ibox float-e-margins">
  35. <div class="ibox-content">
  36. <div class="row">
  37. <div class="col-md-12">
  38. <div class="sp-page">
  39. <div class="sp-pull-right">
  40. <a class="sp-pull-right sp-btn-gray sp-btn-radius" href="index.html">
  41. <i class="fa fa-reply sp-mr-5"></i>返 回
  42. </a>
  43. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-if="ctl.userDpCode!=''" ng-click="ctl.openAddLayer(0)">
  44. <i class="fa fa-plus sp-mr-5"></i>添 加
  45. </a>
  46. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.openSearchLayer()">
  47. <i class="fa fa-search sp-mr-5"></i>查 询
  48. </a>
  49. </div>
  50. </div>
  51. <div class="sp-page">
  52. <table class="sp-table sp-mt-10">
  53. <thead>
  54. <tr>
  55. <th width="100">序号</th>
  56. <th>类别</th>
  57. <th>名称</th>
  58. <th>状态</th>
  59. <th width="180">操 作</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. <tr dir-paginate="item in ctl.list|itemsPerPage:ctl.itemsPerPage" total-items="ctl.total_count">
  64. <td ng-bind="(ctl.pageno-1)*ctl.itemsPerPage+($index+1)"></td>
  65. <td ng-bind="item.DOCUMENTTYPE1"></td>
  66. <td ng-bind="item.FLOWNAME"></td>
  67. <td ng-bind="item.STATUS1"></td>
  68. <td class="sp-text-center">
  69. <button class="sp-btn-gray sp-btn-sm sp-radius" ng-if="item.COUNTS==0" ng-click="ctl.setWENHAO(item)">设置文号</button>
  70. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-if="item.STATUS1=='禁用'&&item.COUNTS==1" ng-click="ctl.upDataStatus(item,1)">启&nbsp;用</button>
  71. <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="item.STATUS1=='启用'&&item.COUNTS==1" ng-click="ctl.upDataStatus(item,2)">禁&nbsp;用</button>
  72. <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="item.STATUS1=='禁用'" ng-click="ctl.btnDel(item)">删&nbsp;除</button>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  78. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  79. </div>
  80. <div class="sp-page" ng-show="ctl.noDataTip != 0">
  81. <div class="sp-page-col sp-pull-right">
  82. <div class="sp-lh-34">
  83. 每页 <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions"
  84. ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select> 条
  85. </div>
  86. </div>
  87. <div class="sp-page-col sp-pull-right">
  88. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  89. on-page-change="ctl.getData(newPageNumber,ctl.type)">
  90. </dir-pagination-controls>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="sp-layer" id="search" style="width:450px;">
  102. <div class="sp-layer-head" style="background:#2176d6">
  103. <div class="sp-page sp-text-center sp-font16">
  104. 查&nbsp;&nbsp;询
  105. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  106. ×
  107. </div>
  108. </div>
  109. </div>
  110. <div class="sp-layer-body">
  111. <div class="sp-box">
  112. <table class="sp-table">
  113. <tr>
  114. <td style="width:100px">类别</td>
  115. <td>
  116. <input type="text" class="sp-input" ng-model="ctl.search.DOCUMENTTYPE" />
  117. </td>
  118. </tr>
  119. <tr>
  120. <td style="width:100px">名称</td>
  121. <td>
  122. <input type="text" class="sp-input" ng-model="ctl.search.FLOWNAME" />
  123. </td>
  124. </tr>
  125. </table>
  126. </div>
  127. <div class="sp-page sp-text-center sp-pt-10">
  128. <a class="sp-btn-blue sp-radius" ng-click="ctl.btnSearch()"><i class="fa fa-check sp-mr-5"></i>确 认</a>
  129. <a class="sp-btn-blue sp-radius" ng-click="ctl.closeSeach()"><i class="fa fa-reply-all sp-mr-5"></i>重 置</a>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="sp-layer" id="Add" style="width: 900px;">
  134. <div class="sp-layer-head" style="background:#2176d6">
  135. <div class="sp-page sp-text-center sp-font16">
  136. 添 加
  137. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  138. ×
  139. </div>
  140. </div>
  141. </div>
  142. <div class="sp-layer-body">
  143. <div class="sp-page" style="line-height: 30px">
  144. <table class="sp-grid" style="border:1px solid #c3c3c3">
  145. <tbody>
  146. <tr>
  147. <td width="400">
  148. <center class="sp-box sp-fs-22">数据<span ng-click="ctl.clickInit()">源</span></center>
  149. <div class="sp-page" style="padding:5px;border:1px solid #c6c6c6;">
  150. <div class="sp-page" style="height: 414px;overflow-y:auto">
  151. <div class="line" ng-class="{'activeItem':item.checked}" ng-click="item.checked=!item.checked" ng-repeat="item in ctl.flowList" ng-if="item.show" ng-bind="item.FLOWNAME"></div>
  152. </div>
  153. </div>
  154. </td>
  155. <td style="text-align:center">
  156. <button class="sp-btn-gray-outline" ng-disabled="!ctl.addFlag" ng-click="ctl.addflowAll()">
  157. <i class="fa fa-2x fa-angle-double-right"></i>
  158. </button>
  159. <br />
  160. <button class="sp-btn-gray-outline" ng-disabled="!ctl.addFlag" ng-click="ctl.addflow()">
  161. <i class="fa fa-2x fa-angle-right"></i>
  162. </button>
  163. <br />
  164. <button class="sp-btn-gray-outline" ng-disabled="ctl.list1.length==0" ng-click="ctl.delflow()">
  165. <i class="fa fa-2x fa-angle-left"></i>
  166. </button>
  167. <br />
  168. <button class="sp-btn-gray-outline" ng-disabled="ctl.list1.length==0" ng-click="ctl.delflowAll()">
  169. <i class="fa fa-2x fa-angle-double-left"></i>
  170. </button>
  171. </td>
  172. <td width="400">
  173. <center class="sp-box sp-fs-22">已添加</center>
  174. <div class="sp-page" style="padding:5px;border:1px solid #c6c6c6;">
  175. <div class="sp-page" style="height: 414px;overflow-y:auto">
  176. <div class="line" ng-class="{'activeItem':item.checked,'disabledItem':item.STATUS=='启用'}" ng-click="ctl.checkItem(item)" ng-repeat="item in ctl.list1">{{item.FLOWNAME}}
  177. <i class="fa fa-star" style="color:red;float:right;margin:3px;" ng-if="item.STATUS=='启用'"></i></div>
  178. </div>
  179. </div>
  180. </td>
  181. </tr>
  182. </tbody>
  183. </table>
  184. </div>
  185. <div class="sp-page sp-text-center sp-mt-15">
  186. <button class="sp-btn-blue sp-radius" ng-click="ctl.btnSubmit()" ng-disabled="ctl.list1.length==0">
  187. <i class="fa fa-check sp-mr-5"> </i>确 认
  188. </button>
  189. <button class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all sp-mr-5"> </i>关 闭</button>
  190. </div>
  191. </div>
  192. </div>
  193. <div class="sp-layer" id="setWH" style="width:450px;">
  194. <div class="sp-layer-head" style="background:#2176d6">
  195. <div class="sp-page sp-text-center sp-font16">
  196. 设置文号
  197. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  198. ×
  199. </div>
  200. </div>
  201. </div>
  202. <div class="sp-layer-body">
  203. <div class="sp-box">
  204. <table class="sp-table">
  205. <tr>
  206. <td style="width:100px">设为文号</td>
  207. <td>
  208. <select class="sp-select" ng-model="ctl.setObjWH.TABLECOLUMN">
  209. <option ng-repeat="item in ctl.thead" value="{{item.code" ng-bind="item.cname"></option>
  210. </select>
  211. </td>
  212. </tr>
  213. </table>
  214. </div>
  215. <div class="sp-page sp-text-center sp-pt-10">
  216. <button class="sp-btn-blue sp-radius" ng-click="ctl.btnSetWH()"><i class="fa fa-check sp-mr-5"></i>确 认</button>
  217. <button class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all sp-mr-5"> </i>关 闭</button>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  223. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  224. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  225. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  226. <script src="../../apiurljs.js"></script>
  227. <script src="../../js/sm4.js"></script>
  228. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  229. <script>document.write('<scri' + 'pt src="js/list-set.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  230. <script src="../../AFrontEnd/js/special/spng.js"></script>
  231. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  232. </body>
  233. </html>