No Description

WorkIsproresultMedia.html 47KB

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