Nenhuma Descrição

WorkDC_EJ.html 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../css/bootstrap-select.css">
  8. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <link rel="stylesheet" href="../js/layui/css/layui.css">
  11. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  12. </head>
  13. <body class="gray-bg">
  14. <div class="wrapper wrapper-content animated fadeInRight">
  15. <div class="daoHang clearfix">
  16. <div class="dhLeft">
  17. <sapn>
  18. <i class="syIcon"></i>位置:
  19. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  20. <a href="javaScript:;">办理单位</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 colspan="3">
  46. <input type="text" id="starttime" class="photo x-color laydate-icon"
  47. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  48. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  49. style="height: 35px;" />
  50. </td>
  51. </tr>
  52. <tr>
  53. <th>事项编号:</th>
  54. <td>
  55. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  56. </td>
  57. <th><span class="nameJustified">来电人:</span></th>
  58. <td>
  59. <input type="text" id="name" class="form-control" />
  60. </td>
  61. <th><span class="nameJustified">关键字:</span></th>
  62. <td>
  63. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  64. <botton class="btns Seach">搜索</botton>
  65. </td>
  66. </tr>
  67. <tr>
  68. <!-- <th>受话坐席:</th>
  69. <td>
  70. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  71. data-live-search="true">
  72. <option value="">请选择坐席</option>
  73. </select>
  74. </td>
  75. <th><span class="nameJustified">审核员:</span></th>
  76. <td>
  77. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  78. multiple data-live-search="true">
  79. <option value="">请选择调度员</option>
  80. </select>
  81. </td> -->
  82. </tr>
  83. <tr>
  84. <th>承办单位:</th>
  85. <td style="position: relative;">
  86. <div class="inpBox">
  87. <input type="text" class="inps" />
  88. <i class="Cleans fa fa-close"></i>
  89. <i class="xl xl_one"></i>
  90. <div class="addTree xlAdd">
  91. <ul id="addTreeDemo" class="ztree"></ul>
  92. </div>
  93. </div>
  94. <div class="selDpart1">
  95. <ul id="sponsor">
  96. </ul>
  97. </div>
  98. </td>
  99. <th>来电类型:</th>
  100. <td>
  101. <select class="form-control" id="type">
  102. </select>
  103. </td>
  104. <th>反映区域:</th>
  105. <td>
  106. <select name="" id="sourceAreas" class="form-control Min-width">
  107. </select>
  108. <botton class="btns exportFile">导出</botton>
  109. </td>
  110. </tr>
  111. <tr>
  112. <th>省平台编号:</th>
  113. <td>
  114. <input type="text" placeholder="输入工单号" id="strworkorderid" class="form-control" />
  115. </td>
  116. </tr>
  117. </table>
  118. </div>
  119. </div>
  120. <div>
  121. <div class="tab-content">
  122. <div style="width: 100%;padding: 10px;">
  123. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  124. data-pagination="true">
  125. <thead>
  126. <tr>
  127. <th data-formatter="serialNumber" data-align="center">
  128. 序号
  129. </th>
  130. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  131. 工单单号
  132. </th>
  133. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题
  134. </th>
  135. <th data-field="DeptName" data-align="center">承办单位</th>
  136. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  137. <!-- <th data-field="UserName" data-align="center">审核人</th> -->
  138. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态
  139. </th>
  140. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  141. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  142. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限
  143. </th>
  144. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作
  145. </th>
  146. </tr>
  147. </thead>
  148. <tbody class="list"></tbody>
  149. </table>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <!--下载框-->
  156. <div class="t-shade lyxz">
  157. <div class="shade_k">
  158. <div class="shade_title">
  159. <span>录音播放与下载<srong class="cknum"></srong></span>
  160. <span class="setwin gbly"><a>x</a></span>
  161. </div>
  162. <div class="shade_content">
  163. <div class="Ly_box audiojs">
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <input type="hidden" id="PID" />
  169. <input type="hidden" id="Dpment" />
  170. </div>
  171. <script src="../js/layui/layui.js"></script>
  172. <script src="../js/bootstrap-select.js"></script>
  173. <script src="../css/laydate/laydate.js"></script>
  174. <script src="../My97DatePicker/WdatePicker.js"></script>
  175. <script src="../js/zTree/jquery.ztree.core.js"></script>
  176. <script src="../js/search/screen.js"></script>
  177. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  178. <script>
  179. var wid = helper.request.queryString("states");
  180. var exportParams; // 导出参数
  181. if (wid) {
  182. $("#state").val(wid);
  183. }
  184. $(document).ready(function () {
  185. load();
  186. laydate.skin('blue');
  187. laydate({
  188. elem: '#starttime',
  189. event: 'focus',
  190. istime: true,
  191. format: 'YYYY-MM-DD hh:mm:ss'
  192. });
  193. laydate({
  194. elem: '#endtime',
  195. event: 'focus',
  196. istime: true,
  197. format: 'YYYY-MM-DD hh:mm:ss'
  198. });
  199. });
  200. //关闭录音弹出
  201. $(".gbly").click(function () {
  202. $(".lyxz").removeClass("cx");
  203. $('audio')[0].pause();
  204. });
  205. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  206. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  207. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  208. });
  209. // 导出文件
  210. $(".exportFile").click(function() {
  211. exportParams.isdc = 1;
  212. console.log(exportParams)
  213. exportFileFun("WorkOrder/GetEJDWDealList", exportParams)
  214. })
  215. //获取查询信息
  216. function load() {
  217. //坐席
  218. var usercodeID = "";
  219. var usercode_ = $("#ZX").val(); //坐席
  220. if (usercode_ != null) {
  221. $(usercode_).each(function (i, n) {
  222. var obj1 = '';
  223. obj1 = n + ",";
  224. usercodeID += obj1;
  225. })
  226. } else {
  227. usercodeID = ""
  228. }
  229. // 调度员
  230. var ddusercodeID = "";
  231. var ddusercode_ = $("#yardman").val(); //坐席
  232. if (ddusercode_ != null) {
  233. $(ddusercode_).each(function (i, n) {
  234. var obj2 = '';
  235. obj2 = n + ",";
  236. ddusercodeID += obj2;
  237. })
  238. } else {
  239. ddusercodeID = ""
  240. }
  241. //先销毁表格
  242. $('#orderlist').bootstrapTable('destroy');
  243. //初始化表格,动态从服务器加载数据
  244. $("#orderlist").bootstrapTable({
  245. method: "get", //使用get请求到服务器获取数据
  246. url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
  247. contentType: "application/x-www-form-urlencoded",
  248. striped: true, //表格显示条纹
  249. pagination: true, //启动分页
  250. pageSize: 10, //每页显示的记录数
  251. pageNumber: 1, //当前第几页
  252. pageList: [10, 20, 50, 100], //记录数可选列表
  253. search: false, //是否启用查询
  254. showColumns: false, //显示下拉框勾选要显示的列
  255. showRefresh: false, //显示刷新按钮
  256. sidePagination: "server", //表示服务端请求
  257. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  258. //设置为limit可以获取limit, offset, search, sort, order
  259. queryParamsType: "undefined",
  260. queryParams: function queryParams(params) { //设置查询参数
  261. var param = {
  262. page: params.pageNumber,
  263. pagesize: params.pageSize,
  264. workid: $("#wids").val(),
  265. state: $("#state").val(), //=工单状态
  266. type: $("#type").val(), //=工单类型
  267. bigtype: $("#bigtype").val(), //=大类别
  268. smalltype: $("#smalltype").val(), //=小类别
  269. key: $("#key").val(), //=关键字
  270. tel: $("#tel").val(), //=客户电话
  271. name: $("#name").val(), //=客户名称
  272. usercode: usercodeID, //=坐席工号
  273. ddusercode: ddusercodeID,
  274. keyid: $("#keyid").val(), //=关键词id
  275. source: $("#source").val(), //=来源&
  276. starttime: $("#starttime").val(), //=开始时间
  277. endtime: $("#endtime").val(), //=结束时间
  278. deptid: $("#PID").val(),
  279. sourcearea: $("#sourceAreas").val(), //区域
  280. strworkorderid:$("#strworkorderid").val().replace(/\s+/g, ""),
  281. type: $("#type").val(),
  282. tab: 0, //待处理
  283. isys: 0,
  284. token: $.cookie("token")
  285. };
  286. // 导出参数
  287. exportParams = param;
  288. return param;
  289. },
  290. onLoadSuccess: function (data) { //加载成功时执行
  291. // layer.msg("加载成功");
  292. //console.log(data);
  293. },
  294. onLoadError: function () { //加载失败时执行
  295. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  296. }
  297. });
  298. }
  299. //状态
  300. function States(val, row) {
  301. var html = '';
  302. switch (val + '') {
  303. case '0':
  304. html = '新工单';
  305. if (row.F_IsReturn == 1) {
  306. html = '新工单(回退)';
  307. }
  308. break;
  309. case '1':
  310. html = '待交办';
  311. break;
  312. case '2':
  313. html = '待查收';
  314. break;
  315. case '3':
  316. html = '退回审核中';
  317. break;
  318. case '4':
  319. html = '办理中';
  320. break;
  321. case '5':
  322. html = '延时审核';
  323. break;
  324. case '6':
  325. html = '已办理';
  326. break;
  327. case '7':
  328. html = '已回访';
  329. break;
  330. case '8':
  331. html = '重办中';
  332. break;
  333. case '9':
  334. html = '已结案';
  335. break;
  336. case '10':
  337. html = '待审核';
  338. break;
  339. case '11':
  340. html = '重办待交办';
  341. break;
  342. case '12':
  343. html = '待审核';
  344. break;
  345. case '13':
  346. html = '重办驳回';
  347. break;
  348. }
  349. return html;
  350. }
  351. //时限
  352. function OverTime(val, row) {
  353. if (val == 1) {
  354. return '<div class="" style="cursor: pointer;">' +
  355. '<span class="Greens">' + row.GapTime + '</span>' +
  356. '</div>';
  357. } else if (val == 2) {
  358. return '<div class="" style="cursor: pointer;">' +
  359. '<span class="Yellows">' + row.GapTime + '</span>' +
  360. '</div>';
  361. } else if (val == 3) {
  362. return '<div class="" style="cursor: pointer;">' +
  363. '<span class="Reds">' + row.GapTime + '</span>' +
  364. '</div>';
  365. }
  366. }
  367. //办理时限
  368. function BanTime(val) {
  369. if (val) {
  370. var time = val.substring(0, val.indexOf(' '));
  371. return '<div class="" style="cursor: pointer;">' +
  372. '<span>' + time + '</span>' +
  373. '</div>';
  374. }
  375. }
  376. //音频
  377. function setCode(val) {
  378. if (val) {
  379. return '<div class="imgs" style="cursor: pointer;">' +
  380. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  381. '</div>';
  382. } else {
  383. return '';
  384. }
  385. }
  386. //编号
  387. function serialNumber(val, row, index) {
  388. return index + 1;
  389. }
  390. function GetCont(val) {
  391. if (val) {
  392. var str = '<div '
  393. if (val.length > 10) {
  394. str = str + ' title="' + val + '" ';
  395. val = val.substr(0, 10) + "...";
  396. }
  397. return str + '>' + val + '</div>';
  398. } else {
  399. return '';
  400. }
  401. }
  402. //操作
  403. function Dispose(val, row) {
  404. var Rows = row.Buttons;
  405. var html = '';
  406. for (var i = 0; i < Rows.length; i++) {
  407. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  408. if (html1) {
  409. html1 = html1.replace("data", val);
  410. html1 = html1.replace("isProtect", row.F_IsProtect);
  411. }
  412. html += html1;
  413. }
  414. return html;
  415. }
  416. //查看详情
  417. function ckxq(str) {
  418. layer.open({
  419. type: 2,
  420. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  421. title: '工单详情',
  422. area: ['100%', '100%'], //宽高
  423. });
  424. }
  425. //编辑
  426. function bj(str) {
  427. layer.open({
  428. type: 2,
  429. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  430. title: '编辑工单',
  431. area: ['96%', '80%'], //宽高
  432. });
  433. }
  434. //删除
  435. function move(str) {
  436. layer.confirm('确定删除工单?', {
  437. btn: ['是', '否'] //按钮
  438. }, function () {
  439. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  440. ids: str,
  441. token: $.cookie("token")
  442. }, function (result) {
  443. result = JSON.parse(result);
  444. if (result.state.toLowerCase() == "success") {
  445. layer.msg("删除成功");
  446. load();
  447. }
  448. })
  449. });
  450. }
  451. //提交
  452. function tj(str) {
  453. layer.confirm('确定要提交工单么?', {
  454. btn: ['确定', '取消'] //按钮
  455. }, function () {
  456. //请求后台数据
  457. /*发送请求*/
  458. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  459. ids: str,
  460. token: $.cookie("token")
  461. }, function (result) {
  462. result = JSON.parse(result);
  463. if (result.state.toLowerCase() == "success") {
  464. layer.msg("提交成功");
  465. load();
  466. }
  467. })
  468. });
  469. }
  470. //交办
  471. function jb(str) {
  472. layer.open({
  473. type: 2,
  474. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  475. title: '工单交办',
  476. area: ['87%', '80%'], //宽高
  477. });
  478. }
  479. //领导批示
  480. function lader(str) {
  481. layer.open({
  482. type: 2,
  483. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  484. title: '领导批示',
  485. area: ['60%', '80%'], //宽高
  486. });
  487. }
  488. //市长批示
  489. function city(str) {
  490. layer.open({
  491. type: 2,
  492. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  493. title: '领导批示',
  494. area: ['60%', '80%'], //宽高
  495. });
  496. }
  497. //办理
  498. function bl(str, isProtect) {
  499. layer.open({
  500. type: 2,
  501. content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
  502. isProtect, //iframe的url,no代表不显示滚动条
  503. title: '办理工单',
  504. area: ['90%', '80%'], //宽高
  505. });
  506. }
  507. //派单
  508. function pd(str) {
  509. layer.open({
  510. type: 2,
  511. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  512. title: '派单',
  513. area: ['87%', '80%'], //宽高
  514. });
  515. }
  516. //督办
  517. function Supervision(str) {
  518. layer.open({
  519. type: 2,
  520. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  521. title: '督办',
  522. area: ['60%', '80%'], //宽高
  523. });
  524. }
  525. //督查
  526. function Supervision_(str) {
  527. layer.open({
  528. type: 2,
  529. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  530. title: '监察',
  531. area: ['60%', '80%'], //宽高
  532. });
  533. }
  534. //强制结案
  535. function StrongLawsuit(str) {
  536. layer.open({
  537. type: 2,
  538. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  539. title: '强制结案',
  540. area: ['60%', '80%'], //宽高
  541. });
  542. }
  543. //回退BackDtail
  544. function BackDtail(str) {
  545. layer.open({
  546. type: 2,
  547. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  548. title: '工单回退',
  549. area: ['60%', '80%'], //宽高
  550. });
  551. }
  552. //查收
  553. function cs(str) {
  554. layer.confirm('确定要查收?', {
  555. btn: ['是', '否'] //按钮
  556. }, function () {
  557. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  558. workorderid: str,
  559. token: $.cookie("token")
  560. }, function (result) {
  561. result = JSON.parse(result);
  562. if (result.state.toLowerCase() == "success") {
  563. layer.msg("查收成功");
  564. load();
  565. }
  566. })
  567. });
  568. }
  569. //收回
  570. function sh(str) {
  571. layer.confirm('确定要回收?', {
  572. btn: ['是', '否'] //按钮
  573. }, function () {
  574. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  575. workorderid: str,
  576. token: $.cookie("token")
  577. }, function (result) {
  578. result = JSON.parse(result);
  579. if (result.state.toLowerCase() == "success") {
  580. layer.msg("回收");
  581. load();
  582. }
  583. })
  584. });
  585. }
  586. //强制回收
  587. function recycles() {
  588. layer.confirm('确定要强制退回吗?', {
  589. btn: ['是', '否'] //按钮
  590. });
  591. }
  592. //退回申请
  593. function th(str) {
  594. layer.open({
  595. type: 2,
  596. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  597. title: '申请退回工单',
  598. area: ['60%', '80%'], //宽高
  599. });
  600. }
  601. //审核退回申请
  602. function shth(str) {
  603. layer.open({
  604. type: 2,
  605. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. title: '审核退回申请',
  607. area: ['60%', '80%'], //宽高
  608. });
  609. }
  610. //办理
  611. // function th(str) {
  612. // layer.open({
  613. // type: 2,
  614. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  615. // title: '办理工单',
  616. // area: ['35%', '30%'], //宽高
  617. // });
  618. // }
  619. //签收
  620. function sign(str) {
  621. layer.confirm('确定要签收?', {
  622. btn: ['是', '否'] //按钮
  623. }, function () {
  624. $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
  625. workorderid: str,
  626. token: $.cookie("token")
  627. }, function (result) {
  628. result = JSON.parse(result);
  629. if (result.state.toLowerCase() == "success") {
  630. layer.msg("签收成功");
  631. load();
  632. }
  633. })
  634. });
  635. }
  636. //拒收
  637. function refuse(str) {
  638. layer.open({
  639. type: 2,
  640. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  641. title: '拒收',
  642. area: ['60%', '80%'], //宽高
  643. });
  644. }
  645. //申请延时
  646. function ys(str) {
  647. layer.open({
  648. type: 2,
  649. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  650. title: '申请延时',
  651. area: ['60%', '80%'], //宽高
  652. });
  653. }
  654. //审核申请延时
  655. function shys(str) {
  656. layer.open({
  657. type: 2,
  658. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  659. title: '审核延时申请',
  660. area: ['60%', '80%'], //宽高
  661. });
  662. }
  663. //诉求回访
  664. function hf(str) {
  665. layer.open({
  666. type: 2,
  667. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  668. title: '工单回访',
  669. area: ['60%', '80%'], //宽高
  670. });
  671. }
  672. //重办工单
  673. function cb(str) {
  674. layer.open({
  675. type: 2,
  676. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  677. title: '重办工单',
  678. area: ['60%', '80%'], //宽高
  679. });
  680. }
  681. //结案
  682. function Lawsuit(str) {
  683. layer.open({
  684. type: 2,
  685. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  686. title: '诉求单结案',
  687. area: ['60%', '80%'], //宽高
  688. });
  689. }
  690. //退回
  691. function returnRedoThreeLevel(str) {
  692. layer.open({
  693. type: 2,
  694. content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  695. title: "退回",
  696. area: ["60%", "80%"], //宽高
  697. });
  698. }
  699. $('.Appeal').click(function () {
  700. layer.open({
  701. type: 2,
  702. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  703. title: '新增诉求',
  704. area: ['85%', '80%'], //宽高
  705. });
  706. })
  707. //来源
  708. function LY(obj) {
  709. obj.empty();
  710. obj.append('<option selected="selected" value="">请选择</option>');
  711. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  712. "token": $.cookie("token"),
  713. id: 1
  714. }, function (data) {
  715. if (data.state.toLowerCase() == "success") {
  716. var content = data.data;
  717. $(content).each(function (i, n) {
  718. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  719. obj);
  720. })
  721. }
  722. })
  723. }
  724. //类别
  725. function LB(obj) {
  726. obj.empty();
  727. obj.append('<option selected="selected" value="">请选择</option>');
  728. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  729. "token": $.cookie("token"),
  730. id: 2
  731. }, function (data) {
  732. if (data.state.toLowerCase() == "success") {
  733. var content = data.data;
  734. $(content).each(function (i, n) {
  735. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  736. obj);
  737. })
  738. }
  739. })
  740. }
  741. // 主题
  742. function ZT(obj) {
  743. obj.empty();
  744. obj.append('<option selected="selected" value="">请选择</option>');
  745. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  746. "token": $.cookie("token"),
  747. id: 3
  748. }, function (data) {
  749. if (data.state.toLowerCase() == "success") {
  750. var content = data.data;
  751. $(content).each(function (i, n) {
  752. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  753. obj);
  754. })
  755. }
  756. })
  757. }
  758. function tree() {
  759. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  760. "token": $.cookie("token"),
  761. // "pid": pid
  762. }, function (result) {
  763. result = $.parseJSON(result);
  764. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  765. });
  766. }
  767. var setting1 = {
  768. data: {
  769. key: {
  770. name: "F_DeptName"
  771. },
  772. simpleData: {
  773. enable: true,
  774. idKey: "F_DeptId",
  775. pIdKey: "F_PartentId",
  776. rootPId: 0
  777. }
  778. },
  779. callback: {
  780. onClick: zTreeOnClick
  781. }
  782. };
  783. function zTreeOnClick(event, treeId, treeNode) {
  784. if (treeNode.level >= 1) {
  785. $('.inps').val(treeNode.F_DeptName);
  786. $("#PID").val(treeNode.F_DeptId);
  787. $("#Dpment").val(treeNode.F_DeptName);
  788. $(".Cleans").show();
  789. }
  790. };
  791. </script>
  792. </body>
  793. </html>