kun 191127 00:27

This commit is contained in:
沈学坤
2019-11-27 00:27:22 +08:00
parent 9d36040725
commit e07dcffaad
14 changed files with 159 additions and 73 deletions

View File

@@ -844,7 +844,50 @@ export default {
btn (index) {
let s = this.sub
s = index
this.sub = s
// this.sub = s;
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
if (
this.name === '' ||
this.company === '' ||
this.tid === '' ||
this.rid === '' ||
this.first_level === '' ||
this.secondary === '' ||
this.fieldeara === '' ||
this.attribute === '' ||
this.aterm === '' ||
this.fterm === '' ||
this.postaladdress === '' ||
this.postalcode === '' ||
this.pmail === '' ||
this.plegal === '' ||
this.plcode === '' ||
this.pname === '' ||
this.poster === '' ||
this.poffice_tel === '' ||
this.aphone === '' ||
this.cname === '' ||
this.cpost === '' ||
this.coffice_tel === '' ||
this.cphone === ''
) {
alert('请认真核对填写内容完整性!')
return false
} else if (this.aterm > this.fterm) {
alert('截止日期应比申请日期晚')
return false
} else if (!regd.test(this.poffice_tel) || !regd.test(this.coffice_tel)) {
alert('请填写正确的电话号码!')
return false
} else if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
alert('请填写正确的手机号码!')
return false
} else {
this.sub = s
}
},
/** 保存和提交 */
submit (index) {
@@ -867,9 +910,9 @@ export default {
this.funds = this.initialText
this.proimages = [...this.fileLists, ...this.picture]
if (this.subStatus === 1) {
if (
this.name === '' ||
// if (this.subStatus === 1) {
if (
this.name === '' ||
this.company === '' ||
this.tid === '' ||
this.rid === '' ||
@@ -912,55 +955,55 @@ export default {
this.prodemofg === '' ||
this.prodemotwo === '' ||
this.funds === ''
) {
alert('请认真核对填写内容完整性!')
return false
} else if (this.aterm > this.fterm) {
alert('截止日期应比申请日期晚')
return false
} else if (
!regd.test(this.poffice_tel) ||
) {
alert('请认真核对填写内容完整性!')
return false
} else if (this.aterm > this.fterm) {
alert('截止日期应比申请日期晚')
return false
} else if (
!regd.test(this.poffice_tel) ||
!regd.test(this.coffice_tel)
) {
alert('请填写正确的电话号码!')
return false
} else if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
alert('请填写正确的手机号码!')
return false
} else if (
!regd.test(this.respoophone) ||
) {
alert('请填写正确的电话号码!')
return false
} else if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
alert('请填写正确的手机号码!')
return false
} else if (
!regd.test(this.respoophone) ||
!regd.test(this.respocophone)
) {
alert('请填写正确的电话号码!')
return false
} else if (this.thff === false) {
alert('请同意:申报单位承诺')
return false
} else if (this.proimages.length === 0) {
alert('未上传文件!')
return false
}
if (this.respoptel !== '' && !regs.test(this.respoptel)) {
alert('请填写正确的手机号码!')
return false
}
if (this.respoctel !== '' && !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return false
}
) {
alert('请填写正确的电话号码!')
return false
} else if (this.thff === false) {
alert('请同意:申报单位承诺')
return false
} else if (this.proimages.length === 0) {
alert('未上传文件!')
return false
}
if (this.respoptel !== '' && !regs.test(this.respoptel)) {
alert('请填写正确的手机号码!')
return false
}
if (this.respoctel !== '' && !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return false
}
// }
let val = this.proimages
val = JSON.stringify(this.proimages)
this.proimages = val
if (this.subStatus === 1) {
if (this.proimages === '') {
alert('文件还未上传!')
return false
}
// if (this.subStatus === 1) {
if (this.proimages === '') {
alert('文件还未上传!')
return false
}
// }
this.popupStatus = true
},
@@ -1211,8 +1254,10 @@ export default {
<style lang="scss" scoped>
.rich {
z-index: 10;
width: 100%;
margin: 30px auto 0px;
height: 320px;
}
.img-img {
margin-top: 25px;