Sin descripción

LawsuitProvincialPlatform.html 51KB

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