affixInvitationDialog.vue
5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<template>
<el-dialog
v-model="show"
append-to-body center
class="pcloginpop"
destroy-on-close
style="min-width: 350px;"
>
<div>
<el-descriptions border>
<el-descriptions-item label="No.">{{ form.id }}</el-descriptions-item>
<el-descriptions-item label="Applicant Type">
<span v-if="form.applicatType=1">MNA/Team</span>
<span v-if="form.applicatType=2">Technical Official (TD/CSB/IR)</span>
<span v-if="form.applicatType=3">WT Team</span>
<span v-if="form.applicatType=5">Other(not listed above)</span>
<span>{{ form.remarks }}</span>
</el-descriptions-item>
<el-descriptions-item label="Invitation Type">
{{ form.invitationType == 1 ? 'Visa lnvitation' : 'TE/PU letter' }}
</el-descriptions-item>
<el-descriptions-item label="MNA/Team Name">
{{ associationCodeFind(form.associationCode) }}
</el-descriptions-item>
<el-descriptions-item label="MNA/Team Address">{{ form.associationAddress }}</el-descriptions-item>
<el-descriptions-item label="Contact Email">{{ form.email }}</el-descriptions-item>
<el-descriptions-item label="Full Name">{{ form.fullName }}</el-descriptions-item>
<el-descriptions-item label="Position">
<span v-if="form.remarks1">form.remarks1</span>
<span v-else>
<sapn v-if="form.position==0">Manager</sapn>
<sapn v-if="form.position==1">Team leader</sapn>
<sapn v-if="form.position==2">Coach</sapn>
<sapn v-if="form.position==3">Other</sapn>
</span>
</el-descriptions-item>
<el-descriptions-item label="Phone">{{ form.phone }}</el-descriptions-item>
<el-descriptions-item label="Chinese Embassy Visa Office">{{ form.embassy }}</el-descriptions-item>
<el-descriptions-item label="Chinese Embassy Email">{{ form.embassyEmail }}</el-descriptions-item>
<el-descriptions-item label="Additional Documents">
<el-link v-if="form.files" :href="fillImgUrl(form.files)" target="_blank" type="primary">
additional documents
</el-link>
</el-descriptions-item>
<el-descriptions-item label="Remarks">{{ form.remarks3 }}</el-descriptions-item>
</el-descriptions>
<!-- <el-divider></el-divider>-->
<br/>
<div v-if="form.cptVisaInfoBos?.length>0">
<el-table :data="form.cptVisaInfoBos" border stripe>
<el-table-column label="Passport Copy" prop="passportCopy">
<template #default="{row}">
<el-image
:preview-src-list="[fillImgUrl(row.passportCopy)]"
:preview-teleported="true"
:src="fillImgUrl(row.passportCopy)"
style="width: 50px;height: 70px"
/>
</template>
</el-table-column>
<el-table-column align="center" label="Date OF Entrye" prop="entryDate"/>
<el-table-column align="center" label="Date OF Departure" prop="departureDate"/>
<el-table-column align="center" label="position" prop="position"/>
<el-table-column align="center" label="lastName" prop="lastName"/>
<el-table-column align="center" label="firstName" prop="fristName"/>
<el-table-column align="center" label="Gender" prop="sex">
<template #default="{row}">
{{ row.sex == '0' ? 'M' : 'F' }}
</template>
</el-table-column>
<el-table-column align="center" label="nationality" prop="nationality"/>
<el-table-column align="center" label="birthday" prop="birthday"/>
<el-table-column align="center" label="Passport No." prop="passportNo"/>
<el-table-column align="center" label="DATE OF ISSUE" prop="issueDate"/>
<el-table-column align="center" label="DATE OF EXPIRY" prop="expiryDate"/>
</el-table>
</div>
</div>
<p class="red" style="font-size: 16px">
Passport information has been auto-recognized.Please double-check carefully, as errors may occur.Edit if
necessary
before submission.
</p>
<br>
<p style="text-align: center">
<el-button type="primary" @click="handelSubmit">Confrm</el-button>
</p>
<br>
</el-dialog>
</template>
<script setup>
import {useStorage} from "@vueuse/core/index";
import {getCurrentInstance, ref} from "vue";
import {
associationList,
} from "@/apiPc/match";
import useUserStore from "@/store/modules/user";
import _ from 'lodash'
import {fillImgUrl} from "/@/utils/ruoyi";
const emit = defineEmits(['refresh'])
const user = useUserStore().user
const {proxy} = getCurrentInstance()
const language = useStorage('language', 0)
const form = ref({
gender: '0',
chinese: '0',
cptVisaInfoBos: [],
email: user?.email,
})
const show = ref(false)
const mnaList = ref([])
const open = (params) => {
form.value = {}
show.value = true
form.value = {...params}
getMNAList()
}
defineExpose({
open,
})
function getMNAList() {
associationList().then(res => {
mnaList.value = res.data
})
}
function handelSubmit() {
show.value = false
emit('success')
}
function associationCodeFind(id) {
const obj = mnaList.value.find(v => v.code == id)
if (obj) return obj.nameEn
}
</script>
<style lang="scss" scoped>
.red {
color: red !important;
}
:deep(.el-upload--picture-card) {
--el-upload-picture-card-size: 60px;
}
.tip {
font-size: 12px;
}
.boxInvitation {
width: 96%;
margin: 20px auto 0;
}
h4 {
font-size: 15px;
line-height: 1.6;
}
.cptVisaInfoBosTable {
padding: 10px;
margin-bottom: 20px;
border: 1px dashed #ebeef5;
:deep(.el-table .el-table__header-wrapper th) {
font-size: 12px;
}
}
.wrap-item {
flex-wrap: wrap;
display: block;
}
.codeBtn {
background-color: #0540EC !important;
color: #fff !important;
}
</style>