商丘12345 前端

newRepositoryDetail.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  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. }
  131. .msg_time{
  132. max-width: 40px;
  133. }
  134. </style>
  135. </head>
  136. <body class="gray-bg">
  137. <div class="container-fluid wrapper-content animated fadeInRight">
  138. <div class="operation_bj">
  139. </div>
  140. <table class="table table-bordered table-condensed">
  141. <tr>
  142. <td width="100">标题</td>
  143. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  144. </tr>
  145. <tr>
  146. <td width="100" height="100"> 参考答案</td>
  147. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
  148. </tr>
  149. <tr>
  150. <td width="100">单位</td>
  151. <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
  152. </tr>
  153. <tr>
  154. <td width="100"> 办公地点</td>
  155. <td colspan="3"><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  156. </tr>
  157. <tr >
  158. <td rowspan="2" width="100">公开电话</td>
  159. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  160. <td rowspan="2" width="100">内部电话</td>
  161. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  162. </tr>
  163. <tr>
  164. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  165. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  166. </tr>
  167. <tr>
  168. <td width="100"> 办理方式</td>
  169. <td><input type="text" id="dealtype" readonly="readonly"/></td>
  170. <td width="100"> 收费标准</td>
  171. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  172. </tr>
  173. <tr>
  174. <td width="100"> 办理对象</td>
  175. <td><input type="text" id="serobject" readonly="readonly" /></td>
  176. <td width="100"> 乘车路线</td>
  177. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  178. </tr>
  179. <tr>
  180. <td width="100" height="100"> 备注</td>
  181. <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
  182. </tr>
  183. <tr class='mechanism'>
  184. <td width="100" height="100"> 机构职能</td>
  185. <td colspan="3" height="100">
  186. <textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
  187. </td>
  188. </tr>
  189. </table>
  190. <ul class="tab_list clearfix">
  191. <li class="active">设定依据</li>
  192. <li>办理流程</li>
  193. <li>办理材料</li>
  194. <li>办理结果样本</li>
  195. <li>收费标准及依据</li>
  196. <li>附件</li>
  197. <li>纠错记录</li>
  198. </ul>
  199. <div class="tab_content">
  200. <div class="cons" style="display: block;">
  201. <div id="baseon" >
  202. </div>
  203. <!--<textarea name="" readonly="readonly"></textarea>-->
  204. </div>
  205. <div class="cons">
  206. <div id="process" >
  207. </div>
  208. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  209. </div>
  210. <div class="cons">
  211. <div id="material" >
  212. </div>
  213. <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
  214. </div>
  215. <div class="cons">
  216. <div id="template" >
  217. </div>
  218. <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
  219. </div>
  220. <div class="cons">
  221. <div id="payinfo" >
  222. </div>
  223. <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
  224. </div>
  225. <div class="cons">
  226. <div>
  227. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  228. <thead>
  229. <tr>
  230. <th>文件名称</th>
  231. <th>添加时间</th>
  232. <th>文件大小</th>
  233. </tr>
  234. </thead>
  235. <tbody>
  236. </tbody>
  237. </table>
  238. </div>
  239. </div>
  240. <div class="cons">
  241. <table id="error_record" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  242. <thead>
  243. <tr>
  244. <th data-field="F_OptOn" data-align="center" class="msg_time">纠错时间</th>
  245. <th data-field="F_Reason" data-align="center">纠错原因</th>
  246. </tr>
  247. </thead>
  248. </table>
  249. <!--<div id="error_record" >
  250. 纠错记录
  251. </div>-->
  252. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  253. </div>
  254. </div>
  255. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  256. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  257. <script src="../js/adjustHeight.js"></script>
  258. <script src="../js/laydate/laydate.js"></script>
  259. <script>
  260. var ids=helper.request.queryString("ids");
  261. var depId=helper.request.queryString("DeptId");
  262. $(document).ready(function(){
  263. //关闭自身
  264. window.formClose = function(){
  265. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  266. //layer.msg(index);
  267. parent.layer.close(index); //再执行关闭
  268. }
  269. $('.tab_list li').click(function(){
  270. var index=$(this).index();
  271. $(this).addClass('active').siblings().removeClass('active');
  272. $('.tab_content>div').eq(index).show().siblings().hide();
  273. })
  274. if(depId&&depId!=99999&&depId!=0){
  275. $.ajax({
  276. type:"get",
  277. url:huayi.config.callcenter_url +"Department/GetDept",
  278. async:true,
  279. dataType:'json',
  280. data:{
  281. token: $.cookie("token"),
  282. id:depId
  283. },
  284. success:function(result){
  285. if(result.state.toLowerCase()=='success'){
  286. var con=result.data;
  287. $('#mechanism').val(con.F_Remark);
  288. }
  289. }
  290. });
  291. }else{
  292. $('.mechanism').css('display','none')
  293. }
  294. //按钮【按钮一】的回调
  295. $.ajax({
  296. type: "post",
  297. url: huayi.config.callcenter_url + "Repository/OptRep",
  298. async: true,
  299. dataType: 'json',
  300. data: {
  301. token: $.cookie("token"),
  302. repid: ids,
  303. type:0
  304. },
  305. success: function(data) {
  306. if(data.state.toLowerCase() == 'success') {
  307. // debugger
  308. }
  309. }
  310. });
  311. $.ajax({
  312. type:"get",
  313. url:huayi.config.callcenter_url +"Repository/GetRepository",
  314. async:true,
  315. dataType:'json',
  316. data:{
  317. token: $.cookie("token"),
  318. id:ids
  319. },
  320. success:function(res){
  321. var Rows = res.data.button;
  322. var html = '';
  323. for (var i = 1; i < Rows.length; i++) {
  324. var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
  325. if (html1) {
  326. html1 = html1.replace("data", res.data.data.F_Id);
  327. html1 = html1.replace("data_id", res.data.data.F_DeptId);
  328. }
  329. html += html1;
  330. }
  331. $('.operation_bj').append(html);
  332. if(res.state.toLowerCase()=='success'){
  333. var con=res.data.data;
  334. $('#key').val(con.F_Key);//关键字
  335. $('#title').val(con.F_Title);//事件名称
  336. $('#maindept').val(con.F_MainDept);//主办单位
  337. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  338. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  339. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  340. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  341. $('#points').val(con.F_Points);//询问要点
  342. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  343. $('#endanswer').val(con.F_EndAnswer);//结案参考
  344. $('#dealtype').val(con.F_DealType);//办理方式
  345. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  346. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  347. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  348. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  349. $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
  350. $('#paymoney').val(con.F_PayMoney);//收费标准
  351. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  352. $('#serobject').val(con.F_Object);//办理对象
  353. $('#busline').val(con.F_BusLine);//乘车路线
  354. $('#officetime').val(con.F_OfficeTime);//办公时间
  355. $('#otherdept').val(con.F_OtherDept);// 协办单位
  356. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  357. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  358. $('#remark').val(con.F_Remark);//备注
  359. $('#baseon').html(con.F_BaseOn);//设定依据
  360. $('#process').html(con.F_Process);//办理流程
  361. $('#material').html(con.F_Material);//办理材料
  362. $('#template').html(con.F_Template);//办理结果样本
  363. $('#payinfo').html(con.F_PayInfo);//收费标准及依据
  364. var wjjlistdata=res.data.wjjlist
  365. $('#error_record').bootstrapTable('load', wjjlistdata);//纠错信息
  366. // $('#files').val() //收费标准及依据
  367. console.log()
  368. $(res.data.file).each(function(k,q){
  369. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
  370. var size= (q.F_Size/1024).toFixed(2)
  371. var strs='<tr>'+
  372. '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
  373. '<td>'+ q.F_AddTime +'</td>'+
  374. '<td>'+ size +'kb</td>'+
  375. '</tr>'
  376. $(strs).appendTo($('.feilTable tbody'))
  377. })
  378. var shaudit;
  379. $(res.data.shData).each(function(k,q){
  380. if (q.F_ISPass==2) {
  381. shaudit="未通过"
  382. }else if(q.F_ISPass==1){
  383. shaudit="通过"
  384. }
  385. var num=k+1;
  386. var strs='<tr>'+
  387. '<td>'+ num +'</td>'+
  388. '<td>'+ q.F_AuditBy +'</td>'+
  389. '<td>'+ q.F_AuditRemark +'</td>'+
  390. '<td>'+ q.F_CreateOn +'</td>'+
  391. '<td>'+ shaudit +'</td>'+
  392. '</tr>'
  393. $(strs).appendTo($('.SHXX'))
  394. })
  395. }
  396. }
  397. });
  398. $('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
  399. })
  400. //解决
  401. function solve(id) {
  402. var laye = layer.confirm('确定解决?', {
  403. btn: ['确定', '取消'] //可以无限个按钮
  404. }, function() {
  405. //按钮【按钮一】的回调
  406. $.ajax({
  407. type: "post",
  408. url: huayi.config.callcenter_url + "Repository/OptRep",
  409. async: true,
  410. dataType: 'json',
  411. data: {
  412. token: $.cookie("token"),
  413. repid: id,
  414. type:1
  415. },
  416. success: function(data) {
  417. if(data.state.toLowerCase() == 'success') {
  418. layer.msg("提交成功!");
  419. layer.close(laye);
  420. table.bootstrapTable('refresh');
  421. }
  422. }
  423. });
  424. }, function(index) {
  425. //按钮【按钮二】的回调
  426. layer.close(laye)
  427. });
  428. }
  429. //未解决
  430. function noSolve(id){
  431. var laye=layer.open({
  432. type: 1,
  433. shade: false,
  434. area: ['430px', '260px'],
  435. title: '请输入未解决原因', //不显示标题
  436. content:
  437. '<div style="padding-top:10px;padding-left:20px;">\n' +
  438. '<textarea id="result" type="text" placeholder="请输入未解决原因"></textarea>' +
  439. '</div>',
  440. cancel: function(){
  441. layer.close();
  442. },
  443. btn: ['确定','取消'],//按钮
  444. yes: function(){
  445. if(!$('#result').val()){
  446. layer.msg('请填写未解决原因!');
  447. return false;
  448. }else{
  449. $.ajax({
  450. type: "post",
  451. url: huayi.config.callcenter_url + "Repository/OptRep",
  452. async: true,
  453. dataType: 'json',
  454. data: {
  455. token: $.cookie("token"),
  456. repid: id,
  457. reason:$('#result').val(),
  458. type:2
  459. },
  460. success: function(data) {
  461. if(data.state.toLowerCase() == 'success') {
  462. layer.msg("提交成功!");
  463. layer.close(laye);
  464. table.bootstrapTable('refresh');
  465. }
  466. }
  467. });
  468. }
  469. }
  470. });
  471. }
  472. //编辑
  473. function goEdit(ids,DeptId){
  474. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  475. parent.layer.close(index); //再执行关闭
  476. window.parent.goEdit(ids,DeptId);//执行父页面的事件
  477. }
  478. //删除
  479. function goDel(id) {
  480. var arr=[];
  481. arr.push(id);
  482. var laye = layer.confirm('您确定要删除吗?', {
  483. btn: ['确定', '取消'] //可以无限个按钮
  484. }, function() {
  485. //按钮【按钮一】的回调
  486. $.ajax({
  487. type: "post",
  488. url: huayi.config.callcenter_url + "Repository/DelRepository",
  489. async: true,
  490. dataType: 'json',
  491. data: {
  492. token: $.cookie("token"),
  493. ids: arr
  494. },
  495. success: function(data) {
  496. if(data.state.toLowerCase() == 'success') {
  497. layer.msg("删除成功!");
  498. layer.close(laye);
  499. table.bootstrapTable('refresh');
  500. }
  501. }
  502. });
  503. }, function(index) {
  504. //按钮【按钮二】的回调
  505. layer.close(laye)
  506. });
  507. }
  508. </script>
  509. </body>
  510. </html>