Bez popisu

WorkIsproresult.html 46KB

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