郑许地铁

WorkOrderAllListShow.cshtml 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. @using ZXDT.CallCenter.MVCWeb.Models;
  2. @using ZXDT.CallCenter.Model;
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>工单列表</title>
  8. <link href="/Content/layui/css/layui.css" rel="stylesheet" />
  9. <link href="/Content/css/public.css" rel="stylesheet" />
  10. <link href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" type="text/css" rel=" stylesheet" />
  11. <link href="/Content/css/font-awesome/css/font-awesome.min.css" type="text/css" rel=" stylesheet" />
  12. <script src="/Content/js/jquery-1.8.3.min.js"></script>
  13. <script type="text/javascript" src="/Content/layui/layui.js"></script>
  14. <link href="/Content/css/callrecord/iconfont.css" rel="stylesheet" />
  15. <link href="/Content/css/callrecord/callrecord.css" rel="stylesheet" />
  16. <link href="/Content/css/workorder/eidtmyorder.css" rel="stylesheet" />
  17. <script src="/Content/layui/loading.js"></script>
  18. <link href="/Content/css/workorder/loading.css" rel="stylesheet" />
  19. </head>
  20. <body class="childrenBody">
  21. <blockquote class="layui-elem-quote layui-text" style="font-size: larger; display: none;">
  22. 工单列表
  23. </blockquote>
  24. <input id="CallHour" type="text" hidden />
  25. <input id="linkman" type="text" hidden />
  26. <input id="calltype" type="text" hidden />
  27. <input id="ywtype" type="text" hidden />
  28. <div class="layui-fluid">
  29. <div class="layui-card">
  30. <div class="layui-card-body">
  31. <div class="layui-row layui-col-space10 searchfilter">
  32. <div class="layui-col-md12">
  33. <div class="layui-input-inline">
  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" class="layui-input dayParty" id="test10" style=" width : 300px; max-width: 300px; " placeholder=" - ">
  40. </div>
  41. </div>
  42. <div class="layui-input-inline">
  43. <button class="layui-btn layui-btn-normal layui-btn-normal" data-type="reload">
  44. <i class="layui-icon">&#xe615; 查 询</i>
  45. </button>
  46. @* <button class="layui-btn layui-btn-normal layui-btn-normal" id="ExToExcel">
  47. <i class="fa fa-file-excel-o">导出数据</i>
  48. </button> *@
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class=" layui-col-space15">
  56. <div class="layui-card layui-form">
  57. <div id="content" class="flowContent">
  58. @* <table class="layui-table" lay-data="{height: 'full-120',page: true,limit:20, url:'/Report/CallInMatchDataList/?NowDateTime=@Model.NowDateTime&CallHour='+getUrlParam('CallHour')+'&dateParty='+getUrlParam('dateParty'), id:'recordtable' }" lay-size="sm" lay-filter="demo"> *@
  59. <table class="layui-table" lay-data="{height: 'full-120',page: true,limit:20, url:'/Report/CallInMatchDataList/?NowDateTime=@Model.NowDateTime', id:'recordtable' }" lay-size="sm" lay-filter="demo">
  60. <thead>
  61. <tr>
  62. <th lay-data="{type:'checkbox', fixed: 'left'}"></th>
  63. <th lay-data="{field:'F_ScaleResume', width:110, fixed: 'left', templet: '#ScaleResume'}">标志</th>
  64. <th lay-data="{field:'CallNumber', width:150, fixed: 'left', templet: '#btnCallOut'}">电话号码</th>
  65. <th lay-data="{field:'FilePath', width:60,align: 'center', fixed: 'left',templet:'#btnPlay'}">录音</th>
  66. <th lay-data="{field:'CallType', align: 'center',width:90, templet: '#callType'}">呼叫方向</th>
  67. <th lay-data="{field:'CallState', width:90, templet: '#callStatus'}">呼叫状态</th>
  68. <th lay-data="{field:'BeginTimeNew',align: 'center',width:160}">开始时间</th>
  69. <th lay-data="{field:'UserCode', align: 'center',width:90}">坐席工号</th>
  70. <th lay-data="{field:'UserName', width:90}">坐席姓名</th>
  71. <th lay-data="{field:'TalkStartTimeNew',align: 'center', width:160}">通话开始时间</th>
  72. <th lay-data="{field:'TalkEndTimeNew',align: 'center', width:160}">通话结束时间</th>
  73. <th lay-data="{field:'LongTime', align: 'right', width:120}">通话时长(S)</th>
  74. <th lay-data="{field:'ywtype', width:80}">导航按键</th>
  75. <th lay-data="{field:'BType', width:80}">业务按键</th>
  76. @* <th lay-data="{field:'ywtype', width:80, templet: '#F_Key'}">导航按键</th>
  77. <th lay-data="{field:'BType', width:80, templet: '#BusinessType'}">业务按键</th> *@
  78. </tr>
  79. </thead>
  80. </table>
  81. </div>
  82. <img id="progressImgage" class="progress hide" alt="" src="@Url.Content("~/Content/images/ajax-loader.gif")" />
  83. <div id="maskOfProgressImage" class="mask hide"></div>
  84. </div>
  85. </div>
  86. </div>
  87. <script src="/Content/js/WorkOrder/WorkOrderAllListShow.js" charset="utf-8"></script>
  88. <script src="/Content/layui/formatdate.js"></script>
  89. <script type="text/javascript">
  90. layui.use('laydate', function () {
  91. var laydate = layui.laydate;
  92. //自定义背景色主题 - 非常实用
  93. //日期时间范围
  94. laydate.render({
  95. elem: '#test10'
  96. , range: '-'
  97. //, value: '@DateTime.Now.ToString("yyyy-MM-dd")' + '- @DateTime.Now.ToString("yyyy-MM-dd")'
  98. , theme: '#395E67'
  99. , type: 'date'
  100. });
  101. });
  102. </script>
  103. <script type="text/javascript">
  104. //获取url中的参数
  105. function getUrlParam(name) {
  106. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  107. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  108. if (r != null) return unescape(r[2]); return null; //返回参数值
  109. }
  110. </script>
  111. <script type="text/javascript">
  112. $(document).ready(function () {
  113. document.getElementById("test10").value = getUrlParam("dateParty");
  114. document.getElementById("CallHour").value = getUrlParam("CallHour");
  115. document.getElementById("linkman").value = getUrlParam("linkman");
  116. document.getElementById("calltype").value = getUrlParam("calltype");
  117. document.getElementById("ywtype").value = getUrlParam("ywtype");
  118. });
  119. </script>
  120. <script type="text/javascript">
  121. function Player(callid) {
  122. layui.use('layer', function () {
  123. var layer = top.layui.layer;
  124. layer.open({
  125. type: 2,
  126. anim: 4,
  127. moveOut: true,
  128. scrollbar: false,
  129. content: '/CallRecord/VoicePlay/?type=0&callid=' + callid,
  130. area: ['600px', '380px'],
  131. id: 'playRecordFrame',
  132. title: '听取录音'
  133. , shade: 0
  134. , maxmin: true
  135. })
  136. });
  137. }
  138. </script>
  139. <script type="text/html" id="barDemo">
  140. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view">工单详情</a>
  141. </script>
  142. <script type="text/html" id="btnCallOut">
  143. {{# if(d.CallNumber === ''){ }}
  144. {{# } else { }}
  145. <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 }}
  146. {{# } }}
  147. </script>
  148. <script type="text/html" id="btnPlay">
  149. {{# if(d.CallState === 1){ }}
  150. <i class="fa fa-headphones" style="color:blue; cursor:pointer;" onclick="Player('{{d.FilePath}}');" title="听录音"></i>
  151. {{# } else { }}
  152. {{# } }}
  153. </script>
  154. <script type="text/html" id="callType">
  155. {{# if(d.CallType === 1){ }}
  156. 呼出
  157. {{# } else { }}
  158. 呼入
  159. {{# } }}
  160. </script>
  161. <script type="text/html" id="callStatus">
  162. {{# if(d.CallState === 1){ }}
  163. 接通
  164. {{# } }}
  165. {{# if(d.CallState === 0){ }}
  166. 未接通
  167. {{# } }}
  168. </script>
  169. <script type="text/html" id="F_Key">
  170. {{# if(d.F_Key1 === '1'){ }}
  171. 自助服务
  172. {{# } }}
  173. {{# if(d.F_Key1 === '0'){ }}
  174. 人工服务
  175. {{# } }}
  176. </script>
  177. <script type="text/html" id="BusinessType">
  178. {{# if(d.BusinessType === 1){ }}
  179. 咨询
  180. {{# } }}
  181. {{# if(d.BusinessType === 2){ }}
  182. 建议
  183. {{# } }}
  184. {{# if(d.BusinessType === 3){ }}
  185. 表扬
  186. {{# } }}
  187. {{# if(d.BusinessType === 4){ }}
  188. 挂失
  189. {{# } }}
  190. {{# if(d.BusinessType === 9){ }}
  191. 投诉
  192. {{# } }}
  193. </script>
  194. </body>
  195. <script type="text/html" id="ScaleResume">
  196. {{# if(d.F_ScaleResume === "2"){ }}
  197. <i class="fa fa-heart" style="color:orangered;width:50px; cursor:pointer;" title="特殊标注">&nbsp;&nbsp;特殊标注</i>
  198. {{# } else if(d.F_ScaleResume === "3"){ }}
  199. <i class="fa fa-user-times" style="color:black; width:50px;cursor:pointer;" title="黑名单">&nbsp;&nbsp;黑名单</i>
  200. {{# } else if(d.F_ScaleResume === "1" || d.F_ScaleResume ===null){ }}
  201. @* <i class="fa fa-user" style="color:green; width:50px;cursor:pointer;" title="语音客户"></i>*@
  202. {{# } }}
  203. </script>
  204. </html>