Explorar el Código

fix: 点取消返回上一级

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe hace 1 año
padre
commit
59fe0970f5
Se han modificado 1 ficheros con 7 adiciones y 14 borrados
  1. 7 14
      src/web/templates/pc/invoice.html

+ 7 - 14
src/web/templates/pc/invoice.html

@@ -532,20 +532,13 @@
               })
             },
             resetForm(formName) {
-              this.ruleForm = {
-                order_code: order_code,
-                invoice_content: '信息技术服务-技术服务费',
-                invoice_type: '单位',
-                invoice_variety: '电子普通发票',
-                mail: '',
-                phone: '',
-                remark: '',
-                company_name: '',
-                taxpayer_identnum: '',
-                company_address: '',
-                company_phone: '',
-                bank_name: '',
-                bank_account: ''
+              if (window.opener && window.opener !== window) {
+                window.close()
+              } else {
+                if (history.length <= 1) {
+                    window.close()
+                }
+                history.back()
               }
             },
             handleInput(value) {