Aucune description

commentList.html 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209
  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="" 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. </tr>
  111. <tr>
  112. <th>办理结果:</th>
  113. <td>
  114. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult"
  115. class="form-control" />
  116. </td>
  117. <th>工单状态:</th>
  118. <td>
  119. <select name="" id="state" class="form-control">
  120. <option selected="selected" value="">
  121. 请选择
  122. </option>
  123. <option value="0">新工单</option>
  124. <option value="1">待交办</option>
  125. <!-- <option value="10">待审核</option> -->
  126. <option value="2">待查收</option>
  127. <option value="3">
  128. 退回审核中
  129. </option>
  130. <option value="4">办理中</option>
  131. <option value="5">
  132. 延时审核中
  133. </option>
  134. <option value="6">已办理</option>
  135. <!-- <option value="7">已回访</option> -->
  136. <option value="11">
  137. 重办待交办
  138. </option>
  139. <option value="13">重办驳回</option>
  140. <option value="8">重办中</option>
  141. <option value="9">已结案</option>
  142. </select>
  143. </td>
  144. <th>来电类型:</th>
  145. <td>
  146. <select class="form-control Min-width" id="type"></select>
  147. <botton class="btns Seach">搜索</botton>
  148. </td>
  149. </tr>
  150. <tr>
  151. <th>承办单位:</th>
  152. <td style="position: relative">
  153. <div class="inpBox">
  154. <input type="text" class="inps" />
  155. <i class="Cleans fa fa-close"></i>
  156. <i class="xl xl_one"></i>
  157. <div class="addTree xlAdd">
  158. <ul id="addTreeDemo" class="ztree"></ul>
  159. </div>
  160. </div>
  161. <div class="selDpart1">
  162. <ul id="sponsor"></ul>
  163. </div>
  164. </td>
  165. <th>反映类别:</th>
  166. <td style="position: relative;">
  167. <div class="inpBox">
  168. <input type="text" class="inpsReactionCategory" />
  169. <input type="hidden" id="keyid" />
  170. <i class="CleansReactionCategory fa fa-close"></i>
  171. <i class="xlReactionCategory xl_one"></i>
  172. <div class="addTreeReactionCategory xlAddReactionCategory">
  173. <ul id="addTreeDemoReactionCategory" class="ztree"></ul>
  174. </div>
  175. </div>
  176. </td>
  177. <th>是否公开:</th>
  178. <td>
  179. <select id="isopen" class="form-control Min-width" name="select">
  180. <option value="">
  181. 请选择是否公开
  182. </option>
  183. <option value="0">
  184. 未公开
  185. </option>
  186. <option value="1">
  187. 已公开
  188. </option>
  189. </select>
  190. <botton class="btns exportFile">导出</botton>
  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. <tr>
  233. <th>评议类型:</th>
  234. <td>
  235. <select id="commentType" class="form-control" name="select">
  236. <option value="">
  237. 请选择
  238. </option>
  239. <option value="自动评议">
  240. 自动评议
  241. </option>
  242. <option value="市民评议">
  243. 市民评议
  244. </option>
  245. </select>
  246. </td>
  247. </tr>
  248. </table>
  249. </div>
  250. </div>
  251. <div>
  252. <div style="width: 100%; padding: 10px">
  253. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  254. data-pagination="true">
  255. <thead>
  256. <tr>
  257. <th data-formatter="serialNumber" data-align="center">
  258. 序号
  259. </th>
  260. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  261. 工单单号
  262. </th>
  263. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  264. 诉求标题
  265. </th>
  266. <th data-field="DeptName" data-align="center">
  267. 承办单位
  268. </th>
  269. <!-- <th data-field="OtherDeptName" data-align="center">
  270. 协办单位
  271. </th> -->
  272. <th data-field="UserName" data-align="center">
  273. 受理人
  274. </th>
  275. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  276. 办理状态
  277. </th>
  278. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  279. 时限
  280. </th>
  281. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  282. 办理时限
  283. </th>
  284. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  285. 录音
  286. </th>
  287. <th data-field="strWrkOrder_Cst_Ssf_Cd" data-align="center">
  288. 市民满意度
  289. </th>
  290. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  291. 操作
  292. </th>
  293. </tr>
  294. </thead>
  295. <tbody class="list"></tbody>
  296. </table>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <!--下载框-->
  302. <div class="t-shade lyxz">
  303. <div class="shade_k">
  304. <div class="shade_title">
  305. <span>录音播放与下载<srong class="cknum"></srong></span>
  306. <span class="setwin gbly"><a>x</a></span>
  307. </div>
  308. <div class="shade_content">
  309. <div class="Ly_box audiojs"></div>
  310. </div>
  311. </div>
  312. </div>
  313. <input type="hidden" id="PID" />
  314. <input type="hidden" id="Dpment" />
  315. </div>
  316. <script src="../js/layui/layui.js"></script>
  317. <script src="../js/bootstrap-select.js"></script>
  318. <script src="../css/laydate/laydate.js"></script>
  319. <script src="../My97DatePicker/WdatePicker.js"></script>
  320. <script src="../js/zTree/jquery.ztree.core.js"></script>
  321. <script src="../js/search/screen.js"></script>
  322. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  323. <script>
  324. var wid = helper.request.queryString("wid");
  325. var exportParams; // 导出参数
  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. // 导出参数
  460. exportParams = param;
  461. return param;
  462. },
  463. onLoadSuccess: function (data) {
  464. //加载成功时执行
  465. // layer.msg("加载成功");
  466. //console.log(data);
  467. },
  468. onLoadError: function () {
  469. //加载失败时执行
  470. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  471. },
  472. });
  473. }
  474. //状态
  475. function States(val, row) {
  476. var html = "";
  477. switch (val + "") {
  478. case "0":
  479. html = "新工单";
  480. if (row.F_IsReturn == 1) {
  481. html = "新工单(回退)";
  482. }
  483. break;
  484. case "1":
  485. html = "待交办";
  486. break;
  487. case "2":
  488. html = '<span style="color:#FF0000;">待查收</span>';
  489. break;
  490. case "3":
  491. html = "退回审核中";
  492. break;
  493. case "4":
  494. html = "办理中";
  495. break;
  496. case "5":
  497. html = "延时审核";
  498. break;
  499. case "6":
  500. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  501. html = "已办未果"
  502. } else {
  503. html = "已办理";
  504. }
  505. break;
  506. case "7":
  507. html = "已回访";
  508. break;
  509. case "8":
  510. html = "重办中";
  511. break;
  512. case "9":
  513. html = "已结案";
  514. break;
  515. case "10":
  516. html = "待审核";
  517. break;
  518. case "11":
  519. html = "重办待交办";
  520. break;
  521. // case '12':
  522. // html = '待审核';
  523. // break;
  524. case "13":
  525. html = "重办驳回";
  526. break;
  527. }
  528. return html;
  529. }
  530. //音频
  531. function setCode(val) {
  532. if (val) {
  533. return (
  534. '<div class="imgs" style="cursor: pointer;">' +
  535. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  536. val +
  537. '" />' +
  538. "</div>"
  539. );
  540. } else {
  541. return "";
  542. }
  543. }
  544. //编号
  545. function serialNumber(val, row, index) {
  546. return index + 1;
  547. }
  548. function GetCont(val) {
  549. if (val) {
  550. var str = "<div ";
  551. if (val.length > 10) {
  552. str = str + ' title="' + val + '" ';
  553. val = val.substr(0, 10) + "...";
  554. }
  555. return str + ">" + val + "</div>";
  556. } else {
  557. return "";
  558. }
  559. }
  560. //操作
  561. function Dispose(val, row) {
  562. var Rows = row.Buttons;
  563. var html = "";
  564. for (var i = 0; i < Rows.length; i++) {
  565. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  566. if (html1) {
  567. html1 = html1.replace("data", val);
  568. html1 = html1.replace("isProtect", row.F_IsProtect);
  569. html1 = html1.replace("row", row.F_MainDeptId);
  570. }
  571. html += html1;
  572. }
  573. return html;
  574. }
  575. //查看详情
  576. function ckxq(str) {
  577. layer.open({
  578. type: 2,
  579. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  580. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  581. title: "工单详情",
  582. area: ["100%", "100%"], //宽高
  583. });
  584. }
  585. //时限
  586. function OverTime(val, row) {
  587. if (val == 1) {
  588. return (
  589. '<div class="" style="cursor: pointer;">' +
  590. '<span class="Greens">' +
  591. row.GapTime +
  592. "</span>" +
  593. "</div>"
  594. );
  595. } else if (val == 2) {
  596. return (
  597. '<div class="" style="cursor: pointer;">' +
  598. '<span class="Yellows">' +
  599. row.GapTime +
  600. "</span>" +
  601. "</div>"
  602. );
  603. } else if (val == 3) {
  604. return (
  605. '<div class="" style="cursor: pointer;">' +
  606. '<span class="Reds">' +
  607. row.GapTime +
  608. "</span>" +
  609. "</div>"
  610. );
  611. }
  612. }
  613. //办理时限
  614. function BanTime(val) {
  615. if (val) {
  616. var time = val.substring(0, val.indexOf(" "));
  617. return (
  618. '<div class="" style="cursor: pointer;">' +
  619. "<span>" +
  620. time +
  621. "</span>" +
  622. "</div>"
  623. );
  624. }
  625. }
  626. //派单
  627. function pd(str) {
  628. layer.open({
  629. type: 2,
  630. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  631. title: "办理工单",
  632. area: ["87%", "80%"], //宽高
  633. });
  634. }
  635. //处理审核
  636. function auditdeal(str) {
  637. layer.open({
  638. type: 2,
  639. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  640. title: "处理审核",
  641. area: ["80%", "80%"], //宽高
  642. });
  643. }
  644. //编辑
  645. function bj(str) {
  646. layer.open({
  647. type: 2,
  648. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  649. title: "编辑工单",
  650. area: ["96%", "80%"], //宽高
  651. });
  652. }
  653. //删除
  654. function move(str) {
  655. layer.confirm(
  656. "确定删除工单?", {
  657. btn: ["是", "否"], //按钮
  658. },
  659. function () {
  660. $.post(
  661. huayi.config.callcenter_url +
  662. "WorkOrder/DelWorkOrder", {
  663. ids: str,
  664. token: $.cookie("token"),
  665. },
  666. function (result) {
  667. result = JSON.parse(result);
  668. if (result.state.toLowerCase() == "success") {
  669. debugger;
  670. layer.msg("删除成功");
  671. $("#orderlist").bootstrapTable("refresh");
  672. }
  673. }
  674. );
  675. }
  676. );
  677. }
  678. //提交
  679. function tj(str) {
  680. layer.confirm(
  681. "确定要提交工单么?", {
  682. btn: ["确定", "取消"], //按钮
  683. },
  684. function () {
  685. //请求后台数据
  686. /*发送请求*/
  687. $.post(
  688. huayi.config.callcenter_url +
  689. "WorkOrder/SubmitWorkOrder", {
  690. ids: str,
  691. token: $.cookie("token"),
  692. },
  693. function (result) {
  694. result = JSON.parse(result);
  695. if (result.state.toLowerCase() == "success") {
  696. layer.msg("提交成功");
  697. $("#orderlist").bootstrapTable("refresh");
  698. //load();
  699. }
  700. }
  701. );
  702. }
  703. );
  704. }
  705. //交办
  706. function jb(str) {
  707. layer.open({
  708. type: 2,
  709. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  710. title: "工单交办",
  711. area: ["87%", "80%"], //宽高
  712. });
  713. }
  714. //领导批示
  715. function lader(str) {
  716. layer.open({
  717. type: 2,
  718. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  719. title: "领导批示",
  720. area: ["60%", "80%"], //宽高
  721. });
  722. }
  723. //市长批示
  724. function city(str) {
  725. layer.open({
  726. type: 2,
  727. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  728. title: "市长批示",
  729. area: ["60%", "80%"], //宽高
  730. });
  731. }
  732. //办理
  733. function bl(str, isProtect) {
  734. layer.open({
  735. type: 2,
  736. content: "../CommonHtml/banli.html?wid=" +
  737. str +
  738. "&isProtect=" +
  739. isProtect, //iframe的url,no代表不显示滚动条
  740. title: "办理工单",
  741. area: ["60%", "80%"], //宽高
  742. });
  743. }
  744. //督办
  745. function Supervision(str) {
  746. layer.open({
  747. type: 2,
  748. content: "../CommonHtml/Supervision_.html?wid=" +
  749. str +
  750. "&type=1", //iframe的url,no代表不显示滚动条
  751. title: "督办",
  752. area: ["60%", "80%"], //宽高
  753. });
  754. }
  755. //督查
  756. function Supervision_(str) {
  757. layer.open({
  758. type: 2,
  759. content: "../CommonHtml/Supervision_.html?wid=" +
  760. str +
  761. "&type=2", //iframe的url,no代表不显示滚动条
  762. title: "监察",
  763. area: ["60%", "80%"], //宽高
  764. });
  765. }
  766. //审核
  767. function audit(str) {
  768. layer.open({
  769. type: 2,
  770. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  771. title: "审核",
  772. area: ["60%", "80%"], //宽高
  773. });
  774. }
  775. //转督办
  776. function zdb(str, row) {
  777. layer.open({
  778. type: 2,
  779. content: "../CommonHtml/superTrunl.html?wid=" +
  780. str +
  781. "&depId=" +
  782. row, //iframe的url,no代表不显示滚动条
  783. title: "督办工单",
  784. area: ["60%", "80%"], //宽高
  785. });
  786. }
  787. //不督办
  788. function ndb(str) {
  789. layer.confirm(
  790. "确定督办吗?", {
  791. btn: ["是", "否"], //按钮
  792. },
  793. function () {
  794. $.post(
  795. huayi.config.callcenter_url +
  796. "WorkOrder/RemindWorkOrder", {
  797. workorderid: str,
  798. type: 1,
  799. state: 2,
  800. token: $.cookie("token"),
  801. },
  802. function (result) {
  803. result = JSON.parse(result);
  804. if (result.state.toLowerCase() == "success") {
  805. layer.msg("操作成功");
  806. //load();
  807. $("#orderlist").bootstrapTable("refresh");
  808. }
  809. }
  810. );
  811. }
  812. );
  813. }
  814. //强制结案
  815. function StrongLawsuit(str) {
  816. layer.open({
  817. type: 2,
  818. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  819. title: "强制结案",
  820. area: ["60%", "80%"], //宽高
  821. });
  822. }
  823. //回退BackDtail
  824. function BackDtail(str) {
  825. layer.open({
  826. type: 2,
  827. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  828. title: "工单督办",
  829. area: ["60%", "80%"], //宽高
  830. });
  831. }
  832. //查收
  833. function cs(str) {
  834. layer.confirm(
  835. "确定要查收?", {
  836. btn: ["是", "否"], //按钮
  837. },
  838. function () {
  839. $.post(
  840. huayi.config.callcenter_url +
  841. "WorkOrder/ReceiveWorkOrder", {
  842. workorderid: str,
  843. token: $.cookie("token"),
  844. },
  845. function (result) {
  846. result = JSON.parse(result);
  847. if (result.state.toLowerCase() == "success") {
  848. layer.msg("查收成功");
  849. //load();
  850. $("#orderlist").bootstrapTable("refresh");
  851. }
  852. }
  853. );
  854. }
  855. );
  856. }
  857. //收回
  858. function sh(str) {
  859. layer.confirm(
  860. "确定要回收?", {
  861. btn: ["是", "否"], //按钮
  862. },
  863. function () {
  864. $.post(
  865. huayi.config.callcenter_url +
  866. "WorkOrder/TakeBackWorkOrder", {
  867. workorderid: str,
  868. token: $.cookie("token"),
  869. },
  870. function (result) {
  871. result = JSON.parse(result);
  872. if (result.state.toLowerCase() == "success") {
  873. layer.msg("回收");
  874. //load();
  875. $("#orderlist").bootstrapTable("refresh");
  876. }
  877. }
  878. );
  879. }
  880. );
  881. }
  882. //强制回收
  883. function recycles() {
  884. layer.confirm("确定要强制退回吗?", {
  885. btn: ["是", "否"], //按钮
  886. });
  887. }
  888. //审核退回申请
  889. function shth(str) {
  890. layer.open({
  891. type: 2,
  892. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  893. title: "审核退回申请",
  894. area: ["60%", "80%"], //宽高
  895. });
  896. }
  897. //申请延时
  898. function ys(str) {
  899. layer.open({
  900. type: 2,
  901. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  902. title: "申请延时",
  903. area: ["60%", "80%"], //宽高
  904. });
  905. }
  906. //审核申请延时
  907. function shys(str) {
  908. layer.open({
  909. type: 2,
  910. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  911. title: "审核延时申请",
  912. area: ["60%", "80%"], //宽高
  913. });
  914. }
  915. //审核
  916. function hf(str) {
  917. layer.open({
  918. type: 2,
  919. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  920. title: "工单审核",
  921. area: ["60%", "80%"], //宽高
  922. });
  923. }
  924. //重办工单
  925. function cb(str) {
  926. layer.open({
  927. type: 2,
  928. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  929. title: "重办工单",
  930. area: ["60%", "80%"], //宽高
  931. });
  932. }
  933. //提交重办
  934. function bhcb(str) {
  935. //回退BackDtail
  936. layer.open({
  937. type: 2,
  938. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  939. title: "驳回重办",
  940. area: ["60%", "80%"], //宽高
  941. });
  942. }
  943. //提交重办
  944. function tjcb(str) {
  945. layer.open({
  946. type: 2,
  947. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  948. title: "提交重办",
  949. area: ["50%", "40%"], //宽高
  950. });
  951. // layer.confirm('确认提交重办吗?', {
  952. // btn: ['是', '否'] //按钮
  953. // }, function () {
  954. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  955. // ids: str,
  956. // "token": $.cookie("token")
  957. // }, function(result) {
  958. // result = JSON.parse(result);
  959. // if(result.state.toLowerCase() == "success") {
  960. // layer.msg("操作成功");
  961. // //load();
  962. // $("#orderlist").bootstrapTable('refresh');
  963. // }
  964. // })
  965. // });
  966. }
  967. //结案
  968. function Lawsuit(str) {
  969. layer.open({
  970. type: 2,
  971. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  972. title: "诉求单结案",
  973. area: ["60%", "80%"], //宽高
  974. });
  975. }
  976. //退回
  977. function returnRedo(str) {
  978. layer.open({
  979. type: 2,
  980. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  981. title: "退回",
  982. area: ["50%", "40%"], //宽高
  983. });
  984. }
  985. //退回
  986. function returnAuditor(str) {
  987. layer.open({
  988. type: 2,
  989. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  990. title: "退回",
  991. area: ["50%", "40%"], //宽高
  992. });
  993. }
  994. //修改
  995. function editProcessingResult(str) {
  996. layer.open({
  997. type: 2,
  998. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  999. title: "修改",
  1000. area: ["50%", "50%"], //宽高
  1001. });
  1002. }
  1003. //上传文件
  1004. function upload() {
  1005. if (document.getElementById("upFile").files.length > 0) {
  1006. var formData = new FormData();
  1007. formData.append(
  1008. "upFile",
  1009. document.getElementById("upFile").files[0]
  1010. );
  1011. formData.append("token", $.cookie("token"));
  1012. $.ajax({
  1013. url: huayi.config.callcenter_url +
  1014. "/WorkOrder/UploadFile",
  1015. type: "POST",
  1016. data: formData,
  1017. /**
  1018. *必须false才会自动加上正确的Content-Type
  1019. */
  1020. contentType: false,
  1021. /**
  1022. * 必须false才会避开jQuery对 formdata 的默认处理
  1023. * XMLHttpRequest会对 formdata 进行正确的处理
  1024. */
  1025. processData: false,
  1026. success: function (result) {
  1027. document.getElementById(
  1028. "upFile"
  1029. ).outerHTML = document.getElementById(
  1030. "upFile"
  1031. ).outerHTML;
  1032. $("#upFile").change(function () {
  1033. upload();
  1034. });
  1035. var r = $.parseJSON(result);
  1036. if (r.state.toLowerCase() == "success") {
  1037. $(".fjnr").text(r.data);
  1038. $("#scfj").show();
  1039. }
  1040. },
  1041. });
  1042. } else {
  1043. layer.confirm("请上传文件!", {
  1044. btn: ["确定"],
  1045. });
  1046. }
  1047. }
  1048. //来源
  1049. function LY(obj) {
  1050. obj.empty();
  1051. obj.append(
  1052. '<option selected="selected" value="">请选择</option>'
  1053. );
  1054. $.getJSON(
  1055. huayi.config.callcenter_url +
  1056. "Dictionary/GetDicValueListById", {
  1057. token: $.cookie("token"),
  1058. id: 1,
  1059. },
  1060. function (data) {
  1061. if (data.state.toLowerCase() == "success") {
  1062. var content = data.data;
  1063. $(content).each(function (i, n) {
  1064. $(
  1065. "<option value='" +
  1066. n.F_ValueId +
  1067. "'>" +
  1068. n.F_Value +
  1069. "</option>"
  1070. ).appendTo(obj);
  1071. });
  1072. }
  1073. }
  1074. );
  1075. }
  1076. //类别
  1077. function LB(obj) {
  1078. obj.empty();
  1079. obj.append(
  1080. '<option selected="selected" value="">请选择</option>'
  1081. );
  1082. $.getJSON(
  1083. huayi.config.callcenter_url +
  1084. "Dictionary/GetDicValueListById", {
  1085. token: $.cookie("token"),
  1086. id: 2,
  1087. },
  1088. function (data) {
  1089. if (data.state.toLowerCase() == "success") {
  1090. var content = data.data;
  1091. $(content).each(function (i, n) {
  1092. $(
  1093. "<option value='" +
  1094. n.F_ValueId +
  1095. "'>" +
  1096. n.F_Value +
  1097. "</option>"
  1098. ).appendTo(obj);
  1099. });
  1100. }
  1101. }
  1102. );
  1103. }
  1104. // 主题
  1105. function ZT(obj) {
  1106. obj.empty();
  1107. obj.append(
  1108. '<option selected="selected" value="">请选择</option>'
  1109. );
  1110. $.getJSON(
  1111. huayi.config.callcenter_url +
  1112. "Dictionary/GetDicValueListById", {
  1113. token: $.cookie("token"),
  1114. id: 3,
  1115. },
  1116. function (data) {
  1117. if (data.state.toLowerCase() == "success") {
  1118. var content = data.data;
  1119. $(content).each(function (i, n) {
  1120. $(
  1121. "<option value='" +
  1122. n.F_ValueId +
  1123. "'>" +
  1124. n.F_Value +
  1125. "</option>"
  1126. ).appendTo(obj);
  1127. });
  1128. }
  1129. }
  1130. );
  1131. }
  1132. function tree() {
  1133. $.get(
  1134. huayi.config.callcenter_url + "Department/GetDeptList", {
  1135. token: $.cookie("token"),
  1136. // "pid": pid
  1137. },
  1138. function (result) {
  1139. result = $.parseJSON(result);
  1140. $.fn.zTree.init(
  1141. $("#addTreeDemo"),
  1142. setting1,
  1143. result.data
  1144. ); //实例化树形图
  1145. }
  1146. );
  1147. }
  1148. var setting1 = {
  1149. data: {
  1150. key: {
  1151. name: "F_DeptName",
  1152. },
  1153. simpleData: {
  1154. enable: true,
  1155. idKey: "F_DeptId",
  1156. pIdKey: "F_PartentId",
  1157. rootPId: 0,
  1158. },
  1159. },
  1160. callback: {
  1161. onClick: zTreeOnClick,
  1162. },
  1163. };
  1164. function zTreeOnClick(event, treeId, treeNode) {
  1165. if (treeNode.level >= 1) {
  1166. $(".inps").val(treeNode.F_DeptName);
  1167. $("#PID").val(treeNode.F_DeptId);
  1168. $("#Dpment").val(treeNode.F_DeptId);
  1169. $(".Cleans").show();
  1170. }
  1171. }
  1172. function Close() {
  1173. $(".lyxz").removeClass("cx");
  1174. if ($("audio").length > 0) {
  1175. $("audio")[0].pause();
  1176. }
  1177. }
  1178. // 导出文件
  1179. $(".exportFile").click(function() {
  1180. exportParams.isdc = 1;
  1181. exportFileFun("WorkOrder/GetList", exportParams)
  1182. })
  1183. </script>
  1184. </body>
  1185. </html>