Нет описания

commentList.html 49KB

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