Bez popisu

comprehensiveMenu.html 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  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="../js/layui/css/layui.css">
  13. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  14. </head>
  15. <body class="gray-bg">
  16. <div class="wrapper wrapper-content animated fadeInRight">
  17. <div class="daoHang clearfix">
  18. <div class="dhLeft">
  19. <sapn>
  20. <i class="syIcon"></i>位置:
  21. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  22. <a href="javaScript:;">综合查询</a>&gt;
  23. <a href="" class="nowPosition">综合菜单</a>
  24. </sapn>
  25. </div>
  26. <div class="dhRight">
  27. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  28. </div>
  29. </div>
  30. <div style="padding: 10px" class="tj_content clearFix">
  31. <div style="padding: 10px" class="tj_content clearFix">
  32. <div>
  33. <span>【搜索信息】</span>
  34. <div class="box_content">
  35. <table id="sqzx" style="width: 100%" border="0" cellspacing="0" cellpadding="0">
  36. <tr>
  37. <th>工单标题:</th>
  38. <td>
  39. <input type="text" placeholder="输入工单标题" id="workOrderTitle" class="form-control" />
  40. </td>
  41. <th>来电内容:</th>
  42. <td>
  43. <input type="text" placeholder="输入来电内容" id="workOrderContent"
  44. class="form-control" />
  45. </td>
  46. <th>录入时间:</th>
  47. <td colspan="3">
  48. <input id="starttime" class="photo x-color laydate-icon" type="text"
  49. autocomplete="off" style="height: 35px;" />-<input id="endtime"
  50. class="photo x-color laydate-icon" type="text" autocomplete="off"
  51. style="height: 35px;" />
  52. </td>
  53. </tr>
  54. <tr>
  55. <th>办理结果:</th>
  56. <td>
  57. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult"
  58. class="form-control" />
  59. </td>
  60. <th>事项编号:</th>
  61. <td>
  62. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  63. </td>
  64. <th></th>
  65. <td>
  66. <botton class="btns Seach">搜索</botton>
  67. </td>
  68. </tr>
  69. <!-- <tr>
  70. <th>工单来源:</th>
  71. <td>
  72. <select class="form-control" id="source"></select>
  73. </td>
  74. <th>来电号码:</th>
  75. <td>
  76. <input type="text" id="tel" class="form-control" placeholder="请输入来电号码" />
  77. </td>
  78. </tr>
  79. <tr>
  80. <th><span class="nameJustified">来电人:</span></th>
  81. <td>
  82. <input type="text" id="name" class="form-control" autocomplete="off" />
  83. </td>
  84. <th>办理时间:</th>
  85. <td colspan="3">
  86. <input id="dealstarttime" class="photo x-color laydate-icon" type="text"
  87. autocomplete="off" style="height: 35px;" />-<input id="dealstrendtime"
  88. class="photo x-color laydate-icon" type="text" autocomplete="off"
  89. style="height: 35px;" />
  90. </td>
  91. </tr>
  92. <tr>
  93. <th>受话坐席:</th>
  94. <td>
  95. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  96. data-live-search="true">
  97. <option value="">请选择坐席</option>
  98. </select>
  99. </td>
  100. <th>反映区域:</th>
  101. <td>
  102. <select class="form-control Min-width" id="sourceAreas"></select>
  103. </td>
  104. </tr>
  105. <tr>
  106. <th><span class="nameJustified">审核员:</span></th>
  107. <td>
  108. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  109. multiple data-live-search="true">
  110. <option value="">
  111. 请选择调度员
  112. </option>
  113. </select>
  114. </td>
  115. <th>处理类型:</th>
  116. <td>
  117. <select class="form-control Min-width" id="dealtype">
  118. <option value="">请选择</option>
  119. <option value="0">网络转派</option>
  120. <option value="1">当即办理</option>
  121. </select>
  122. </td>
  123. </tr>
  124. <tr>
  125. <th>工单状态:</th>
  126. <td>
  127. <select name="" id="state" class="form-control">
  128. <option selected="selected" value="">
  129. 请选择
  130. </option>
  131. <option value="0">新工单</option>
  132. <option value="1">待交办</option>
  133. <option value="2">待查收</option>
  134. <option value="3">
  135. 退回审核中
  136. </option>
  137. <option value="4">办理中</option>
  138. <option value="5">
  139. 延时审核中
  140. </option>
  141. <option value="6">已办理</option>
  142. <option value="11">
  143. 重办待交办
  144. </option>
  145. <option value="13">重办驳回</option>
  146. <option value="8">重办中</option>
  147. <option value="9">已结案</option>
  148. </select>
  149. </td>
  150. <th>来电类型:</th>
  151. <td>
  152. <select class="form-control Min-width" id="type"></select>
  153. <botton class="btns Seach">搜索</botton>
  154. </td>
  155. </tr>
  156. <tr>
  157. <th>承办单位:</th>
  158. <td style="position: relative">
  159. <div class="inpBox">
  160. <input type="text" class="inps" />
  161. <i class="Cleans fa fa-close"></i>
  162. <i class="xl xl_one"></i>
  163. <div class="addTree xlAdd">
  164. <ul id="addTreeDemo" class="ztree"></ul>
  165. </div>
  166. </div>
  167. <div class="selDpart1">
  168. <ul id="sponsor"></ul>
  169. </div>
  170. </td>
  171. <th>反映类别:</th>
  172. <td class="reflectCategory-wrapper">
  173. <input type="text" id="reflectCategory" class="form-control" autocomplete="off" />
  174. <i class="CleansReactionCategory fa fa-close"></i>
  175. <input type="hidden" id="keyid" />
  176. <div class="reflectCategoryList-wrapper">
  177. <ul id="reflectCategoryList">
  178. </ul>
  179. </div>
  180. </td>
  181. <th>是否公开:</th>
  182. <td>
  183. <select id="isopen" class="form-control Min-width" name="select">
  184. <option value="">
  185. 请选择是否公开
  186. </option>
  187. <option value="0">
  188. 未公开
  189. </option>
  190. <option value="1">
  191. 已公开
  192. </option>
  193. </select>
  194. <botton class="btns exportFile">导出</botton>
  195. </td>
  196. </tr>
  197. <tr>
  198. <th>三方通话:</th>
  199. <td>
  200. <select id="threeWayCall" class="form-control" name="select">
  201. <option value="">
  202. 请选择是否三方通话
  203. </option>
  204. <option value="1">
  205. </option>
  206. <option value="0">
  207. </option>
  208. </select>
  209. </td>
  210. <th>分管领导:</th>
  211. <td>
  212. <select id="leaderCharge" class="form-control" name="select">
  213. <option value="">
  214. 请选择
  215. </option>
  216. <option value="省长">
  217. 省长
  218. </option>
  219. <option value="市长">
  220. 市长
  221. </option>
  222. </select>
  223. </td>
  224. <th>查询类型:</th>
  225. <td>
  226. <select id="islike" class="form-control Min-width" name="select">
  227. <option value="1">
  228. 模糊查询
  229. </option>
  230. <option value="0">
  231. 精确查询
  232. </option>
  233. </select>
  234. </td>
  235. </tr> -->
  236. </table>
  237. </div>
  238. </div>
  239. <div>
  240. <div style="width: 100%; padding: 10px">
  241. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  242. data-pagination="true">
  243. <thead>
  244. <tr>
  245. <th data-formatter="serialNumber" data-align="center">
  246. 序号
  247. </th>
  248. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  249. 工单单号
  250. </th>
  251. <th data-field="F_ComTitle" data-align="center">
  252. 诉求标题
  253. </th>
  254. <th data-field="DeptName" data-align="center">
  255. 承办单位
  256. </th>
  257. <th data-field="F_ComContent" data-align="center">
  258. 来电内容
  259. </th>
  260. <th data-field="F_Result" data-align="center">
  261. 办理结果
  262. </th>
  263. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  264. 录音
  265. </th>
  266. <!-- <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  267. 操作
  268. </th> -->
  269. </tr>
  270. </thead>
  271. <tbody class="list"></tbody>
  272. </table>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <!--下载框-->
  278. <div class="t-shade lyxz">
  279. <div class="shade_k">
  280. <div class="shade_title">
  281. <span>录音播放与下载<srong class="cknum"></srong></span>
  282. <span class="setwin gbly"><a>x</a></span>
  283. </div>
  284. <div class="shade_content">
  285. <div class="Ly_box audiojs"></div>
  286. </div>
  287. </div>
  288. </div>
  289. <input type="hidden" id="PID" />
  290. <input type="hidden" id="Dpment" />
  291. </div>
  292. <script src="../js/layui/layui.js"></script>
  293. <script src="../js/bootstrap-select.js"></script>
  294. <script src="../css/laydate/laydate.js"></script>
  295. <script src="../My97DatePicker/WdatePicker.js"></script>
  296. <script src="../js/zTree/jquery.ztree.core.js"></script>
  297. <script src="../js/search/screen.js"></script>
  298. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  299. <script src="../Script/Common/huayi.common.js"></script>
  300. <script>
  301. $(document).ready(function () {
  302. var wid = helper.request.queryString("wid");
  303. if (wid) {
  304. $("#tel").val(wid);
  305. load();
  306. }
  307. laydate.skin('blue');
  308. laydate({
  309. elem: '#starttime',
  310. event: 'focus',
  311. istime: true,
  312. format: 'YYYY-MM-DD hh:mm:ss'
  313. });
  314. laydate({
  315. elem: '#endtime',
  316. event: 'focus',
  317. istime: true,
  318. format: 'YYYY-MM-DD hh:mm:ss'
  319. });
  320. // laydate({
  321. // elem: '#dealstarttime',
  322. // event: 'focus',
  323. // istime: true,
  324. // format: 'YYYY-MM-DD hh:mm:ss'
  325. // });
  326. // laydate({
  327. // elem: '#dealstrendtime',
  328. // event: 'focus',
  329. // istime: true,
  330. // format: 'YYYY-MM-DD hh:mm:ss'
  331. // });
  332. getTimeRange();
  333. load();
  334. });
  335. //关闭录音弹出
  336. $(".gbly").click(function () {
  337. $(".lyxz").removeClass("cx");
  338. $("audio")[0].pause();
  339. });
  340. // 获取半年时间
  341. function getTimeRange() {
  342. var date = new Date();
  343. var year = date.getFullYear();
  344. var month = date.getMonth() + 1;
  345. month = month < 10 ? ("0" + month) : month;
  346. var day = date.getDate();
  347. day = day < 10 ? ("0" + day) : day;
  348. var currentTime = year + "-" + month + "-" + day + " 23:59:59";
  349. var halfYearDate = date.getTime() - (365/2 * 24 * 3600 * 1000);
  350. var pastDate = new Date(halfYearDate);
  351. var pastYear = pastDate.getFullYear();
  352. var pastMonth = pastDate.getMonth();
  353. pastMonth = pastMonth < 10 ? ("0" + pastMonth) : pastMonth;
  354. var pastDay = pastDate.getDate();
  355. pastDay = pastDay < 10 ? ( "0" + pastDay) : pastDay;
  356. var pastTime = pastYear + "-" + pastMonth + "-" + pastDay + " 00:00:00";
  357. $("#starttime").val(pastTime);
  358. $("#endtime").val(currentTime);
  359. }
  360. //获取查询信息
  361. function load() {
  362. //坐席
  363. var usercodeID = "";
  364. var usercode_ = $("#ZX").val(); //坐席
  365. if (usercode_ != null) {
  366. $(usercode_).each(function (i, n) {
  367. var obj1 = "";
  368. obj1 = n + ",";
  369. usercodeID += obj1;
  370. });
  371. } else {
  372. usercodeID = "";
  373. }
  374. // 调度员
  375. var ddusercodeID = "";
  376. var ddusercode_ = $("#yardman").val(); //坐席
  377. if (ddusercode_ != null) {
  378. $(ddusercode_).each(function (i, n) {
  379. var obj2 = "";
  380. obj2 = n + ",";
  381. ddusercodeID += obj2;
  382. });
  383. } else {
  384. ddusercodeID = "";
  385. }
  386. //三方通话
  387. var threeWayCall;
  388. if ($("#dealtype").val() === "2") {
  389. threeWayCall = 1
  390. } else {
  391. threeWayCall = 0
  392. }
  393. //先销毁表格
  394. $("#orderlist").bootstrapTable("destroy");
  395. //初始化表格,动态从服务器加载数据
  396. $("#orderlist").bootstrapTable({
  397. method: "get", //使用get请求到服务器获取数据
  398. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  399. contentType: "application/x-www-form-urlencoded",
  400. striped: true, //表格显示条纹
  401. pagination: true, //启动分页
  402. pageSize: 10, //每页显示的记录数
  403. pageNumber: 1, //当前第几页
  404. pageList: [10, 20, 50, 100], //记录数可选列表
  405. search: false, //是否启用查询
  406. showColumns: false, //显示下拉框勾选要显示的列
  407. showRefresh: false, //显示刷新按钮
  408. sidePagination: "server", //表示服务端请求
  409. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  410. //设置为limit可以获取limit, offset, search, sort, order
  411. queryParamsType: "undefined",
  412. queryParams: function queryParams(params) {
  413. //设置查询参数
  414. //alert(params.pageNumber)
  415. var param = {
  416. page: params.pageNumber,
  417. pagesize: params.pageSize,
  418. workid: $("#wids").val().replace(/\s+/g, ""),
  419. state: $("#state").val(), //=工单状态
  420. type: $("#type").val(), //=工单类型
  421. //bigtype: $("#bigtype").val(), //=大类别
  422. //smalltype: $("#smalltype").val(), //=小类别
  423. key: $("#key").val(), //=关键字
  424. // tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  425. // name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  426. usercode: usercodeID, //=坐席工号
  427. ddusercode: ddusercodeID,
  428. keyid: $("#keyid").val(), //=关键词id
  429. source: $("#source").val(), //=来源&
  430. starttime: $("#starttime").val(), //=开始时间
  431. endtime: $("#endtime").val(), //=结束时间
  432. deptid: $("#PID").val(),
  433. type: $("#type").val(),
  434. dealtype: $("#dealtype").val(),
  435. business: threeWayCall,
  436. sourcearea: $("#sourceAreas").val(), // 区域
  437. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  438. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  439. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  440. // dealstarttime: $("#dealstarttime").val(), //办理开始时间
  441. // dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  442. isopen: $("#isopen").val(),
  443. business: $("#threeWayCall").val(), // 三方通话
  444. splituser: $("#leaderCharge").val(), // 分管领导
  445. islike: $("#islike").val(), // 查询类型
  446. comprehensive: 1,
  447. token: $.cookie("token"),
  448. };
  449. return param;
  450. },
  451. onLoadSuccess: function (data) {
  452. //加载成功时执行
  453. // layer.msg("加载成功");
  454. //console.log(data);
  455. },
  456. onLoadError: function () {
  457. //加载失败时执行
  458. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  459. },
  460. });
  461. }
  462. //状态
  463. function States(val, row) {
  464. var html = "";
  465. switch (val + "") {
  466. case "0":
  467. html = "新工单";
  468. if (row.F_IsReturn == 1) {
  469. html = "新工单(回退)";
  470. }
  471. break;
  472. case "1":
  473. html = "待交办";
  474. break;
  475. case "2":
  476. html = '<span style="color:#FF0000;">待查收</span>';
  477. break;
  478. case "3":
  479. html = "退回审核中";
  480. break;
  481. case "4":
  482. html = "办理中";
  483. break;
  484. case "5":
  485. html = "延时审核";
  486. break;
  487. case "6":
  488. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  489. html = "已办未果"
  490. } else {
  491. html = "已办理";
  492. }
  493. break;
  494. case "7":
  495. html = "已回访";
  496. break;
  497. case "8":
  498. html = "重办中";
  499. break;
  500. case "9":
  501. html = "已结案";
  502. break;
  503. case "10":
  504. html = "待审核";
  505. break;
  506. case "11":
  507. html = "重办待交办";
  508. break;
  509. // case '12':
  510. // html = '待审核';
  511. // break;
  512. case "13":
  513. html = "重办驳回";
  514. break;
  515. }
  516. return html;
  517. }
  518. //音频
  519. function setCode(val) {
  520. if (val) {
  521. return (
  522. '<div class="imgs" style="cursor: pointer;">' +
  523. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  524. val +
  525. '" />' +
  526. "</div>"
  527. );
  528. } else {
  529. return "";
  530. }
  531. }
  532. //编号
  533. function serialNumber(val, row, index) {
  534. return index + 1;
  535. }
  536. function GetCont(val) {
  537. if (val) {
  538. var str = "<div ";
  539. if (val.length > 10) {
  540. str = str + ' title="' + val + '" ';
  541. val = val.substr(0, 10) + "...";
  542. }
  543. return str + ">" + val + "</div>";
  544. } else {
  545. return "";
  546. }
  547. }
  548. //操作
  549. function Dispose(val, row) {
  550. var Rows = row.Buttons;
  551. var html = "";
  552. for (var i = 0; i < Rows.length; i++) {
  553. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  554. if (html1) {
  555. html1 = html1.replace("data", val);
  556. html1 = html1.replace("isProtect", row.F_IsProtect);
  557. html1 = html1.replace("row", row.F_MainDeptId);
  558. }
  559. html += html1;
  560. }
  561. return html;
  562. }
  563. //查看详情
  564. function ckxq(str) {
  565. layer.open({
  566. type: 2,
  567. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  568. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  569. title: "工单详情",
  570. area: ["100%", "100%"], //宽高
  571. });
  572. }
  573. //时限
  574. function OverTime(val, row) {
  575. if (val == 1) {
  576. return (
  577. '<div class="" style="cursor: pointer;">' +
  578. '<span class="Greens">' +
  579. row.GapTime +
  580. "</span>" +
  581. "</div>"
  582. );
  583. } else if (val == 2) {
  584. return (
  585. '<div class="" style="cursor: pointer;">' +
  586. '<span class="Yellows">' +
  587. row.GapTime +
  588. "</span>" +
  589. "</div>"
  590. );
  591. } else if (val == 3) {
  592. return (
  593. '<div class="" style="cursor: pointer;">' +
  594. '<span class="Reds">' +
  595. row.GapTime +
  596. "</span>" +
  597. "</div>"
  598. );
  599. }
  600. }
  601. //办理时限
  602. function BanTime(val) {
  603. if (val) {
  604. var time = val.substring(0, val.indexOf(" "));
  605. return (
  606. '<div class="" style="cursor: pointer;">' +
  607. "<span>" +
  608. time +
  609. "</span>" +
  610. "</div>"
  611. );
  612. }
  613. }
  614. //派单
  615. function pd(str) {
  616. layer.open({
  617. type: 2,
  618. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  619. title: "办理工单",
  620. area: ["87%", "80%"], //宽高
  621. });
  622. }
  623. //处理审核
  624. function auditdeal(str) {
  625. layer.open({
  626. type: 2,
  627. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  628. title: "处理审核",
  629. area: ["80%", "80%"], //宽高
  630. });
  631. }
  632. //编辑
  633. function bj(str) {
  634. layer.open({
  635. type: 2,
  636. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  637. title: "编辑工单",
  638. area: ["96%", "80%"], //宽高
  639. });
  640. }
  641. //删除
  642. function move(str) {
  643. layer.confirm(
  644. "确定删除工单?", {
  645. btn: ["是", "否"], //按钮
  646. },
  647. function () {
  648. $.post(
  649. huayi.config.callcenter_url +
  650. "WorkOrder/DelWorkOrder", {
  651. ids: str,
  652. token: $.cookie("token"),
  653. },
  654. function (result) {
  655. result = JSON.parse(result);
  656. if (result.state.toLowerCase() == "success") {
  657. debugger;
  658. layer.msg("删除成功");
  659. $("#orderlist").bootstrapTable("refresh");
  660. }
  661. }
  662. );
  663. }
  664. );
  665. }
  666. //提交
  667. function tj(str) {
  668. layer.confirm(
  669. "确定要提交工单么?", {
  670. btn: ["确定", "取消"], //按钮
  671. },
  672. function () {
  673. //请求后台数据
  674. /*发送请求*/
  675. $.post(
  676. huayi.config.callcenter_url +
  677. "WorkOrder/SubmitWorkOrder", {
  678. ids: str,
  679. token: $.cookie("token"),
  680. },
  681. function (result) {
  682. result = JSON.parse(result);
  683. if (result.state.toLowerCase() == "success") {
  684. layer.msg("提交成功");
  685. $("#orderlist").bootstrapTable("refresh");
  686. //load();
  687. }
  688. }
  689. );
  690. }
  691. );
  692. }
  693. //交办
  694. function jb(str) {
  695. layer.open({
  696. type: 2,
  697. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  698. title: "工单交办",
  699. area: ["87%", "80%"], //宽高
  700. });
  701. }
  702. //领导批示
  703. function lader(str) {
  704. layer.open({
  705. type: 2,
  706. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  707. title: "领导批示",
  708. area: ["60%", "80%"], //宽高
  709. });
  710. }
  711. //市长批示
  712. function city(str) {
  713. layer.open({
  714. type: 2,
  715. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  716. title: "市长批示",
  717. area: ["60%", "80%"], //宽高
  718. });
  719. }
  720. //办理
  721. function bl(str, isProtect) {
  722. layer.open({
  723. type: 2,
  724. content: "../CommonHtml/banli.html?wid=" +
  725. str +
  726. "&isProtect=" +
  727. isProtect, //iframe的url,no代表不显示滚动条
  728. title: "办理工单",
  729. area: ["60%", "80%"], //宽高
  730. });
  731. }
  732. //督办
  733. function Supervision(str) {
  734. layer.open({
  735. type: 2,
  736. content: "../CommonHtml/Supervision_.html?wid=" +
  737. str +
  738. "&type=1", //iframe的url,no代表不显示滚动条
  739. title: "督办",
  740. area: ["60%", "80%"], //宽高
  741. });
  742. }
  743. //督查
  744. function Supervision_(str) {
  745. layer.open({
  746. type: 2,
  747. content: "../CommonHtml/Supervision_.html?wid=" +
  748. str +
  749. "&type=2", //iframe的url,no代表不显示滚动条
  750. title: "监察",
  751. area: ["60%", "80%"], //宽高
  752. });
  753. }
  754. //审核
  755. function audit(str) {
  756. layer.open({
  757. type: 2,
  758. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  759. title: "审核",
  760. area: ["60%", "80%"], //宽高
  761. });
  762. }
  763. //转督办
  764. function zdb(str, row) {
  765. layer.open({
  766. type: 2,
  767. content: "../CommonHtml/superTrunl.html?wid=" +
  768. str +
  769. "&depId=" +
  770. row, //iframe的url,no代表不显示滚动条
  771. title: "督办工单",
  772. area: ["60%", "80%"], //宽高
  773. });
  774. }
  775. //不督办
  776. function ndb(str) {
  777. layer.confirm(
  778. "确定督办吗?", {
  779. btn: ["是", "否"], //按钮
  780. },
  781. function () {
  782. $.post(
  783. huayi.config.callcenter_url +
  784. "WorkOrder/RemindWorkOrder", {
  785. workorderid: str,
  786. type: 1,
  787. state: 2,
  788. token: $.cookie("token"),
  789. },
  790. function (result) {
  791. result = JSON.parse(result);
  792. if (result.state.toLowerCase() == "success") {
  793. layer.msg("操作成功");
  794. //load();
  795. $("#orderlist").bootstrapTable("refresh");
  796. }
  797. }
  798. );
  799. }
  800. );
  801. }
  802. //强制结案
  803. function StrongLawsuit(str) {
  804. layer.open({
  805. type: 2,
  806. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  807. title: "强制结案",
  808. area: ["60%", "80%"], //宽高
  809. });
  810. }
  811. //回退BackDtail
  812. function BackDtail(str) {
  813. layer.open({
  814. type: 2,
  815. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  816. title: "工单督办",
  817. area: ["60%", "80%"], //宽高
  818. });
  819. }
  820. //查收
  821. function cs(str) {
  822. layer.confirm(
  823. "确定要查收?", {
  824. btn: ["是", "否"], //按钮
  825. },
  826. function () {
  827. $.post(
  828. huayi.config.callcenter_url +
  829. "WorkOrder/ReceiveWorkOrder", {
  830. workorderid: str,
  831. token: $.cookie("token"),
  832. },
  833. function (result) {
  834. result = JSON.parse(result);
  835. if (result.state.toLowerCase() == "success") {
  836. layer.msg("查收成功");
  837. //load();
  838. $("#orderlist").bootstrapTable("refresh");
  839. }
  840. }
  841. );
  842. }
  843. );
  844. }
  845. //收回
  846. function sh(str) {
  847. layer.confirm(
  848. "确定要回收?", {
  849. btn: ["是", "否"], //按钮
  850. },
  851. function () {
  852. $.post(
  853. huayi.config.callcenter_url +
  854. "WorkOrder/TakeBackWorkOrder", {
  855. workorderid: str,
  856. token: $.cookie("token"),
  857. },
  858. function (result) {
  859. result = JSON.parse(result);
  860. if (result.state.toLowerCase() == "success") {
  861. layer.msg("回收");
  862. //load();
  863. $("#orderlist").bootstrapTable("refresh");
  864. }
  865. }
  866. );
  867. }
  868. );
  869. }
  870. //强制回收
  871. function recycles() {
  872. layer.confirm("确定要强制退回吗?", {
  873. btn: ["是", "否"], //按钮
  874. });
  875. }
  876. //审核退回申请
  877. function shth(str) {
  878. layer.open({
  879. type: 2,
  880. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  881. title: "审核退回申请",
  882. area: ["60%", "80%"], //宽高
  883. });
  884. }
  885. //申请延时
  886. function ys(str) {
  887. layer.open({
  888. type: 2,
  889. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  890. title: "申请延时",
  891. area: ["60%", "80%"], //宽高
  892. });
  893. }
  894. //审核申请延时
  895. function shys(str) {
  896. layer.open({
  897. type: 2,
  898. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  899. title: "审核延时申请",
  900. area: ["60%", "80%"], //宽高
  901. });
  902. }
  903. //审核
  904. function hf(str) {
  905. layer.open({
  906. type: 2,
  907. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  908. title: "工单审核",
  909. area: ["60%", "80%"], //宽高
  910. });
  911. }
  912. //重办工单
  913. function cb(str) {
  914. layer.open({
  915. type: 2,
  916. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  917. title: "重办工单",
  918. area: ["60%", "80%"], //宽高
  919. });
  920. }
  921. //提交重办
  922. function bhcb(str) {
  923. //回退BackDtail
  924. layer.open({
  925. type: 2,
  926. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  927. title: "驳回重办",
  928. area: ["60%", "80%"], //宽高
  929. });
  930. }
  931. //提交重办
  932. function tjcb(str) {
  933. layer.open({
  934. type: 2,
  935. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  936. title: "提交重办",
  937. area: ["50%", "40%"], //宽高
  938. });
  939. // layer.confirm('确认提交重办吗?', {
  940. // btn: ['是', '否'] //按钮
  941. // }, function () {
  942. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  943. // ids: str,
  944. // "token": $.cookie("token")
  945. // }, function(result) {
  946. // result = JSON.parse(result);
  947. // if(result.state.toLowerCase() == "success") {
  948. // layer.msg("操作成功");
  949. // //load();
  950. // $("#orderlist").bootstrapTable('refresh');
  951. // }
  952. // })
  953. // });
  954. }
  955. //结案
  956. function Lawsuit(str) {
  957. layer.open({
  958. type: 2,
  959. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  960. title: "诉求单结案",
  961. area: ["60%", "80%"], //宽高
  962. });
  963. }
  964. //退回
  965. function returnRedo(str) {
  966. layer.open({
  967. type: 2,
  968. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  969. title: "退回",
  970. area: ["50%", "40%"], //宽高
  971. });
  972. }
  973. //退回
  974. function returnAuditor(str) {
  975. layer.open({
  976. type: 2,
  977. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  978. title: "退回",
  979. area: ["50%", "40%"], //宽高
  980. });
  981. }
  982. //修改
  983. function editProcessingResult(str) {
  984. layer.open({
  985. type: 2,
  986. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  987. title: "修改",
  988. area: ["50%", "70%"], //宽高
  989. });
  990. }
  991. //来源
  992. function LY(obj) {
  993. obj.empty();
  994. obj.append(
  995. '<option selected="selected" value="">请选择</option>'
  996. );
  997. $.getJSON(
  998. huayi.config.callcenter_url +
  999. "Dictionary/GetDicValueListById", {
  1000. token: $.cookie("token"),
  1001. id: 1,
  1002. },
  1003. function (data) {
  1004. if (data.state.toLowerCase() == "success") {
  1005. var content = data.data;
  1006. $(content).each(function (i, n) {
  1007. $(
  1008. "<option value='" +
  1009. n.F_ValueId +
  1010. "'>" +
  1011. n.F_Value +
  1012. "</option>"
  1013. ).appendTo(obj);
  1014. });
  1015. }
  1016. }
  1017. );
  1018. }
  1019. //类别
  1020. function LB(obj) {
  1021. obj.empty();
  1022. obj.append(
  1023. '<option selected="selected" value="">请选择</option>'
  1024. );
  1025. $.getJSON(
  1026. huayi.config.callcenter_url +
  1027. "Dictionary/GetDicValueListById", {
  1028. token: $.cookie("token"),
  1029. id: 2,
  1030. },
  1031. function (data) {
  1032. if (data.state.toLowerCase() == "success") {
  1033. var content = data.data;
  1034. $(content).each(function (i, n) {
  1035. $(
  1036. "<option value='" +
  1037. n.F_ValueId +
  1038. "'>" +
  1039. n.F_Value +
  1040. "</option>"
  1041. ).appendTo(obj);
  1042. });
  1043. }
  1044. }
  1045. );
  1046. }
  1047. // 主题
  1048. function ZT(obj) {
  1049. obj.empty();
  1050. obj.append(
  1051. '<option selected="selected" value="">请选择</option>'
  1052. );
  1053. $.getJSON(
  1054. huayi.config.callcenter_url +
  1055. "Dictionary/GetDicValueListById", {
  1056. token: $.cookie("token"),
  1057. id: 3,
  1058. },
  1059. function (data) {
  1060. if (data.state.toLowerCase() == "success") {
  1061. var content = data.data;
  1062. $(content).each(function (i, n) {
  1063. $(
  1064. "<option value='" +
  1065. n.F_ValueId +
  1066. "'>" +
  1067. n.F_Value +
  1068. "</option>"
  1069. ).appendTo(obj);
  1070. });
  1071. }
  1072. }
  1073. );
  1074. }
  1075. function tree() {
  1076. $.get(
  1077. huayi.config.callcenter_url + "Department/GetDeptList", {
  1078. token: $.cookie("token"),
  1079. // "pid": pid
  1080. },
  1081. function (result) {
  1082. result = $.parseJSON(result);
  1083. $.fn.zTree.init(
  1084. $("#addTreeDemo"),
  1085. setting1,
  1086. result.data
  1087. ); //实例化树形图
  1088. }
  1089. );
  1090. }
  1091. var setting1 = {
  1092. data: {
  1093. key: {
  1094. name: "F_DeptName",
  1095. },
  1096. simpleData: {
  1097. enable: true,
  1098. idKey: "F_DeptId",
  1099. pIdKey: "F_PartentId",
  1100. rootPId: 0,
  1101. },
  1102. },
  1103. callback: {
  1104. onClick: zTreeOnClick,
  1105. },
  1106. };
  1107. function zTreeOnClick(event, treeId, treeNode) {
  1108. if (treeNode.level >= 1) {
  1109. $(".inps").val(treeNode.F_DeptName);
  1110. $("#PID").val(treeNode.F_DeptId);
  1111. $("#Dpment").val(treeNode.F_DeptId);
  1112. $(".Cleans").show();
  1113. }
  1114. }
  1115. function Close() {
  1116. $(".lyxz").removeClass("cx");
  1117. if ($("audio").length > 0) {
  1118. $("audio")[0].pause();
  1119. }
  1120. }
  1121. //导出
  1122. $(".exportFile").click(function () {
  1123. dcexcel(this);
  1124. });
  1125. // 导出
  1126. function dcexcel(obj) {
  1127. //坐席
  1128. var usercodeID = "";
  1129. var usercode_ = $("#ZX").val(); //坐席
  1130. if (usercode_ != null) {
  1131. $(usercode_).each(function (i, n) {
  1132. var obj1 = "";
  1133. obj1 = n + ",";
  1134. usercodeID += obj1;
  1135. });
  1136. } else {
  1137. usercodeID = "";
  1138. }
  1139. // var sponsorID = "";
  1140. // var sponsor = $("#sponsor").text(); //坐席
  1141. // if(sponsor != null) {
  1142. // sponsorID = $("#sponsor").attr();
  1143. // } else {
  1144. // sponsorID = ""
  1145. // }
  1146. //调度员
  1147. var ddusercodeID = "";
  1148. var ddusercode_ = $("#yardman").val(); //坐席
  1149. if (ddusercode_ != null) {
  1150. $(ddusercode_).each(function (i, n) {
  1151. var obj2 = "";
  1152. obj2 = n + ",";
  1153. ddusercodeID += obj2;
  1154. });
  1155. } else {
  1156. ddusercodeID = "";
  1157. }
  1158. var startTime;
  1159. var endTime;
  1160. if ($("#starttime").val()) {
  1161. startTime = $("#starttime").val();
  1162. endTime = $("#endtime").val();
  1163. } else {
  1164. startTime = "";
  1165. endTime = "";
  1166. }
  1167. var ComTitle = $("#workOrderTitle").val().replace(/\s+/g, ""); // 工单标题
  1168. var ComContent = $("#workOrderContent").val().replace(/\s+/g, ""); // 工单内容
  1169. var Result = $("#workOrderProcessingResult").val().replace(/\s+/g, ""); // 办理结果
  1170. var dealstarttime = $("#dealstarttime").val(); //办理开始时间
  1171. var dealstrendtime = $("#dealstrendtime").val(); //办理结束时间
  1172. var isopen = $("#isopen").val(); // 是否公开
  1173. var url =
  1174. huayi.config.callcenter_url +
  1175. "WorkOrder/GetList?token=" +
  1176. $.cookie("token") +
  1177. "&isdc=1";
  1178. url +=
  1179. "&starttime=" +
  1180. startTime +
  1181. "&endtime=" +
  1182. endTime +
  1183. "&workid=" +
  1184. $("#wids").val() +
  1185. "&state=" +
  1186. $("#state").val() +
  1187. "&type=" +
  1188. $("#type").val() +
  1189. "&key=" +
  1190. $("#key").val() +
  1191. "&tel=" +
  1192. $("#tel").val() +
  1193. "&name=" +
  1194. $("#name").val() +
  1195. "&keyid=" +
  1196. $("#keyid").val() +
  1197. "&source=" +
  1198. $("#source").val() +
  1199. "&usercode=" +
  1200. usercodeID +
  1201. "&ddusercode=" +
  1202. ddusercodeID +
  1203. "&deptid=" +
  1204. $("#Dpment").val() +
  1205. "&type=" +
  1206. $("#type").val() +
  1207. "&dealtype=" +
  1208. $("#dealtype").val() +
  1209. "&sourcearea=" +
  1210. $("#sourceAreas").val() +
  1211. "&ComTitle=" +
  1212. ComTitle +
  1213. "&ComContent=" +
  1214. ComContent +
  1215. "&Result=" +
  1216. Result +
  1217. "&dealstarttime=" +
  1218. dealstarttime +
  1219. "&dealstrendtime=" +
  1220. dealstrendtime +
  1221. "&isopen=" +
  1222. isopen +
  1223. "&isdc=1" +
  1224. "&comprehensive=1";
  1225. window.location.href = url;
  1226. }
  1227. </script>
  1228. </body>
  1229. </html>