Brak opisu

LawsuitProvincialPlatform.html 49KB

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