Aucune description

WorkYWCMarketing_EJ.html 32KB

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