btWaitVerify1List.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <!-- 供应科审核 -->
  2. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  3. <jsp:include page="../../common/include.jsp" />
  4. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  5. <script type="text/javascript"><!--
  6. //人员类别
  7. var personTypeObj = null;
  8. var personType_array = null;
  9. //审核状态
  10. var subsidiesStateObj = null;
  11. var subsidiesState_array = null;
  12. /**用户显示区*/
  13. $(function() {
  14. $('#subsidiesPayableDataGrid').datagrid({
  15. rownumbers:true,
  16. fit:true,
  17. pageSize:20,
  18. pageList : [ 10, 20, 30, 40, 50 ],
  19. fitColumns:false,
  20. border:false,
  21. sortOrder:'desc',
  22. pagination:true,
  23. idField:'id',
  24. url:whzl.basePath + '/subsidiesPayableWaitAction_listSubsidiesPayableWait?state=1&subsidiesPayable.type=3',
  25. toolbar:'#searchtool',
  26. checkOnSelect:true,
  27. selectOnCheck:true,
  28. nowrap:true,
  29. loadFilter:function(result){
  30. if(result.success){
  31. return result.obj;
  32. }else{
  33. $.messager.alert("提示",result.message);
  34. return ;
  35. }
  36. },
  37. rowStyler:function(index,row){
  38. if("2" == row.checkPrivateHouse){
  39. return "background-color:#00868B;"
  40. }
  41. }
  42. });
  43. //人员类别
  44. $.ajax({
  45. type: "post",//使用post方法访问后台
  46. dataType: "json",//返回json格式的数据
  47. url: "aa10Action_listAa10All",//要访问的后台地址
  48. data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
  49. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  50. success: function(msg){//msg为返回的数据,在这里做数据绑定
  51. if(msg.success){
  52. personTypeObj = msg.obj.rows;
  53. }
  54. }
  55. });
  56. //补贴审核状态
  57. $.ajax({
  58. type: "post",//使用post方法访问后台
  59. dataType: "json",//返回json格式的数据
  60. url: "aa10Action_listAa10All",//要访问的后台地址
  61. data:{"aa10.letter":"subsidiesState" ,"aa10.name":"补贴审核状态" },
  62. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  63. success: function(msg){//msg为返回的数据,在这里做数据绑定
  64. if(msg.success){
  65. subsidiesStateObj = msg.obj.rows;
  66. }
  67. }
  68. });
  69. })
  70. /**查询*/
  71. function searchFun(){
  72. $("#subsidiesPayableDataGrid").datagrid("load", {
  73. "subsidiesPayable.yearAndMonth":$("#tblQuery").find("input[id='yearAndMonth']").val(),
  74. "subsidiesPayable.securityPerson.name":$("#tblQuery").find("input[id='name']").val(),
  75. "subsidiesPayable.securityPerson.idCard":$("#tblQuery").find("input[id='idCard']").val()
  76. });
  77. }
  78. /*清除查询条件**/
  79. function ClearQuery() {
  80. $("#tblQuery").find("input").val("");
  81. $("#tblQuery").find("select").val("-1");
  82. }
  83. /**补贴详情格式化*/
  84. var detailsFormatter = function(value , row , index){
  85. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=subsidiesPayableDetails('" + row.id + "','" + row.securityPersonId + "') style='cursor:pointer' />";
  86. };
  87. /**更新*/
  88. var updateFormatter = function(value , row , index){
  89. if(row.state == 2){
  90. return "初审通过";
  91. }else if(row.state == 11){
  92. return "初审未通过";
  93. }else{
  94. return "<img src='<%=basePath%>/images/pencil.png' title='修改' onclick=updateRow('" + row.id + "','" + row.securityPersonId + "') style='cursor:pointer' />";
  95. }
  96. };
  97. /**更新事件*/
  98. function updateRow(id,securityPersonId){
  99. var updateIndex = $('#subsidiesPayableDataGrid').datagrid('getRowIndex', id);
  100. $('#taskDialog').dialog(
  101. {
  102. buttons : [
  103. {
  104. text : '提交',
  105. iconCls : 'icon-ok',
  106. handler : function(){
  107. task_submit(id);
  108. $("#taskDialog").dialog("close");
  109. }
  110. },
  111. {
  112. text : '取消',
  113. iconCls : 'icon-cancel',
  114. handler : function(){
  115. $("#taskDialog").dialog("close");
  116. }
  117. }
  118. ],
  119. onLoad : function(){
  120. task_load(id,securityPersonId);
  121. }
  122. }
  123. );
  124. }
  125. //添加补贴应发数
  126. function subsidiesPayableDetails(id,securityPersonId) {
  127. $('#detailSubsidiesPayableDialog').dialog({
  128. buttons : [
  129. {
  130. text : '确定',
  131. iconCls : 'icon-ok',
  132. handler : function() {
  133. $("#detailSubsidiesPayableDialog").dialog("close");
  134. }
  135. } ],
  136. onLoad : function(){
  137. detail_load(id,securityPersonId);
  138. }
  139. });
  140. }
  141. /**当前状态格式化*/
  142. var stateFormatter = function(value , row , index){
  143. var subsidiesState = "";
  144. for(var nItem = 0; nItem < subsidiesStateObj.length; nItem++ ){
  145. if(subsidiesStateObj[nItem].code == row.state){
  146. subsidiesState = subsidiesStateObj[nItem].value;
  147. break;
  148. }
  149. }
  150. return subsidiesState;
  151. };
  152. /**批量审核*/
  153. function verify1SubsidiesPayables(){
  154. var selectedItems = $('#subsidiesPayableDataGrid').datagrid('getSelections');
  155. var ids = [];
  156. $.each(selectedItems,function(index,item){
  157. ids.push(item.id);
  158. })
  159. if(ids.length==0){
  160. $.messager.alert("警告","请选择至少一条记录!");
  161. return;
  162. }
  163. var idsStr = ids.join(",");
  164. for(var i =0; i < selectedItems.length; i++){
  165. if(selectedItems[i].state != 1){
  166. $.messager.alert("警告","部分数据已经审核过,请重新选择!");
  167. return;
  168. }
  169. }
  170. $('#verifyDialog').dialog({
  171. buttons : [{
  172. text : '提交',
  173. iconCls : 'icon-ok',
  174. handler : function(){
  175. btWaitVerify_submit();
  176. $("#verifyDialog").dialog("close");
  177. }
  178. },{
  179. text : '取消',
  180. iconCls : 'icon-cancel',
  181. handler : function(){
  182. $("#verifyDialog").dialog("close");
  183. }
  184. }],
  185. onLoad : function(){
  186. btWaitVerify_load(idsStr,1);
  187. }
  188. });
  189. }
  190. /**人员类别格式化*/
  191. var personTypeFormatter = function(value , row , index){
  192. var personType = "";
  193. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  194. if(personTypeObj[nItem].code == row.personType){
  195. personType = personTypeObj[nItem].value;
  196. break;
  197. }
  198. }
  199. return personType;
  200. };
  201. var yearAndMonthFormatter = function(value , row , index){
  202. if(value.length=5){
  203. return value.substring(0,4)+"年"+value.slice(-1)+"月"
  204. }else if(value.length=6){
  205. return value.substring(0,4)+"年"+value.slice(-2)+"月"
  206. }
  207. }
  208. --></script>
  209. <div class="easyui-layout" data-options="fit:true,border:false">
  210. <div data-options="region:'center',border:false">
  211. <div id="searchtool" data-options="region:'north' , border:false">
  212. <div class="clear"></div>
  213. <table id="tblQuery" style="width:100%;">
  214. <tr>
  215. <td align="right" style="width: 10%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="securityPerson.name" type="text" style="width: 100px;"/></td>
  216. <td align="right" style="width: 6%;"><span>身份证号</span></td><td style="width: 10%;"><input id="idCard" name="securityPerson.idCard" type="text" style="width: 140px;"/></td>
  217. <td align="right" style="width: 7%;"><span>供应年月</span></td><td style="width: 18%;">
  218. <input type="text" id="yearAndMonth" onchange="javascript:searchFun();" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM'})" class="Wdate"/>
  219. </td>
  220. <td align="left">
  221. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  222. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  223. <a href="javascript:verify1SubsidiesPayables();" class="easyui-linkbutton" data-options="iconCls:'icon-batch',plain:true">批量审核</a>
  224. </br><span>再次推送房产核查:</span><span style="background: #00868B;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  225. <span>年审过程中在保家庭发生变化:人口&nbsp;</span><span style="background: #B8E455">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  226. <span>&nbsp;收入&nbsp;</span><span style="background: #FFC0CB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  227. </td>
  228. </tr>
  229. </table>
  230. <div class="clear"></div>
  231. </div>
  232. <table id="subsidiesPayableDataGrid">
  233. <thead frozen="true">
  234. <tr>
  235. <th data-options="field:'id',checkbox:true,width:30">ID</th>
  236. <th data-options="field:'securityPersonName',sortable:true,width:55">姓名</th>
  237. <th data-options="field:'securityPersonIdCard',sortable:true,width:140">身份证号</th>
  238. <th data-options="field:'bankAccount',sortable:true,width:140">银行账号</th>
  239. </tr>
  240. </thead>
  241. <thead>
  242. <tr>
  243. <th data-options="field:'yearAndMonth',align:'center',width:100,formatter:yearAndMonthFormatter">发放月份</th>
  244. <th data-options="field:'subsidyMoney',align:'center',width:80">发放金额</th>
  245. <th data-options="field:'familyNum',align:'center',width:80">家庭人口</th>
  246. <th data-options="field:'securityNum',align:'center',width:80">保障人口</th>
  247. <th data-options="field:'personType',align:'center',sortable:true,width:90,formatter:personTypeFormatter">人员类别</th>
  248. <th data-options="field:'applyDepartmentName',align:'center',width:80">申请所在地</th>
  249. <th data-options="field:'phone',align:'center',sortable:true,width:120,width:80">联系电话</th>
  250. <th data-options="field:'detail',align:'center',sortable:true,width:45,formatter:detailsFormatter">详情</th>
  251. <th data-options="field:'state',align:'center',width:60,formatter:stateFormatter">当前状态</th>
  252. <!-- <th data-options="field:'update',align:'center',width:60,formatter:updateFormatter">审核</th> -->
  253. </tr>
  254. </thead>
  255. </table>
  256. </div>
  257. </div>
  258. <div id="detailSubsidiesPayableDialog" data-options="title:'&nbsp;补贴应发详情',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toDetail'">
  259. </div>
  260. <div id="taskDialog" data-options="title:'&nbsp;保障中心初审',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toVerify1'">
  261. </div>
  262. <div id="verifyDialog" data-options="title:'&nbsp;批量审批',iconCls:'icon-details',width:600,height:320,modal:true,href:'<%=basePath %>/subsidiesPayableWaitAction_toBtWaitVerify'">
  263. </div>
  264. <script type="text/javascript">
  265. <!--
  266. parent.$.messager.progress('close');
  267. //-->
  268. </script>