natasha hai 3 días
pai
achega
f5ad61a3ed

+ 1 - 1
src/views/personalCenter/components/InvoiceList.vue

@@ -2,7 +2,7 @@
   <div class="my-share personal-info">
     <div class="common-title-box">
       <h2>发票管理</h2>
-      <span
+      <span style="color: #ee1c24"
         >申请开发票请到【<a
           style="text-decoration: underline"
           @click="handleToOrder"

+ 18 - 6
src/views/personalCenter/components/OrderList.vue

@@ -511,9 +511,9 @@ export default {
       kefuCode: false, // 显示客服二维码
       multipleSelection: [], // 选中的id
       invoiceForm: {
-        create_model: 0,
-        invoice_type: 0,
-        invoice_object: 0,
+        create_model: null,
+        invoice_type: null,
+        invoice_object: null,
         buyer_info_mc: "",
         buyer_info_sh: "",
         buyer_info_dz: "",
@@ -708,6 +708,18 @@ export default {
         this.$message.warning("请阅读并勾选红色注意事项内容");
         return;
       }
+      if (this.invoiceForm.create_model === null) {
+        this.$message.warning("请选择创建模式");
+        return;
+      }
+      if (this.invoiceForm.invoice_type === null) {
+        this.$message.warning("请选择发票类型");
+        return;
+      }
+      if (this.invoiceForm.invoice_object === null) {
+        this.$message.warning("请选择抬头类型");
+        return;
+      }
       if (!this.invoiceForm.buyer_info_mc) {
         this.$message.warning("请输入抬头名称");
         return;
@@ -784,9 +796,9 @@ export default {
             this.multipleSelection = [];
             this.$refs.table.clearSelection();
             this.invoiceForm = {
-              create_model: 0,
-              invoice_type: 0,
-              invoice_object: 0,
+              create_model: null,
+              invoice_type: null,
+              invoice_object: null,
               buyer_info_mc: "",
               buyer_info_sh: "",
               buyer_info_dz: "",