master
lion 2 days ago
parent ab6ba477c2
commit 3bb857e528

@ -530,16 +530,28 @@
if (this.formDataType == 'coderecord') {
this.codeForm.code = this.form.code
this.codeForm.admin_id = parseInt(this.gateAdminId)
// 访
if (Number(this.form.audit_status) === 1) {
this.codeForm.type = 1
} else if (Number(this.form.audit_status) === 3 && this.form.accept_admin_sign) {
this.codeForm.type = 2
} else if (Number(this.form.audit_status) === 4 && Number(this.form.long_time) === 1) {
this.codeForm.type = 1
} else {
this.codeForm.type = 0
// 访 gate_verify_type
const longTerm = Number(this.form.long_time) === 1
let nextType = 0
if (longTerm && this.form.gate_verify_type !== undefined && this.form.gate_verify_type !== null && this.form.gate_verify_type !== '') {
const gvt = Number(this.form.gate_verify_type)
if (gvt === 1) {
nextType = 1
} else if (gvt === 2) {
nextType = this.form.accept_admin_sign ? 2 : 0
}
}
if (nextType === 0) {
// 访
if (Number(this.form.audit_status) === 1) {
nextType = 1
} else if (Number(this.form.audit_status) === 3 && this.form.accept_admin_sign) {
nextType = 2
} else if (Number(this.form.audit_status) === 4 && longTerm) {
nextType = 1
}
}
this.codeForm.type = nextType
if(this.codeForm.type==1){
this.codeForm.person_no.push({name:this.form.name,person_no:''})
for(var k of this.form.follw_people){

Loading…
Cancel
Save