Bez popisu

WorkIsproresultMarketing.html 46KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  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: 3, // 多媒体
  436. token: $.cookie("token"),
  437. };
  438. // 导出参数
  439. exportParams = param;
  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. html = "已办理";
  480. break;
  481. case "7":
  482. html = "已回访";
  483. break;
  484. case "8":
  485. html = "重办中";
  486. break;
  487. case "9":
  488. html = "已结案";
  489. break;
  490. case "10":
  491. html = "待审核";
  492. break;
  493. case "11":
  494. html = "重办待交办";
  495. break;
  496. // case '12':
  497. // html = '待审核';
  498. // break;
  499. case "13":
  500. html = "重办驳回";
  501. break;
  502. }
  503. return html;
  504. }
  505. //音频
  506. function setCode(val) {
  507. if (val) {
  508. return (
  509. '<div class="imgs" style="cursor: pointer;">' +
  510. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  511. val +
  512. '" />' +
  513. "</div>"
  514. );
  515. } else {
  516. return "";
  517. }
  518. }
  519. //编号
  520. function serialNumber(val, row, index) {
  521. return index + 1;
  522. }
  523. function GetCont(val) {
  524. if (val) {
  525. var str = "<div ";
  526. if (val.length > 10) {
  527. str = str + ' title="' + val + '" ';
  528. val = val.substr(0, 10) + "...";
  529. }
  530. return str + ">" + val + "</div>";
  531. } else {
  532. return "";
  533. }
  534. }
  535. //操作
  536. function Dispose(val, row) {
  537. var Rows = row.Buttons;
  538. var html = "";
  539. for (var i = 0; i < Rows.length; i++) {
  540. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  541. if (html1) {
  542. html1 = html1.replace("data", val);
  543. html1 = html1.replace("isProtect", row.F_IsProtect);
  544. html1 = html1.replace("row", row.F_MainDeptId);
  545. }
  546. html += html1;
  547. }
  548. return html;
  549. }
  550. //查看详情
  551. function ckxq(str) {
  552. layer.open({
  553. type: 2,
  554. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  555. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  556. title: "工单详情",
  557. area: ["100%", "100%"], //宽高
  558. });
  559. }
  560. //时限
  561. function OverTime(val, row) {
  562. if (val == 1) {
  563. return (
  564. '<div class="" style="cursor: pointer;">' +
  565. '<span class="Greens">' +
  566. row.GapTime +
  567. "</span>" +
  568. "</div>"
  569. );
  570. } else if (val == 2) {
  571. return (
  572. '<div class="" style="cursor: pointer;">' +
  573. '<span class="Yellows">' +
  574. row.GapTime +
  575. "</span>" +
  576. "</div>"
  577. );
  578. } else if (val == 3) {
  579. return (
  580. '<div class="" style="cursor: pointer;">' +
  581. '<span class="Reds">' +
  582. row.GapTime +
  583. "</span>" +
  584. "</div>"
  585. );
  586. }
  587. }
  588. //办理时限
  589. function BanTime(val) {
  590. if (val) {
  591. var time = val.substring(0, val.indexOf(" "));
  592. return (
  593. '<div class="" style="cursor: pointer;">' +
  594. "<span>" +
  595. time +
  596. "</span>" +
  597. "</div>"
  598. );
  599. }
  600. }
  601. //派单
  602. function pd(str) {
  603. layer.open({
  604. type: 2,
  605. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. title: "办理工单",
  607. area: ["87%", "80%"], //宽高
  608. });
  609. }
  610. //处理审核
  611. function auditdeal(str) {
  612. layer.open({
  613. type: 2,
  614. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  615. title: "处理审核",
  616. area: ["80%", "80%"], //宽高
  617. });
  618. }
  619. //编辑
  620. function bj(str) {
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  624. title: "编辑工单",
  625. area: ["96%", "80%"], //宽高
  626. });
  627. }
  628. //删除
  629. function move(str) {
  630. layer.confirm(
  631. "确定删除工单?", {
  632. btn: ["是", "否"], //按钮
  633. },
  634. function () {
  635. $.post(
  636. huayi.config.callcenter_url +
  637. "WorkOrder/DelWorkOrder", {
  638. ids: str,
  639. token: $.cookie("token"),
  640. },
  641. function (result) {
  642. result = JSON.parse(result);
  643. if (result.state.toLowerCase() == "success") {
  644. debugger;
  645. layer.msg("删除成功");
  646. $("#orderlist").bootstrapTable("refresh");
  647. }
  648. }
  649. );
  650. }
  651. );
  652. }
  653. //提交
  654. function tj(str) {
  655. layer.confirm(
  656. "确定要提交工单么?", {
  657. btn: ["确定", "取消"], //按钮
  658. },
  659. function () {
  660. //请求后台数据
  661. /*发送请求*/
  662. $.post(
  663. huayi.config.callcenter_url +
  664. "WorkOrder/SubmitWorkOrder", {
  665. ids: str,
  666. token: $.cookie("token"),
  667. },
  668. function (result) {
  669. result = JSON.parse(result);
  670. if (result.state.toLowerCase() == "success") {
  671. layer.msg("提交成功");
  672. $("#orderlist").bootstrapTable("refresh");
  673. //load();
  674. }
  675. }
  676. );
  677. }
  678. );
  679. }
  680. //交办
  681. function jb(str) {
  682. layer.open({
  683. type: 2,
  684. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  685. title: "工单交办",
  686. area: ["87%", "80%"], //宽高
  687. });
  688. }
  689. //领导批示
  690. function lader(str) {
  691. layer.open({
  692. type: 2,
  693. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  694. title: "领导批示",
  695. area: ["60%", "80%"], //宽高
  696. });
  697. }
  698. //市长批示
  699. function city(str) {
  700. layer.open({
  701. type: 2,
  702. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  703. title: "市长批示",
  704. area: ["60%", "80%"], //宽高
  705. });
  706. }
  707. //办理
  708. function bl(str, isProtect) {
  709. layer.open({
  710. type: 2,
  711. content: "../CommonHtml/banli.html?wid=" +
  712. str +
  713. "&isProtect=" +
  714. isProtect, //iframe的url,no代表不显示滚动条
  715. title: "办理工单",
  716. area: ["60%", "80%"], //宽高
  717. });
  718. }
  719. //督办
  720. function Supervision(str) {
  721. layer.open({
  722. type: 2,
  723. content: "../CommonHtml/Supervision_.html?wid=" +
  724. str +
  725. "&type=1", //iframe的url,no代表不显示滚动条
  726. title: "督办",
  727. area: ["60%", "80%"], //宽高
  728. });
  729. }
  730. //督查
  731. function Supervision_(str) {
  732. layer.open({
  733. type: 2,
  734. content: "../CommonHtml/Supervision_.html?wid=" +
  735. str +
  736. "&type=2", //iframe的url,no代表不显示滚动条
  737. title: "监察",
  738. area: ["60%", "80%"], //宽高
  739. });
  740. }
  741. //审核
  742. function audit(str) {
  743. layer.open({
  744. type: 2,
  745. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  746. title: "审核",
  747. area: ["60%", "80%"], //宽高
  748. });
  749. }
  750. //转督办
  751. function zdb(str, row) {
  752. layer.open({
  753. type: 2,
  754. content: "../CommonHtml/superTrunl.html?wid=" +
  755. str +
  756. "&depId=" +
  757. row, //iframe的url,no代表不显示滚动条
  758. title: "督办工单",
  759. area: ["60%", "80%"], //宽高
  760. });
  761. }
  762. //不督办
  763. function ndb(str) {
  764. layer.confirm(
  765. "确定督办吗?", {
  766. btn: ["是", "否"], //按钮
  767. },
  768. function () {
  769. $.post(
  770. huayi.config.callcenter_url +
  771. "WorkOrder/RemindWorkOrder", {
  772. workorderid: str,
  773. type: 1,
  774. state: 2,
  775. token: $.cookie("token"),
  776. },
  777. function (result) {
  778. result = JSON.parse(result);
  779. if (result.state.toLowerCase() == "success") {
  780. layer.msg("操作成功");
  781. //load();
  782. $("#orderlist").bootstrapTable("refresh");
  783. }
  784. }
  785. );
  786. }
  787. );
  788. }
  789. //强制结案
  790. function StrongLawsuit(str) {
  791. layer.open({
  792. type: 2,
  793. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  794. title: "强制结案",
  795. area: ["60%", "80%"], //宽高
  796. });
  797. }
  798. //回退BackDtail
  799. function BackDtail(str) {
  800. layer.open({
  801. type: 2,
  802. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  803. title: "工单督办",
  804. area: ["60%", "80%"], //宽高
  805. });
  806. }
  807. //查收
  808. function cs(str) {
  809. layer.confirm(
  810. "确定要查收?", {
  811. btn: ["是", "否"], //按钮
  812. },
  813. function () {
  814. $.post(
  815. huayi.config.callcenter_url +
  816. "WorkOrder/ReceiveWorkOrder", {
  817. workorderid: str,
  818. token: $.cookie("token"),
  819. },
  820. function (result) {
  821. result = JSON.parse(result);
  822. if (result.state.toLowerCase() == "success") {
  823. layer.msg("查收成功");
  824. //load();
  825. $("#orderlist").bootstrapTable("refresh");
  826. }
  827. }
  828. );
  829. }
  830. );
  831. }
  832. //收回
  833. function sh(str) {
  834. layer.confirm(
  835. "确定要回收?", {
  836. btn: ["是", "否"], //按钮
  837. },
  838. function () {
  839. $.post(
  840. huayi.config.callcenter_url +
  841. "WorkOrder/TakeBackWorkOrder", {
  842. workorderid: str,
  843. token: $.cookie("token"),
  844. },
  845. function (result) {
  846. result = JSON.parse(result);
  847. if (result.state.toLowerCase() == "success") {
  848. layer.msg("回收");
  849. //load();
  850. $("#orderlist").bootstrapTable("refresh");
  851. }
  852. }
  853. );
  854. }
  855. );
  856. }
  857. //强制回收
  858. function recycles() {
  859. layer.confirm("确定要强制退回吗?", {
  860. btn: ["是", "否"], //按钮
  861. });
  862. }
  863. //退回申请
  864. function th(str) {
  865. layer.open({
  866. type: 2,
  867. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  868. title: "申请退回工单",
  869. area: ["60%", "80%"], //宽高
  870. });
  871. }
  872. //审核退回申请
  873. function shth(str) {
  874. layer.open({
  875. type: 2,
  876. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  877. title: "审核退回申请",
  878. area: ["60%", "80%"], //宽高
  879. });
  880. }
  881. //申请延时
  882. function ys(str) {
  883. layer.open({
  884. type: 2,
  885. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  886. title: "申请延时",
  887. area: ["60%", "80%"], //宽高
  888. });
  889. }
  890. //审核申请延时
  891. function shys(str) {
  892. layer.open({
  893. type: 2,
  894. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  895. title: "审核延时申请",
  896. area: ["60%", "80%"], //宽高
  897. });
  898. }
  899. //诉求回访
  900. function hf(str) {
  901. layer.open({
  902. type: 2,
  903. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  904. title: "工单回访",
  905. area: ["60%", "80%"], //宽高
  906. });
  907. }
  908. //重办工单
  909. function cb(str) {
  910. layer.open({
  911. type: 2,
  912. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  913. title: "重办工单",
  914. area: ["60%", "80%"], //宽高
  915. });
  916. }
  917. //驳回重办
  918. function bhcb(str) {
  919. //回退BackDtail
  920. layer.open({
  921. type: 2,
  922. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  923. title: "驳回重办",
  924. area: ["60%", "80%"], //宽高
  925. });
  926. }
  927. //提交重办
  928. function tjcb(str) {
  929. layer.open({
  930. type: 2,
  931. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  932. title: "提交重办",
  933. area: ["50%", "40%"], //宽高
  934. });
  935. // layer.confirm('确认提交重办吗?', {
  936. // btn: ['是', '否'] //按钮
  937. // }, function () {
  938. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  939. // ids: str,
  940. // "token": $.cookie("token")
  941. // }, function(result) {
  942. // result = JSON.parse(result);
  943. // if(result.state.toLowerCase() == "success") {
  944. // layer.msg("操作成功");
  945. // //load();
  946. // $("#orderlist").bootstrapTable('refresh');
  947. // }
  948. // })
  949. // });
  950. }
  951. //结案
  952. function Lawsuit(str) {
  953. layer.open({
  954. type: 2,
  955. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  956. title: "诉求单结案",
  957. area: ["60%", "80%"], //宽高
  958. });
  959. }
  960. //来源
  961. function LY(obj) {
  962. obj.empty();
  963. obj.append(
  964. '<option selected="selected" value="">请选择</option>'
  965. );
  966. $.getJSON(
  967. huayi.config.callcenter_url +
  968. "Dictionary/GetDicValueListById", {
  969. token: $.cookie("token"),
  970. id: 1,
  971. },
  972. function (data) {
  973. if (data.state.toLowerCase() == "success") {
  974. var content = data.data;
  975. $(content).each(function (i, n) {
  976. $(
  977. "<option value='" +
  978. n.F_ValueId +
  979. "'>" +
  980. n.F_Value +
  981. "</option>"
  982. ).appendTo(obj);
  983. });
  984. }
  985. }
  986. );
  987. }
  988. //类别
  989. function LB(obj) {
  990. obj.empty();
  991. obj.append(
  992. '<option selected="selected" value="">请选择</option>'
  993. );
  994. $.getJSON(
  995. huayi.config.callcenter_url +
  996. "Dictionary/GetDicValueListById", {
  997. token: $.cookie("token"),
  998. id: 2,
  999. },
  1000. function (data) {
  1001. if (data.state.toLowerCase() == "success") {
  1002. var content = data.data;
  1003. $(content).each(function (i, n) {
  1004. $(
  1005. "<option value='" +
  1006. n.F_ValueId +
  1007. "'>" +
  1008. n.F_Value +
  1009. "</option>"
  1010. ).appendTo(obj);
  1011. });
  1012. }
  1013. }
  1014. );
  1015. }
  1016. // 主题
  1017. function ZT(obj) {
  1018. obj.empty();
  1019. obj.append(
  1020. '<option selected="selected" value="">请选择</option>'
  1021. );
  1022. $.getJSON(
  1023. huayi.config.callcenter_url +
  1024. "Dictionary/GetDicValueListById", {
  1025. token: $.cookie("token"),
  1026. id: 3,
  1027. },
  1028. function (data) {
  1029. if (data.state.toLowerCase() == "success") {
  1030. var content = data.data;
  1031. $(content).each(function (i, n) {
  1032. $(
  1033. "<option value='" +
  1034. n.F_ValueId +
  1035. "'>" +
  1036. n.F_Value +
  1037. "</option>"
  1038. ).appendTo(obj);
  1039. });
  1040. }
  1041. }
  1042. );
  1043. }
  1044. function tree() {
  1045. $.get(
  1046. huayi.config.callcenter_url + "Department/GetDeptList", {
  1047. token: $.cookie("token"),
  1048. // "pid": pid
  1049. },
  1050. function (result) {
  1051. result = $.parseJSON(result);
  1052. $.fn.zTree.init(
  1053. $("#addTreeDemo"),
  1054. setting1,
  1055. result.data
  1056. ); //实例化树形图
  1057. }
  1058. );
  1059. }
  1060. var setting1 = {
  1061. data: {
  1062. key: {
  1063. name: "F_DeptName",
  1064. },
  1065. simpleData: {
  1066. enable: true,
  1067. idKey: "F_DeptId",
  1068. pIdKey: "F_PartentId",
  1069. rootPId: 0,
  1070. },
  1071. },
  1072. callback: {
  1073. onClick: zTreeOnClick,
  1074. },
  1075. };
  1076. function zTreeOnClick(event, treeId, treeNode) {
  1077. if (treeNode.level >= 2) {
  1078. $(".inps").val(treeNode.F_DeptName);
  1079. $("#PID").val(treeNode.F_DeptId);
  1080. $("#Dpment").val(treeNode.F_DeptId);
  1081. $(".Cleans").show();
  1082. }
  1083. }
  1084. function Close() {
  1085. $(".lyxz").removeClass("cx");
  1086. if ($("audio").length > 0) {
  1087. $("audio")[0].pause();
  1088. }
  1089. }
  1090. // 导出文件
  1091. $(".exportFile").click(function() {
  1092. exportParams.isdc = 1;
  1093. exportFileFun("WorkOrder/GetList", exportParams)
  1094. })
  1095. </script>
  1096. </body>
  1097. </html>