Nessuna descrizione

TaskResult.html 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>我的任务结果</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link href="../css/Table/table1.css" rel="stylesheet" />
  10. <link href="../css/init.css" rel="stylesheet" />
  11. </head>
  12. <body class="gray-bg">
  13. <div class="wrapper wrapper-content animated fadeInRight">
  14. <div class="daoHang clearfix">
  15. <div class="dhLeft">
  16. <sapn><i class="syIcon"></i>位置:
  17. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  18. <a href="javaScript:;">外呼管理</a>&gt;
  19. <a href="" style="color: #000;">任务结果</a>
  20. </sapn>
  21. </div>
  22. </div>
  23. <div class="th-box">
  24. <div class="th-bar">
  25. <div class="seach-box ">
  26. <ul>
  27. <li>
  28. 时间:<input type="text" id="s_time" class="photo laydate-icon" placeholder="请选择起止时间" />
  29. </li>
  30. <li>电话号码:<input class="photo x-color" type="text" id="key" placeholder="请输入电话号码" /></li>
  31. <li>呼叫结果:
  32. <select name="" class="photo" id="hjjgid"></select>
  33. </li>
  34. <!--<li>用户反馈:
  35. <select name="" class="photo" id="yhfkid"></select>
  36. </li>-->
  37. <li>坐席:
  38. <select name="" class="photo" id="zx"></select>
  39. </li>
  40. <li>
  41. <a class="sc_btn Block" id="sc_btns">搜索</a>
  42. </li>
  43. </ul>
  44. </div>
  45. </div>
  46. </div>
  47. <div style="width: 100%;padding: 10px;">
  48. <table id="list" data-click-to-select="true" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  49. <thead>
  50. <tr>
  51. <!--<th data-formatter="formatterOperation" data-align="center">操作</th>-->
  52. <!--<th data-field="state" data-checkbox="true"></th>-->
  53. <th data-field="F_Phone" data-align="center" data-formatter="Code">号码</th>
  54. <th data-field="F_CusName" data-align="center">姓名</th>
  55. <th data-field="ExpandVchField4" data-align="center">乡镇或单位</th>
  56. <th data-field="ExpandVchField3" data-align="center">住址</th>
  57. <th data-field="F_UserName" data-align="center">分配坐席</th>
  58. <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
  59. <th data-field="ExpandDatField1" data-align="center">调查时间</th>
  60. <!--<th data-field="F_YHFKName" data-align="center">用户反馈</th>-->
  61. </tr>
  62. </thead>
  63. </table>
  64. </div>
  65. </div>
  66. <script src="../js/laydate/laydate.js"></script>
  67. <script>
  68. $(document).ready(function() {
  69. laydate.render({
  70. elem: '#s_time',
  71. range: '~',
  72. theme: '#1ab394',
  73. calendar: true,
  74. });
  75. initTable();
  76. GetHJJG(); //呼叫结果
  77. //GetYHFK();//用户反馈
  78. $("#sc_btns").click(function() {
  79. initTable();
  80. });
  81. $('#ReIndex').click(function() {
  82. top.home_index();
  83. })
  84. //坐席
  85. $.ajax({
  86. type: "get",
  87. url: huayi.config.callcenter_url + "UserAccount/GetSeatList",
  88. dataType: 'json',
  89. async: true,
  90. data: {
  91. token: $.cookie("token")
  92. },
  93. success: function(data) {
  94. var Count = data.data;
  95. $("<option value=''>--全部--</option>").appendTo($("#zx"));
  96. for(var i = 0; i < Count.length; i++) {
  97. //console.log(Count[i].F_UserName);
  98. $("<option value='" + Count[i].F_UserId + "'>" + Count[i].F_UserName + "</option>").appendTo($("#zx"));
  99. }
  100. }
  101. });
  102. })
  103. function initTable() {
  104. //先销毁表格
  105. $('#list').bootstrapTable('destroy');
  106. //初始化表格,动态从服务器加载数据
  107. $("#list").bootstrapTable({
  108. method: "get", //使用get请求到服务器获取数据
  109. url: huayi.config.callcenter_url + "CallOutPlan/GetResultList", //获取数据的Servlet地址
  110. contentType: 'application/x-www-form-urlencoded',
  111. striped: true, //表格显示条纹
  112. pagination: true, //启动分页
  113. pageSize: 10, //每页显示的记录数
  114. pageNumber: 1, //当前第几页
  115. pageList: [10, 20, 50, 100], //记录数可选列表
  116. search: false, //是否启用查询
  117. showColumns: false, //显示下拉框勾选要显示的列
  118. showRefresh: false, //显示刷新按钮
  119. sidePagination: "server", //表示服务端请求
  120. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  121. //设置为limit可以获取limit, offset, search, sort, order
  122. queryParamsType: "undefined",
  123. queryParams: function queryParams(params) { //设置查询参数
  124. var param = {
  125. pageindex: params.pageNumber,
  126. pagesize: params.pageSize,
  127. sdate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[0],
  128. edate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[1],
  129. key: $("#key").val(),
  130. hjjgid: $("#hjjgid").val(), //呼叫结果ID
  131. //yhfkid:$("#yhfkid").val(), //用户反馈ID
  132. userid: $("#zx").val(),
  133. token: $.cookie("token")
  134. };
  135. return param;
  136. },
  137. onLoadSuccess: function() { //加载成功时执行
  138. //layer.msg("加载成功");
  139. },
  140. onLoadError: function() { //加载失败时执行
  141. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  142. }
  143. });
  144. }
  145. //获取呼叫结果
  146. function GetHJJG() {
  147. $.ajax({
  148. type: "get",
  149. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByParentId",
  150. dataType: 'json',
  151. data: {
  152. pid: '2485',
  153. token: $.cookie("token")
  154. },
  155. async: true,
  156. success: function (data) {
  157. var Count = data.data;
  158. $("<option value=''>--全部--</option>").appendTo($("#hjjgid"));
  159. for (var i = 0; i < Count.length; i++) {
  160. $("<option value='" + Count[i].F_ValueId + "'>" + Count[i].F_Value + "</option>").appendTo($("#hjjgid"));
  161. }
  162. }
  163. });
  164. }
  165. //用户反馈
  166. function GetYHFK() {
  167. $.ajax({
  168. type: "get",
  169. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  170. dataType: 'json',
  171. data: {
  172. flag: 'YHFK',
  173. token: $.cookie("token")
  174. },
  175. async: true,
  176. success: function(data) {
  177. var Count = data.data;
  178. $("<option value=''>--全部--</option>").appendTo($("#yhfkid"));
  179. for(var i = 0; i < Count.length; i++) {
  180. console.log(Count[i].F_UserName);
  181. $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#yhfkid"));
  182. }
  183. }
  184. });
  185. }
  186. function Code(val, row) {
  187. return '<div><a onclick="XX(' + row.F_Id + ')">' + row.F_Phone + '</a></div>'
  188. }
  189. //格式化操作
  190. function formatterOperation(val,row){
  191. //ExpandSintField1 1为已存在工单,0为不存在工单
  192. if(row.ExpandSintField1 == '1'){
  193. return '-';
  194. }else if(row.ExpandSintField1 == '0'){
  195. return '<div class="imgs" ><a class="xg" href="javascript:;" onclick= createOrder("' + row.F_Id + '")>新建工单</a></div>';
  196. }else{
  197. return '-';
  198. }
  199. }
  200. //新建工单
  201. function createOrder(tid){
  202. layer.open({
  203. type: 2,
  204. content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
  205. title: '新建工单',
  206. maxmin: true,
  207. area: ['86%', '88%'], //宽高
  208. });
  209. }
  210. //详情
  211. function XX(str) {
  212. layer.open({
  213. type: 2,
  214. content: "../OutboundMessage/LookMessages.html?Str=" + str, //iframe的url,no代表不显示滚动条
  215. title: '任务信息',
  216. maxmin: true, //开启最大化最小化按钮
  217. id: 'LAY_layuipro', //防止重复弹出
  218. area: ['86%', '88%'], //宽高
  219. });
  220. }
  221. </script>
  222. </body>
  223. </html>