SDdglFpglInvoiceinfoEdit.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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-SDdglFpglInvoiceinfo-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="platformOrderNo" placeholder="平台订单号" th:value="${platformOrderNo}" class="styled-input" type="text" disabled="true">
  14. </div>
  15. <div class="customize-form-group">
  16. <label>发票代码:</label>
  17. <input name="invoiceCode" placeholder="发票代码" th:value="${invoiceCode}" class="styled-input" type="text" disabled="true">
  18. </div>
  19. <div class="customize-form-group">
  20. <label>发票号码:</label>
  21. <input name="invoiceNumber" placeholder="发票号码" th:value="${invoiceNumber}" class="styled-input" type="text" disabled="true">
  22. </div>
  23. <div class="customize-form-group">
  24. <label>发票金额:</label>
  25. <input name="invoiceAmount" placeholder="发票金额" th:value="${invoiceAmount}" class="styled-input" type="text">
  26. </div>
  27. <div class="customize-form-group">
  28. <label>渠道店铺:</label>
  29. <input name="channelStore" placeholder="渠道店铺" th:value="${channelStore}" class="styled-input" type="text">
  30. </div>
  31. <div class="customize-form-group">
  32. <label>订单发票类型:</label>
  33. <select name="orderInvoiceType" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_ddfplx')}">
  34. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  35. th:selected="${dict.dictLabel}==${orderInvoiceType}"></option>
  36. </select>
  37. </div>
  38. <div class="customize-form-group">
  39. <label>抬头类型:</label>
  40. <select name="headerType" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_ttlx')}">
  41. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  42. th:selected="${dict.dictLabel}==${headerType}"></option>
  43. </select>
  44. </div>
  45. <div class="customize-form-group">
  46. <label>抬头名称:</label>
  47. <input name="headerName" placeholder="抬头名称" th:value="${headerName}" class="styled-input" type="text">
  48. </div>
  49. <div class="customize-form-group">
  50. <label>发票类型:</label>
  51. <select name="billingType" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_fplx')}">
  52. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  53. th:selected="${dict.dictLabel}==${billingType}"></option>
  54. </select>
  55. </div>
  56. <div class="customize-form-group select-time">
  57. <label>开票时间:</label>
  58. <input name="billingTime" placeholder="开票时间" th:value="${billingTime}" class="time-input time-input2" type="text">
  59. </div>
  60. <div class="customize-form-group">
  61. <label>邮寄信息:</label>
  62. <input name="mailingInfo" placeholder="邮寄信息" th:value="${mailingInfo}" class="styled-input" type="text">
  63. </div>
  64. <div class="customize-form-group">
  65. <label>开票金额:</label>
  66. <input name="billingAmount" placeholder="开票金额" th:value="${billingAmount}" class="styled-input" type="text">
  67. </div>
  68. <div class="customize-form-group">
  69. <label>店铺名称:</label>
  70. <input name="storeName" onclick="selectDeptTree()" id="treeName" th:value="${storeName}" type="text" placeholder="请选择门店" class="styled-input">
  71. </div>
  72. <div class="customize-form-group">
  73. <label>审核类型:</label>
  74. <select name="auditType" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_shlx')}">
  75. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  76. th:selected="${dict.dictLabel}==${auditType}"></option>
  77. </select>
  78. </div>
  79. <div class="customize-form-group">
  80. <label>审核状态:</label>
  81. <select name="auditStatus" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_shzt')}">
  82. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  83. th:selected="${dict.dictLabel}==${auditStatus}"></option>
  84. </select>
  85. </div>
  86. <div class="customize-form-group">
  87. <label>订单号:</label>
  88. <input name="orderNo" placeholder="订单号" th:value="${orderNo}" class="styled-input" type="text" disabled="true">
  89. </div>
  90. <div class="customize-form-group">
  91. <label>开票状态:</label>
  92. <select name="billingStatus" class="styled-input" th:with="type=${@dict.getType('sys_select_ddgl_kpzt')}">
  93. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
  94. th:selected="${dict.dictLabel}==${billingStatus}"></option>
  95. </select>
  96. </div>
  97. <div class="customize-form-group select-time">
  98. <label>创建时间:</label>
  99. <input name="createTime" placeholder="创建时间" th:value="${createTime}" class="time-input time-input2" type="text">
  100. </div>
  101. </div>
  102. </form>
  103. </div>
  104. <div class="main-content">
  105. <div class="col-sm-offset-5 col-sm-10">
  106. </div>
  107. </div>
  108. <th:block th:include="include :: footer" />
  109. </body>
  110. </html>
  111. <script>
  112. function edit() {
  113. var data = $("#form-SDdglFpglInvoiceinfo-edit").serializeArray();
  114. $.ajax({
  115. cache : true,
  116. type : "POST",
  117. url : ctx + "ddgl/sddglfpglinvoiceinfo/sDdglFpglInvoiceinfoEdit",
  118. data : data,
  119. async : false,
  120. error : function(request) {
  121. $.modal.alertError("系统错误");
  122. },
  123. success : function(data) {
  124. $.operate.successCallback(data);
  125. }
  126. });
  127. }
  128. function submitHandler() {
  129. if ($.validate.form()) {
  130. edit();
  131. }
  132. }
  133. /* 用户管理-新增-选择门店树 */
  134. function selectDeptTree() {
  135. var treeId = $("#treeId").val();
  136. var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
  137. var url = ctx + "system/user/selectDeptTree/" + deptId;
  138. var options = {
  139. title: '选择门店',
  140. width: "380",
  141. url: url,
  142. callBack: doSubmit
  143. };
  144. $.modal.openOptions(options);
  145. }
  146. function doSubmit(index, layero){
  147. var body = $.modal.getChildFrame(index);
  148. $("#treeId").val(body.find('#treeId').val());
  149. $("#treeName").val(body.find('#treeName').val());
  150. $.modal.close(index);
  151. }
  152. </script>