rushfee/resource/html/revisit/recordList.html

95 lines
4.4 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false">
<head>
<title>通话记录</title>
</head>
<body >
<div widget="toolbar" style="padding:10px;border:0;">
<input widget="edit" name="cust_name" label="客户名称"/>
<input widget="edit" name="sp_name" label="商品名称"/>
<input widget="combox" name="hf_state" label="回访结果"
data="[{id:'-1',text:'ALL'},{id:'0',text:'回访成功'},{id:'2',text:'回访不成功'}]"
textField="text" valueField="id" value="-1"/>
<br/>
<input name="searchbegindate" widget="datechooser" allowinput="false" label="回访日期"/>
<input name="searchenddate" widget="datechooser" allowinput="false" label="至"/>
<input widget="combox" name="operate_name" label="回访人" url="hwphone/getAccountName"
emptyText="请选择" textField="user_name" valueField="user_id" allowInput="false"
showNullItem="true"/>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%;height:100%" url="hfrecord/getRecordList" allowalternating="true" onrowdblclick="edit()">
<div type="indexcolumn" width="10" header="序号"></div>
<div field="log_id" visible="false"></div>
<div field="obj_id" visible="false"></div>
<div field="operate_name" width="30" header="回访人"></div>
<div field="call_time" width="20" header="拨打时间"></div>
<div field="operate_date" width="20" header="回访时间"></div>
<div field="cust_name" width="25" header="客户名称"></div>
<div field="detail" width="25" header="回访内容"></div>
<div field="is_success" width="12" header="回访结果"></div>
<div field="reflect_name" width="15" header="反馈类型"></div>
<div field="remark" width="15" header="备注"></div>
<div field="video_path" visible="false"></div>
<div field="talk_time" width="10" header="通话时长"></div>
<div field="play" width="10" header="录音" renderer="playRender" align="center"></div>
<div field="download" width="10" header="下载" renderer="linkRenderer" linkField="video_path" target="self" align="center"></div>
</div>
</div>
<script type="text/javascript">
var grid = aos.get('grid');
var params={cust_name:aos.get('cust_name').value,sp_name:aos.get('sp_name').value,hf_state:aos.get('hf_state').value,
searchbegindate:aos.get('searchbegindate').getValue(),searchenddate:aos.get('searchenddate').getValue(),
operate_name:aos.get('operate_name').getValue()};
grid.load(params);
function search(){
var begindate=aos.get('searchbegindate').getValue();
var enddate=aos.get('searchenddate').getValue();
if(begindate!=""){
if (enddate==""){
aos.alert('请选择结束时间!');
return ;
}else {
if (begindate > enddate) {
aos.alert('开始日期必须早于结束日期!');
}
}
}else if(enddate!=""){
aos.alert('请选择开始时间!');
return ;
}
if(begindate!=""&&enddate!=""){
begindate = begindate+" 00:00:00";
enddate = enddate+" 23:59:59";
}
var params={cust_name:aos.get('cust_name').value,sp_name:aos.get('sp_name').value,hf_state:aos.get('hf_state').value,
searchbegindate:begindate,searchenddate:enddate,operate_name:aos.get('operate_name').getValue()};
grid.load(params);
}
function playRender(e){
var row=e.row,
value=e.value;
if(value=='播放'){
return "<a href='javascript:void(0)' onclick='showMyDialog(\""+ row.video_path +"\")'>"+value+"</a>";
}else{
return value;
}
}
function showMyDialog(video_path){
var params ={};
params["video_path"]=video_path;
aos.showWindow('canvas/revisit/recordPlay',params,'800px', '300px', '录音播放', function(rtnValue){
});
}
</script>
</body>
</html>