Ei kuvausta

haveAduitMedia.html 44KB

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