Нет описания

WorkIsproresultMedia.html 47KB

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