Нет описания

integratedQuery.html 52KB

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