Aucune description

WorkIsproresultMedia.html 48KB

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