商丘12345 前端

newRepositoryDetail.html 15KB

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