rushfee/resource/html/rush/recording.html

145 lines
5.6 KiB
HTML

<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>录音操作</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
<input name="searchoperator" widget="edit" url="rush/search/getOperator"
textfield="text" style="width: 200px;" label="催缴人姓名">
<input widget="edit" name="custname" label="客户名称"/>
<input name="searchbegindate" widget=datechooser showTime="true" timeFormat="HH:mm:ss" format="yyyy-MM-dd HH:mm:ss" valueFormat="yyyy-MM-dd HH:mm:ss" allowinput="f" label="催缴日期">
<input name="searchenddate" widget=datechooser showTime="true" timeFormat="HH:mm:ss" format="yyyy-MM-dd HH:mm:ss" valueFormat="yyyy-MM-dd HH:mm:ss" allowinput="f" style="margin-left: -70px;" label="至">
<input widget="combox" name="searchresult" label="催缴结果" url="rush/search/getResult"
emptyText="请选择" textField="text" valueField="text" allowInput="false" style="width:250px" showNullItem="true"/>
<input id="customer_id" widget="hidden" />
<input name="chargetype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
data="[{id:'服务费',text:'服务费'},{id:'托管',text:'托管'}]" emptyText="请选择" label="客户类型">
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>&nbsp;&nbsp;&nbsp;
<!-- <a widget="button" iconCls="icon-search" onclick="edit()">修改</a>-->
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/search/getRecording" >
<div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div>
<div field="operator" width="55" header="催缴人"></div>
<div field="operate_date" width="85" header="催缴日期"></div>
<div field="remark" width="350" header="详情" ></div>
<div field="custtype" width="50" header="客户类型" ></div>
<div field="jtstate" width="50" header="接通状态" ></div>
<div field="zltime" width="50" header="振铃(秒)" ></div>
<div field="info" width="50" header="通话时长" ></div>
<div field="vital" width="65" header="催缴结果" ></div>
<div field="rema" width="100" header="备注信息" ></div>
<div field="contacts_info" width="100" header="联系人电话" ></div>
<div field="play" width="65" header="录音" renderer="playRender" align="center"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
var nowday=aos.formatDate(new Date(),"yyyy-MM-dd")
aos.get('searchbegindate').setValue(nowday+" 00:00:00");
aos.get('searchenddate').setValue(nowday+" 23:59:59");
function search(){
var begindate=aos.get('searchbegindate').getFormValue();
var enddate=aos.get('searchenddate').getFormValue();
if (begindate!="")
{
if (enddate=="")
{aos.alert('请选择结束时间!');
return ;
}
else{
if (begindate>enddate)
{
aos.alert('开始日期必须早于结束日期!');
}else{
//var begindate=begindate+" "+"00:00:00";
//var enddate=enddate+" "+"23:59:59";
var params={
searchoperator:aos.get('searchoperator').getValue(),
searchbegindate:begindate,
searchenddate:enddate,
custname:aos.get('custname').getValue(),
chargetype:aos.get('chargetype').getValue(),
searchresult:aos.get('searchresult').getValue()};
//alert(begindate+""+enddate);
grid.load(params);
}
}
}else if(enddate!="")
{
aos.alert('请选择开始时间!');
return ;
}else{
var params={
searchoperator:aos.get('searchoperator').getValue(),
searchbegindate:aos.get('searchbegindate').getFormValue(),
searchenddate:aos.get('searchenddate').getFormValue(),
custname:aos.get('custname').getValue(),
chargetype:aos.get('chargetype').getValue(),
searchresult:aos.get('searchresult').getValue()};
grid.load(params);
return ;
}
}
function edit(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据。');
return;
}
var param = {};
param['pageState'] = 'editold';
param['id'] = data.id;
param['operate_date'] = data.operate_date;
param['remark'] = data.remark;
aos.showWindow('canvas/rush/linshiedit', param, '800px', '300px', '信息维护', function(haha){
//grid.reload();
});
}
function playRender(e){
var row=e.row;
var value=row.play;
if(value=='播放'){
return "<a href='javascript:void(0)' onclick='showMyDialog(\""+ row.path +"\")'>"+value+"</a>";
}else{
return value;
}
}
function showMyDialog(video_path){
var params ={};
params["video_path"]=video_path;
aos.showWindow('canvas/rush/record_rush_play',params,'800px', '400px', '录音播放', function(rtnValue){
});
}
function exportExl(){
var initparam={
searchoperator:aos.get('searchoperator').getValue(),
searchbegindate:aos.get('searchbegindate').getFormValue(),
searchenddate:aos.get('searchenddate').getFormValue(),
custname:aos.get('custname').getValue(),
chargetype:aos.get('chargetype').getValue(),
searchresult:aos.get('searchresult').getValue()};
var base = document.getElementsByTagName("base")[0].href;
var Eurl=base+"rush/kaohe/exportRecoding";
var Eurl = aos.addUrlParams(Eurl,initparam);
window.location.href=encodeURI(Eurl);
}
</script>
</html>