Sin descripción

Lawsuit.html 36KB

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