Commit 00bb9edf authored by zhangderong's avatar zhangderong

发送邮件测试

parent 6e6486e2
......@@ -411,16 +411,14 @@ import ckeditor from '../../components/ckeditor'
Enclosure:[],//附件
templateContent:'',//模板内容
},
EmailruleInline:{
moo:[
{ required: true, pattern:this.emailMassage==true, message: '请输入正确的手机号', trigger: 'blur' }
]
},
emailMassage:false,
allEmailVilitor:false,
emailContent:'',
emailFlowStatus:'',
fileList:[],
UpdateTIMETwo:'',
uploadFileList:[],
temp:'',
uploadurl:'192.168.28.10',
isShowAll:false,
emailId:'',
......@@ -1161,14 +1159,6 @@ import ckeditor from '../../components/ckeditor'
ownerWorkYears1:this.searchInfo.ownerWorkYears1,
ownerWorkYears2:this.searchInfo.ownerWorkYears2,
}
if(this.searchInfo.ownerWorkYears1>this.searchInfo.ownerWorkYears2){
this.$Message.error('最低年限不能大于最高年限')
return
}
if(this.searchInfo.ownerWorkYears2<this.searchInfo.ownerWorkYears1){
this.$Message.error('最高年限不能小于最小年限')
return
}
window.location.href=`${sapi}/api/excel/output?optSourceCode=${parmars.optSourceCode}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`
},
......@@ -1214,14 +1204,18 @@ import ckeditor from '../../components/ckeditor'
})
},
getEmailContentValue(value){
this.temp=value
if(this.emailIdArr.length>1&&(value=='TEMP_0001'||value=='TEMP_0005'||value=='TEMP_0006')){
this.allEmailVilitor=true
}else{
this.allEmailVilitor=false
this.allEmailVilitor=false
}
if(value=='TEMP_0001'){
this.interviewIsShow=true}else{
this.interviewIsShow=true
this.isShowAll=true
}else{
this.interviewIsShow=false
this.isShowAll=false
}
this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0]
if(value=='TEMP_0001' &&this.emailId==''){
......@@ -1252,10 +1246,10 @@ import ckeditor from '../../components/ckeditor'
this.sad=this.emailInline.templateContent
})
},
beforUpload(aaa){
console.log(aaa,File,aaa.name)
beforUpload(uploadFile){
// console.log(3,aaa)
this.uploadFileList.push(uploadFile)
this.fileList.push(aaa.name)
console.log(this.fileList)
return false
},
// 发送全部内容
......@@ -1272,6 +1266,9 @@ import ckeditor from '../../components/ckeditor'
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.SouSuo(this.pageT)
},
getEditorValue(value){
......@@ -1282,24 +1279,66 @@ import ckeditor from '../../components/ckeditor'
},
// 确认发送邮件
confireSendEmail(){
this.attachFileList=this.fileList.length==0?'':this.fileList
this.attachFileList=this.uploadFileList.length==0?'':this.uploadFileList
this.flowStatusTT=this.emailFlowStatus==''?'':'TO_SEE'
var formData= new FormData()
formData.append('attachFileList',this.attachFileList)
formData.append('resumeId',this.emailId)
formData.append('templateCode',this.emailCode)
formData.append('subject',this.emailInline.theme)
formData.append('toEmail',this.emailInline.receiveEmail)
formData.append('ccEmail',this.emailInline.copyname)
formData.append('emailContent',this.emailContent)
formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW)
formData.append('resumeInterviewVO.seeTime',moment(this.formInline.UpdateTIME).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT)
sendEmail(formData).then(res=>{
console.log(res)
})
this.UpdateTIMETwo=this.formInline.UpdateTIME==''?'':this.formInline.UpdateTIME
if( this.temp=='TEMP_0001'){
var formData= new FormData()
formData.append('attachFileList',this.attachFileList)
formData.append('resumeId',this.emailId)
formData.append('templateCode',this.emailCode)
formData.append('subject',this.emailInline.theme)
formData.append('toEmail',this.emailInline.receiveEmail)
formData.append('ccEmail',this.emailInline.copyname)
formData.append('emailContent',this.emailContent)
formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT)
sendEmail(formData).then(res=>{
if(res.data.success==true){
this.$Notice.success({
title: '提示',
desc: '发送邮件成功'
});
this.emailModal=false
}
if(res.data.success==false){
this.$Notice.error({
title: '提示',
desc: '发送邮件失败'
});
this.emailModal=false
}
})
}else{
var formData= new FormData()
formData.append('attachFileList',this.attachFileList)
formData.append('resumeId',this.emailId)
formData.append('templateCode',this.emailCode)
formData.append('subject',this.emailInline.theme)
formData.append('toEmail',this.emailInline.receiveEmail)
formData.append('ccEmail',this.emailInline.copyname)
formData.append('emailContent',this.emailContent)
formData.append(' flowStatus',this.flowStatusTT)
sendEmail(formData).then(res=>{
if(res.data.success==true){
this.$Notice.success({
title: '提示',
desc: '发送邮件成功'
});
this.emailModal=false
}
if(res.data.success==false){
this.$Notice.error({
title: '提示',
desc: '发送邮件失败'
});
this.emailModal=false
}
})
}
}
},
mounted(){
......
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