Нет описания

LeaderYYS.html 33KB

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