Няма описание

WorkIsproresultMarketing.html 46KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117
  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. //获取查询信息
  352. function load() {
  353. //坐席
  354. var usercodeID = "";
  355. var usercode_ = $("#ZX").val(); //坐席
  356. if (usercode_ != null) {
  357. $(usercode_).each(function (i, n) {
  358. var obj1 = "";
  359. obj1 = n + ",";
  360. usercodeID += obj1;
  361. });
  362. } else {
  363. usercodeID = "";
  364. }
  365. // 调度员
  366. var ddusercodeID = "";
  367. var ddusercode_ = $("#yardman").val(); //坐席
  368. if (ddusercode_ != null) {
  369. $(ddusercode_).each(function (i, n) {
  370. var obj2 = "";
  371. obj2 = n + ",";
  372. ddusercodeID += obj2;
  373. });
  374. } else {
  375. ddusercodeID = "";
  376. }
  377. //先销毁表格
  378. $("#orderlist").bootstrapTable("destroy");
  379. //初始化表格,动态从服务器加载数据
  380. $("#orderlist").bootstrapTable({
  381. method: "get", //使用get请求到服务器获取数据
  382. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  383. contentType: "application/x-www-form-urlencoded",
  384. striped: true, //表格显示条纹
  385. pagination: true, //启动分页
  386. pageSize: 10, //每页显示的记录数
  387. pageNumber: 1, //当前第几页
  388. pageList: [10, 20, 50, 100], //记录数可选列表
  389. search: false, //是否启用查询
  390. showColumns: false, //显示下拉框勾选要显示的列
  391. showRefresh: false, //显示刷新按钮
  392. sidePagination: "server", //表示服务端请求
  393. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  394. //设置为limit可以获取limit, offset, search, sort, order
  395. queryParamsType: "undefined",
  396. queryParams: function queryParams(params) {
  397. //设置查询参数
  398. //alert(params.pageNumber)
  399. var param = {
  400. page: params.pageNumber,
  401. pagesize: params.pageSize,
  402. isproresult: isproresult, // 已办未果
  403. workid: $("#wids").val(),
  404. // state: $("#state").val(), //=工单状态
  405. state: 6, //=工单状态
  406. type: $("#type").val(), //=工单类型
  407. //bigtype: $("#bigtype").val(), //=大类别
  408. //smalltype: $("#smalltype").val(), //=小类别
  409. key: $("#key").val(), //=关键字
  410. tel: $("#tel").val(), //=客户电话
  411. name: $("#name").val(), //=客户名称
  412. usercode: usercodeID, //=坐席工号
  413. ddusercode: ddusercodeID,
  414. keyid: $("#keyid").val(), //=关键词id
  415. source: $("#source").val(), //=来源&
  416. starttime: $("#starttime").val(), //=开始时间
  417. endtime: $("#endtime").val(), //=结束时间
  418. deptid: $("#PID").val(),
  419. type: $("#type").val(),
  420. dealtype: $("#dealtype").val(),
  421. sourcearea: $("#sourceAreas").val(), //区域
  422. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  423. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  424. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  425. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  426. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  427. isopen: $("#isopen").val(), // 是否公开
  428. business: $("#threeWayCall").val(), // 三方通话
  429. splituser: $("#leaderCharge").val(), // 分管领导
  430. islike: $("#islike").val(), // 查询类型
  431. jianhang: 3, // 多媒体
  432. token: $.cookie("token"),
  433. };
  434. // 导出参数
  435. exportParams = param;
  436. return param;
  437. },
  438. onLoadSuccess: function (data) {
  439. //加载成功时执行
  440. // layer.msg("加载成功");
  441. //console.log(data);
  442. },
  443. onLoadError: function () {
  444. //加载失败时执行
  445. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  446. },
  447. });
  448. }
  449. //状态
  450. function States(val, row) {
  451. var html = "";
  452. switch (val + "") {
  453. case "0":
  454. html = "新工单";
  455. if (row.F_IsReturn == 1) {
  456. html = "新工单(回退)";
  457. }
  458. break;
  459. case "1":
  460. html = "待交办";
  461. break;
  462. case "2":
  463. html = '<span style="color:#FF0000;">待查收</span>';
  464. break;
  465. case "3":
  466. html = "退回审核中";
  467. break;
  468. case "4":
  469. html = "办理中";
  470. break;
  471. case "5":
  472. html = "延时审核";
  473. break;
  474. case "6":
  475. html = "已办理";
  476. break;
  477. case "7":
  478. html = "已回访";
  479. break;
  480. case "8":
  481. html = "重办中";
  482. break;
  483. case "9":
  484. html = "已结案";
  485. break;
  486. case "10":
  487. html = "待审核";
  488. break;
  489. case "11":
  490. html = "重办待交办";
  491. break;
  492. // case '12':
  493. // html = '待审核';
  494. // break;
  495. case "13":
  496. html = "重办驳回";
  497. break;
  498. }
  499. return html;
  500. }
  501. //音频
  502. function setCode(val) {
  503. if (val) {
  504. return (
  505. '<div class="imgs" style="cursor: pointer;">' +
  506. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  507. val +
  508. '" />' +
  509. "</div>"
  510. );
  511. } else {
  512. return "";
  513. }
  514. }
  515. //编号
  516. function serialNumber(val, row, index) {
  517. return index + 1;
  518. }
  519. function GetCont(val) {
  520. if (val) {
  521. var str = "<div ";
  522. if (val.length > 10) {
  523. str = str + ' title="' + val + '" ';
  524. val = val.substr(0, 10) + "...";
  525. }
  526. return str + ">" + val + "</div>";
  527. } else {
  528. return "";
  529. }
  530. }
  531. //操作
  532. function Dispose(val, row) {
  533. var Rows = row.Buttons;
  534. var html = "";
  535. for (var i = 0; i < Rows.length; i++) {
  536. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  537. if (html1) {
  538. html1 = html1.replace("data", val);
  539. html1 = html1.replace("isProtect", row.F_IsProtect);
  540. html1 = html1.replace("row", row.F_MainDeptId);
  541. }
  542. html += html1;
  543. }
  544. return html;
  545. }
  546. //查看详情
  547. function ckxq(str) {
  548. layer.open({
  549. type: 2,
  550. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  551. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  552. title: "工单详情",
  553. area: ["100%", "100%"], //宽高
  554. });
  555. }
  556. //时限
  557. function OverTime(val, row) {
  558. if (val == 1) {
  559. return (
  560. '<div class="" style="cursor: pointer;">' +
  561. '<span class="Greens">' +
  562. row.GapTime +
  563. "</span>" +
  564. "</div>"
  565. );
  566. } else if (val == 2) {
  567. return (
  568. '<div class="" style="cursor: pointer;">' +
  569. '<span class="Yellows">' +
  570. row.GapTime +
  571. "</span>" +
  572. "</div>"
  573. );
  574. } else if (val == 3) {
  575. return (
  576. '<div class="" style="cursor: pointer;">' +
  577. '<span class="Reds">' +
  578. row.GapTime +
  579. "</span>" +
  580. "</div>"
  581. );
  582. }
  583. }
  584. //办理时限
  585. function BanTime(val) {
  586. if (val) {
  587. var time = val.substring(0, val.indexOf(" "));
  588. return (
  589. '<div class="" style="cursor: pointer;">' +
  590. "<span>" +
  591. time +
  592. "</span>" +
  593. "</div>"
  594. );
  595. }
  596. }
  597. //派单
  598. function pd(str) {
  599. layer.open({
  600. type: 2,
  601. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  602. title: "办理工单",
  603. area: ["87%", "80%"], //宽高
  604. });
  605. }
  606. //处理审核
  607. function auditdeal(str) {
  608. layer.open({
  609. type: 2,
  610. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  611. title: "处理审核",
  612. area: ["80%", "80%"], //宽高
  613. });
  614. }
  615. //编辑
  616. function bj(str) {
  617. layer.open({
  618. type: 2,
  619. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  620. title: "编辑工单",
  621. area: ["96%", "80%"], //宽高
  622. });
  623. }
  624. //删除
  625. function move(str) {
  626. layer.confirm(
  627. "确定删除工单?", {
  628. btn: ["是", "否"], //按钮
  629. },
  630. function () {
  631. $.post(
  632. huayi.config.callcenter_url +
  633. "WorkOrder/DelWorkOrder", {
  634. ids: str,
  635. token: $.cookie("token"),
  636. },
  637. function (result) {
  638. result = JSON.parse(result);
  639. if (result.state.toLowerCase() == "success") {
  640. debugger;
  641. layer.msg("删除成功");
  642. $("#orderlist").bootstrapTable("refresh");
  643. }
  644. }
  645. );
  646. }
  647. );
  648. }
  649. //提交
  650. function tj(str) {
  651. layer.confirm(
  652. "确定要提交工单么?", {
  653. btn: ["确定", "取消"], //按钮
  654. },
  655. function () {
  656. //请求后台数据
  657. /*发送请求*/
  658. $.post(
  659. huayi.config.callcenter_url +
  660. "WorkOrder/SubmitWorkOrder", {
  661. ids: str,
  662. token: $.cookie("token"),
  663. },
  664. function (result) {
  665. result = JSON.parse(result);
  666. if (result.state.toLowerCase() == "success") {
  667. layer.msg("提交成功");
  668. $("#orderlist").bootstrapTable("refresh");
  669. //load();
  670. }
  671. }
  672. );
  673. }
  674. );
  675. }
  676. //交办
  677. function jb(str) {
  678. layer.open({
  679. type: 2,
  680. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  681. title: "工单交办",
  682. area: ["87%", "80%"], //宽高
  683. });
  684. }
  685. //领导批示
  686. function lader(str) {
  687. layer.open({
  688. type: 2,
  689. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  690. title: "领导批示",
  691. area: ["60%", "80%"], //宽高
  692. });
  693. }
  694. //市长批示
  695. function city(str) {
  696. layer.open({
  697. type: 2,
  698. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  699. title: "市长批示",
  700. area: ["60%", "80%"], //宽高
  701. });
  702. }
  703. //办理
  704. function bl(str, isProtect) {
  705. layer.open({
  706. type: 2,
  707. content: "../CommonHtml/banli.html?wid=" +
  708. str +
  709. "&isProtect=" +
  710. isProtect, //iframe的url,no代表不显示滚动条
  711. title: "办理工单",
  712. area: ["60%", "80%"], //宽高
  713. });
  714. }
  715. //督办
  716. function Supervision(str) {
  717. layer.open({
  718. type: 2,
  719. content: "../CommonHtml/Supervision_.html?wid=" +
  720. str +
  721. "&type=1", //iframe的url,no代表不显示滚动条
  722. title: "督办",
  723. area: ["60%", "80%"], //宽高
  724. });
  725. }
  726. //督查
  727. function Supervision_(str) {
  728. layer.open({
  729. type: 2,
  730. content: "../CommonHtml/Supervision_.html?wid=" +
  731. str +
  732. "&type=2", //iframe的url,no代表不显示滚动条
  733. title: "监察",
  734. area: ["60%", "80%"], //宽高
  735. });
  736. }
  737. //审核
  738. function audit(str) {
  739. layer.open({
  740. type: 2,
  741. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  742. title: "审核",
  743. area: ["60%", "80%"], //宽高
  744. });
  745. }
  746. //转督办
  747. function zdb(str, row) {
  748. layer.open({
  749. type: 2,
  750. content: "../CommonHtml/superTrunl.html?wid=" +
  751. str +
  752. "&depId=" +
  753. row, //iframe的url,no代表不显示滚动条
  754. title: "督办工单",
  755. area: ["60%", "80%"], //宽高
  756. });
  757. }
  758. //不督办
  759. function ndb(str) {
  760. layer.confirm(
  761. "确定督办吗?", {
  762. btn: ["是", "否"], //按钮
  763. },
  764. function () {
  765. $.post(
  766. huayi.config.callcenter_url +
  767. "WorkOrder/RemindWorkOrder", {
  768. workorderid: str,
  769. type: 1,
  770. state: 2,
  771. token: $.cookie("token"),
  772. },
  773. function (result) {
  774. result = JSON.parse(result);
  775. if (result.state.toLowerCase() == "success") {
  776. layer.msg("操作成功");
  777. //load();
  778. $("#orderlist").bootstrapTable("refresh");
  779. }
  780. }
  781. );
  782. }
  783. );
  784. }
  785. //强制结案
  786. function StrongLawsuit(str) {
  787. layer.open({
  788. type: 2,
  789. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  790. title: "强制结案",
  791. area: ["60%", "80%"], //宽高
  792. });
  793. }
  794. //回退BackDtail
  795. function BackDtail(str) {
  796. layer.open({
  797. type: 2,
  798. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  799. title: "工单督办",
  800. area: ["60%", "80%"], //宽高
  801. });
  802. }
  803. //查收
  804. function cs(str) {
  805. layer.confirm(
  806. "确定要查收?", {
  807. btn: ["是", "否"], //按钮
  808. },
  809. function () {
  810. $.post(
  811. huayi.config.callcenter_url +
  812. "WorkOrder/ReceiveWorkOrder", {
  813. workorderid: str,
  814. token: $.cookie("token"),
  815. },
  816. function (result) {
  817. result = JSON.parse(result);
  818. if (result.state.toLowerCase() == "success") {
  819. layer.msg("查收成功");
  820. //load();
  821. $("#orderlist").bootstrapTable("refresh");
  822. }
  823. }
  824. );
  825. }
  826. );
  827. }
  828. //收回
  829. function sh(str) {
  830. layer.confirm(
  831. "确定要回收?", {
  832. btn: ["是", "否"], //按钮
  833. },
  834. function () {
  835. $.post(
  836. huayi.config.callcenter_url +
  837. "WorkOrder/TakeBackWorkOrder", {
  838. workorderid: str,
  839. token: $.cookie("token"),
  840. },
  841. function (result) {
  842. result = JSON.parse(result);
  843. if (result.state.toLowerCase() == "success") {
  844. layer.msg("回收");
  845. //load();
  846. $("#orderlist").bootstrapTable("refresh");
  847. }
  848. }
  849. );
  850. }
  851. );
  852. }
  853. //强制回收
  854. function recycles() {
  855. layer.confirm("确定要强制退回吗?", {
  856. btn: ["是", "否"], //按钮
  857. });
  858. }
  859. //退回申请
  860. function th(str) {
  861. layer.open({
  862. type: 2,
  863. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  864. title: "申请退回工单",
  865. area: ["60%", "80%"], //宽高
  866. });
  867. }
  868. //审核退回申请
  869. function shth(str) {
  870. layer.open({
  871. type: 2,
  872. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  873. title: "审核退回申请",
  874. area: ["60%", "80%"], //宽高
  875. });
  876. }
  877. //申请延时
  878. function ys(str) {
  879. layer.open({
  880. type: 2,
  881. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  882. title: "申请延时",
  883. area: ["60%", "80%"], //宽高
  884. });
  885. }
  886. //审核申请延时
  887. function shys(str) {
  888. layer.open({
  889. type: 2,
  890. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  891. title: "审核延时申请",
  892. area: ["60%", "80%"], //宽高
  893. });
  894. }
  895. //诉求回访
  896. function hf(str) {
  897. layer.open({
  898. type: 2,
  899. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  900. title: "工单回访",
  901. area: ["60%", "80%"], //宽高
  902. });
  903. }
  904. //重办工单
  905. function cb(str) {
  906. layer.open({
  907. type: 2,
  908. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  909. title: "重办工单",
  910. area: ["60%", "80%"], //宽高
  911. });
  912. }
  913. //驳回重办
  914. function bhcb(str) {
  915. //回退BackDtail
  916. layer.open({
  917. type: 2,
  918. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  919. title: "驳回重办",
  920. area: ["60%", "80%"], //宽高
  921. });
  922. }
  923. //提交重办
  924. function tjcb(str) {
  925. layer.open({
  926. type: 2,
  927. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  928. title: "提交重办",
  929. area: ["50%", "40%"], //宽高
  930. });
  931. // layer.confirm('确认提交重办吗?', {
  932. // btn: ['是', '否'] //按钮
  933. // }, function () {
  934. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  935. // ids: str,
  936. // "token": $.cookie("token")
  937. // }, function(result) {
  938. // result = JSON.parse(result);
  939. // if(result.state.toLowerCase() == "success") {
  940. // layer.msg("操作成功");
  941. // //load();
  942. // $("#orderlist").bootstrapTable('refresh');
  943. // }
  944. // })
  945. // });
  946. }
  947. //结案
  948. function Lawsuit(str) {
  949. layer.open({
  950. type: 2,
  951. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  952. title: "诉求单结案",
  953. area: ["60%", "80%"], //宽高
  954. });
  955. }
  956. //来源
  957. function LY(obj) {
  958. obj.empty();
  959. obj.append(
  960. '<option selected="selected" value="">请选择</option>'
  961. );
  962. $.getJSON(
  963. huayi.config.callcenter_url +
  964. "Dictionary/GetDicValueListById", {
  965. token: $.cookie("token"),
  966. id: 1,
  967. },
  968. function (data) {
  969. if (data.state.toLowerCase() == "success") {
  970. var content = data.data;
  971. $(content).each(function (i, n) {
  972. $(
  973. "<option value='" +
  974. n.F_ValueId +
  975. "'>" +
  976. n.F_Value +
  977. "</option>"
  978. ).appendTo(obj);
  979. });
  980. }
  981. }
  982. );
  983. }
  984. //类别
  985. function LB(obj) {
  986. obj.empty();
  987. obj.append(
  988. '<option selected="selected" value="">请选择</option>'
  989. );
  990. $.getJSON(
  991. huayi.config.callcenter_url +
  992. "Dictionary/GetDicValueListById", {
  993. token: $.cookie("token"),
  994. id: 2,
  995. },
  996. function (data) {
  997. if (data.state.toLowerCase() == "success") {
  998. var content = data.data;
  999. $(content).each(function (i, n) {
  1000. $(
  1001. "<option value='" +
  1002. n.F_ValueId +
  1003. "'>" +
  1004. n.F_Value +
  1005. "</option>"
  1006. ).appendTo(obj);
  1007. });
  1008. }
  1009. }
  1010. );
  1011. }
  1012. // 主题
  1013. function ZT(obj) {
  1014. obj.empty();
  1015. obj.append(
  1016. '<option selected="selected" value="">请选择</option>'
  1017. );
  1018. $.getJSON(
  1019. huayi.config.callcenter_url +
  1020. "Dictionary/GetDicValueListById", {
  1021. token: $.cookie("token"),
  1022. id: 3,
  1023. },
  1024. function (data) {
  1025. if (data.state.toLowerCase() == "success") {
  1026. var content = data.data;
  1027. $(content).each(function (i, n) {
  1028. $(
  1029. "<option value='" +
  1030. n.F_ValueId +
  1031. "'>" +
  1032. n.F_Value +
  1033. "</option>"
  1034. ).appendTo(obj);
  1035. });
  1036. }
  1037. }
  1038. );
  1039. }
  1040. function tree() {
  1041. $.get(
  1042. huayi.config.callcenter_url + "Department/GetDeptList", {
  1043. token: $.cookie("token"),
  1044. // "pid": pid
  1045. },
  1046. function (result) {
  1047. result = $.parseJSON(result);
  1048. $.fn.zTree.init(
  1049. $("#addTreeDemo"),
  1050. setting1,
  1051. result.data
  1052. ); //实例化树形图
  1053. }
  1054. );
  1055. }
  1056. var setting1 = {
  1057. data: {
  1058. key: {
  1059. name: "F_DeptName",
  1060. },
  1061. simpleData: {
  1062. enable: true,
  1063. idKey: "F_DeptId",
  1064. pIdKey: "F_PartentId",
  1065. rootPId: 0,
  1066. },
  1067. },
  1068. callback: {
  1069. onClick: zTreeOnClick,
  1070. },
  1071. };
  1072. function zTreeOnClick(event, treeId, treeNode) {
  1073. // if (treeNode.level >= 2) {
  1074. $(".inps").val(treeNode.F_DeptName);
  1075. $("#PID").val(treeNode.F_DeptId);
  1076. $("#Dpment").val(treeNode.F_DeptId);
  1077. $(".Cleans").show();
  1078. // }
  1079. }
  1080. function Close() {
  1081. $(".lyxz").removeClass("cx");
  1082. if ($("audio").length > 0) {
  1083. $("audio")[0].pause();
  1084. }
  1085. }
  1086. // 导出文件
  1087. $(".exportFile").click(function() {
  1088. exportParams.isdc = 1;
  1089. exportFileFun("WorkOrder/GetList", exportParams)
  1090. })
  1091. </script>
  1092. </body>
  1093. </html>