Bez popisu

complaintTransferred.html 50KB

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