cfa859f8 by 华明祺

no message

1 parent e3f46817
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="23px"><path fill-rule="evenodd" fill="rgb(146, 154, 160)" d="M1.242,17.158 C2.102,17.158 2.498,17.424 2.998,17.759 C3.558,18.134 4.257,18.601 5.551,18.601 C6.846,18.601 7.543,18.134 8.103,17.759 C8.603,17.424 8.998,17.158 9.857,17.158 C10.718,17.158 11.113,17.424 11.615,17.759 C12.175,18.134 12.873,18.601 14.168,18.601 C15.464,18.601 16.162,18.134 16.722,17.759 C17.224,17.424 17.620,17.158 18.481,17.158 C19.342,17.158 19.738,17.424 20.240,17.759 C20.801,18.134 21.498,18.601 22.794,18.601 C23.191,18.601 23.513,18.278 23.513,17.880 C23.513,17.481 23.191,17.158 22.794,17.158 C21.934,17.158 21.537,16.893 21.036,16.558 C20.474,16.183 19.777,15.715 18.481,15.715 C17.185,15.715 16.487,16.183 15.926,16.558 C15.425,16.893 15.028,17.158 14.168,17.158 C13.307,17.158 12.912,16.893 12.411,16.558 C11.850,16.183 11.152,15.715 9.857,15.715 C8.563,15.715 7.866,16.183 7.306,16.558 C6.806,16.893 6.411,17.158 5.551,17.158 C4.692,17.158 4.296,16.893 3.796,16.558 C3.235,16.183 2.537,15.715 1.242,15.715 C0.846,15.715 0.524,16.038 0.524,16.437 C0.524,16.835 0.846,17.158 1.242,17.158 L1.242,17.158 ZM22.794,21.038 C21.934,21.038 21.537,20.773 21.036,20.438 C20.474,20.063 19.777,19.595 18.481,19.595 C17.185,19.595 16.487,20.063 15.926,20.438 C15.425,20.773 15.028,21.038 14.168,21.038 C13.307,21.038 12.912,20.773 12.411,20.438 C11.850,20.063 11.152,19.595 9.857,19.595 C8.563,19.595 7.866,20.063 7.306,20.438 C6.806,20.773 6.411,21.038 5.551,21.038 C4.692,21.038 4.296,20.773 3.796,20.438 C3.235,20.063 2.537,19.595 1.242,19.595 C0.846,19.595 0.524,19.918 0.524,20.317 C0.524,20.715 0.846,21.038 1.242,21.038 C2.102,21.038 2.498,21.304 2.998,21.638 C3.558,22.014 4.257,22.481 5.551,22.481 C6.846,22.481 7.543,22.014 8.103,21.638 C8.603,21.304 8.998,21.038 9.857,21.038 C10.718,21.038 11.113,21.304 11.615,21.638 C12.175,22.014 12.873,22.481 14.168,22.481 C15.464,22.481 16.162,22.014 16.722,21.638 C17.224,21.304 17.620,21.038 18.481,21.038 C19.342,21.038 19.738,21.304 20.240,21.638 C20.801,22.014 21.498,22.481 22.794,22.481 C23.191,22.481 23.513,22.158 23.513,21.760 C23.513,21.361 23.191,21.038 22.794,21.038 L22.794,21.038 ZM3.527,14.664 C3.924,14.664 3.1000,14.399 3.1000,14.000 L3.1000,9.1000 L13.1000,9.1000 L13.1000,14.000 C13.1000,14.399 14.004,14.664 14.401,14.664 C14.797,14.664 15.000,14.399 15.000,14.000 L15.000,5.000 C15.000,3.286 16.508,2.338 18.215,2.338 C19.922,2.338 21.312,3.734 21.312,5.449 C21.312,5.848 21.633,6.171 22.030,6.171 C22.427,6.171 22.748,5.848 22.748,5.449 C22.748,2.939 20.714,0.896 18.215,0.896 C15.717,0.896 13.1000,2.489 13.1000,5.000 L13.1000,9.000 L3.1000,9.000 L3.1000,5.000 C3.1000,3.286 5.635,2.338 7.342,2.338 C9.049,2.338 10.439,3.734 10.439,5.449 C10.439,5.848 10.761,6.171 11.158,6.171 C11.554,6.171 11.876,5.848 11.876,5.449 C11.873,2.936 9.845,0.899 7.342,0.896 C4.839,0.899 3.002,2.487 3.000,5.000 L3.000,14.000 C3.000,14.399 3.130,14.664 3.527,14.664 L3.527,14.664 Z"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="26px" height="17px"><path fill-rule="evenodd" fill="rgb(146, 154, 160)" d="M23.1000,13.1000 L23.1000,15.000 C23.1000,16.263 22.595,17.002 21.297,17.002 C19.999,17.002 18.1000,16.263 18.1000,15.000 L18.1000,10.1000 L6.1000,10.1000 L6.1000,15.000 C6.1000,16.263 6.004,17.002 4.706,17.002 C3.408,17.002 2.356,15.978 2.356,14.715 L2.356,13.859 C1.979,13.989 1.483,14.002 1.000,13.1000 C0.571,13.998 0.006,13.947 0.006,13.000 L0.006,4.997 C0.006,4.050 0.795,3.282 1.768,3.282 C2.005,3.282 2.197,3.329 2.356,3.412 L2.356,3.282 C2.356,2.676 2.604,2.094 3.044,1.666 C3.485,1.237 4.083,0.996 4.706,0.996 C4.706,0.996 5.465,0.787 6.368,1.666 C6.809,2.094 6.1000,2.394 6.1000,3.000 L6.1000,6.1000 L18.1000,6.1000 L18.1000,3.1000 C18.1000,1.780 19.927,0.996 21.297,0.996 C22.472,0.926 23.952,1.658 23.1000,3.000 L23.1000,3.320 C24.075,3.301 24.152,3.286 24.235,3.282 C25.208,3.282 25.997,4.050 25.997,4.997 L25.997,13.000 C25.997,13.947 24.973,13.1000 23.1000,13.1000 ZM1.768,4.426 C1.768,4.426 1.000,4.382 1.000,5.000 L1.000,12.1000 C0.1000,13.571 1.988,13.387 1.1000,12.1000 L1.1000,5.000 C1.1000,4.684 2.093,4.426 1.768,4.426 ZM6.000,10.1000 L6.000,6.1000 L6.000,3.1000 C6.048,1.941 4.1000,2.000 4.1000,2.000 C4.098,1.853 2.905,2.276 3.000,3.1000 L3.000,5.000 L3.000,12.1000 L3.000,13.1000 C3.148,15.694 4.351,15.1000 4.1000,15.1000 C5.649,15.1000 6.000,14.631 6.000,13.1000 L6.000,10.1000 ZM6.1000,8.000 L6.1000,9.1000 L18.1000,9.1000 L18.1000,8.000 L6.1000,8.000 ZM21.297,2.139 C20.810,2.139 19.1000,2.412 19.1000,3.1000 L19.1000,6.1000 L19.1000,10.1000 L19.1000,15.000 C19.1000,15.631 20.648,15.858 21.297,15.858 C21.946,15.858 23.000,15.631 23.000,15.000 L23.000,12.1000 L23.000,5.000 L23.000,3.1000 C23.162,2.860 22.369,1.955 21.297,2.139 ZM25.000,5.000 C25.000,4.848 24.760,4.700 24.650,4.593 C24.540,4.486 24.391,4.426 24.235,4.426 C24.078,4.426 24.020,4.488 23.1000,4.586 L23.1000,5.000 L23.1000,12.1000 C23.1000,13.176 24.138,13.484 25.000,12.1000 L25.000,5.000 Z"/></svg>
...\ No newline at end of file ...\ No newline at end of file
...@@ -73,6 +73,8 @@ import {getBaseInfoByActiveId} from "@/apiPc/booking"; ...@@ -73,6 +73,8 @@ import {getBaseInfoByActiveId} from "@/apiPc/booking";
73 import * as match from "@/apiPc/match"; 73 import * as match from "@/apiPc/match";
74 import useUserStore from "@/store/modules/user"; 74 import useUserStore from "@/store/modules/user";
75 75
76 const emit = defineEmits(['pickUp'])
77
76 const props = defineProps({ 78 const props = defineProps({
77 matchId: { 79 matchId: {
78 type: String, 80 type: String,
...@@ -147,7 +149,7 @@ function applyInvitation() { ...@@ -147,7 +149,7 @@ function applyInvitation() {
147 const user = useUserStore().user 149 const user = useUserStore().user
148 150
149 function goMedia() { 151 function goMedia() {
150 proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' :'Not yet open') 152 proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open')
151 return; 153 return;
152 154
153 //如果没登录 155 //如果没登录
...@@ -197,6 +199,13 @@ function popRemark(type) { ...@@ -197,6 +199,13 @@ function popRemark(type) {
197 building() 199 building()
198 return 200 return
199 } 201 }
202
203 if (type == '2') {
204 emit("pickUp")
205 return;
206 }
207
208
200 const params = { 209 const params = {
201 matchId: props.matchId, 210 matchId: props.matchId,
202 title: language.value == 0 ? '预订说明' : 'Booking Instructions', 211 title: language.value == 0 ? '预订说明' : 'Booking Instructions',
......
...@@ -22,15 +22,20 @@ ...@@ -22,15 +22,20 @@
22 </div> 22 </div>
23 <div v-if="form.type?.some(v=>v==1)"> 23 <div v-if="form.type?.some(v=>v==1)">
24 <h3 class="leftboderTT">{{ language == 0 ? '接机信息' : 'Pick-up information' }}</h3> 24 <h3 class="leftboderTT">{{ language == 0 ? '接机信息' : 'Pick-up information' }}</h3>
25 <el-form-item :label="language==0?'抵达人员身份':'Role of Person-Arrival'" prop="pickUpBo.standing" 25 <!-- <el-form-item :label="language==0?'抵达人员身份':'Role of Person-Arrival'" prop="pickUpBo.standing"-->
26 required> 26 <!-- required>-->
27 <el-checkbox-group v-model="form.pickUpBo.standing"> 27 <!-- <el-checkbox-group v-model="form.pickUpBo.standing">-->
28 <el-checkbox :label="language==0?'运动员':'Athlete'" name="1"/> 28 <!-- <el-checkbox :label="language==0?'运动员':'Athlete'" name="1"/>-->
29 <el-checkbox :label="language==0?'随队人员':'Accompanying Person'" name="2"/> 29 <!-- <el-checkbox :label="language==0?'随队人员':'Accompanying Person'" name="2"/>-->
30 <el-checkbox :label="language==0?'官员':'Official'" name="3"/> 30 <!-- <el-checkbox :label="language==0?'官员':'Official'" name="3"/>-->
31 <el-checkbox :label="language==0?'其他':'Others'" name="4"/> 31 <!-- <el-checkbox :label="language==0?'其他':'Others'" name="4"/>-->
32 </el-checkbox-group> 32 <!-- </el-checkbox-group>-->
33 <!-- </el-form-item>-->
34
35 <el-form-item :label="language==0?'队伍俱乐部':'Team/Club Name'" prop="pickUpBo.standing" required>
36 <el-input v-model="form.pickUpBo.standing"/>
33 </el-form-item> 37 </el-form-item>
38
34 <el-form-item :label="language==0?'国家/地区':'Country/Region'" prop="pickUpBo.nationalitys" required> 39 <el-form-item :label="language==0?'国家/地区':'Country/Region'" prop="pickUpBo.nationalitys" required>
35 <el-select v-model="form.pickUpBo.nationalitys" filterable multiple style="width: 100%;"> 40 <el-select v-model="form.pickUpBo.nationalitys" filterable multiple style="width: 100%;">
36 <el-option v-for="item in countrys" 41 <el-option v-for="item in countrys"
...@@ -97,23 +102,35 @@ ...@@ -97,23 +102,35 @@
97 :is-show-tip="false" 102 :is-show-tip="false"
98 :limit="1"/> 103 :limit="1"/>
99 </el-form-item> 104 </el-form-item>
105
106 <el-form-item :label="language==0?'酒店预订单':'Hotel Reservation'" prop="pickUpBo.hotleFile" required>
107 <image-upload v-model="form.pickUpBo.hotleFile" :button-text="language==0?'上传':'Upload'"
108 :is-show-tip="false"
109 :limit="1"/>
110 </el-form-item>
111
100 </div> 112 </div>
101 113
102 <div v-if="form.type?.some(v=>v==2)"> 114 <div v-if="form.type?.some(v=>v==2)">
103 <!-- <el-form-item :label="language == 0 ? '送机信息' : 'Delivery information' ">--> 115 <!-- <el-form-item :label="language == 0 ? '送机信息' : 'Delivery information' ">-->
104 <!-- </el-form-item>--> 116 <!-- </el-form-item>-->
105 <h3 class="leftboderTT">{{ language == 0 ? '送机信息' : 'Delivery information' }}</h3> 117 <h3 class="leftboderTT">{{ language == 0 ? '送机信息' : 'Delivery information' }}</h3>
106 <el-form-item 118 <!-- <el-form-item-->
107 :label="language==0?'离会人员身份':'Role of Person-Departure'" 119 <!-- :label="language==0?'离会人员身份':'Role of Person-Departure'"-->
108 prop="downOffBo.standing" required> 120 <!-- prop="downOffBo.standing" required>-->
109 <!-- <el-input v-model="form.downOffBo.standing"/>--> 121 <!-- &lt;!&ndash; <el-input v-model="form.downOffBo.standing"/>&ndash;&gt;-->
110 <el-checkbox-group v-model="form.downOffBo.standing"> 122 <!-- <el-checkbox-group v-model="form.downOffBo.standing">-->
111 <el-checkbox :label="language==0?'运动员':'Athlete'" name="1"/> 123 <!-- <el-checkbox :label="language==0?'运动员':'Athlete'" name="1"/>-->
112 <el-checkbox :label="language==0?'随队人员':'Accompanying Person'" name="2"/> 124 <!-- <el-checkbox :label="language==0?'随队人员':'Accompanying Person'" name="2"/>-->
113 <el-checkbox :label="language==0?'官员':'Official'" name="3"/> 125 <!-- <el-checkbox :label="language==0?'官员':'Official'" name="3"/>-->
114 <el-checkbox :label="language==0?'其他':'Others'" name="4"/> 126 <!-- <el-checkbox :label="language==0?'其他':'Others'" name="4"/>-->
115 </el-checkbox-group> 127 <!-- </el-checkbox-group>-->
128 <!-- </el-form-item>-->
129
130 <el-form-item :label="language==0?'队伍俱乐部':'Team/Club Name'" prop="pickUpBo.standing" required>
131 <el-input v-model="form.pickUpBo.standing"/>
116 </el-form-item> 132 </el-form-item>
133
117 <el-form-item :label="language==0?'国家/地区':'Country/Region'" prop="downOffBo.nationalitys" required> 134 <el-form-item :label="language==0?'国家/地区':'Country/Region'" prop="downOffBo.nationalitys" required>
118 <el-select v-model="form.downOffBo.nationalitys" filterable multiple style="width: 100%;"> 135 <el-select v-model="form.downOffBo.nationalitys" filterable multiple style="width: 100%;">
119 <el-option v-for="item in countrys" 136 <el-option v-for="item in countrys"
...@@ -181,6 +198,13 @@ ...@@ -181,6 +198,13 @@
181 :is-show-tip="false" 198 :is-show-tip="false"
182 :limit="1"/> 199 :limit="1"/>
183 </el-form-item> 200 </el-form-item>
201
202 <el-form-item :label="language==0?'酒店预订单':'Hotel Reservation'" prop="pickUpBo.hotleFile" required>
203 <image-upload v-model="form.pickUpBo.hotleFile" :button-text="language==0?'上传':'Upload'"
204 :is-show-tip="false"
205 :limit="1"/>
206 </el-form-item>
207
184 </div> 208 </div>
185 209
186 <div class="text-center"> 210 <div class="text-center">
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
108 </div> 108 </div>
109 109
110 <div class="box"> 110 <div class="box">
111 <HomeQuick :match-id="matchData?.id" :cpt-name="matchData?.name"/> 111 <HomeQuick :match-id="matchData?.id" :cpt-name="matchData?.name" @pick-up="handlePickup"/>
112 </div> 112 </div>
113 113
114 <div id="part0" class="box part"> 114 <div id="part0" class="box part">
...@@ -530,6 +530,7 @@ const gopicliveUrl = () => { ...@@ -530,6 +530,7 @@ const gopicliveUrl = () => {
530 ElMessage.warning('暂无直播') 530 ElMessage.warning('暂无直播')
531 } 531 }
532 } 532 }
533
533 </script> 534 </script>
534 535
535 <style scoped lang="scss"> 536 <style scoped lang="scss">
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
93 </div> 93 </div>
94 94
95 <div class="box"> 95 <div class="box">
96 <HomeQuick :match-id="matchData?.id" :cpt-name="matchData?.name"/> 96 <HomeQuick :match-id="matchData?.id" :cpt-name="matchData?.name" @pick-up="handlePickup"/>
97 </div> 97 </div>
98 98
99 99
......
...@@ -38,12 +38,15 @@ ...@@ -38,12 +38,15 @@
38 <el-option :label="language==0?'TE/PU(外办)邀请函':'TE/PU Invitation'" value="2"/> 38 <el-option :label="language==0?'TE/PU(外办)邀请函':'TE/PU Invitation'" value="2"/>
39 </el-select> 39 </el-select>
40 </el-form-item> 40 </el-form-item>
41 <el-form-item v-if="form.invitationType=='2'" label="Proof of Employment" required prop="invitationFile"> 41 <el-form-item v-if="form.invitationType=='2'" label="Proof of Employment" required prop="invitationFileArr">
42 <el-text type="danger">Proof of Employment(Note: This document must be issued by the invitee’s association and must bear an official stamp or signature.)</el-text> 42 <el-text type="danger">Proof of Employment(Note: This document must be issued by the invitee’s association and
43 must bear an official stamp or signature.)
44 </el-text>
43 <br/> 45 <br/>
44 <file-upload v-model="form.invitationFile" :is-show-tip="false" :limit="1"></file-upload> 46 <file-upload v-model="form.invitationFileArr" :is-show-tip="false" :limit="1"></file-upload>
45 </el-form-item> 47 </el-form-item>
46 <el-form-item :label="language==0?'是否需要中文邀请函':'Do you need a Chinese invitation?'" required prop="chinese"> 48 <el-form-item :label="language==0?'是否需要中文邀请函':'Do you need a Chinese invitation?'" required
49 prop="chinese">
47 <el-radio-group v-model="form.chinese"> 50 <el-radio-group v-model="form.chinese">
48 <el-radio :value="1">{{ language == 0 ? '是' : 'Yes' }}</el-radio> 51 <el-radio :value="1">{{ language == 0 ? '是' : 'Yes' }}</el-radio>
49 <el-radio :value="0">{{ language == 0 ? '否' : 'No' }}</el-radio> 52 <el-radio :value="0">{{ language == 0 ? '否' : 'No' }}</el-radio>
...@@ -53,7 +56,7 @@ ...@@ -53,7 +56,7 @@
53 <!-- 一般信息--> 56 <!-- 一般信息-->
54 <el-form-item :label="language==0?'国家/地区协会名':'MNA/Team Name'" :required="form.applicatType==1" 57 <el-form-item :label="language==0?'国家/地区协会名':'MNA/Team Name'" :required="form.applicatType==1"
55 prop="associationCode"> 58 prop="associationCode">
56 <el-select v-model="form.associationCode" filterable> 59 <el-select v-model="form.associationCode" filterable clearable>
57 <el-option v-for="item in mnaList" :key="item.code" :label="language==0?item.nameCn:item.nameEn" 60 <el-option v-for="item in mnaList" :key="item.code" :label="language==0?item.nameCn:item.nameEn"
58 :value="item.code"/> 61 :value="item.code"/>
59 </el-select> 62 </el-select>
...@@ -63,7 +66,8 @@ ...@@ -63,7 +66,8 @@
63 <el-input v-model="form.associationAddress"/> 66 <el-input v-model="form.associationAddress"/>
64 </el-form-item> 67 </el-form-item>
65 <el-form-item :label="language==0?'邮箱':'Contact Email'" required prop="email"> 68 <el-form-item :label="language==0?'邮箱':'Contact Email'" required prop="email">
66 <el-text type="danger">Note: Notifications from the organizing committee will be sent to this email address.</el-text> 69 <el-text type="danger">Note: Notifications from the organizing committee will be sent to this email address.
70 </el-text>
67 <el-input v-model="form.email" type="email"> 71 <el-input v-model="form.email" type="email">
68 <template #append> 72 <template #append>
69 <el-button @click="sendEmail" v-loading="codeloading"> 73 <el-button @click="sendEmail" v-loading="codeloading">
...@@ -71,7 +75,7 @@ ...@@ -71,7 +75,7 @@
71 </el-button> 75 </el-button>
72 </template> 76 </template>
73 </el-input> 77 </el-input>
74 <!-- <div class="tip"></div>--> 78 <!-- <div class="tip"></div>-->
75 </el-form-item> 79 </el-form-item>
76 <el-form-item prop="code" required> 80 <el-form-item prop="code" required>
77 <el-input placeholder="Email verification code" v-model="form.code"/> 81 <el-input placeholder="Email verification code" v-model="form.code"/>
...@@ -92,6 +96,8 @@ ...@@ -92,6 +96,8 @@
92 <el-input v-model="form.phone"/> 96 <el-input v-model="form.phone"/>
93 </el-form-item> 97 </el-form-item>
94 <el-form-item :label="language==0?'签证办理中国大使馆':'Chinese Embassy Visas Office'" required prop="embassy"> 98 <el-form-item :label="language==0?'签证办理中国大使馆':'Chinese Embassy Visas Office'" required prop="embassy">
99 <el-text type="danger">Ex:EMBASSY OF THE PEOPLE'S REPUBLIC OFCHINA IN THE ISLAMIC REPUBLIC OF PAKISTAN
100 </el-text>
95 <el-input v-model="form.embassy"/> 101 <el-input v-model="form.embassy"/>
96 </el-form-item> 102 </el-form-item>
97 <el-form-item :label="language==0?'中国大使馆邮箱':'Chinese Embassy Email'" required prop="embassyEmail"> 103 <el-form-item :label="language==0?'中国大使馆邮箱':'Chinese Embassy Email'" required prop="embassyEmail">
...@@ -101,7 +107,9 @@ ...@@ -101,7 +107,9 @@
101 <!--上传护照,多张--> 107 <!--上传护照,多张-->
102 <div class="cptVisaInfoBosTable"> 108 <div class="cptVisaInfoBosTable">
103 <el-form-item :label="language==0?'有效证件':'Passport Copy'" required> 109 <el-form-item :label="language==0?'有效证件':'Passport Copy'" required>
104 <el-text type="danger">Please ensure that the uploaded passport image is clear, complete, and free from glare or reflections.</el-text> 110 <el-text type="danger">Please ensure that the uploaded passport image is clear, complete, and free from
111 glare or reflections.
112 </el-text>
105 <ImageUpload v-model="form.passportCopy" :is-show-tip="false" :limit="20" 113 <ImageUpload v-model="form.passportCopy" :is-show-tip="false" :limit="20"
106 :action="'/league/visa/getPersonInfoFromCert/3'" 114 :action="'/league/visa/getPersonInfoFromCert/3'"
107 paramName="pic" list-type="text" :show-file-list="false" 115 paramName="pic" list-type="text" :show-file-list="false"
...@@ -129,7 +137,19 @@ ...@@ -129,7 +137,19 @@
129 </div> 137 </div>
130 </template> 138 </template>
131 <template #default="scope"> 139 <template #default="scope">
132 <el-input v-model="scope.row.position" size="small"/> 140 <el-select v-model="scope.row.position" size="small">
141 <el-option label="Head Of Team" value="Head Of Team"/>
142 <el-option label="Head Coach" value="Head Coach"/>
143 <el-option label="Manager" value="Manager"/>
144 <el-option label="Coach" value="Coach"/>
145 <el-option label="Trainer" value="Trainer"/>
146 <el-option label="Team Doctor" value="Team Doctor"/>
147 <el-option label="Team Physiotherepaist" value="Team Physiotherepaist"/>
148 <el-option label="Competitor" value="Competitor"/>
149 <el-option label="MNA Official" value="MNA Official"/>
150 <el-option label="MNA Guest" value="MNA Guest"/>
151 </el-select>
152
133 </template> 153 </template>
134 </el-table-column> 154 </el-table-column>
135 <el-table-column prop="lastName" :label="'lastName'" min-width="100"> 155 <el-table-column prop="lastName" :label="'lastName'" min-width="100">
...@@ -334,19 +354,19 @@ function getMNAList() { ...@@ -334,19 +354,19 @@ function getMNAList() {
334 const submit = () => { 354 const submit = () => {
335 console.log(form.value) 355 console.log(form.value)
336 if (form.value.email?.indexOf('@') == -1) { 356 if (form.value.email?.indexOf('@') == -1) {
337 ElMessage.warning(language.value == 0?'请填写正确的邮箱':'Invalid Emaill Address!') 357 ElMessage.warning(language.value == 0 ? '请填写正确的邮箱' : 'Invalid Emaill Address!')
338 return 358 return
339 } 359 }
340 if(form.value.applicatType==5 && !form.value.remarks){ 360 if (form.value.applicatType == 5 && !form.value.remarks) {
341 ElMessage.warning('Please specify Applicant Type') 361 ElMessage.warning('Please specify Applicant Type')
342 return 362 return
343 } 363 }
344 if(form.value.position==3 && !form.value.remarks1){ 364 if (form.value.position == 3 && !form.value.remarks1) {
345 ElMessage.warning('Please specify position') 365 ElMessage.warning('Please specify position')
346 return 366 return
347 } 367 }
348 for (let row of form.value.cptVisaInfoBos){ 368 for (let row of form.value.cptVisaInfoBos) {
349 if(!row.position){ 369 if (!row.position) {
350 ElMessage.warning(`Please specify ${row.fristName}'s position`) 370 ElMessage.warning(`Please specify ${row.fristName}'s position`)
351 return 371 return
352 } 372 }
...@@ -355,6 +375,10 @@ const submit = () => { ...@@ -355,6 +375,10 @@ const submit = () => {
355 if (form.value.files && Array.isArray(form.value.files)) { 375 if (form.value.files && Array.isArray(form.value.files)) {
356 form.value.files = form.value.files[0]?.url 376 form.value.files = form.value.files[0]?.url
357 } 377 }
378 if (form.value.invitationFileArr) {
379 form.value.invitationFile = JSON.stringify(form.value.invitationFileArr)
380 }
381
358 proxy.$refs.iformRef.validate(valid => { 382 proxy.$refs.iformRef.validate(valid => {
359 if (valid) { 383 if (valid) {
360 ElMessageBox.confirm( 384 ElMessageBox.confirm(
...@@ -366,8 +390,8 @@ const submit = () => { ...@@ -366,8 +390,8 @@ const submit = () => {
366 }).then(() => { 390 }).then(() => {
367 form.value.cptId = cptId.value 391 form.value.cptId = cptId.value
368 addInvitation(form.value).then((res) => { 392 addInvitation(form.value).then((res) => {
369 if(res.data==-200){ 393 if (res.data == -200) {
370 ElMessage.error(language.value == 0 ? '邮箱验证码不正确':'Invalid email verification code') 394 ElMessage.error(language.value == 0 ? '邮箱验证码不正确' : 'Invalid email verification code')
371 } else { 395 } else {
372 ElMessage.success(language.value == 0 ? '提交成功' : 'Successfully!') 396 ElMessage.success(language.value == 0 ? '提交成功' : 'Successfully!')
373 showR.value = true 397 showR.value = true
...@@ -399,19 +423,20 @@ const getPassportInfo = (res) => { ...@@ -399,19 +423,20 @@ const getPassportInfo = (res) => {
399 } 423 }
400 424
401 function delPassportInfo(row) { 425 function delPassportInfo(row) {
402 console.log(row,form.value.cptVisaInfoBos) 426 console.log(row, form.value.cptVisaInfoBos)
403 if(form.value.cptVisaInfoBos.length==1){ 427 if (form.value.cptVisaInfoBos.length == 1) {
404 form.value.cptVisaInfoBos = [] 428 form.value.cptVisaInfoBos = []
405 }else { 429 } else {
406 for(let n of form.value.cptVisaInfoBos){ 430 for (let n of form.value.cptVisaInfoBos) {
407 if(n.passportNo==row.passportNo){ 431 if (n.passportNo == row.passportNo) {
408 form.value.cptVisaInfoBos.splice(form.value.cptVisaInfoBos.indexOf(n),1) 432 form.value.cptVisaInfoBos.splice(form.value.cptVisaInfoBos.indexOf(n), 1)
409 } 433 }
410 } 434 }
411 } 435 }
412 } 436 }
437
413 function sendEmail() { 438 function sendEmail() {
414 if(!form.value.email){ 439 if (!form.value.email) {
415 ElMessage.error(language.value == 0 ? '请输入邮箱' : 'Please enter contact Email') 440 ElMessage.error(language.value == 0 ? '请输入邮箱' : 'Please enter contact Email')
416 return 441 return
417 } 442 }
...@@ -420,11 +445,11 @@ function sendEmail() { ...@@ -420,11 +445,11 @@ function sendEmail() {
420 return 445 return
421 } 446 }
422 codeloading.value = true 447 codeloading.value = true
423 sendVisaCode({email:form.value.email}).then(res=>{ 448 sendVisaCode({email: form.value.email}).then(res => {
424 codeloading.value = false 449 codeloading.value = false
425 if(res.code == 200){ 450 if (res.code == 200) {
426 ElMessage.success(language.value == 0 ? '发送成功,请前往邮箱查看' : 'Send success, please check your email') 451 ElMessage.success(language.value == 0 ? '发送成功,请前往邮箱查看' : 'Send success, please check your email')
427 }else{ 452 } else {
428 ElMessage.error(res.msg) 453 ElMessage.error(res.msg)
429 } 454 }
430 }) 455 })
...@@ -432,7 +457,10 @@ function sendEmail() { ...@@ -432,7 +457,10 @@ function sendEmail() {
432 </script> 457 </script>
433 458
434 <style scoped lang="scss"> 459 <style scoped lang="scss">
435 .red{color: red!important;} 460 .red {
461 color: red !important;
462 }
463
436 :deep(.el-upload--picture-card) { 464 :deep(.el-upload--picture-card) {
437 --el-upload-picture-card-size: 60px; 465 --el-upload-picture-card-size: 60px;
438 } 466 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!