暫無描述

WorkIsproresultOtherPhone.html 48KB

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