暫無描述

Lawsuit.html 53KB

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