FuWaiCallCenter_UI 阜外华中心血管病医院 - 最早演示版不用了

MyTaskResult.html 7.0KB

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