Sin descripción

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