Selaa lähdekoodia

开票必填信息

natasha 5 päivää sitten
vanhempi
commit
acd9cce45d
1 muutettua tiedostoa jossa 30 lisäystä ja 0 poistoa
  1. 30 0
      src/views/personalCenter/components/OrderList.vue

+ 30 - 0
src/views/personalCenter/components/OrderList.vue

@@ -603,6 +603,36 @@ export default {
     },
     // 确定开票
     handleSureInvoice() {
+      if (!this.invoiceForm.buyer_info_mc) {
+        this.$message.warning("请输入抬头名称");
+        return;
+      }
+      if (this.invoiceForm.invoice_object === 0) {
+        if (!this.invoiceForm.buyer_info_sfzh) {
+          this.$message.warning("请输入身份证号");
+          return;
+        }
+      } else {
+        if (!this.invoiceForm.buyer_info_sh) {
+          this.$message.warning("请输入单位税号");
+          return;
+        }
+        if (this.invoiceForm.invoice_type === 1) {
+          if (!this.invoiceForm.buyer_info_dz) {
+            this.$message.warning("请输入注册地址");
+            return;
+          } else if (!this.invoiceForm.buyer_info_dh) {
+            this.$message.warning("请输入注册电话");
+            return;
+          } else if (!this.invoiceForm.buyer_info_khh) {
+            this.$message.warning("请输入开户银行");
+            return;
+          } else if (!this.invoiceForm.buyer_info_zh) {
+            this.$message.warning("请输入银行账号");
+            return;
+          }
+        }
+      }
       let MethodName = "/ShopServer/Client/OrderManager/SubmitInvoiceApply";
 
       let data = {