Brak opisu

commentList.html 48KB

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