Няма описание

integratedQuery.html 52KB

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