Sin descripción

integratedQuery.html 53KB

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