Brak opisu

WorkIsproresultMedia.html 48KB

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