add_remark.ftl 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <title>修改备注 - H-ui.filter v2.4</title>
  11. <style>
  12. .my-title{font-weight: 500;padding-left: 15px;position: relative;}
  13. .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
  14. .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
  15. .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
  16. .input-box{margin: 18px 0;}
  17. .input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
  18. .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
  19. .add-list>li{margin: 10px 0;}
  20. .my-textarea{padding: 5px 10px;width: 80%;border:1px solid rgba(0,0,0,.1);}
  21. .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
  22. .my-btn-submit{padding: 10px 20px;width: 150px; background-color: #32a3d8;color: #fff;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
  23. .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;width: 60%; height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(http://s.iamberry.com/images/select-1.png) right center no-repeat #fff;background-size:auto 100%;}
  24. input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  25. input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  26. </style>
  27. <meta name="keywords" content="${path}">
  28. <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
  29. </head>
  30. <body>
  31. <article class="page-container">
  32. <form class="form form-horizontal" id="form-admin-add">
  33. <div class="input-box" style="text-align:center;">
  34. <span class="input-dic spanhidth">备注</span>
  35. <#if detectItem??>
  36. <textarea rows="5" cols="20" name="detectItemDesc" id="detectItemDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!">${detectItem.detectItemDesc!''}</textarea>
  37. <#else>
  38. <textarea rows="5" cols="20" name="detectItemDesc" id="detectItemDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!"></textarea>
  39. </#if>
  40. </div>
  41. <#--<div style="text-align:center;">
  42. <span>如果转入生产,则生产部门同事可查看!</span>
  43. </div>-->
  44. <div style="text-align:center;">
  45. <#if detectItemId??>
  46. <input type="hidden" value="${detectItemId!''}" id="detectItemId" name="detectItemId">
  47. </#if>
  48. <button type="button" class="my-btn-submit" onclick="add();">确认提交</button>
  49. </div>
  50. </form>
  51. </article>
  52. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  53. <script type="text/javascript">
  54. function add() {
  55. var detectItemDesc = $("#detectItemDesc").val();
  56. if( detectItemDesc != null){
  57. if( detectItemDesc.length > 200 ){
  58. layer.msg('备注长度不得大于100个字符',{icon: 5,time:1000});
  59. return;
  60. }
  61. }
  62. $.ajax({
  63. cache: true,
  64. type: "POST",
  65. url: "${path}/admin/detect/add_remark",
  66. data:$('#form-admin-add').serialize(),// 你的formid
  67. async: false,
  68. success: function(data){
  69. if (data.returnCode == 200) {
  70. layer.msg('修改成功',{icon: 1,time:1000},function () {
  71. window.parent.location.reload();
  72. var index = parent.layer.getFrameIndex(window.name);
  73. parent.layer.close(index)
  74. });
  75. } else {
  76. layer.msg('修改失败',{icon: 5,time:1000});
  77. }
  78. },
  79. error: function(XmlHttpRequest, textStatus, errorThrown){
  80. layer.msg('修改错误',{icon: 5,time:1000});
  81. }
  82. });
  83. }
  84. </script>
  85. </body>
  86. </html>