Нет описания

Lawsuit.html 53KB

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