123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <!--[if lt IE 9]>
- <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
- <![endif]-->
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
- <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <!--[if IE 6]>
- <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
- <script>DD_belatedPNG.fix('*');</script>
- <![endif]-->
- <script type="text/javascript">
-
- $(function() {
- $(window).resize(function(){
- $("#jqGrid").setGridWidth($(window).width()-41);
- });
- $("#jqGrid").jqGrid({
- url : '${ctx}/myconsole/complaint/list/getCostPage',
- editurl:"${ctx}/myconsole/complaint/register",
- mtype : "POST",
- datatype : "json",
- multiselect: false,
- caption1:'费用台账',
- prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
- id: "keyid",
- oper:"oper",
- addoper:"add",
- editoper:"edit",
- deloper:"del"
-
- },
- colModel : [ {
- label : '数据编号',
- name : 'appealid',
- key : true,
- editable: false,
- hidden:true
- },{
- label : '流水号',
- name : 'serialnumber',
- width : 50,
- align:'center',
- }, {
- label : '投诉人',
- name : 'tname',
- width : 30,
- align:'center',
- }, {
- label : '客诉时间',
- name : 'appealdate',
- width : 50,
- align:'center',
- }, {
- label : '客诉来源',
- name : 'appealsource',
- width : 30,
- align:'center',
- }, {
- label : '处理意见',
- name : 'doopinion',
- width : 50,
- align:'center',
- },{
- label : '费用列支',
- hidden:false,
- name : 'moneytype',
- width : 30,
- align:'center',
- }, {
- label : '费用金额',
- name : 'moneynum',
- width : 30,
- align:'center',
- },{
- label : '操作',
- name:'operMod',
- index:'operMod',
- align:"center",
- width:"20",
- sortable:false,
- formatter: function (cellvalue, options, rowdata) {
- var html ="";
-
- html = "<button class='btn btn-success radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>";
-
- return html;
- }
- }],
- rownumbers : true,//添加左侧行号
- viewrecords : true,//是否在浏览导航栏显示记录总数
- rowNum : 10,//每页显示记录数
- rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
- autowidth : true,
- sortname : 'a.RecordTime',
- sortorder : 'desc',
- height : 'auto',
- pager : "#jqGridPager",
- //屏蔽点击任意单元格选中checkbox的问题
- beforeSelectRow: function (rowid, e) {
- var $myGrid = $(this),
- i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
- cm = $myGrid.jqGrid('getGridParam', 'colModel');
- return (cm[i].name === 'cb');
- }
- });
- $("#jqGrid").setLabel("rn","序号");
- doSearch();
- $('#jqGrid').navGrid('#jqGridPager',
- {
- add : false,
- edit : false,
- del : false,
- search : false,
- refresh : false,
- view : false,
- position : "left",
- cloneToTop : true
- }
- ).navButtonAdd("#jqGridPager",{
- caption:'导出',
- onClickButton:function(){
- var strBeginDate = $('#BeginDate').val();
- var strEndDate = $('#EndDate').val();
- var strAppealSource = $('#AppealSource').val();
- var strFilialeID = $('#FilialeID').val();
- var strBusinessHallID = $('#BusinessHallID').val();
- var strSalesChannelID = $('#SalesChannelID').val();
- var strSalesTypeID = $('#SalesTypeID').val();
- $.post("${ctx}/myconsole/complaint/list/excelCostData",{"BeginDate":strBeginDate,"EndDate":strEndDate,"AppealSource":strAppealSource,"FilialeID":strFilialeID,"BusinessHallID":strBusinessHallID,"SalesChannelID":strSalesChannelID,"SalesTypeID":strSalesTypeID},function(data){
- var res=eval('(' + data + ')');
- if(res.flag){
- downFile(res.filepath,res.filename);
- }else{
- alert("没有数据导出!");
- }
- })
- }
- }
- );
-
- });
-
- function doSearch(){
- $('#search').click(function(){
- var strBeginDate = $('#BeginDate').val();
- var strEndDate = $('#EndDate').val();
- if(strBeginDate==''||strEndDate=='')
- {
- alert("投诉日期区间不能为空!");
- }
- else
- {
- var strAppealSource = $('#AppealSource').val();
- var strFilialeID = $('#FilialeID').val();
- var strBusinessHallID = $('#BusinessHallID').val();
- var strSalesChannelID = $('#SalesChannelID').val();
- var strSalesTypeID = $('#SalesTypeID').val();
- $("#jqGrid").jqGrid('setGridParam',{
- postData:{"BeginDate":strBeginDate,"EndDate":strEndDate,"AppealSource":strAppealSource,"FilialeID":strFilialeID,"BusinessHallID":strBusinessHallID,"SalesChannelID":strSalesChannelID,"SalesTypeID":strSalesTypeID}
- }).trigger('reloadGrid');
-
- }
-
-
-
- });
- }
- //查看信息 2017-07-24
- function seeData(appealid){
- fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
- }
- //下载附件
- function downFile(filePath,fileName)
- {
- window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
- }
- function setSalesChannelName()
- {
- var idData=$('#SalesChannelID').val();
- if(idData!='')
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/register/getSalesTypeIDData?ParentID='+idData);
- $('#form1').ajaxSubmit(setSalesTypeIDData);
- }
-
- }
- function setCentreCompanyID() {
- var filialeID = $("#FilialeID").val();
- $("#respondentFilialeID").val(filialeID);
- if (filialeID != '') {
- var filialeName = $("#FilialeID").find("option:selected").text();
- $("#FilialeName").val(filialeName);
- $('#form1').attr('action', '${ctx}/myconsole/complaint/register/getFilialeBusinessHallNameData?ParentID=' + filialeID);
- $('#form1').ajaxSubmit(setCentreCompanyIDData);
- } else {
- $("#CentreCompanyID").empty();
- $("#FilialeName").val("");
- }
- }
- //回写原因二类字典数据
- function setCentreCompanyIDData(data) {
- $("#BusinessHallID").empty();
-
- // $("#BusinessHallID").append("<option value=''>请选择</option>");
- $("#BusinessHallID").append(data);
- }
- function setBusinessHallName() {
- var BusinessHallID = $("#BusinessHallID").val();
- if (BusinessHallID != '') {
- var BusinessHallName = $("#BusinessHallID").find("option:selected").text();
- $("#BusinessHallName").val(BusinessHallName);
- } else {
- $("#BusinessHallName").val("");
- }
- }
- //回写销售方式数据
- function setSalesTypeIDData(data)
- {
- $("#SalesTypeID").empty();
- $("#SalesTypeID").append("<option value=''>请选择</option>");
- $("#SalesTypeID").append(data);
- //动态绑定数据一定要加这句话否则没有效果
- //$(".selectpicker" ).selectpicker('refresh');
- }
- </script>
- <title>我的桌面</title>
- </head>
- <body>
- <div>
- <div style="text-align:center;height:30px;padding-top:10px;">
- <form id="form1" method="post" class="form-horizontal" role="form">
- <input type="hidden" id="RespondentTypeName" name="RespondentTypeName" value="主"/>
- <input type="hidden" id="Modal_Main" name="Modal_Main" value="appeal"/>
- <input type="hidden" id="FilialeName" name="FilialeName" value=""/>
- <input type="hidden" id="BusinessHallName" name="BusinessHallName" value=""/>
- <input type="hidden" id="SalesChannelName" name="SalesChannelName" value=""/>
- <input type="hidden" id="SalesTypeName" name="SalesTypeName" value=""/>
- <input type="hidden" id="RespondentModel" name="RespondentModel" value="respondent"/>
- <input type="hidden" id="respondentFilialeID" name="respondent.FilialeID" value=""/>
- <table>
- <tr>
-
- <td valign="top" style="padding-top: 5px;text-align: left;">
-
- <label class="radio-inline" style="font-weight:700">
- 客诉日期 从:
- </label>
- <input type="text" class="form-control" value="" placeholder="" id="BeginDate" name="BeginDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'BeginDate',maxDate:'#F{$dp.$D(\'EndDate\')}'})" title="选择开始日期" vmode="" vdisp="开始日期" vtype="string" readonly>
-
- <label class="radio-inline" style="font-weight:700">
- 至:
- </label>
- <input type="text" class="form-control" value="" placeholder="" id="EndDate" name="EndDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'EndDate',minDate:'#F{$dp.$D(\'BeginDate\')}',maxDate:new Date()})" title="选择结束日期" vmode="" vdisp="结束日期" vtype="string" readonly>
-
- <label class="radio-inline" style="font-weight:700">
- 客诉来源:
- </label>
- <select id="AppealSource" name="AppealSource" class="form-control" vmode="" vdisp="客诉来源" vtype="string">
- <option value="">请选择</option>
- ${appealSource!''}
- </select>
- <label class="radio-inline" style="font-weight:700">
- 机构:
- </label>
- <select id="FilialeID" name="FilialeID" onChange=setCentreCompanyID() class="form-control" vmode='' vdisp='机构' vtype='string'>
-
- ${filialeID!''}
- </select>
- <label class="radio-inline" style="font-weight:700">
- 部门:
- </label>
- <select id="BusinessHallID" name="BusinessHallID" class="form-control" vmode="" vdisp="被诉网点" vtype="string">
-
- ${businessHallID!''}
- </select>
- <label class="radio-inline" style="font-weight:700">
- 业务渠道:
- </label>
- <select id="SalesChannelID" name="SalesChannelID" onChange=setSalesChannelName() class="selectpicker form-control" data-live-search="true" vmode="" vdisp="业务渠道" vtype="string">
- <option value="">请选择</option>
- ${dic_saleschannelForID!''}
- </select>
- <label class="radio-inline" style="font-weight:700">
- 二级渠道:
- </label>
- <select id="SalesTypeID" name="SalesTypeID" class="selectpicker form-control" data-live-search="true" vmode="" vdisp="二级渠道" vtype="string">
- <option value="">请选择</option>
-
- </select>
-
- </td>
-
-
- <td valign="top" style="padding-top: 1px;">
- <label>
- <input type="button" id="search" value="搜 索" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block">
- <b class="tooltip tip-left-top"></b>
- <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
- </label>
- </label>
- </td>
- </tr>
- </table>
- </form>
- </div>
- <div class="page-container">
-
- <table id="jqGrid"></table>
- <div id="jqGridPager"></div>
- </div>
- </div>
-
- </body>
- </html>
|