地铁二期项目正式开始

QualityTestScore.cshtml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. @using YTSoft.BaseCallCenter.MVCWeb.Models;
  2. @using YTSoft.BaseCallCenter.Model;
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>质检评分</title>
  7. <link href="/Content/layui/css/layui.css" rel="stylesheet" />
  8. <link href="/Content/css/public.css" rel="stylesheet" />
  9. <link href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" type="text/css" rel=" stylesheet" />
  10. <link href="/Content/css/font-awesome/css/font-awesome.min.css" type="text/css" rel=" stylesheet" />
  11. <script src="/Content/js/jquery-1.8.3.min.js"></script>
  12. <script type="text/javascript" src="/Content/layui/layui.js"></script>
  13. <link href="/Content/css/callrecord/iconfont.css" rel="stylesheet" />
  14. <link href="/Content/css/callrecord/callrecord.css" rel="stylesheet" />
  15. <script src="/Content/layui/formatdate.js"></script>
  16. </head>
  17. <body class="childrenBody">
  18. <blockquote class="layui-elem-quote layui-text" style="font-size: larger; display: none;">
  19. 通话记录
  20. </blockquote>
  21. <div class=" layui-form layui-fluid">
  22. <div class=" layui-col-space15">
  23. <div class="layui-card">
  24. <div class="layui-card-body">
  25. <div class="layui-row layui-col-space15 searchfilter">
  26. <div class="layui-input-inline">
  27. <label class="layui-form-label">
  28. 电话号码:
  29. </label>
  30. <div class="layui-input-block ">
  31. <input type="text" placeholder="" autocomplete="off" class="layui-input" id="callnumber">
  32. </div>
  33. </div>
  34. <div class="layui-input-inline">
  35. <label class="layui-form-label">
  36. 坐席:
  37. </label>
  38. <div class="layui-input-block">
  39. <input type="text" placeholder="" autocomplete="off" class="layui-input" id="usercode">
  40. </div>
  41. </div>
  42. <div class="layui-col-xs6">
  43. <label class="layui-form-label" style="width:100px">坐席工号</label>
  44. <div class="layui-input-inline">
  45. <select id="userid" name="F_UserId" lay-verify="required" lay-search="">
  46. <option value=""></option>
  47. @if (Model.UserList != null && Model.UserList.Count > 0)
  48. {
  49. foreach (T_Sys_UserAccount dicModel in Model.UserList)
  50. {
  51. if (Model.F_UserId > 0)
  52. {
  53. if (Model.F_UserId == dicModel.F_UserId)
  54. {
  55. <option value="@dicModel.F_UserId" selected>@dicModel.F_UserName</option>
  56. }
  57. else
  58. {
  59. <option value="@dicModel.F_UserId">@dicModel.F_UserName</option>
  60. }
  61. }
  62. else
  63. {
  64. <option value="@dicModel.F_UserId">@dicModel.F_UserName</option>
  65. }
  66. }
  67. }
  68. </select>
  69. </div>
  70. </div>
  71. <div class="layui-input-inline">
  72. <label class="layui-form-label">呼叫方式</label>
  73. <div class="layui-input-block">
  74. <select id="callTypes">
  75. <option value=""></option>
  76. <option value="0">呼入</option>
  77. <option value="1">呼出</option>
  78. </select>
  79. </div>
  80. </div>
  81. <div class="layui-input-inline">
  82. <label class="layui-form-label">呼叫状态</label>
  83. <div class="layui-input-block">
  84. <select id="callRercordStatus">
  85. <option value=""></option>
  86. <option value="1">接通</option>
  87. <option value="0">未接通</option>
  88. </select>
  89. </div>
  90. </div>
  91. <div class="layui-input-inline">
  92. <button class="layui-btn layui-btn-normal layui-btn-normal" data-type="reload">
  93. <i class="layui-icon">&#xe615; 查 询</i>
  94. </button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="layui-card layui-form">
  100. <div id="content" class="flowContent">
  101. <table class="layui-table" lay-data="{height: 'full-120' ,page: true,limit:20, url:'/QualityManagement/CallRecordData/?NowDateTime=@Model.NowDateTime ', page:true, id:'recordtable'}" lay-size="sm" lay-filter="demo">
  102. <thead>
  103. <tr>
  104. <th lay-data="{field:'CallNumber', width:130, fixed: 'left', templet: '#btnCallOut'}">电话号码</th>
  105. <th lay-data="{field:'fileurl', width:60,align: 'center', fixed: 'left',templet:'#btnPlay'}">录音</th>
  106. <th lay-data="{field:'F_QCState',align: 'center',width:80, templet: '#qcStatus'}">是否质检</th>
  107. <th lay-data="{field:'F_QCScore',align: 'center',width:80}">质检得分</th>
  108. <th lay-data="{field:'CallType', align: 'center',width:80, templet: '#callType'}">呼叫方向</th>
  109. <th lay-data="{field:'CallState', width:80, templet: '#callStatus'}">呼叫状态</th>
  110. <th lay-data="{field:'UserCode', align: 'center',width:80}">坐席工号</th>
  111. <th lay-data="{field:'UserName', align: 'center',width:80}">坐席姓名</th>
  112. <th lay-data="{field:'TalkStartTimeNew', align: 'center', width:180}">通话开始时间</th>
  113. <th lay-data="{field:'TalkEndTimeNew', align: 'center', width:180}">通话结束时间</th>
  114. <th lay-data="{field:'TalkLongTime', align: 'center', width:120}">通话时长(s)</th>
  115. </tr>
  116. </thead>
  117. </table>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <script type="text/javascript">
  123. function Player(callid, callrecordsid) {
  124. console.log(callid)
  125. layui.use('layer', function () {
  126. var layer = layui.layer;
  127. layer.open({
  128. type: 2,
  129. anim: 4,
  130. scrollbar: false,
  131. content: '/QualityManagement/QCVoicePlayNew/?type=0&callid=' + callid + '&callrecordsid=' + callrecordsid,
  132. area: ['700px', '520px'],
  133. id: 'playRecordFrame',
  134. title: '录音播放下载及质检'
  135. , shade: 0
  136. , maxmin: true
  137. })
  138. });
  139. }
  140. function PlayerOld(callid, callrecordsid) {
  141. console.log(callid)
  142. layui.use('layer', function () {
  143. var layer = layui.layer;
  144. layer.open({
  145. type: 2,
  146. anim: 4,
  147. scrollbar: false,
  148. content: '/QualityManagement/QCVoicePlay/?type=0&callid=' + callid + '&callrecordsid=' + callrecordsid,
  149. area: ['700px', '520px'],
  150. id: 'playRecordFrame',
  151. title: '录音播放下载及质检'
  152. , shade: 0
  153. , maxmin: true
  154. })
  155. });
  156. }
  157. </script>
  158. </body>
  159. <script src="~/Content/js/QualityManagement/QCcallRecord.js" charset="utf-8"></script>
  160. <script type="text/html" id="btnCallOut">
  161. {{# if(d.CallNumber === ''){ }}
  162. {{# } else { }}
  163. <i class="fa fa-phone-square" style="color:green; cursor:pointer;" onclick="top.PhoneCallOut(1, '{{d.CallNumber}}');" title="拨打{{d.CallNumber }}"></i>&nbsp;&nbsp;&nbsp;{{d.CallNumber }}
  164. {{# } }}
  165. </script>
  166. <script type="text/html" id="btnPlay">
  167. {{# if(d.CallState === 1&&d.fileurl.split(".")[4]){ }}
  168. <i class="fa fa-headphones" style="color:blue; cursor:pointer;" onclick="Player('{{d.fileurl}}',{{d.CallRecordsId}});" title="录音质检"></i>
  169. {{# } else { }}
  170. <i class="fa fa-headphones" style="color:blue; cursor:pointer;" onclick="PlayerOld('{{d.fileurl}}',{{d.CallRecordsId}});" title="录音质检"></i>
  171. {{# } }}
  172. </script>
  173. <script type="text/html" id="callType">
  174. {{# if(d.CallType === 1){ }}
  175. 呼出
  176. {{# } else { }}
  177. 呼入
  178. {{# } }}
  179. </script>
  180. <script type="text/html" id="qcStatus">
  181. {{# if(d.F_QCState === 0){ }}
  182. <div style="color:red;"> 未质检</div>
  183. {{# } else { }}
  184. <div style="color:blue;">已质检</div>
  185. {{# } }}
  186. </script>
  187. <script type="text/html" id="callStatus">
  188. {{# if(d.CallState === 1){ }}
  189. 接通
  190. {{# } }}
  191. {{# if(d.CallState === 0){ }}
  192. 未接通
  193. {{# } }}
  194. </script>
  195. <script type="text/html" id="F_Key">
  196. {{# if(d.F_Key1 === '1'){ }}
  197. 自助服务
  198. {{# } }}
  199. {{# if(d.F_Key1 === '0'){ }}
  200. 人工服务
  201. {{# } }}
  202. </script>
  203. <script type="text/html" id="BusinessType">
  204. {{# if(d.BusinessType === 1){ }}
  205. 咨询
  206. {{# } }}
  207. {{# if(d.BusinessType === 2){ }}
  208. 建议
  209. {{# } }}
  210. {{# if(d.BusinessType === 3){ }}
  211. 表扬
  212. {{# } }}
  213. {{# if(d.BusinessType === 4){ }}
  214. 挂失
  215. {{# } }}
  216. {{# if(d.BusinessType === 9){ }}
  217. 投诉
  218. {{# } }}
  219. </script>
  220. <!--下拉输入选择框工具栏-->
  221. </html>