Bez popisu

comprehensiveMenu.html 52KB

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