From f52ca56c8508f33c1dad9c7dcaaaec701c83e3e3 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 19 一月 2024 17:26:47 +0800
Subject: [PATCH] 添加打印信息

---
 src/views/login/register.vue |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/login/register.vue b/src/views/login/register.vue
index 2a454a7..cee0f55 100644
--- a/src/views/login/register.vue
+++ b/src/views/login/register.vue
@@ -17,12 +17,12 @@
                 </el-row>
                 <el-row>
                     <el-col :span="20">
-                        <el-form-item label="企业编号" prop="enterprisenumber">
+                        <el-form-item label="终端机用户名" prop="enterprisenumber">
                             <el-input v-model="registerForm.enterprisenumber" @change="checkNameAndNumber('number')" placeholder="自定义英文+数字,将作为销售终端用户名"></el-input>
                         </el-form-item>
                     </el-col>
                     <el-col :span="4" style="margin-top:10px;" v-if="showNumber">
-                        <span style="margin-left:5px;color: red">企业编号已存在</span>
+                        <span style="margin-left:5px;color: red">用户名已存在</span>
                     </el-col>
                 </el-row>
                 <el-row>
@@ -527,7 +527,7 @@
                     { required: true, message: '请填写企业名称', trigger: 'blur' },
                 ],
                 enterprisenumber:[
-                    { required: true, message: '请填写企业编号', trigger: 'blur' },
+                    { required: true, message: '请填写终端机用户名', trigger: 'blur' },
                 ],
                 password:[
                     { required: true, message: '请填写密码', trigger: 'change' },
@@ -656,7 +656,8 @@
         async submit(){
             this.$refs["ruleForm"].validate((valid) =>{
                 if(valid){
-                    if(this.registerForm.type === '烟花爆竹生产' && this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.operationQualification.length !== 0 && this.escortCompany.length !== 0 && this.insurance.length !==0){
+                    // console.log(this.registerForm.type,'type',this.businessLicense, this.idCard,this.legalPerson,this.operationQualification,this.escortCompany,this.insurance)
+                    if(this.registerForm.type === '烟花爆竹生产'){
                         this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                             return item.raw
                         },this.businessLicense)
@@ -733,7 +734,7 @@
                         }).catch(error => {
                             parseError({error: error, vm: this})
                         })
-                    }else if(this.registerForm.type === '烟花爆竹批发经营'&&  this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.operationQualification.length !== 0 && this.escortCompany.length !== 0 && this.insurance.length !== 0 && this.safetyProduction.length !== 0){
+                    }else if(this.registerForm.type === '烟花爆竹批发经营'){
                         this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                             return item.raw
                         },this.businessLicense)
@@ -810,7 +811,7 @@
                         }).catch(error => {
                             parseError({error: error, vm: this})
                         })
-                    }else if(this.registerForm.type === '烟花爆竹零售经营(长期)' && this.businessLicense.length !== 0 && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.insurance.length !== 0){
+                    }else if(this.registerForm.type === '烟花爆竹零售经营(长期)'){
                         this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                             return item.raw
                         },this.businessLicense)
@@ -887,7 +888,7 @@
                         }).catch(error => {
                             parseError({error: error, vm: this})
                         })
-                    }else if(this.registerForm.type==='烟花爆竹零售经营(短期)' && this.idCard.length !== 0 && this.legalPerson.length !== 0 && this.insurance.length !== 0){
+                    }else if(this.registerForm.type==='烟花爆竹零售经营(短期)'){
                         this.businessLicense = this.businessLicense.map((item,index,arr) =>{
                             return item.raw
                         },this.businessLicense)
@@ -1089,12 +1090,12 @@
                             this.showNumber = true
                             this.$message({
                                 type: 'warning',
-                                message: '企业编号已存在',
+                                message: '终端机用户名已存在',
                             })
                         }else{
                             this.$message({
                                 type:'success',
-                                message:'企业编号可以使用'
+                                message:'终端机用户名可以使用'
                             })
                             this.showNumber = false
                         }

--
Gitblit v1.9.2