myflow.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  21. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  22. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  23. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  24. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  25. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  26. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  27. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  28. <link rel="stylesheet" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
  29. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  31. <!--[if IE 6]>
  32. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  33. <script>DD_belatedPNG.fix('*');</script>
  34. <![endif]-->
  35. <script type="text/javascript">
  36. function seeData(appealid){
  37. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  38. }
  39. function fillWidth(){
  40. var _width=$(window).width()-40;
  41. $("#jqGridUnsignedList").setGridWidth(_width);
  42. $("#jqGridTodoList").setGridWidth(_width);
  43. $("#jqGridFinishedList").setGridWidth(_width);
  44. }
  45. $(function(){
  46. $.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
  47. $(window).resize(function(){
  48. fillWidth();
  49. });
  50. $(".tabBar").bind("click",function(){
  51. fillWidth();
  52. });
  53. $("#jqGridUnsignedList").jqGrid({
  54. url : '${ctx}/myconsole/complaint/flow/getUnsignedList',
  55. editurl : "${ctx}/myconsole/myflow/saveOrUpdate",
  56. mtype : "POST",
  57. datatype : "json",
  58. multiselect : true,
  59. caption : '未签收',
  60. prmNames : {
  61. id : "taskid",
  62. oper : "oper",
  63. addoper : "add",
  64. editoper : "edit",
  65. deloper : "del"
  66. },
  67. sortable : true,
  68. sortname : 'updatetime',
  69. sortorder : 'asc',
  70. colModel : [ {
  71. "hidden" : true,
  72. "name" : "taskid",
  73. "key" : true
  74. },{
  75. label : "投诉人姓名",
  76. name : "appeal.tname",
  77. editable: true,
  78. width : 80
  79. },{
  80. label : "投诉日期",
  81. name : "appeal.appealdate",
  82. editable: true,
  83. width : 80
  84. }, {
  85. label : "投诉来源",
  86. name : "appeal.appealsourcename2",
  87. editable: true,
  88. width : 80
  89. }, {
  90. label : "投诉原因",
  91. name : "appeal.reasonname3",
  92. editable: true,
  93. width : 80
  94. }, {
  95. label : "操作",
  96. name : "caozuo",
  97. editable: true,
  98. align:"center",
  99. width : 80,
  100. formatter: function (cellvalue, options, rowdata) {
  101. var html = "<button class='btn btn-success radius size-S' onClick=seeData('"+rowdata.appeal.appealid+"') >预览</button>";
  102. return html;
  103. }
  104. } ],
  105. rownumbers : true,// 添加左侧行号
  106. viewrecords : true,// 是否在浏览导航栏显示记录总数
  107. rowNum : 10,// 每页显示记录数
  108. rowList : [ 10, 15, 20, 30, 40, 50 ],// 用于改变显示行数的下拉列表框的元素数组。
  109. autowidth : true,
  110. height : 'auto',
  111. pager : "#jqGridPagerUnsignedList"
  112. });
  113. $("#jqGridUnsignedList").navGrid("#jqGridPagerUnsignedList",
  114. // the buttons to appear on the toolbar of the grid
  115. {
  116. edit : false,
  117. add : false,
  118. del : false,
  119. search : false,
  120. refresh : true,
  121. view : false,
  122. position : "left",
  123. cloneToTop : true
  124. },
  125. // options for the Edit Dialog
  126. {
  127. },
  128. // options for the Add Dialog
  129. {
  130. },
  131. // options for the Delete Dailog
  132. {
  133. },
  134. //options for the search Dailog
  135. {
  136. }).navButtonAdd("#jqGridPagerUnsignedList",{
  137. caption:'批量签收',
  138. onClickButton:function(){
  139. var selectedRowIds = $("#jqGridUnsignedList").jqGrid("getGridParam", "selarrrow");
  140. if (!selectedRowIds) {
  141. layer.alert("请先选择需要编辑的行!");
  142. return false;
  143. } else {
  144. var taskid=selectedRowIds.join(",");
  145. $.post("${ctx}/myconsole/myflow/claim",{"taskID":taskid},function(data){
  146. if(data=="ok"){
  147. layer.alert("签收成功",function(){
  148. location.reload();
  149. });
  150. }else{
  151. layer.alert("签收失败",function(){
  152. location.reload();
  153. });
  154. }
  155. })
  156. }
  157. }
  158. });
  159. $("#jqGridTodoList").jqGrid({
  160. url : '${ctx}/myconsole/complaint/flow/getTodoList',
  161. editurl : "${ctx}/myconsole/myflow/saveOrUpdate",
  162. mtype : "POST",
  163. datatype : "json",
  164. multiselect : true,
  165. caption : '办理中',
  166. prmNames : {
  167. id : "taskid",
  168. oper : "oper",
  169. addoper : "add",
  170. editoper : "edit",
  171. deloper : "del"
  172. },
  173. sortable : true,
  174. sortname : 'updatetime',
  175. sortorder : 'asc',
  176. colModel : [ {
  177. "hidden" : true,
  178. "name" : "taskid",
  179. "key" : true
  180. },{
  181. label : "投诉人姓名",
  182. name : "appeal.tname",
  183. editable: true,
  184. width : 80
  185. },{
  186. label : "投诉日期",
  187. name : "appeal.appealdate",
  188. editable: true,
  189. width : 80
  190. }, {
  191. label : "投诉来源",
  192. name : "appeal.appealsourcename2",
  193. editable: true,
  194. width : 80
  195. }, {
  196. label : "投诉原因",
  197. name : "appeal.reasonname3",
  198. editable: true,
  199. width : 80
  200. }, {
  201. label : "操作",
  202. name : "caozuo",
  203. editable: true,
  204. align:"center",
  205. width : 80,
  206. formatter: function (cellvalue, options, rowdata) {
  207. var html = "<button class='btn btn-success radius size-S' onClick=seeData('"+rowdata.appeal.appealid+"') >预览</button>";
  208. return html;
  209. }
  210. } ],
  211. rownumbers : true,// 添加左侧行号
  212. viewrecords : true,// 是否在浏览导航栏显示记录总数
  213. rowNum : 10,// 每页显示记录数
  214. rowList : [ 10, 15, 20, 30, 40, 50 ],// 用于改变显示行数的下拉列表框的元素数组。
  215. autowidth : true,
  216. height : 'auto',
  217. pager : "#jqGridPagerTodoList"
  218. });
  219. $("#jqGridTodoList").navGrid("#jqGridPagerTodoList",
  220. // the buttons to appear on the toolbar of the grid
  221. {
  222. edit : false,
  223. add : false,
  224. del : false,
  225. search : false,
  226. refresh : true,
  227. view : false,
  228. position : "left",
  229. cloneToTop : true
  230. },
  231. // options for the Edit Dialog
  232. {
  233. },
  234. // options for the Add Dialog
  235. {
  236. },
  237. // options for the Delete Dailog
  238. {
  239. },
  240. //options for the search Dailog
  241. {
  242. }).navButtonAdd("#jqGridPagerTodoList",{
  243. caption:'批量办理',
  244. onClickButton:function(){
  245. layer.open({
  246. type: 1,
  247. title:"审核操作",
  248. skin: 'layui-layer-rim', //加上边框
  249. area: ['420px', '240px'], //宽高
  250. btn: ['确定'],
  251. yes:function(){
  252. var selectedRowIds = $("#jqGridTodoList").jqGrid("getGridParam", "selarrrow");
  253. var taskid=selectedRowIds.join(",");
  254. var completeData=$("#complete").serialize();
  255. $.post("${ctx}/myconsole/myflow/complete?taskID="+taskid,completeData,function(data){
  256. if(data=="ok"){
  257. layer.alert("审批成功",function(){
  258. location.reload();
  259. });
  260. }
  261. })
  262. },
  263. content: '<form id="complete" style="padding:10px"><div>状态:<select name="success"><option value="true">通过</option><option value="false">不通过</option></select></div><div>意见:<textarea name="opinion" rows="3" cols="40"></textarea></div></form>'
  264. });
  265. }
  266. });
  267. $("#jqGridFinishedList").jqGrid({
  268. url : '${ctx}/myconsole/complaint/flow/getFinishedList',
  269. editurl : "${ctx}/myconsole/myflow/saveOrUpdate",
  270. mtype : "POST",
  271. datatype : "json",
  272. multiselect : true,
  273. caption : '已完成',
  274. prmNames : {
  275. id : "taskid",
  276. oper : "oper",
  277. addoper : "add",
  278. editoper : "edit",
  279. deloper : "del"
  280. },
  281. sortable : true,
  282. sortname : 'updatetime',
  283. sortorder : 'asc',
  284. colModel : [ {
  285. "hidden" : true,
  286. "name" : "taskid",
  287. "key" : true
  288. },{
  289. label : "投诉人姓名",
  290. name : "appeal.tname",
  291. editable: true,
  292. width : 80
  293. },{
  294. label : "投诉日期",
  295. name : "appeal.appealdate",
  296. editable: true,
  297. width : 80
  298. }, {
  299. label : "投诉来源",
  300. name : "appeal.appealsourcename2",
  301. editable: true,
  302. width : 80
  303. }, {
  304. label : "投诉原因",
  305. name : "appeal.reasonname3",
  306. editable: true,
  307. width : 80
  308. }, {
  309. label : "操作",
  310. name : "caozuo",
  311. editable: true,
  312. align:"center",
  313. width : 80,
  314. formatter: function (cellvalue, options, rowdata) {
  315. var html = "<button class='btn btn-success radius size-S' onClick=seeData('"+rowdata.appeal.appealid+"') >预览</button>";
  316. return html;
  317. }
  318. } ],
  319. rownumbers : true,// 添加左侧行号
  320. viewrecords : true,// 是否在浏览导航栏显示记录总数
  321. rowNum : 10,// 每页显示记录数
  322. rowList : [ 10, 15, 20, 30, 40, 50 ],// 用于改变显示行数的下拉列表框的元素数组。
  323. autowidth : true,
  324. height : 'auto',
  325. pager : "#jqGridPagerFinishedList"
  326. });
  327. $("#jqGridFinishedList").navGrid("#jqGridPagerFinishedList",
  328. // the buttons to appear on the toolbar of the grid
  329. {
  330. edit : false,
  331. add : false,
  332. del : false,
  333. search : false,
  334. refresh : true,
  335. view : false,
  336. position : "left",
  337. cloneToTop : true
  338. },
  339. // options for the Edit Dialog
  340. {
  341. },
  342. // options for the Add Dialog
  343. {
  344. },
  345. // options for the Delete Dailog
  346. {
  347. },
  348. //options for the search Dailog
  349. {
  350. });
  351. })
  352. </script>
  353. <title>我的桌面</title>
  354. </head>
  355. <body>
  356. <div class="page-container">
  357. <div class="form form-horizontal" id="form-article" method="post">
  358. <div id="tab-system" class="HuiTab">
  359. <div class="tabBar cl">
  360. <span>未签收</span><span>办理中</span><span>已完成</span>
  361. </div>
  362. <div class="tabCon">
  363. <table id="jqGridUnsignedList"></table>
  364. <div id="jqGridPagerUnsignedList"></div>
  365. </div>
  366. <div class="tabCon">
  367. <table id="jqGridTodoList"></table>
  368. <div id="jqGridPagerTodoList"></div>
  369. </div>
  370. <div class="tabCon">
  371. <table id="jqGridFinishedList"></table>
  372. <div id="jqGridPagerFinishedList"></div>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <footer class="footer mt-20">
  378. <div class="container">
  379. <p></p>
  380. </div>
  381. </footer>
  382. </body>
  383. </html>