yoqw/web/cms/app/templates/call-detail-record/quality-inspection.hbs
2020-10-21 23:19:13 +08:00

170 lines
6.0 KiB
Handlebars

<div class="widget-box transparent" style="padding-top: 2px; border: 1px solid #ddd;">
<div class="space"></div>
<form class="form-horizontal" role="form">
<div class="row">
{{form-input-datetimepicker
class='col-sm-5 col-md-5'
label-class='col-sm-3 col-md-3'
input-class='col-sm-9 col-md-9'
error-msg=false
model=this
name='startDate'
label='起始时间'}}
{{form-input
class='col-sm-5 col-md-5'
label-class='col-sm-3 col-md-3'
input-class='col-sm-9 col-md-9'
error-msg=false
model=this
name='account'
label='坐席账户'}}
</div>
<div class="row">
{{form-input-datetimepicker
class='col-sm-5 col-md-5'
label-class='col-sm-3 col-md-3'
input-class='col-sm-9 col-md-9'
error-msg=false
model=this
name='endDate'
label='截止时间'}}
{{form-input
class='col-sm-5 col-md-5'
label-class='col-sm-3 col-md-3'
input-class='col-sm-9 col-md-9'
error-msg=false
model=this
name='calledNumber'
label='被叫号码'}}
</div>
<div class="row">
{{form-input
class='col-sm-5 col-md-5'
label-class='col-sm-3 col-md-3'
input-class='col-sm-9 col-md-9'
error-msg=false
model=this
name='connId'
label='通话ID'}}
<div class="col-sm-5 col-md-5">
<div class="col-sm-3 col-md-3">
</div>
<button type="button" class="btn btn-info btn-sm col-sm-4 col-md-4"
{{action (route-action 'search')}}>
<i class="ace-icon fa fa-search bigger-110"></i>查询
</button>
</div>
</div>
</form>
<div class="space-18"></div>
<div class="widget-body">
<!-- #section:custom/scrollbar -->
<div class="widget-main no-padding">
<table class="table table-striped table-bordered table-hover dataTable" style="border-top-width: 1px;">
<thead class="thin-border-bottom">
<tr>
<th>
ConnID
</th>
<th>
坐席
</th>
<th style="min-width: 88px;">
{{th-filter name='callType'
text='呼叫类型'
options=model.callTypeList
}}
</th>
<th style="min-width: 88px;">
{{th-filter name='dialType'
text='拨打类型'
options=model.dialTypeList
}}
</th>
<th>
被叫
</th>
<th>
开始时间
</th>
<th>
接通时间
</th>
<th>
挂断原因
</th>
<th>
录音
</th>
</tr>
</thead>
<tbody>
{{#each model.data as |it|}}
<tr>
<td>
{{it.connId}}
</td>
<td>
{{it.account}}
</td>
<td>
<span class="label label-sm {{if (eq 'INTERNAL' it.callType) 'label-info' (if (eq 'OUTBOUND' it.callType) 'label-success' 'label-info2')}}">
{{#if (eq 'INTERNAL' it.callType)}}
{{else if (eq 'OUTBOUND' it.callType)}}
{{else}}
{{/if}}
</span>
</td>
<td>
<span class="label label-sm {{if (eq 'MANUAL' it.dialType) 'label-info' (if (eq 'CAMPAIGN' it.dialType) 'label-success' 'label-info2')}}">
{{#if (eq 'MANUAL' it.dialType)}}
{{else if (eq 'CAMPAIGN' it.dialType)}}
{{else}}
{{/if}}
</span>
</td>
<td>
{{it.calledNumber}}
</td>
<td>
{{date-cell value=it.startStamp}}
</td>
<td>
{{sec-to-time it.billsec}}
</td>
<td>
{{it.hangupCause}}
</td>
<td>
{{#if it.recording}}
<a href="{{it.recording.url}}"
target="_blank" title="录音">
录音
</a>
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{pagination-bar}}
</div>
</div>
{{outlet}}