No Description

LawsuitProvincialPlatform.html 50KB

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