Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c5af8aa5
authored
2025-05-30 11:27:09 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加人员ocr
1 parent
03402fac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
7 deletions
src/viewsPc/match/components/addCoach_en.vue
src/viewsPc/match/components/addCoach_en.vue
View file @
c5af8aa
...
...
@@ -59,19 +59,36 @@
<el-option
v-for=
"l in labels"
:key=
"l.value"
:label=
"language==0?l.label:l.enlabel"
:value=
"l.value"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"language==0?'有效证件':'Valid Passport'"
required
>
<!-- <el-form-item :label="language==0?'有效证件':'Valid Passport'" required>-->
<!-- <image-upload-->
<!-- v-model="form.passportUrl" :button-text="language==0?'上传':'Upload'" :is-show-tip="false"-->
<!-- :limit="1"-->
<!-- />-->
<!-- <div class="tip">-->
<!-- <span v-if="language==0">请上传有效身份证件扫描件,用于核实身份信息、申请签证邀请函及购买保险等</span>-->
<!-- <span v-else>Please upload a scanned copy of your valid passport for verification of identity information,application of visa invitation letter and purchasing insurance etc.</span>-->
<!-- </div>-->
<!-- </el-form-item>-->
<el-form-item
:label=
"language==0?'有效证件':'Valid Passport'"
prop=
""
required
>
<image-upload
v-model=
"form.passportUrl"
:button-text=
"language==0?'上传':'Upload'"
:is-show-tip=
"false"
ref=
"uploadPassportRef"
v-model=
"form.passportUrl"
:action=
"'/common/getPersonInfoFromCert/6'"
:button-text=
"language==0?'上传':'Upload'"
:is-show-tip=
"false"
:limit=
"1"
param-name=
"pic"
@
response=
"ocrSuccess"
/>
<div
class=
"tip"
>
<span
v-if=
"language==0"
>
请上传有效身份证件扫描件,用于核实身份信息、申请签证邀请函及购买保险等
</span>
<span
v-else
>
Please upload a scanned copy of your valid passport for verification of identity information,
<span
v-if=
"language==0"
>
请上传有效身份证件扫描件,用于核实身份信息、申请签证邀请函及购买保险等
</span>
<span
v-else
>
Please upload a scanned copy of your valid passport for verification of identity information,
application of visa invitation letter and purchasing insurance etc.
</span>
</div>
</el-form-item>
</el-col>
<el-col
:lg=
"12"
class=
"touxiang"
>
<el-form-item
:label=
"language==0?'个人照片':'Photo'"
prop=
"picUrl"
>
...
...
@@ -80,7 +97,9 @@
class=
"threeFour"
/>
</el-form-item>
<el-form-item
:label=
"language==0?'证件姓名':'Name'"
prop=
"certName"
>
<el-input
v-model=
"form.certName"
:disabled=
"editgay"
/>
</el-form-item>
<el-form-item
:label=
"language==0?'证件类型':'ID Type'"
:required=
"!form.wdsfMin&&form.labelArr.indexOf('0')>-1"
prop=
"idcType"
...
...
@@ -154,6 +173,7 @@ import { dayjs, ElMessage } from 'element-plus'
import
_
from
'lodash'
import
{
useStorage
}
from
'@vueuse/core/index'
import
{
checkWdsf
,
getCaptchaSms
}
from
'@/apiPc/match'
import
ImageUpload
from
'/@/components/ImageUpload/index.vue'
const
language
=
useStorage
(
'language'
,
0
)
const
certificates
=
ref
([
...
...
@@ -414,6 +434,23 @@ function giveBirthDay() {
}
}
// 有效证件
const
ocrSuccess
=
(
res
)
=>
{
// form.value.passportUrl = res.data.url
console
.
log
(
form
.
value
.
passportUrl
)
if
(
res
.
code
==
200
)
{
form
.
value
.
passportUrl
=
res
.
data
.
url
form
.
value
.
idcCode
=
res
.
data
.
code
form
.
value
.
birth
=
res
.
data
.
birth
?.
slice
(
0
,
10
)
form
.
value
.
sex
=
res
.
data
.
sex
form
.
value
.
certName
=
res
.
data
.
name
form
.
value
.
idcType
=
res
.
data
.
type
==
'3'
?
'1'
:
'0'
}
else
if
(
res
.
code
==
500
)
{
ElMessage
.
warning
(
res
.
msg
)
form
.
value
.
passportCopy
=
''
}
}
function
submitForm
()
{
proxy
.
$refs
[
'dialogRef'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -451,6 +488,7 @@ function submitForm() {
if
(
groupId
.
value
!=
0
)
{
// 团队
form
.
value
.
groupId
=
groupId
.
value
form
.
value
.
ocrFlag
=
'1'
match
.
savePersonForMyGroup
(
form
.
value
).
then
(
res
=>
{
ElMessage
.
success
(
language
.
value
==
0
?
'保存成功'
:
'Save successful'
)
show
.
value
=
false
...
...
@@ -466,6 +504,7 @@ function submitForm() {
})
}
else
{
if
(
isMe
.
value
)
{
form
.
value
.
ocrFlag
=
'1'
match
.
saveMyBaseInfo
(
form
.
value
).
then
(
res
=>
{
ElMessage
.
success
(
language
.
value
==
0
?
'保存成功'
:
'Save successful'
)
show
.
value
=
false
...
...
@@ -473,6 +512,7 @@ function submitForm() {
})
}
else
{
form
.
value
.
cptId
=
cptId
.
value
form
.
value
.
ocrFlag
=
'1'
match
.
savePersonForMyPerson
(
form
.
value
).
then
(
res
=>
{
ElMessage
.
success
(
language
.
value
==
0
?
'保存成功'
:
'Save successful'
)
show
.
value
=
false
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment