55717226 by zhangmeng

大学生需要上传证件照

1 parent d4b1f9db
......@@ -378,6 +378,7 @@ function getMatch(id) {
noPhotoCanSign.value = res.data.noPhotoCanSign
coachOrLeaderFlag.value = res.data.coachOrLeaderFlag
extraform.value = JSON.parse(res.data.participantsInfo)
console.log(11111,extraform.value)
insuranceAgreement.value = res.data.insuranceAgreement
insuranceFlag.value = res.data.insuranceFlag
if (insuranceFlag.value == 1) checked.value = '1'
......@@ -424,17 +425,29 @@ function submitForm() {
}
if (extraform.value && extraform.value.length > 0) {
let needBuchong = false
for (const e of extraform.value) {
if (e.status == '0') {
needBuchong = true
}
}
for (const s of signInfoList.value) {
if (s.extraPersonInfo == null && needBuchong) {
ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information')
tableType.value = 0
return
const student=s.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
if (student){
if (s.extraPersonInfo == null) {
ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information')
tableType.value = 0
return
}
}else{
if (s.extraPersonInfo == null && needBuchong) {
ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information')
tableType.value = 0
return
}
}
}
}
if (signInfoList.value.length == 0) {
......@@ -697,10 +710,20 @@ function goMySign() {
const goPersonInfo = (row) => {
// 完善补充信息
const flag= row.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
const participantsInfoArr=_.cloneDeep(extraform.value)
if (flag){
for (const val of participantsInfoArr) {
if(val.name.indexOf('学生证')>-1||val.name.indexOf('毕业证')>-1){
val.status=0
}
}
}
const params = {
matchId: matchId.value,
title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information',
participantsInfoArr: extraform.value,
participantsInfoArr: flag?participantsInfoArr: extraform.value,
personId: row.personInfo.id,
extraId: row.extraPersonInfo?.id || 0,
isNational: isNational.value
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!