大学生需要上传证件照
Showing
1 changed file
with
24 additions
and
1 deletions
| ... | @@ -378,6 +378,7 @@ function getMatch(id) { | ... | @@ -378,6 +378,7 @@ function getMatch(id) { |
| 378 | noPhotoCanSign.value = res.data.noPhotoCanSign | 378 | noPhotoCanSign.value = res.data.noPhotoCanSign |
| 379 | coachOrLeaderFlag.value = res.data.coachOrLeaderFlag | 379 | coachOrLeaderFlag.value = res.data.coachOrLeaderFlag |
| 380 | extraform.value = JSON.parse(res.data.participantsInfo) | 380 | extraform.value = JSON.parse(res.data.participantsInfo) |
| 381 | console.log(11111,extraform.value) | ||
| 381 | insuranceAgreement.value = res.data.insuranceAgreement | 382 | insuranceAgreement.value = res.data.insuranceAgreement |
| 382 | insuranceFlag.value = res.data.insuranceFlag | 383 | insuranceFlag.value = res.data.insuranceFlag |
| 383 | if (insuranceFlag.value == 1) checked.value = '1' | 384 | if (insuranceFlag.value == 1) checked.value = '1' |
| ... | @@ -424,18 +425,30 @@ function submitForm() { | ... | @@ -424,18 +425,30 @@ function submitForm() { |
| 424 | } | 425 | } |
| 425 | if (extraform.value && extraform.value.length > 0) { | 426 | if (extraform.value && extraform.value.length > 0) { |
| 426 | let needBuchong = false | 427 | let needBuchong = false |
| 428 | |||
| 427 | for (const e of extraform.value) { | 429 | for (const e of extraform.value) { |
| 428 | if (e.status == '0') { | 430 | if (e.status == '0') { |
| 429 | needBuchong = true | 431 | needBuchong = true |
| 430 | } | 432 | } |
| 431 | } | 433 | } |
| 434 | |||
| 432 | for (const s of signInfoList.value) { | 435 | for (const s of signInfoList.value) { |
| 436 | const student=s.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1) | ||
| 437 | if (student){ | ||
| 438 | if (s.extraPersonInfo == null) { | ||
| 439 | ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information') | ||
| 440 | tableType.value = 0 | ||
| 441 | return | ||
| 442 | } | ||
| 443 | }else{ | ||
| 433 | if (s.extraPersonInfo == null && needBuchong) { | 444 | if (s.extraPersonInfo == null && needBuchong) { |
| 434 | ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information') | 445 | ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information') |
| 435 | tableType.value = 0 | 446 | tableType.value = 0 |
| 436 | return | 447 | return |
| 437 | } | 448 | } |
| 438 | } | 449 | } |
| 450 | |||
| 451 | } | ||
| 439 | } | 452 | } |
| 440 | if (signInfoList.value.length == 0) { | 453 | if (signInfoList.value.length == 0) { |
| 441 | if (language.value == 0) { | 454 | if (language.value == 0) { |
| ... | @@ -697,10 +710,20 @@ function goMySign() { | ... | @@ -697,10 +710,20 @@ function goMySign() { |
| 697 | 710 | ||
| 698 | const goPersonInfo = (row) => { | 711 | const goPersonInfo = (row) => { |
| 699 | // 完善补充信息 | 712 | // 完善补充信息 |
| 713 | const flag= row.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1) | ||
| 714 | const participantsInfoArr=_.cloneDeep(extraform.value) | ||
| 715 | |||
| 716 | if (flag){ | ||
| 717 | for (const val of participantsInfoArr) { | ||
| 718 | if(val.name.indexOf('学生证')>-1||val.name.indexOf('毕业证')>-1){ | ||
| 719 | val.status=0 | ||
| 720 | } | ||
| 721 | } | ||
| 722 | } | ||
| 700 | const params = { | 723 | const params = { |
| 701 | matchId: matchId.value, | 724 | matchId: matchId.value, |
| 702 | title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information', | 725 | title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information', |
| 703 | participantsInfoArr: extraform.value, | 726 | participantsInfoArr: flag?participantsInfoArr: extraform.value, |
| 704 | personId: row.personInfo.id, | 727 | personId: row.personInfo.id, |
| 705 | extraId: row.extraPersonInfo?.id || 0, | 728 | extraId: row.extraPersonInfo?.id || 0, |
| 706 | isNational: isNational.value | 729 | isNational: isNational.value | ... | ... |
-
Please register or sign in to post a comment