dvalueconfigAdd.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('门店积分商品列表新增')" />
  5. <th:block th:include="include :: ztree-css" />
  6. </head>
  7. <body class="white-bg">
  8. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  9. <form id="form-SSpglJfspProductinfo-add" class="customize-search-form">
  10. <div class="customize-form-group-container"> <div class="customize-form-group">
  11. <label>D值品编码:</label>
  12. <input name="d_value_code" placeholder="请输入D值品编码" id="d_value_code" class="styled-input" type="text">
  13. </div>
  14. <div class="customize-form-group">
  15. <label>D值品名称:</label>
  16. <input name="dValueName" placeholder="请输入D值品名称" id="dValueName" class="styled-input" type="text">
  17. </div>
  18. <div class="customize-form-group">
  19. <label>配置状态:</label>
  20. <select name="status" id="status" class="styled-input" th:with="type=${@dict.getType('sys_hzgl_qyty_status')}">
  21. <option value="">请选择</option>
  22. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  23. </select>
  24. </div>
  25. </div>
  26. </form>
  27. </div>
  28. <th:block th:include="include :: footer" />
  29. <th:block th:include="include :: ztree-js" />
  30. <script type="text/javascript">
  31. function submitHandler() {
  32. if ($.validate.form()) {
  33. add();
  34. }
  35. }
  36. function add() {
  37. var data = $("#form-SSpglJfspProductinfo-add").serializeArray();
  38. $.ajax({
  39. cache : true,
  40. type : "POST",
  41. url : ctx + "dzpz/dvalueConfig/savedvalueconfig",
  42. data : data,
  43. async : false,
  44. error : function(request) {
  45. $.modal.alertError("系统错误");
  46. },
  47. success : function(data) {
  48. $.operate.successCallback(data);
  49. }
  50. });
  51. }
  52. </script>
  53. </body>
  54. </html>