kun 19/10/14 22:32

This commit is contained in:
沈学坤
2019-10-14 22:32:33 +08:00
parent 205a6b40a6
commit 78a3bc2751
10 changed files with 185 additions and 64 deletions

View File

@@ -462,7 +462,7 @@ export default {
},
/** 下一步 */
btn(index) {
let regd = /(\d3,4|\d{3,4}-|\s)?\d{8}/
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}$/
let s = this.sub;
s = index;
@@ -536,6 +536,10 @@ export default {
},
/** 保存和提交 */
submit(index) {
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.sub == 1) {
if (this.prespo == '' || this.respoadd == '' || this.respopcode == '' ||
this.respomail == '' || this.respopname == '' ||
@@ -548,6 +552,12 @@ export default {
) {
alert('以上内容不可为空!')
return
} else if (!regd.test(this.respoophone) || !regd.test(this.respocophone)) {
alert('请填写正确的电话号码!')
return
} if (!regs.test(this.respoptel) || !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return
} else if (this.thff == false) {
alert('请同意:申报单位承诺')
return
@@ -592,7 +602,7 @@ export default {
plcode: _this.plcode,
pname: _this.pname,
poster: _this.poster,
poffice_tel: _this.poffice_tel,
respoophone: _this.poffice_tel,
aphone: _this.aphone,
cname: _this.cname,
cpost: _this.cpost,