Sin descripción

WorkDC_EJDelayed.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>已延时待办理</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/bootstrap-select.css">
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <link rel="stylesheet" href="../js/layui/css/layui.css">
  12. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="daoHang clearfix">
  17. <div class="dhLeft">
  18. <sapn>
  19. <i class="syIcon"></i>位置:
  20. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  21. <a href="javaScript:;">办理单位</a>&gt;
  22. <a href="" class="nowPosition">已延时待办理</a>
  23. </sapn>
  24. </div>
  25. <div class="dhRight">
  26. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  27. </div>
  28. </div>
  29. <div style="padding: 10px;" class="tj_content clearFix">
  30. <div style="padding: 10px;" class="tj_content clearFix">
  31. <div>
  32. <span>【搜索信息】</span>
  33. <div class="box_content">
  34. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  35. <tr>
  36. <th>工单来源:</th>
  37. <td>
  38. <select class="form-control" id="source">
  39. </select>
  40. </td>
  41. <th>来电号码:</th>
  42. <td>
  43. <input type="text" id="tel" class="form-control" />
  44. </td>
  45. <th>录入时间:</th>
  46. <td colspan="3">
  47. <input type="text" id="starttime" class="photo x-color laydate-icon"
  48. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  49. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  50. style="height: 35px;" />
  51. </td>
  52. </tr>
  53. <tr>
  54. <th>事项编号:</th>
  55. <td>
  56. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  57. </td>
  58. <th><span class="nameJustified">来电人:</span></th>
  59. <td>
  60. <input type="text" id="name" class="form-control" />
  61. </td>
  62. <th><span class="nameJustified">关键字:</span></th>
  63. <td>
  64. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  65. <botton class="btns Seach">搜索</botton>
  66. </td>
  67. </tr>
  68. <tr>
  69. <!-- <th>受话坐席:</th>
  70. <td>
  71. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  72. data-live-search="true">
  73. <option value="">请选择坐席</option>
  74. </select>
  75. </td>
  76. <th><span class="nameJustified">审核员:</span></th>
  77. <td>
  78. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  79. multiple data-live-search="true">
  80. <option value="">请选择调度员</option>
  81. </select>
  82. </td> -->
  83. </tr>
  84. <tr>
  85. <th>承办单位:</th>
  86. <td style="position: relative;">
  87. <div class="inpBox">
  88. <input type="text" class="inps" />
  89. <i class="Cleans fa fa-close"></i>
  90. <i class="xl xl_one"></i>
  91. <div class="addTree xlAdd">
  92. <ul id="addTreeDemo" class="ztree"></ul>
  93. </div>
  94. </div>
  95. <div class="selDpart1">
  96. <ul id="sponsor">
  97. </ul>
  98. </div>
  99. </td>
  100. <th>来电类型:</th>
  101. <td>
  102. <select class="form-control" id="type">
  103. </select>
  104. </td>
  105. <th>反映区域:</th>
  106. <td>
  107. <select name="" id="sourceAreas" class="form-control Min-width">
  108. </select>
  109. <botton class="btns exportFile">导出</botton>
  110. </td>
  111. </tr>
  112. <tr>
  113. <th>省平台编号:</th>
  114. <td>
  115. <input type="text" placeholder="输入工单号" id="strworkorderid" class="form-control" />
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. </div>
  121. <div>
  122. <div class="tab-content">
  123. <div style="width: 100%;padding: 10px;">
  124. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  125. data-pagination="true">
  126. <thead>
  127. <tr>
  128. <th data-formatter="serialNumber" data-align="center">
  129. 序号
  130. </th>
  131. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  132. 工单单号
  133. </th>
  134. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题
  135. </th>
  136. <th data-field="DeptName" data-align="center">承办单位</th>
  137. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  138. <!-- <th data-field="UserName" data-align="center">审核人</th> -->
  139. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态
  140. </th>
  141. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  142. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  143. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限
  144. </th>
  145. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作
  146. </th>
  147. </tr>
  148. </thead>
  149. <tbody class="list"></tbody>
  150. </table>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <!--下载框-->
  157. <div class="t-shade lyxz">
  158. <div class="shade_k">
  159. <div class="shade_title">
  160. <span>录音播放与下载<srong class="cknum"></srong></span>
  161. <span class="setwin gbly"><a>x</a></span>
  162. </div>
  163. <div class="shade_content">
  164. <div class="Ly_box audiojs">
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <input type="hidden" id="PID" />
  170. <input type="hidden" id="Dpment" />
  171. </div>
  172. <script src="../js/layui/layui.js"></script>
  173. <script src="../js/bootstrap-select.js"></script>
  174. <script src="../css/laydate/laydate.js"></script>
  175. <script src="../My97DatePicker/WdatePicker.js"></script>
  176. <script src="../js/zTree/jquery.ztree.core.js"></script>
  177. <script src="../js/search/screen.js"></script>
  178. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  179. <script src="./js/tertiaryUnit.js"></script>
  180. <script>
  181. var wid = helper.request.queryString("states");
  182. var exportParams; // 导出参数
  183. if (wid) {
  184. $("#state").val(wid);
  185. }
  186. $(document).ready(function () {
  187. load();
  188. laydate.skin('blue');
  189. laydate({
  190. elem: '#starttime',
  191. event: 'focus',
  192. istime: true,
  193. format: 'YYYY-MM-DD hh:mm:ss'
  194. });
  195. laydate({
  196. elem: '#endtime',
  197. event: 'focus',
  198. istime: true,
  199. format: 'YYYY-MM-DD hh:mm:ss'
  200. });
  201. });
  202. //关闭录音弹出
  203. $(".gbly").click(function () {
  204. $(".lyxz").removeClass("cx");
  205. $('audio')[0].pause();
  206. });
  207. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  208. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  209. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  210. });
  211. // 导出文件
  212. $(".exportFile").click(function() {
  213. exportParams.isdc = 1;
  214. console.log(exportParams)
  215. exportFileFun("WorkOrder/GetEJDWDealList", exportParams)
  216. })
  217. //获取查询信息
  218. function load() {
  219. //坐席
  220. var usercodeID = "";
  221. var usercode_ = $("#ZX").val(); //坐席
  222. if (usercode_ != null) {
  223. $(usercode_).each(function (i, n) {
  224. var obj1 = '';
  225. obj1 = n + ",";
  226. usercodeID += obj1;
  227. })
  228. } else {
  229. usercodeID = ""
  230. }
  231. // 调度员
  232. var ddusercodeID = "";
  233. var ddusercode_ = $("#yardman").val(); //坐席
  234. if (ddusercode_ != null) {
  235. $(ddusercode_).each(function (i, n) {
  236. var obj2 = '';
  237. obj2 = n + ",";
  238. ddusercodeID += obj2;
  239. })
  240. } else {
  241. ddusercodeID = ""
  242. }
  243. //先销毁表格
  244. $('#orderlist').bootstrapTable('destroy');
  245. //初始化表格,动态从服务器加载数据
  246. $("#orderlist").bootstrapTable({
  247. method: "get", //使用get请求到服务器获取数据
  248. url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
  249. contentType: "application/x-www-form-urlencoded",
  250. striped: true, //表格显示条纹
  251. pagination: true, //启动分页
  252. pageSize: 10, //每页显示的记录数
  253. pageNumber: 1, //当前第几页
  254. pageList: [10, 20, 50, 100], //记录数可选列表
  255. search: false, //是否启用查询
  256. showColumns: false, //显示下拉框勾选要显示的列
  257. showRefresh: false, //显示刷新按钮
  258. sidePagination: "server", //表示服务端请求
  259. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  260. //设置为limit可以获取limit, offset, search, sort, order
  261. queryParamsType: "undefined",
  262. queryParams: function queryParams(params) { //设置查询参数
  263. var param = {
  264. page: params.pageNumber,
  265. pagesize: params.pageSize,
  266. workid: $("#wids").val(),
  267. state: $("#state").val(), //=工单状态
  268. type: $("#type").val(), //=工单类型
  269. bigtype: $("#bigtype").val(), //=大类别
  270. smalltype: $("#smalltype").val(), //=小类别
  271. key: $("#key").val(), //=关键字
  272. tel: $("#tel").val(), //=客户电话
  273. name: $("#name").val(), //=客户名称
  274. usercode: usercodeID, //=坐席工号
  275. ddusercode: ddusercodeID,
  276. keyid: $("#keyid").val(), //=关键词id
  277. source: $("#source").val(), //=来源&
  278. starttime: $("#starttime").val(), //=开始时间
  279. endtime: $("#endtime").val(), //=结束时间
  280. deptid: $("#PID").val(),
  281. type: $("#type").val(),
  282. sourcearea: $("#sourceAreas").val(), //区域
  283. strworkorderid:$("#strworkorderid").val().replace(/\s+/g, ""),
  284. tab: 0, //待处理
  285. isys: 1,
  286. token: $.cookie("token")
  287. };
  288. // 导出参数
  289. exportParams = param;
  290. return param;
  291. },
  292. onLoadSuccess: function (data) { //加载成功时执行
  293. // layer.msg("加载成功");
  294. //console.log(data);
  295. },
  296. onLoadError: function () { //加载失败时执行
  297. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  298. }
  299. });
  300. }
  301. //状态
  302. function States(val, row) {
  303. var html = '';
  304. switch (val + '') {
  305. case '0':
  306. html = '新工单';
  307. if (row.F_IsReturn == 1) {
  308. html = '新工单(回退)';
  309. }
  310. break;
  311. case '1':
  312. html = '待交办';
  313. break;
  314. case '2':
  315. html = '待查收';
  316. break;
  317. case '3':
  318. html = '退回审核中';
  319. break;
  320. case '4':
  321. html = '办理中';
  322. break;
  323. case '5':
  324. html = '延时审核';
  325. break;
  326. case '6':
  327. html = '已办理';
  328. break;
  329. case '7':
  330. html = '已回访';
  331. break;
  332. case '8':
  333. html = '重办中';
  334. break;
  335. case '9':
  336. html = '已结案';
  337. break;
  338. case '10':
  339. html = '待审核';
  340. break;
  341. case '11':
  342. html = '重办待交办';
  343. break;
  344. case '12':
  345. html = '待审核';
  346. break;
  347. case '13':
  348. html = '重办驳回';
  349. break;
  350. }
  351. return html;
  352. }
  353. //时限
  354. function OverTime(val, row) {
  355. if (val == 1) {
  356. return '<div class="" style="cursor: pointer;">' +
  357. '<span class="Greens">' + row.GapTime + '</span>' +
  358. '</div>';
  359. } else if (val == 2) {
  360. return '<div class="" style="cursor: pointer;">' +
  361. '<span class="Yellows">' + row.GapTime + '</span>' +
  362. '</div>';
  363. } else if (val == 3) {
  364. return '<div class="" style="cursor: pointer;">' +
  365. '<span class="Reds">' + row.GapTime + '</span>' +
  366. '</div>';
  367. }
  368. }
  369. //办理时限
  370. function BanTime(val) {
  371. if (val) {
  372. var time = val.substring(0, val.indexOf(' '));
  373. return '<div class="" style="cursor: pointer;">' +
  374. '<span>' + time + '</span>' +
  375. '</div>';
  376. }
  377. }
  378. //音频
  379. function setCode(val) {
  380. if (val) {
  381. return '<div class="imgs" style="cursor: pointer;">' +
  382. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  383. '</div>';
  384. } else {
  385. return '';
  386. }
  387. }
  388. //编号
  389. function serialNumber(val, row, index) {
  390. return index + 1;
  391. }
  392. function GetCont(val) {
  393. if (val) {
  394. var str = '<div '
  395. if (val.length > 10) {
  396. str = str + ' title="' + val + '" ';
  397. val = val.substr(0, 10) + "...";
  398. }
  399. return str + '>' + val + '</div>';
  400. } else {
  401. return '';
  402. }
  403. }
  404. //操作
  405. function Dispose(val, row) {
  406. var Rows = row.Buttons;
  407. var html = '';
  408. for (var i = 0; i < Rows.length; i++) {
  409. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  410. if (html1) {
  411. html1 = html1.replace("data", val);
  412. html1 = html1.replace("isProtect", row.F_IsProtect);
  413. }
  414. html += html1;
  415. }
  416. return html;
  417. }
  418. //来源
  419. function LY(obj) {
  420. obj.empty();
  421. obj.append('<option selected="selected" value="">请选择</option>');
  422. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  423. "token": $.cookie("token"),
  424. id: 1
  425. }, function (data) {
  426. if (data.state.toLowerCase() == "success") {
  427. var content = data.data;
  428. $(content).each(function (i, n) {
  429. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  430. obj);
  431. })
  432. }
  433. })
  434. }
  435. //类别
  436. function LB(obj) {
  437. obj.empty();
  438. obj.append('<option selected="selected" value="">请选择</option>');
  439. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  440. "token": $.cookie("token"),
  441. id: 2
  442. }, function (data) {
  443. if (data.state.toLowerCase() == "success") {
  444. var content = data.data;
  445. $(content).each(function (i, n) {
  446. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  447. obj);
  448. })
  449. }
  450. })
  451. }
  452. // 主题
  453. function ZT(obj) {
  454. obj.empty();
  455. obj.append('<option selected="selected" value="">请选择</option>');
  456. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  457. "token": $.cookie("token"),
  458. id: 3
  459. }, function (data) {
  460. if (data.state.toLowerCase() == "success") {
  461. var content = data.data;
  462. $(content).each(function (i, n) {
  463. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  464. obj);
  465. })
  466. }
  467. })
  468. }
  469. function tree() {
  470. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  471. "token": $.cookie("token"),
  472. // "pid": pid
  473. }, function (result) {
  474. result = $.parseJSON(result);
  475. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  476. });
  477. }
  478. var setting1 = {
  479. data: {
  480. key: {
  481. name: "F_DeptName"
  482. },
  483. simpleData: {
  484. enable: true,
  485. idKey: "F_DeptId",
  486. pIdKey: "F_PartentId",
  487. rootPId: 0
  488. }
  489. },
  490. callback: {
  491. onClick: zTreeOnClick
  492. }
  493. };
  494. function zTreeOnClick(event, treeId, treeNode) {
  495. // if (treeNode.level >= 1) {
  496. $('.inps').val(treeNode.F_DeptName);
  497. $("#PID").val(treeNode.F_DeptId);
  498. $("#Dpment").val(treeNode.F_DeptName);
  499. $(".Cleans").show();
  500. // }
  501. };
  502. </script>
  503. </body>
  504. </html>