Aucune description

newRepositoryDetail.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  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/init.css" />
  8. <title>新版知识库添加</title>
  9. <style type="text/css">
  10. ul,li{
  11. padding: 0;
  12. margin: 0;
  13. list-style: none;
  14. }
  15. .tab_list{
  16. border-bottom: 1px solid #d5d5d5;
  17. }
  18. .tab_list li{
  19. padding: 10px 15px;
  20. float: left;
  21. color: #333333;
  22. font-size: 14px;
  23. position: relative;
  24. }
  25. .tab_list li.active{
  26. color: #19aad0;
  27. }
  28. .tab_list li.active:after{
  29. content: "";
  30. width: 100%;
  31. height: 2px;
  32. background: #19aad0;
  33. position: absolute;
  34. bottom: -1px;
  35. left: 0;
  36. }
  37. .tab_content{
  38. font-size: 14px;
  39. color: #4c4c4c;
  40. padding: 15px 0;
  41. /*text-indent: 28px;*/
  42. }
  43. .tab_content>div{
  44. display: none;
  45. }
  46. .table tr td input[type="text"]{
  47. width: 100%;
  48. height: 30px;
  49. background: #f3f3f4;
  50. border: 1px solid #e7e7e7;
  51. outline: none;
  52. }
  53. .radio-inline input[type=radio]{
  54. margin-top: 2px;
  55. }
  56. .table tr td textarea{
  57. width: 100%;
  58. height: 100%;
  59. background: #f3f3f4;
  60. border: 1px solid #e7e7e7;
  61. padding: 0px;
  62. resize: none;
  63. }
  64. #scwj{
  65. background-color: #FFF;
  66. background-image: none;
  67. border: 1px solid #ccc;
  68. border-radius: 1px;
  69. color: inherit;
  70. padding: 6px 12px!important;
  71. }
  72. .files{
  73. padding: 5px!important;
  74. }
  75. .time-box{
  76. position: relative;
  77. width: 197px!important;
  78. height: 34px;
  79. margin: 0;
  80. }
  81. .tub + input {
  82. padding-right: 30px;
  83. border: 1px solid #e5e6e7!important;
  84. }
  85. i.tub {
  86. position: absolute;
  87. right: 8px;
  88. top: 8px;
  89. font-size: 18px;
  90. color: #00a0ca;
  91. }
  92. .tab_content textarea{
  93. display: block;
  94. background: #f3f3f4;
  95. width: 100%;
  96. height: 298px;
  97. box-sizing: border-box;
  98. text-indent: 28px;
  99. }
  100. .tab_content .cons >div{
  101. background: #f3f3f4;
  102. width: 100%;
  103. min-height: 298px;
  104. box-sizing: border-box;
  105. text-indent: 28px;
  106. word-break:break-all;
  107. word-wrap:break-word;
  108. }
  109. .tab_content .cons >div img{
  110. max-width: 100%;
  111. /*width: 95%;
  112. margin: 0 auto;*/
  113. }
  114. .shdetail table{
  115. width: 100%;
  116. line-height: 30px;
  117. text-align: center;
  118. }
  119. .result_str{
  120. display: block;
  121. float: left;
  122. text-align: center;
  123. }
  124. #result{
  125. min-width: 370px;
  126. min-height: 140px;
  127. }
  128. .operation_bj{
  129. float: right;
  130. display: none;
  131. }
  132. .msg_time{
  133. max-width: 240px;
  134. min-width: 190px;
  135. text-indent: 0px;
  136. }
  137. /*评分cs*/
  138. .star {
  139. position: relative;
  140. }
  141. .star span {
  142. float: left;
  143. height: 19px;
  144. line-height: 19px;
  145. }
  146. .star li {
  147. float: left;
  148. width: 24px;
  149. height: 22px;
  150. text-indent: -9999px;
  151. background: url('../img/star.png') no-repeat;
  152. cursor: pointer;
  153. }
  154. .star li.on {
  155. background-position: 0 -28px;
  156. }
  157. .star p {
  158. background: url('../img/icon.gif') no-repeat;
  159. padding: 10px 10px 0;
  160. position: absolute;
  161. top: 20px;
  162. width: 159px;
  163. height: 30px;
  164. z-index: 100;
  165. }
  166. .star p em {
  167. color: #FF6600;
  168. display: block;
  169. font-style: normal;
  170. }
  171. .star strong {
  172. color: #ff6600;
  173. padding-left: 10px;
  174. }
  175. .hidden {
  176. display: none;
  177. }
  178. /*评分cs结束*/
  179. </style>
  180. </head>
  181. <body class="gray-bg">
  182. <div class="container-fluid wrapper-content animated fadeInRight">
  183. <div class="star">
  184. <ul>
  185. <li><a href="javascript:;">1</a></li>
  186. <li><a href="javascript:;">2</a></li>
  187. <li><a href="javascript:;">3</a></li>
  188. <li><a href="javascript:;">4</a></li>
  189. <li><a href="javascript:;">5</a></li>
  190. </ul>
  191. </div>
  192. <div class="operation_bj">
  193. </div>
  194. <table class="table table-bordered table-condensed diff-wrapper1">
  195. <tr>
  196. <td width="100">标题</td>
  197. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  198. </tr>
  199. <tr>
  200. <td width="100" height="100"> 参考答案(修改后)</td>
  201. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
  202. </tr>
  203. <tr>
  204. <td width="100" height="100"> 参考答案(修改前)</td>
  205. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="change" readonly="readonly"></textarea></td>
  206. </tr>
  207. <tr>
  208. <td width="100" height="100"> 参考答案(修改前后结果对比)<span style="font-size: 12px; color: red;">注: 红色为已删除 绿色为新增</span></td>
  209. <td colspan="3" height="100"> <span id="diff1">
  210. </span></td>
  211. </tr>
  212. <tr>
  213. <td width="100">单位</td>
  214. <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
  215. </tr>
  216. <tr>
  217. <td width="100"> 办公地点</td>
  218. <td colspan="3"><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  219. </tr>
  220. <tr >
  221. <td rowspan="2" width="100">公开电话</td>
  222. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  223. <td rowspan="2" width="100">内部电话</td>
  224. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  225. </tr>
  226. <tr>
  227. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  228. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  229. </tr>
  230. <tr>
  231. <td width="100"> 办理方式</td>
  232. <td><input type="text" id="dealtype" readonly="readonly"/></td>
  233. <td width="100"> 收费标准</td>
  234. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  235. </tr>
  236. <tr>
  237. <td width="100"> 办理对象</td>
  238. <td><input type="text" id="serobject" readonly="readonly" /></td>
  239. <td width="100"> 乘车路线</td>
  240. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  241. </tr>
  242. <tr>
  243. <td width="100" height="100"> 备注</td>
  244. <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
  245. </tr>
  246. <tr class='mechanism'>
  247. <td width="100" height="100"> 机构职能</td>
  248. <td colspan="3" height="100">
  249. <textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
  250. </td>
  251. </tr>
  252. </table>
  253. <ul class="tab_list clearfix">
  254. <li class="active">设定依据</li>
  255. <li>办理流程</li>
  256. <li>办理材料</li>
  257. <li>办理结果样本</li>
  258. <li>收费标准及依据</li>
  259. <li>附件</li>
  260. <li>纠错记录</li>
  261. </ul>
  262. <div class="tab_content">
  263. <div class="cons" style="display: block;">
  264. <div id="baseon" >
  265. </div>
  266. <!--<textarea name="" readonly="readonly"></textarea>-->
  267. </div>
  268. <div class="cons">
  269. <div id="process" >
  270. </div>
  271. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  272. </div>
  273. <div class="cons">
  274. <div id="material" >
  275. </div>
  276. <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
  277. </div>
  278. <div class="cons">
  279. <div id="template" >
  280. </div>
  281. <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
  282. </div>
  283. <div class="cons">
  284. <div id="payinfo" >
  285. </div>
  286. <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
  287. </div>
  288. <div class="cons">
  289. <div>
  290. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  291. <thead>
  292. <tr>
  293. <th>文件名称</th>
  294. <th>添加时间</th>
  295. <th>文件大小</th>
  296. </tr>
  297. </thead>
  298. <tbody>
  299. </tbody>
  300. </table>
  301. </div>
  302. </div>
  303. <div class="cons">
  304. <table id="error_record" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  305. <thead>
  306. <tr>
  307. <th data-field="F_OptOn" data-align="center" class="msg_time">纠错时间</th>
  308. <th data-field="F_Reason" data-align="center">纠错原因</th>
  309. </tr>
  310. </thead>
  311. </table>
  312. <!--<div id="error_record" >
  313. 纠错记录
  314. </div>-->
  315. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  316. </div>
  317. </div>
  318. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  319. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  320. <script src="../js/adjustHeight.js"></script>
  321. <script src="../js/laydate/laydate.js"></script>
  322. <script src="../js/plugins/diff_match_patch/diff_match_patch.js"></script>
  323. <script src="../js/plugins/preetyTextDiff/jquery.pretty-text-diff.min.js"></script>
  324. <script>
  325. var ids=helper.request.queryString("ids");
  326. var depId=helper.request.queryString("DeptId");
  327. $(document).ready(function(){
  328. //展示评价星级
  329. var num =5;
  330. if(num==3){
  331. $('.star li:lt(3)').addClass('on')
  332. }else if(num==4){
  333. $('.star li:lt(4)').addClass('on')
  334. }else if(num==5){
  335. $('.star li:lt(5)').addClass('on')
  336. }
  337. //关闭自身
  338. window.formClose = function(){
  339. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  340. //layer.msg(index);
  341. parent.layer.close(index); //再执行关闭
  342. }
  343. $('.tab_list li').click(function(){
  344. var index=$(this).index();
  345. $(this).addClass('active').siblings().removeClass('active');
  346. $('.tab_content>div').eq(index).show().siblings().hide();
  347. })
  348. if(depId&&depId!=99999&&depId!=0){
  349. $.ajax({
  350. type:"get",
  351. url:huayi.config.callcenter_url +"Department/GetDept",
  352. async:true,
  353. dataType:'json',
  354. data:{
  355. token: $.cookie("token"),
  356. id:depId
  357. },
  358. success:function(result){
  359. if(result.state.toLowerCase()=='success'){
  360. var con=result.data;
  361. $('#mechanism').val(con.F_Remark);
  362. }
  363. }
  364. });
  365. }else{
  366. $('.mechanism').css('display','none')
  367. }
  368. //按钮【按钮一】的回调
  369. $.ajax({
  370. type: "post",
  371. url: huayi.config.callcenter_url + "Repository/OptRep",
  372. async: true,
  373. dataType: 'json',
  374. data: {
  375. token: $.cookie("token"),
  376. repid: ids,
  377. type:0
  378. },
  379. success: function(data) {
  380. if(data.state.toLowerCase() == 'success') {
  381. // debugger
  382. }
  383. }
  384. });
  385. $.ajax({
  386. type:"get",
  387. url:huayi.config.callcenter_url +"Repository/GetRepository",
  388. async:true,
  389. dataType:'json',
  390. data:{
  391. token: $.cookie("token"),
  392. id:ids
  393. },
  394. success:function(res){
  395. var Rows = res.data.button;
  396. var html = '';
  397. for (var i = 1; i < Rows.length; i++) {
  398. var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
  399. if (html1) {
  400. html1 = html1.replace("data", res.data.data.F_Id);
  401. html1 = html1.replace("data_id", res.data.data.F_DeptId);
  402. }
  403. html += html1;
  404. }
  405. $('.operation_bj').append(html);
  406. if(res.state.toLowerCase()=='success'){
  407. var con=res.data.data;
  408. $('#key').val(con.F_Key);//关键字
  409. $('#title').val(con.F_Title);//事件名称
  410. $('#maindept').val(con.F_MainDept);//主办单位
  411. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  412. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  413. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  414. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  415. $('#points').val(con.F_Points);//询问要点
  416. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  417. $('#endanswer').val(con.F_EndAnswer);//结案参考
  418. $('#dealtype').val(con.F_DealType);//办理方式
  419. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  420. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  421. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  422. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  423. $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
  424. $('#paymoney').val(con.F_PayMoney);//收费标准
  425. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  426. $('#serobject').val(con.F_Object);//办理对象
  427. $('#busline').val(con.F_BusLine);//乘车路线
  428. $('#officetime').val(con.F_OfficeTime);//办公时间
  429. $('#otherdept').val(con.F_OtherDept);// 协办单位
  430. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  431. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  432. $('#remark').val(con.F_Remark);//备注
  433. $('#baseon').html(con.F_BaseOn);//设定依据
  434. $('#process').html(con.F_Process);//办理流程
  435. $('#material').html(con.F_Material);//办理材料
  436. $('#template').html(con.F_Template);//办理结果样本
  437. $('#payinfo').html(con.F_PayInfo);//收费标准及依据
  438. var wjjlistdata=res.data.wjjlist
  439. $('#error_record').bootstrapTable('load', wjjlistdata);//纠错信息
  440. // $('#files').val() //收费标准及依据
  441. console.log()
  442. $(res.data.file).each(function(k,q){
  443. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
  444. var size= (q.F_Size/1024).toFixed(2)
  445. var strs='<tr>'+
  446. '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
  447. '<td>'+ q.F_AddTime +'</td>'+
  448. '<td>'+ size +'kb</td>'+
  449. '</tr>'
  450. $(strs).appendTo($('.feilTable tbody'))
  451. })
  452. var shaudit;
  453. $(res.data.shData).each(function(k,q){
  454. if (q.F_ISPass==2) {
  455. shaudit="未通过"
  456. }else if(q.F_ISPass==1){
  457. shaudit="通过"
  458. }
  459. var num=k+1;
  460. var strs='<tr>'+
  461. '<td>'+ num +'</td>'+
  462. '<td>'+ q.F_AuditBy +'</td>'+
  463. '<td>'+ q.F_AuditRemark +'</td>'+
  464. '<td>'+ q.F_CreateOn +'</td>'+
  465. '<td>'+ shaudit +'</td>'+
  466. '</tr>'
  467. $(strs).appendTo($('.SHXX'))
  468. })
  469. if(con.F_AuditID){
  470. $.ajax({
  471. type:"get",
  472. url:huayi.config.callcenter_url +"Knowledge/GetAuditCompareInfo",
  473. async:true,
  474. dataType:'json',
  475. data:{
  476. token: $.cookie("token"),
  477. auditid:con.F_AuditID
  478. },
  479. success:function(res){
  480. $('#change').html(res.data.F_PreDescription); //修改前内容 F_PreDescription
  481. $('#endanswer').html(res.data.F_AfterDescription); //修改后内容 F_AfterDescription
  482. $(".diff-wrapper1").prettyTextDiff({
  483. originalContent: $("#change").html(),
  484. changedContent: $("#endanswer").html(),
  485. diffContainer: "#diff1"
  486. });
  487. }
  488. })
  489. }
  490. }
  491. }
  492. });
  493. $('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
  494. })
  495. //解决
  496. function solve(id) {
  497. var laye = layer.confirm('确定解决?', {
  498. btn: ['确定', '取消'] //可以无限个按钮
  499. }, function() {
  500. //按钮【按钮一】的回调
  501. $.ajax({
  502. type: "post",
  503. url: huayi.config.callcenter_url + "Repository/OptRep",
  504. async: true,
  505. dataType: 'json',
  506. data: {
  507. token: $.cookie("token"),
  508. repid: id,
  509. type:1
  510. },
  511. success: function(data) {
  512. if(data.state.toLowerCase() == 'success') {
  513. layer.msg("提交成功!");
  514. layer.close(laye);
  515. table.bootstrapTable('refresh');
  516. }
  517. }
  518. });
  519. }, function(index) {
  520. //按钮【按钮二】的回调
  521. layer.close(laye)
  522. });
  523. }
  524. //未解决
  525. function noSolve(id){
  526. var laye=layer.open({
  527. type: 1,
  528. shade: false,
  529. area: ['430px', '260px'],
  530. title: '请输入未解决原因', //不显示标题
  531. content:
  532. '<div style="padding-top:10px;padding-left:20px;">\n' +
  533. '<textarea id="result" type="text" placeholder="请输入未解决原因"></textarea>' +
  534. '</div>',
  535. cancel: function(){
  536. layer.close();
  537. },
  538. btn: ['确定','取消'],//按钮
  539. yes: function(){
  540. if(!$('#result').val()){
  541. layer.msg('请填写未解决原因!');
  542. return false;
  543. }else{
  544. $.ajax({
  545. type: "post",
  546. url: huayi.config.callcenter_url + "Repository/OptRep",
  547. async: true,
  548. dataType: 'json',
  549. data: {
  550. token: $.cookie("token"),
  551. repid: id,
  552. reason:$('#result').val(),
  553. type:2
  554. },
  555. success: function(data) {
  556. if(data.state.toLowerCase() == 'success') {
  557. layer.msg("提交成功!");
  558. layer.close(laye);
  559. table.bootstrapTable('refresh');
  560. }
  561. }
  562. });
  563. }
  564. }
  565. });
  566. }
  567. //编辑
  568. function goEdit(ids,DeptId){
  569. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  570. parent.layer.close(index); //再执行关闭
  571. window.parent.goEdit(ids,DeptId);//执行父页面的事件
  572. }
  573. //删除
  574. function goDel(id) {
  575. var arr=[];
  576. arr.push(id);
  577. var laye = layer.confirm('您确定要删除吗?', {
  578. btn: ['确定', '取消'] //可以无限个按钮
  579. }, function() {
  580. //按钮【按钮一】的回调
  581. $.ajax({
  582. type: "post",
  583. url: huayi.config.callcenter_url + "Repository/DelRepository",
  584. async: true,
  585. dataType: 'json',
  586. data: {
  587. token: $.cookie("token"),
  588. ids: arr
  589. },
  590. success: function(data) {
  591. if(data.state.toLowerCase() == 'success') {
  592. layer.msg("删除成功!");
  593. layer.close(laye);
  594. table.bootstrapTable('refresh');
  595. }
  596. }
  597. });
  598. }, function(index) {
  599. //按钮【按钮二】的回调
  600. layer.close(laye)
  601. });
  602. }
  603. </script>
  604. </body>
  605. </html>