Nessuna descrizione

WorkDC_EJ.html 22KB

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