Няма описание

WorkDC_EJ.html 33KB

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