123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <!-- 供应科审核 -->
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <jsp:include page="../../common/include.jsp" />
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <script type="text/javascript"><!--
-
- //人员类别
- var personTypeObj = null;
- var personType_array = null;
-
- //审核状态
- var subsidiesStateObj = null;
-
- var subsidiesState_array = null;
-
- /**用户显示区*/
- $(function() {
- $('#subsidiesPayableDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- idField:'id',
- url:whzl.basePath + '/subsidiesPayableWaitAction_listSubsidiesPayableWait?state=2&subsidiesPayable.type=3',
- toolbar:'#searchtool',
- checkOnSelect:true,
- selectOnCheck:true,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- },
- rowStyler:function(index,row){
- if("2" == row.checkPrivateHouse){
- return "background-color:#00868B;"
- }
- }
- });
- //人员类别
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- personTypeObj = msg.obj.rows;
- }
- }
- });
-
- //补贴审核状态
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"subsidiesState" ,"aa10.name":"补贴审核状态" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- subsidiesStateObj = msg.obj.rows;
- }
- }
- });
- })
-
-
- /**查询*/
- function searchFun(){
- $("#subsidiesPayableDataGrid").datagrid("load", {
- "subsidiesPayable.yearAndMonth":$("#tblQuery").find("input[id='yearAndMonth']").val(),
- "subsidiesPayable.securityPerson.name":$("#tblQuery").find("input[id='name']").val(),
- "subsidiesPayable.securityPerson.idCard":$("#tblQuery").find("input[id='idCard']").val()
- });
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- $("#tblQuery").find("select").val("-1");
- }
-
- /**补贴详情格式化*/
- var detailsFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=subsidiesPayableDetails('" + row.id + "','" + row.securityPersonId + "') style='cursor:pointer' />";
-
- };
-
- /**更新*/
- var updateFormatter = function(value , row , index){
- if(row.state == 2){
- return "初审通过";
- }else if(row.state == 11){
- return "初审未通过";
- }else{
- return "<img src='<%=basePath%>/images/pencil.png' title='修改' onclick=updateRow('" + row.id + "','" + row.securityPersonId + "') style='cursor:pointer' />";
- }
- };
-
-
- /**更新事件*/
- function updateRow(id,securityPersonId){
- var updateIndex = $('#subsidiesPayableDataGrid').datagrid('getRowIndex', id);
- $('#taskDialog').dialog(
- {
- buttons : [
- {
- text : '提交',
- iconCls : 'icon-ok',
- handler : function(){
- task_submit(id);
- $("#taskDialog").dialog("close");
- }
- },
- {
- text : '取消',
- iconCls : 'icon-cancel',
- handler : function(){
- $("#taskDialog").dialog("close");
- }
- }
- ],
- onLoad : function(){
- task_load(id,securityPersonId);
- }
- }
- );
- }
-
-
- //添加补贴应发数
- function subsidiesPayableDetails(id,securityPersonId) {
- $('#detailSubsidiesPayableDialog').dialog({
- buttons : [
- {
- text : '确定',
- iconCls : 'icon-ok',
- handler : function() {
- $("#detailSubsidiesPayableDialog").dialog("close");
- }
- } ],
- onLoad : function(){
- detail_load(id,securityPersonId);
- }
- });
- }
-
-
- /**当前状态格式化*/
- var stateFormatter = function(value , row , index){
- var subsidiesState = "";
- for(var nItem = 0; nItem < subsidiesStateObj.length; nItem++ ){
- if(subsidiesStateObj[nItem].code == row.state){
- subsidiesState = subsidiesStateObj[nItem].value;
- break;
- }
- }
- return subsidiesState;
- };
-
- /**批量审核*/
- function verify1SubsidiesPayables(){
- var selectedItems = $('#subsidiesPayableDataGrid').datagrid('getSelections');
- var ids = [];
- $.each(selectedItems,function(index,item){
- ids.push(item.id);
- })
- if(ids.length==0){
- $.messager.alert("警告","请选择至少一条记录!");
- return;
- }
- var idsStr = ids.join(",");
- for(var i =0; i < selectedItems.length; i++){
- if(selectedItems[i].state != 2){
- $.messager.alert("警告","部分数据已经审核过,请重新选择!");
- return;
- }
- }
-
- $('#verifyDialog').dialog({
- buttons : [{
- text : '提交',
- iconCls : 'icon-ok',
- handler : function(){
- btWaitVerify_submit();
- $("#verifyDialog").dialog("close");
- }
- },{
- text : '取消',
- iconCls : 'icon-cancel',
- handler : function(){
- $("#verifyDialog").dialog("close");
- }
- }],
- onLoad : function(){
- btWaitVerify_load(idsStr,2);
- }
- });
- }
- /**人员类别格式化*/
- var personTypeFormatter = function(value , row , index){
- var personType = "";
- for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
- if(personTypeObj[nItem].code == row.personType){
- personType = personTypeObj[nItem].value;
- break;
- }
- }
- return personType;
- };
-
- var yearAndMonthFormatter = function(value , row , index){
- if(value.length=5){
- return value.substring(0,4)+"年"+value.slice(-1)+"月"
- }else if(value.length=6){
- return value.substring(0,4)+"年"+value.slice(-2)+"月"
- }
- }
- --></script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
- <div id="searchtool" data-options="region:'north' , border:false">
- <div class="clear"></div>
- <table id="tblQuery" style="width:100%;">
- <tr>
- <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>
- <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>
- <td align="right" style="width: 7%;"><span>供应年月</span></td><td style="width: 18%;">
- <input type="text" id="yearAndMonth" onchange="javascript:searchFun();" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM'})" class="Wdate"/>
- </td>
- <td align="left" style="width: 39%;">
- <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- <a href="javascript:verify1SubsidiesPayables();" class="easyui-linkbutton" data-options="iconCls:'icon-batch',plain:true">批量审核</a>
- </br><span>再次推送房产核查:</span><span style="background: #00868B;"> </span>
- <span>年审过程中在保家庭发生变化:人口 </span><span style="background: #B8E455"> </span>
- <span> 收入 </span><span style="background: #FFC0CB"> </span>
- </td>
- </tr>
-
- </table>
- <div class="clear"></div>
- </div>
-
- <table id="subsidiesPayableDataGrid">
- <thead frozen="true">
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- <th data-options="field:'securityPersonName',sortable:true,width:55">姓名</th>
- <th data-options="field:'securityPersonIdCard',sortable:true,width:140">身份证号</th>
- <th data-options="field:'bankAccount',sortable:true,width:140">银行账号</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'yearAndMonth',align:'center',width:100,formatter:yearAndMonthFormatter">发放月份</th>
- <th data-options="field:'subsidyMoney',align:'center',width:80">发放金额</th>
- <th data-options="field:'familyNum',align:'center',width:80">家庭人口</th>
- <th data-options="field:'securityNum',align:'center',width:80">保障人口</th>
- <th data-options="field:'personType',align:'center',sortable:true,width:90,formatter:personTypeFormatter">人员类别</th>
- <th data-options="field:'applyDepartmentName',align:'center',width:80">申请所在地</th>
- <th data-options="field:'phone',align:'center',sortable:true,width:120,width:80">联系电话</th>
- <th data-options="field:'detail',align:'center',sortable:true,width:45,formatter:detailsFormatter">详情</th>
- <th data-options="field:'state',align:'center',width:60,formatter:stateFormatter">当前状态</th>
- <!-- <th data-options="field:'update',align:'center',width:60,formatter:updateFormatter">审核</th> -->
- </tr>
- </thead>
- </table>
-
- </div>
- </div>
- <div id="detailSubsidiesPayableDialog" data-options="title:' 补贴应发详情',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toDetail'">
- </div>
- <div id="taskDialog" data-options="title:' 保障中心初审',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toVerify1'">
- </div>
- <div id="verifyDialog" data-options="title:' 批量审批',iconCls:'icon-details',width:600,height:320,modal:true,href:'<%=basePath %>/subsidiesPayableWaitAction_toBtWaitVerify'">
- </div>
- <script type="text/javascript">
- <!--
- parent.$.messager.progress('close');
- //-->
- </script>
|