报名
Showing
1 changed file
with
23 additions
and
6 deletions
| ... | @@ -683,9 +683,9 @@ function goTeamSignCn() { | ... | @@ -683,9 +683,9 @@ function goTeamSignCn() { |
| 683 | }) | 683 | }) |
| 684 | } | 684 | } |
| 685 | 685 | ||
| 686 | function goPersonalSign() { | 686 | async function goPersonalSign() { |
| 687 | // 选项目 | 687 | // 选项目 |
| 688 | router.push({ | 688 | await router.push({ |
| 689 | name: 'chooseProject', | 689 | name: 'chooseProject', |
| 690 | query: { | 690 | query: { |
| 691 | matchId: matchId.value | 691 | matchId: matchId.value |
| ... | @@ -873,8 +873,14 @@ async function handelGeRenNext() { | ... | @@ -873,8 +873,14 @@ async function handelGeRenNext() { |
| 873 | } | 873 | } |
| 874 | // 正常报名 | 874 | // 正常报名 |
| 875 | if (res.data == 1) { | 875 | if (res.data == 1) { |
| 876 | if (matchData.value.languageSource != '100') { | ||
| 877 | // 国际赛 | ||
| 876 | const flag = await getCheckOcr({ type: '1' }) | 878 | const flag = await getCheckOcr({ type: '1' }) |
| 877 | if (flag) await goPersonalSign() | 879 | if (flag) await goPersonalSign() |
| 880 | } else { | ||
| 881 | // 国内赛 | ||
| 882 | await goPersonalSign() | ||
| 883 | } | ||
| 878 | } | 884 | } |
| 879 | // 提示 | 885 | // 提示 |
| 880 | if (res.data == 2) { | 886 | if (res.data == 2) { |
| ... | @@ -883,9 +889,17 @@ async function handelGeRenNext() { | ... | @@ -883,9 +889,17 @@ async function handelGeRenNext() { |
| 883 | ? '运动员的WDSF会员号已变更,是否更新?' | 889 | ? '运动员的WDSF会员号已变更,是否更新?' |
| 884 | : 'The athlete`s WDSF membership number has been changed. Should it be updated?' | 890 | : 'The athlete`s WDSF membership number has been changed. Should it be updated?' |
| 885 | ) | 891 | ) |
| 892 | // 删除 | ||
| 886 | await match.preCheckForPerson({ type: '2' }) | 893 | await match.preCheckForPerson({ type: '2' }) |
| 894 | |||
| 895 | if (matchData.value.languageSource != '100') { | ||
| 896 | // 国际赛 | ||
| 887 | const flag = await getCheckOcr({ type: '1' }) | 897 | const flag = await getCheckOcr({ type: '1' }) |
| 888 | if (flag) await goPersonalSign() | 898 | if (flag) await goPersonalSign() |
| 899 | } else { | ||
| 900 | // 国内赛 | ||
| 901 | await goPersonalSign() | ||
| 902 | } | ||
| 889 | } | 903 | } |
| 890 | } | 904 | } |
| 891 | 905 | ||
| ... | @@ -909,8 +923,9 @@ const openPickup = () => { | ... | @@ -909,8 +923,9 @@ const openPickup = () => { |
| 909 | async function handelPreCheckForGroup(fn) { | 923 | async function handelPreCheckForGroup(fn) { |
| 910 | const res = await match.preCheckForGroup(groupId.value, '1') | 924 | const res = await match.preCheckForGroup(groupId.value, '1') |
| 911 | if (res.data == 1 || res.data == 0) { | 925 | if (res.data == 1 || res.data == 0) { |
| 912 | const flag = await getCheckOcr({ type: '2', groupId: groupId.value }) | 926 | // const flag = await getCheckOcr({ type: '2', groupId: groupId.value }) |
| 913 | if (flag) await fn() | 927 | // if (flag) await fn() |
| 928 | await fn() | ||
| 914 | } | 929 | } |
| 915 | if (res.data == 2) { | 930 | if (res.data == 2) { |
| 916 | await proxy.$modal.confirm( | 931 | await proxy.$modal.confirm( |
| ... | @@ -918,8 +933,9 @@ async function handelPreCheckForGroup(fn) { | ... | @@ -918,8 +933,9 @@ async function handelPreCheckForGroup(fn) { |
| 918 | ? '运动员的WDSF会员号已变更,是否更新?' | 933 | ? '运动员的WDSF会员号已变更,是否更新?' |
| 919 | : 'The athlete`s WDSF membership number has been changed. Should it be updated?') | 934 | : 'The athlete`s WDSF membership number has been changed. Should it be updated?') |
| 920 | await match.preCheckForGroup(groupId.value, '2') | 935 | await match.preCheckForGroup(groupId.value, '2') |
| 921 | const flag = await getCheckOcr({ type: '2', groupId: groupId.value }) | 936 | // const flag = await getCheckOcr({ type: '2', groupId: groupId.value }) |
| 922 | if (flag) await fn() | 937 | // if (flag) await fn() |
| 938 | await fn() | ||
| 923 | } | 939 | } |
| 924 | } | 940 | } |
| 925 | 941 | ||
| ... | @@ -928,6 +944,7 @@ async function getCheckOcr(obj) { | ... | @@ -928,6 +944,7 @@ async function getCheckOcr(obj) { |
| 928 | if (!data) { | 944 | if (!data) { |
| 929 | // 人员ocr未通过 | 945 | // 人员ocr未通过 |
| 930 | await proxy.$modal.confirm(language.value == 0 ? '请完善人员信息' : 'Please complete the personnel information') | 946 | await proxy.$modal.confirm(language.value == 0 ? '请完善人员信息' : 'Please complete the personnel information') |
| 947 | // 完善ocr | ||
| 931 | await proxy.$refs['checkAllSportsmanRef'].open(obj.type == 1 ? user.userId : groupId.value, obj.type) | 948 | await proxy.$refs['checkAllSportsmanRef'].open(obj.type == 1 ? user.userId : groupId.value, obj.type) |
| 932 | return false | 949 | return false |
| 933 | } else { | 950 | } else { | ... | ... |
-
Please register or sign in to post a comment