Commit 5db078f9 authored by zhangderong's avatar zhangderong

邮箱测试

parent 43816f20
Pipeline #59 canceled with stages
...@@ -315,7 +315,6 @@ ...@@ -315,7 +315,6 @@
</FormItem> </FormItem>
<FormItem label="抄送" style="margin-top:20px"> <FormItem label="抄送" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.copyname" @on-blur='copyname'/> <Input style="width:95%" v-model="emailInline.copyname" @on-blur='copyname'/>
<span style="position: absolute;left:0;top:30px;font-size:12px;">输入多个邮箱地址以英文”;“分隔</span>
</FormItem> </FormItem>
<FormItem label="主题" style="margin-top:20px"> <FormItem label="主题" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.theme" @on-blur='theme'/> <Input style="width:95%" v-model="emailInline.theme" @on-blur='theme'/>
...@@ -327,13 +326,13 @@ ...@@ -327,13 +326,13 @@
<h3 style="text-align:center;margin-top:20px">请输入约面信息</h3> <h3 style="text-align:center;margin-top:20px">请输入约面信息</h3>
<Form :label-width="75" ref="formInline" :rules="ruleInline" :model="formInline" style="margin-top:35px" label-position="left"> <Form :label-width="75" ref="formInline" :rules="ruleInline" :model="formInline" style="margin-top:35px" label-position="left">
<FormItem label="邀约人" style="margin-top:20px" prop="UpdateOWER"> <FormItem label="邀约人" style="margin-top:20px" prop="UpdateOWER">
<Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5"/> <Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5" @on-blur='UpdateOWER'/>
</FormItem> </FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME"> <FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME">
<DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false'></DatePicker> <DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false' @on-blur='UpdateTIME'></DatePicker>
</FormItem> </FormItem>
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'> <FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5"/> <Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-blur='UpdateVIEW'/>
</FormItem> </FormItem>
</Form> </Form>
<!-- <Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox> --> <!-- <Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox> -->
...@@ -344,13 +343,13 @@ ...@@ -344,13 +343,13 @@
</div> </div>
<div class="uploadEnclosure"> <div class="uploadEnclosure">
<p style="height:50px;"> <p style="height:50px;">
<span style="font-size:14px;display:inline-block;margin:20px 0 0 3%">添加附件</span> <span style="font-size:16px;display:inline-block;margin:20px 0 0 3%">添加附件</span>
<span style="margin-left:500px"> <span style="margin-left:500px">
<Upload <Upload
multiple multiple
:before-upload='beforUpload' :before-upload='beforUpload'
action="//jsonplaceholder.typicode.com/posts/"> action="//jsonplaceholder.typicode.com/posts/">
<Button size='small' style="margin:-40px 0 0 90px" type="primary">选择文件</Button> <Button size='small' style="margin:-40px 0 0 95px" type="primary">选择文件</Button>
</Upload> </Upload>
</span> </span>
</p> </p>
...@@ -599,6 +598,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -599,6 +598,7 @@ import ckeditor from '../../components/ckeditor'
//操作处理面试状态 //操作处理面试状态
selectFn1(e,SID,itemsta) { selectFn1(e,SID,itemsta) {
this.toseeid=SID this.toseeid=SID
this.emailId=SID
this.emailIdArr.push(SID) this.emailIdArr.push(SID)
this.isShowTwo=true this.isShowTwo=true
this.ITEMSTA=itemsta this.ITEMSTA=itemsta
...@@ -670,6 +670,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -670,6 +670,7 @@ import ckeditor from '../../components/ckeditor'
}, },
selectFn2(e,SID,itemsta) { selectFn2(e,SID,itemsta) {
this.ITEMSTA=itemsta this.ITEMSTA=itemsta
this.emailId=SID
this.toseeid=SID this.toseeid=SID
// 准备约面 // 准备约面
if(e.target.value==1){ if(e.target.value==1){
...@@ -718,6 +719,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -718,6 +719,7 @@ import ckeditor from '../../components/ckeditor'
}, },
selectFn3(e,SID,itemsta) { selectFn3(e,SID,itemsta) {
this.ITEMSTA=itemsta this.ITEMSTA=itemsta
this.emailId=SID
this.toseeid=SID this.toseeid=SID
// 准备约面 // 准备约面
if(e.target.value==2){ if(e.target.value==2){
...@@ -767,6 +769,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -767,6 +769,7 @@ import ckeditor from '../../components/ckeditor'
selectFn4(e,SID,itemsta) { selectFn4(e,SID,itemsta) {
this.ITEMSTA=itemsta this.ITEMSTA=itemsta
this.toseeid=SID this.toseeid=SID
this.emailId=SID
// 准备约面 // 准备约面
if(e.target.value==2){ if(e.target.value==2){
getEmailMoo().then(res=>{ getEmailMoo().then(res=>{
...@@ -1226,7 +1229,6 @@ import ckeditor from '../../components/ckeditor' ...@@ -1226,7 +1229,6 @@ import ckeditor from '../../components/ckeditor'
}, },
getEmailContentValue(value){ getEmailContentValue(value){
this.temp=value this.temp=value
console.log(this.temp,55555555555)
if(this.isShowTwo==true){ if(this.isShowTwo==true){
this.isShowAll=true this.isShowAll=true
this.interviewIsShow=true this.interviewIsShow=true
...@@ -1243,7 +1245,8 @@ import ckeditor from '../../components/ckeditor' ...@@ -1243,7 +1245,8 @@ import ckeditor from '../../components/ckeditor'
} }
if(value=='TEMP_0001'){ if(value=='TEMP_0001'){
this.interviewIsShow=true this.interviewIsShow=true
this.isShowAll=true}else{ this.isShowAll=true
}else{
this.interviewIsShow=false this.interviewIsShow=false
this.isShowAll=false this.isShowAll=false
} }
...@@ -1307,6 +1310,11 @@ import ckeditor from '../../components/ckeditor' ...@@ -1307,6 +1310,11 @@ import ckeditor from '../../components/ckeditor'
}, },
getEditorValue(value){ getEditorValue(value){
this.emailContent=value this.emailContent=value
if(this.emailContent==''){
this.isDisable=false
}else{
this.isDisable=true
}
}, },
delateFile(index){ delateFile(index){
this.fileList.splice(index,1) this.fileList.splice(index,1)
...@@ -1314,7 +1322,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -1314,7 +1322,7 @@ import ckeditor from '../../components/ckeditor'
}, },
// 确认发送邮件 // 确认发送邮件
confireSendEmail(){ confireSendEmail(){
if(this.emailInline.moo==''||this.emailInline.receiveEmail==''||this.emailInline.theme==''||this.emailInline.UpdateOWER==''||this.emailInline.UpdateVIEW==''||this.emailInline.UpdateTIME==''){ if(this.emailInline.moo==''||this.emailInline.receiveEmail==''||this.emailInline.theme==''||this.formInline.UpdateOWER==''||this.formInline.UpdateVIEW==''||this.formInline.UpdateTIME==''){
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: '请填写完整的信息' desc: '请填写完整的信息'
...@@ -1322,6 +1330,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -1322,6 +1330,7 @@ import ckeditor from '../../components/ckeditor'
return return
} }
if((this.temp=='TEMP_0001'|| this.temp=='TEMP_0005'|| this.temp=='TEMP_0006')&&this.emailId==''){ if((this.temp=='TEMP_0001'|| this.temp=='TEMP_0005'|| this.temp=='TEMP_0006')&&this.emailId==''){
console.log(this.emailId,78777777)
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: '请先选择简历' desc: '请先选择简历'
...@@ -1329,6 +1338,20 @@ import ckeditor from '../../components/ckeditor' ...@@ -1329,6 +1338,20 @@ import ckeditor from '../../components/ckeditor'
return return
} }
if(this.emailInline.copyname!==''&&!(/^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/.test(this.emailInline.copyname))){
this.$Notice.error({
title: '提示',
desc: '请正确填写邮箱地址'
});
return
}
if(!(/^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/.test(this.emailInline.receiveEmail))){
this.$Notice.error({
title: '提示',
desc: '请正确填写邮箱地址'
});
return
}
if((this.emailIdArr.length>1)&&(this.temp=='TEMP_0001'|| this.temp=='TEMP_0005'|| this.temp=='TEMP_0006')){ if((this.emailIdArr.length>1)&&(this.temp=='TEMP_0001'|| this.temp=='TEMP_0005'|| this.temp=='TEMP_0006')){
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
...@@ -1339,8 +1362,6 @@ import ckeditor from '../../components/ckeditor' ...@@ -1339,8 +1362,6 @@ import ckeditor from '../../components/ckeditor'
this.uploadFileList.map(item=>{ this.uploadFileList.map(item=>{
if(item.size/1024 > 10240){ if(item.size/1024 > 10240){
this.isLimitSize=true this.isLimitSize=true
}else{
this.isLimitSize=false
} }
}) })
if(this.isLimitSize==true){ if(this.isLimitSize==true){
...@@ -1360,7 +1381,6 @@ import ckeditor from '../../components/ckeditor' ...@@ -1360,7 +1381,6 @@ import ckeditor from '../../components/ckeditor'
this.attachFileList=this.uploadFileList.length==0?'':this.uploadFileList this.attachFileList=this.uploadFileList.length==0?'':this.uploadFileList
this.flowStatusTT=this.emailFlowStatus==''?'':'TO_SEE' this.flowStatusTT=this.emailFlowStatus==''?'':'TO_SEE'
this.UpdateTIMETwo=this.formInline.UpdateTIME==''?'':this.formInline.UpdateTIME this.UpdateTIMETwo=this.formInline.UpdateTIME==''?'':this.formInline.UpdateTIME
console.log(this.temp,22222222222)
if(this.temp=='TEMP_0001'){ if(this.temp=='TEMP_0001'){
var formData= new FormData() var formData= new FormData()
if(this.attachFileList.length!==0){ if(this.attachFileList.length!==0){
...@@ -1523,7 +1543,10 @@ import ckeditor from '../../components/ckeditor' ...@@ -1523,7 +1543,10 @@ import ckeditor from '../../components/ckeditor'
title: '提示', title: '提示',
desc: '请正确填写邮箱地址' desc: '请正确填写邮箱地址'
}); });
this.isDisable=false
return return
}else{
this.isDisable=true
} }
}, },
copyname(){ copyname(){
...@@ -1532,6 +1555,10 @@ import ckeditor from '../../components/ckeditor' ...@@ -1532,6 +1555,10 @@ import ckeditor from '../../components/ckeditor'
title: '提示', title: '提示',
desc: '请正确填写邮箱地址' desc: '请正确填写邮箱地址'
}); });
this.isDisable=false
return
}else{
this.isDisable=true
} }
}, },
theme(){ theme(){
...@@ -1540,8 +1567,34 @@ import ckeditor from '../../components/ckeditor' ...@@ -1540,8 +1567,34 @@ import ckeditor from '../../components/ckeditor'
title: '提示', title: '提示',
desc: '请填写主题' desc: '请填写主题'
}); });
this.isDisable=false
return
}else{
this.isDisable=true
} }
}, },
UpdateOWER(){
if(this.formInline.UpdateOWER==''){
this.isDisable=false
}else{
this.isDisable=true
}
},
UpdateTIME(){
if(this.formInline.UpdateTIME==''){
this.isDisable=false
}else{
this.isDisable=true
}
},
UpdateVIEW(){
if(this.formInline.UpdateVIEW==''){
this.isDisable=false
}else{
this.isDisable=true
}
}
}, },
mounted(){ mounted(){
this.SouSuo() this.SouSuo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment