Açıklama Yok

LawsuitProvincialPlatform.html 48KB

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