|
|
@ -108,6 +108,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState, mapMutations } from 'vuex' |
|
|
|
import { mapState, mapMutations } from 'vuex' |
|
|
|
|
|
|
|
import { vername, vermob } from '@/utils/verify.js' |
|
|
|
|
|
|
|
import { addOperation } from '@/api/http'; |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { phoneListen, mailBoxListen, checkRequired, myValidate } from '@/utils/utilFunction.js' |
|
|
|
import { phoneListen, mailBoxListen, checkRequired, myValidate } from '@/utils/utilFunction.js' |
|
|
|
|
|
|
|
|
|
|
@ -175,36 +177,60 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
//提交个人用户信息 |
|
|
|
//提交个人用户信息 |
|
|
|
submitForm(){ |
|
|
|
submitForm(){ |
|
|
|
let formExternalData = sessionStorage.getItem('formExternalData') |
|
|
|
let formExternalData = sessionStorage.getItem('formExternalData') |
|
|
|
let consumerClientDragList = JSON.parse(formExternalData); |
|
|
|
let consumerClientDragList = JSON.parse(formExternalData); |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.visible = true; |
|
|
|
this.visible = true; |
|
|
|
let formList = []; |
|
|
|
let formList = []; |
|
|
|
if(this.form.nationality){ |
|
|
|
if(this.form.sex){ |
|
|
|
formList.push({ |
|
|
|
formList.push({ |
|
|
|
"emptyOne": "", |
|
|
|
"answerId":'43', |
|
|
|
"emptyTwo": "", |
|
|
|
"emptyOne": "1", |
|
|
|
"operationIds": "0,5,25,33,45", |
|
|
|
"emptyTwo": this.form.sex, |
|
|
|
"type": "" |
|
|
|
"operationIds": "0,5,25,33,43",//性别 |
|
|
|
}) |
|
|
|
"type": "1" |
|
|
|
} |
|
|
|
}) |
|
|
|
if(this.form.mailbox){ |
|
|
|
} |
|
|
|
formList.push({ |
|
|
|
if(this.form.nationality){ |
|
|
|
"emptyOne": "", |
|
|
|
formList.push({ |
|
|
|
"emptyTwo": "", |
|
|
|
"answerId":'45', |
|
|
|
"operationIds": "0,5,25,33,46", |
|
|
|
"emptyOne": "3", |
|
|
|
"type": "" |
|
|
|
"emptyTwo": this.form.nationality, |
|
|
|
}) |
|
|
|
"operationIds": "0,5,25,33,45",//民族 |
|
|
|
} |
|
|
|
"type": "1" |
|
|
|
formList.push( |
|
|
|
}) |
|
|
|
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,40", "type": ""}, |
|
|
|
} |
|
|
|
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""}, |
|
|
|
if(this.form.mailbox){ |
|
|
|
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,42", "type": ""}, |
|
|
|
formList.push({ |
|
|
|
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,44", "type": ""}, |
|
|
|
"answerId":'46', |
|
|
|
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,47", "type": ""} |
|
|
|
"emptyOne": "4", |
|
|
|
); |
|
|
|
"emptyTwo": this.form.mailbox, |
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
"operationIds": "0,5,25,33,46",//通讯地址 |
|
|
|
}, this.$refs)); |
|
|
|
"type": "3" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
formList.push( |
|
|
|
|
|
|
|
{"answerId":'40',"emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "0,5,25,33,40", "type": "1"},//证件类型 |
|
|
|
|
|
|
|
{"answerId":'46',"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""},//证件号码 |
|
|
|
|
|
|
|
{"answerId":'42',"emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,25,33,42", "type": "3"},//客户姓名 |
|
|
|
|
|
|
|
{"answerId":'44',"emptyOne": "2", "emptyTwo": this.form.birthday, "operationIds": "0,5,25,33,44", "type": ""},//出生日期 |
|
|
|
|
|
|
|
{"answerId":'47',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "0,5,25,33,47", "type": "3"}//联系电话 |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
let params= { |
|
|
|
|
|
|
|
parentId:'0,5,25,33', |
|
|
|
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
|
|
|
projectId:+projectId, |
|
|
|
|
|
|
|
startTime:startTime, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
message: '提交成功', |
|
|
|
|
|
|
|
type: 'success' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} , this.$refs)); |
|
|
|
|
|
|
|
// |
|
|
|
// if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) { |
|
|
|
// if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) { |
|
|
|
// this.visible = true; |
|
|
|
// this.visible = true; |
|
|
|
// let formList = []; |
|
|
|
// let formList = []; |
|
|
@ -236,7 +262,7 @@ export default { |
|
|
|
// this.$message.error('有必填项为填哦~'); |
|
|
|
// this.$message.error('有必填项为填哦~'); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
popSure(){ |
|
|
|
popSure(){ |
|
|
|
this.success&&(this.visible = false) |
|
|
|
this.success&&(this.visible = false) |
|
|
|
this.authorization&&(this.success=true) |
|
|
|
this.authorization&&(this.success=true) |
|
|
|