Sin descripción

2016HistoryWorkOrder.html 50KB

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