Nenhuma Descrição

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