|
@@ -5,7 +5,7 @@
|
|
|
<div class="tc-text"><span>添加企业成功</span></div>
|
|
<div class="tc-text"><span>添加企业成功</span></div>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <div class="gs-worp qy-worp tj-up">
|
|
|
|
|
|
|
+ <div class="gs-worp qy-worp tj-up" @click="hieadlookup">
|
|
|
<div class="qy-title" style="position: relative;">
|
|
<div class="qy-title" style="position: relative;">
|
|
|
<ul class="over">
|
|
<ul class="over">
|
|
|
<li class="left xs" v-for="(d, i) in tab" :key="i" :class= "{qyactive:nowindex == i}" @click="tabwatch(i)">{{d.name}}</li>
|
|
<li class="left xs" v-for="(d, i) in tab" :key="i" :class= "{qyactive:nowindex == i}" @click="tabwatch(i)">{{d.name}}</li>
|
|
@@ -15,8 +15,8 @@
|
|
|
<ul style="padding:0;text-align: center;">
|
|
<ul style="padding:0;text-align: center;">
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业名称</span>
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业名称</span>
|
|
|
- <input autofocus class="inpind" ref="qyname" @change= "spaceName" type="text" :class= "{showborder:qymingzi&&isspaceName&&isspaceNameempty}" placeholder="请填写企业全称">
|
|
|
|
|
- <div class="qy-Tips Tips-buttom"><span ref="qyno" style="color:red"></span></div>
|
|
|
|
|
|
|
+ <input class="inpind" ref="qyname" @change= "spaceName" @focus="heidqyname1" @blur="showqyname1" type="text" :class= "{showborder:qymingzi&&isspaceName&&isspaceNameempty}" placeholder="请填写企业全称">
|
|
|
|
|
+ <div v-show="isqyname1" class="qy-Tips Tips-buttom"><span ref="qyno" style="color:red"></span></div>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti">所属行业</span>
|
|
<span class="qy-biaoti">所属行业</span>
|
|
@@ -43,25 +43,25 @@
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业地址</span>
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业地址</span>
|
|
|
- <input ref="address" @change="address" class="inpind" type="text" :class= "{showborder:isaddress&&isaddressname}" placeholder="输入企业详细地址">
|
|
|
|
|
|
|
+ <input ref="address" @blur="address" @focus="heidqyaddress" class="inpind" type="text" :class= "{showborder:isaddress&&isaddressname}" placeholder="输入企业详细地址">
|
|
|
<!-- <div class="addbiaoqian">
|
|
<!-- <div class="addbiaoqian">
|
|
|
<v-distpicker @selected= 'selected' @province= 'qyprovince' :placeholders= 'placeholder'></v-distpicker>
|
|
<v-distpicker @selected= 'selected' @province= 'qyprovince' :placeholders= 'placeholder'></v-distpicker>
|
|
|
<input ref="address" @change="address" class="qy-xiangxi" type="text" placeholder="输入企业详细地址">
|
|
<input ref="address" @change="address" class="qy-xiangxi" type="text" placeholder="输入企业详细地址">
|
|
|
</div> -->
|
|
</div> -->
|
|
|
- <div class="qy-Tips Tips-buttom">
|
|
|
|
|
|
|
+ <div v-show="isqyaddress" class="qy-Tips Tips-buttom">
|
|
|
<span ref="ress" style="color:red"></span>
|
|
<span ref="ress" style="color:red"></span>
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>您的姓名</span>
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>您的姓名</span>
|
|
|
- <input class="inpind" @change= "yzusername" ref="name" :class= "{showborder:isname&&isnameempty}" type="text" value="" placeholder="请输入姓名">
|
|
|
|
|
- <div class="qy-Tips Tips-buttom"><span ref="usname" style="color:red"></span></div>
|
|
|
|
|
|
|
+ <input class="inpind" @blur= "yzusername" @focus="heidyzusername" ref="name" :class= "{showborder:isname&&isnameempty}" type="text" value="" placeholder="请输入姓名">
|
|
|
|
|
+ <div v-show="isyzusername" class="qy-Tips Tips-buttom"><span ref="usname" style="color:red"></span></div>
|
|
|
</li>
|
|
</li>
|
|
|
<li><span class="qy-biaoti">手机号</span><span class="qy-mobile industry">{{mytoken.account.mobile}}</span></li>
|
|
<li><span class="qy-biaoti">手机号</span><span class="qy-mobile industry">{{mytoken.account.mobile}}</span></li>
|
|
|
<li style="margin-bottom: 64px;">
|
|
<li style="margin-bottom: 64px;">
|
|
|
<span class="qy-biaoti">邮箱</span>
|
|
<span class="qy-biaoti">邮箱</span>
|
|
|
- <input class="inpind" @change="email" ref="email" :class= "{showborder:isemail}" type="email" value="">
|
|
|
|
|
- <div class="qy-Tips Tips-buttom"><span style="color:red" v-html="Email"></span></div>
|
|
|
|
|
|
|
+ <input class="inpind" @blur="email" @focus="heidemail" ref="email" :class= "{showborder:isemail}" type="email" value="">
|
|
|
|
|
+ <div v-show="isheidemail" class="qy-Tips Tips-buttom"><span style="color:red" v-html="Email"></span></div>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<div class="qy-anniu">
|
|
<div class="qy-anniu">
|
|
@@ -75,15 +75,15 @@
|
|
|
<ul style="padding:0;position: relative;">
|
|
<ul style="padding:0;position: relative;">
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti"><span class="xingxing marght">*</span>查找企业</span>
|
|
<span class="qy-biaoti"><span class="xingxing marght">*</span>查找企业</span>
|
|
|
- <input @input="Testingqyname" ref="lookupqyname" class="inpind" type="text" placeholder="输入企业名称或管理员">
|
|
|
|
|
- <span class="warning" ref="warningqyname"></span>
|
|
|
|
|
|
|
+ <input @input="Testingqyname" @focus="Testingqyname" @blur="showwarning" ref="lookupqyname" class="inpind" :class= "{showborder:isgsname}" type="text" placeholder="输入企业名称或管理员">
|
|
|
|
|
+ <span v-show="iswarning" class="warning" ref="warningqyname"></span>
|
|
|
</li>
|
|
</li>
|
|
|
<!-- 匹配企业后显示的内容 -->
|
|
<!-- 匹配企业后显示的内容 -->
|
|
|
<!-- <li v-if="isqylist" class="hied" :class= "{showlookup:islookup}"> -->
|
|
<!-- <li v-if="isqylist" class="hied" :class= "{showlookup:islookup}"> -->
|
|
|
- <div class="lookup hied" :class= "{showlookup:islookup}">
|
|
|
|
|
|
|
+ <div class="lookup hied" :class= "{showlookup:islookup}" @click.stop>
|
|
|
<ul>
|
|
<ul>
|
|
|
<li v-for="(d, i) in arr" :key="i" @click="qylist(i)" :class="{'hui':newindex === i}">
|
|
<li v-for="(d, i) in arr" :key="i" @click="qylist(i)" :class="{'hui':newindex === i}">
|
|
|
- <span>{{d.adminMobile}}</span>
|
|
|
|
|
|
|
+ <!-- <span>{{d.adminMobile}}</span> -->
|
|
|
<span>{{d.admin}}</span>
|
|
<span>{{d.admin}}</span>
|
|
|
<span>{{d.name}}</span>
|
|
<span>{{d.name}}</span>
|
|
|
</li>
|
|
</li>
|
|
@@ -92,11 +92,11 @@
|
|
|
<!-- </li> -->
|
|
<!-- </li> -->
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti"><span class="xingxing marght">*</span>姓<span style="width:2em;display: inline-block;"></span>名</span>
|
|
<span class="qy-biaoti"><span class="xingxing marght">*</span>姓<span style="width:2em;display: inline-block;"></span>名</span>
|
|
|
- <input @blur.prevent="Testingname" class="inpind" type="text" ref="lookupname" placeholder="输入真实姓名,待管理员审核">
|
|
|
|
|
- <span class="warning" ref="warningname"></span>
|
|
|
|
|
|
|
+ <input @blur.prevent="Testingname" @focus="showTestname" class="inpind" type="text" :class= "{showborder:isTestingname&&isregname}" ref="lookupname" placeholder="输入真实姓名,待管理员审核">
|
|
|
|
|
+ <span v-show="isTestname" class="warning" style="width:110px" ref="warningname"></span>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <div class="qy-anniu" style="margin-top: 70px;">
|
|
|
|
|
|
|
+ <div class="qy-anniu" style="margin-top: 90px;">
|
|
|
<span @click="Submission" class="qy-xiugai dianji" style="left: 0;">提交</span>
|
|
<span @click="Submission" class="qy-xiugai dianji" style="left: 0;">提交</span>
|
|
|
<span @click= "tjquxiao" class="qy-quxiao xs">取消</span>
|
|
<span @click= "tjquxiao" class="qy-quxiao xs">取消</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -148,6 +148,12 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
isgsname:false,
|
|
isgsname:false,
|
|
|
arr:[],
|
|
arr:[],
|
|
|
times:null,
|
|
times:null,
|
|
|
|
|
+ iswarning:false,//加入企业提示语
|
|
|
|
|
+ isTestname:false,//加入企业姓名提示音
|
|
|
|
|
+ isqyname1:false,
|
|
|
|
|
+ isqyaddress:false,//地址
|
|
|
|
|
+ isyzusername:false,
|
|
|
|
|
+ isheidemail:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components:{
|
|
components:{
|
|
@@ -213,8 +219,20 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //隐藏企业1提示语
|
|
|
|
|
+ heidqyname1(){
|
|
|
|
|
+ this.isqyname1 = false;
|
|
|
|
|
+ },
|
|
|
|
|
+ showqyname1(){
|
|
|
|
|
+ this.isqyname1 = true;
|
|
|
|
|
+ let qyname = this.$refs.qyname.value.replace(/\s+/g, "");//公司名字过滤空格
|
|
|
|
|
+ if(qyname == ''){
|
|
|
|
|
+ this.$refs.qyno.innerHTML = ' <img style="width:14px" src="/static/img/warning.png" alt=""> 企业名称不能为空';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
//检测企业名称2
|
|
//检测企业名称2
|
|
|
Testingqyname(){
|
|
Testingqyname(){
|
|
|
|
|
+ this.iswarning = false;//提示语隐藏
|
|
|
let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
|
|
let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
|
|
|
let token = this.mytoken.token;
|
|
let token = this.mytoken.token;
|
|
|
clearTimeout(this.times);
|
|
clearTimeout(this.times);
|
|
@@ -237,7 +255,7 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
this.newindex = '';
|
|
this.newindex = '';
|
|
|
this.arr = res.data.data;
|
|
this.arr = res.data.data;
|
|
|
- this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
|
|
|
|
|
|
|
+ this.$refs.warningqyname.innerHTML = '';
|
|
|
this.islookup = true;
|
|
this.islookup = true;
|
|
|
this.companyId = null;
|
|
this.companyId = null;
|
|
|
this.isgsname = true;//公司是否存在
|
|
this.isgsname = true;//公司是否存在
|
|
@@ -254,8 +272,13 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
},500)
|
|
},500)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //企业名称2提示语显示
|
|
|
|
|
+ showwarning(){
|
|
|
|
|
+ this.iswarning = true;
|
|
|
|
|
+ },
|
|
|
//验证个人姓名1
|
|
//验证个人姓名1
|
|
|
yzusername(){
|
|
yzusername(){
|
|
|
|
|
+ this.isyzusername = true;
|
|
|
let name = this.$refs.name.value.replace(/\s+/g, "");//姓名过滤空格
|
|
let name = this.$refs.name.value.replace(/\s+/g, "");//姓名过滤空格
|
|
|
if (name == '') {
|
|
if (name == '') {
|
|
|
this.$refs.usname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 个人姓名不能为空';
|
|
this.$refs.usname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 个人姓名不能为空';
|
|
@@ -271,8 +294,12 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ heidyzusername(){
|
|
|
|
|
+ this.isyzusername = false;
|
|
|
|
|
+ },
|
|
|
//验证个人姓名2
|
|
//验证个人姓名2
|
|
|
Testingname(){
|
|
Testingname(){
|
|
|
|
|
+ this.isTestname = true;
|
|
|
let name = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
|
|
let name = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
|
|
|
if (name == '') {
|
|
if (name == '') {
|
|
|
this.$refs.warningname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 姓名不能为空';
|
|
this.$refs.warningname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 姓名不能为空';
|
|
@@ -288,6 +315,10 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //个人姓名2提示语显示
|
|
|
|
|
+ showTestname(){
|
|
|
|
|
+ this.isTestname = false;
|
|
|
|
|
+ },
|
|
|
// 选择要加入的企业
|
|
// 选择要加入的企业
|
|
|
qylist(i){
|
|
qylist(i){
|
|
|
this.companyId = this.arr[i].id,
|
|
this.companyId = this.arr[i].id,
|
|
@@ -297,8 +328,15 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
this.islookup = false;
|
|
this.islookup = false;
|
|
|
if (this.admin == this.mytoken.account.realname) {
|
|
if (this.admin == this.mytoken.account.realname) {
|
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 账号已在企业服务中,不能重复加入';
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 账号已在企业服务中,不能重复加入';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
|
|
|
|
|
+ // this.$refs.lookupqyname.style.border = '1px solid #1E88F5';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //隐藏企业列表
|
|
|
|
|
+ hieadlookup(){
|
|
|
|
|
+ this.islookup = false;
|
|
|
|
|
+ },
|
|
|
//加入企业提交按钮
|
|
//加入企业提交按钮
|
|
|
Submission(){
|
|
Submission(){
|
|
|
let token = this.mytoken.token;
|
|
let token = this.mytoken.token;
|
|
@@ -347,6 +385,7 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
},
|
|
},
|
|
|
//验证公司详细地址
|
|
//验证公司详细地址
|
|
|
address(){
|
|
address(){
|
|
|
|
|
+ this.isqyaddress = true;
|
|
|
let address = this.$refs.address.value.replace(/\s+/g, "");//过滤空格
|
|
let address = this.$refs.address.value.replace(/\s+/g, "");//过滤空格
|
|
|
if (address == '') {
|
|
if (address == '') {
|
|
|
this.$refs.ress.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 企业地址不能为空';
|
|
this.$refs.ress.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 企业地址不能为空';
|
|
@@ -362,7 +401,12 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //地址提示隐藏
|
|
|
|
|
+ heidqyaddress(){
|
|
|
|
|
+ this.isqyaddress = false;
|
|
|
|
|
+ },
|
|
|
email(){
|
|
email(){
|
|
|
|
|
+ this.isheidemail = true;
|
|
|
let reg = new RegExp("^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$");
|
|
let reg = new RegExp("^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$");
|
|
|
let email = this.$refs.email.value;//邮箱
|
|
let email = this.$refs.email.value;//邮箱
|
|
|
if (email == '') {
|
|
if (email == '') {
|
|
@@ -378,6 +422,9 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ heidemail(){
|
|
|
|
|
+ this.isheidemail = false;
|
|
|
|
|
+ },
|
|
|
//保存
|
|
//保存
|
|
|
Preservation(){
|
|
Preservation(){
|
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
@@ -550,8 +597,8 @@ import { setTimeout, clearTimeout } from 'timers';
|
|
|
background: #f5f4f4
|
|
background: #f5f4f4
|
|
|
}
|
|
}
|
|
|
.lookup > ul {
|
|
.lookup > ul {
|
|
|
- max-height: 170px;
|
|
|
|
|
- overflow-y: scroll;
|
|
|
|
|
|
|
+ max-height: 140px;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
}
|
|
|
.qy-mobile {
|
|
.qy-mobile {
|
|
|
display: inline-block;
|
|
display: inline-block;
|