ソースを参照

纳税识别号

y595705120 6 日 前
コミット
f0d4965660

+ 12 - 0
src/containers/center/market/index.vue

@@ -159,6 +159,9 @@
             <el-form-item label="发票抬头" prop="title">
               <el-input v-model="buyForm.title" :placeholder="buyForm.invoiceType === 'enterprise'?'请输入单位名称':'请输入真实名字'" style="width: 360px;"></el-input>
             </el-form-item>
+            <el-form-item label="纳税识别号" prop="taxId">
+              <el-input v-model="buyForm.taxId" :placeholder="buyForm.invoiceType === 'enterprise'?'纳税识别号':'身份证号'" style="width: 360px;"></el-input>
+            </el-form-item>
             <el-form-item label="手机号码" prop="phone">
               <el-input v-model="buyForm.phone" placeholder="请输入手机号码" style="width: 360px;"></el-input>
             </el-form-item>
@@ -269,6 +272,7 @@
           fee: 0,
           courseId: '',
           needInvoice: 0,
+          taxId:'',
           invoiceType: 'personal'
         },
         userInvoiceList:[],
@@ -318,6 +322,12 @@
             required: true,
             message: '请输入单位名称'
           }],
+          taxId:[
+            {
+              required: true,
+              message: '纳税识别号'
+            }
+          ],
           phone: [{
             required: true,
             message: '请输入手机号码'
@@ -436,6 +446,7 @@
             title,
             email,
             phone,
+            taxId,
             needInvoice,
             invoiceType
           } = this.buyForm;
@@ -444,6 +455,7 @@
             title,
             phone,
             email,
+            taxId,
             needInvoice,
             invoiceType
           };

+ 3 - 2
src/containers/center/play/components/media.vue

@@ -370,6 +370,7 @@
             let {
               skip,
               position,
+              msg,
               pause,
               closed
             } = res.data
@@ -377,9 +378,9 @@
               this.doPause();
               this.$emit("close")
               if (closed) {
-                this.$message.errorMsg("禁止多处同时学习", 5);
+                this.$message.errorMsg(msg ||'课程已关闭', 5);
               } else if (pause) {
-                this.$message.errorMsg("禁止多处同时学习", 5);
+                this.$message.errorMsg(msg ||"禁止多处同时学习", 5);
               }
               return
             }