暫無描述

LawsuitMedia.html 48KB

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