SKcBbRefillingitemsEdit.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('装斗报表修改')" />
  5. </head>
  6. <body>
  7. <div class="ui-layout-center">
  8. <form id="form-SKcBbRefillingitems-edit" class="customize-search-form">
  9. <div class="customize-form-group-container">
  10. <input type="hidden" id="id" name="id" th:value="${id}">
  11. <div class="customize-form-group">
  12. <label>装斗日期:</label>
  13. <input name="refillingDate" placeholder="装斗日期" th:value="${refillingDate}" class="styled-input" type="text">
  14. </div>
  15. <div class="customize-form-group">
  16. <label>商品编码:</label>
  17. <input name="productCode" placeholder="商品编码" th:value="${productCode}" class="styled-input" type="text">
  18. </div>
  19. <div class="customize-form-group">
  20. <label>商品名称:</label>
  21. <input name="productName" placeholder="商品名称" th:value="${productName}" class="styled-input" type="text">
  22. </div>
  23. <div class="customize-form-group">
  24. <label>装斗单号:</label>
  25. <input name="refillingDocumentNumber" placeholder="装斗单号" th:value="${refillingDocumentNumber}" class="styled-input" type="text">
  26. </div>
  27. <div class="customize-form-group">
  28. <label>生产厂家:</label>
  29. <input name="manufacturer" placeholder="生产厂家" th:value="${manufacturer}" class="styled-input" type="text">
  30. </div>
  31. <div class="customize-form-group">
  32. <label>批号:</label>
  33. <input name="batchNumber" placeholder="批号" th:value="${batchNumber}" class="styled-input" type="text">
  34. </div>
  35. <div class="customize-form-group">
  36. <label>装斗数量:</label>
  37. <input name="refillingQuantity" placeholder="装斗数量" th:value="${refillingQuantity}" class="styled-input" type="text">
  38. </div>
  39. <div class="customize-form-group">
  40. <label>单位:</label>
  41. <input name="unit" placeholder="单位" th:value="${unit}" class="styled-input" type="text">
  42. </div>
  43. <div class="customize-form-group">
  44. <label>质量状况:</label>
  45. <input name="qualityStatus" placeholder="质量状况" th:value="${qualityStatus}" class="styled-input" type="text">
  46. </div>
  47. <div class="customize-form-group">
  48. <label>装斗人:</label>
  49. <input name="refiller" placeholder="装斗人" th:value="${refiller}" class="styled-input" type="text">
  50. </div>
  51. <div class="customize-form-group">
  52. <label>复核人:</label>
  53. <input name="verifier" placeholder="复核人" th:value="${verifier}" class="styled-input" type="text">
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <div class="main-content">
  59. <div class="col-sm-offset-5 col-sm-10">
  60. </div>
  61. </div>
  62. <th:block th:include="include :: footer" />
  63. </body>
  64. </html>
  65. <script>
  66. $(document).ready(function() {
  67. $('#form-SKcBbRefillingitems-edit :input').attr('readonly', 'readonly');
  68. });
  69. function edit() {
  70. var data = $("#form-SKcBbRefillingitems-edit").serializeArray();
  71. $.ajax({
  72. cache : true,
  73. type : "POST",
  74. url : ctx + "kc/skcbbrefillingitems/sKcBbRefillingitemsEdit",
  75. data : data,
  76. async : false,
  77. error : function(request) {
  78. $.modal.alertError("系统错误");
  79. },
  80. success : function(data) {
  81. $.operate.successCallback(data);
  82. }
  83. });
  84. }
  85. function submitHandler() {
  86. if ($.validate.form()) {
  87. edit();
  88. }
  89. }
  90. </script>