Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 496b80f0
authored
Jan 12, 2026
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 在车架号也识别返回车型
1 parent
372e5c40
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
env.js
pages/evaluationForm/addEvaluationFrom.vue
pages/usedCar/reportManagement/index.vue
env.js
View file @
496b80f
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
1
const
index
=
2
/**
/**
*
*
0本地
0本地
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
496b80f
...
@@ -1328,6 +1328,8 @@ export default {
...
@@ -1328,6 +1328,8 @@ export default {
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
data
.
status
==
1
)
{
if
(
res
.
data
.
data
.
status
==
1
)
{
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
data
.
data
.
vin
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
data
.
data
.
vin
// 只有有 VIN 时才做后续校验和 queryByVin
if
(
this
.
formData
.
carBaseReqDTO
.
vin
)
{
validateVin
(
this
.
formData
.
carBaseReqDTO
.
vin
)
validateVin
(
this
.
formData
.
carBaseReqDTO
.
vin
)
.
then
(
result
=>
{
.
then
(
result
=>
{
console
.
log
(
'validateVin'
,
result
)
console
.
log
(
'validateVin'
,
result
)
...
@@ -1337,20 +1339,21 @@ export default {
...
@@ -1337,20 +1339,21 @@ export default {
console
.
log
(
'车架号校验成功:'
,
result
)
console
.
log
(
'车架号校验成功:'
,
result
)
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
'validateVinErr'
,
result
)
console
.
log
(
'validateVinErr'
,
err
)
})
})
uni
.
$api
.
evaluationApi
uni
.
$api
.
evaluationApi
.
queryByVin
({
.
queryByVin
({
vin
:
this
.
formData
.
carBaseReqDTO
.
vin
vin
:
this
.
formData
.
carBaseReqDTO
.
vin
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:
'
,
res
)
console
.
log
(
'res:queryByVin
'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
this
.
carTips
=
res
.
data
.
data
.
base
.
commonName
||
''
this
.
carTips
=
res
.
data
.
data
.
base
.
commonName
||
''
}
else
{
}
else
{
this
.
carTips
=
''
this
.
carTips
=
''
}
}
})
})
}
uni
.
showToast
({
title
:
'车架号识别完成并已自动填写到表单中'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'车架号识别完成并已自动填写到表单中'
,
icon
:
'none'
})
uni
.
hideLoading
()
uni
.
hideLoading
()
}
else
{
}
else
{
...
@@ -1486,6 +1489,21 @@ export default {
...
@@ -1486,6 +1489,21 @@ export default {
this
.
formData
.
carLicenseReqDTO
.
previousOwnerName
=
res
.
data
.
data
.
previousOwnerName
this
.
formData
.
carLicenseReqDTO
.
previousOwnerName
=
res
.
data
.
data
.
previousOwnerName
this
.
formData
.
carLicenseReqDTO
.
carSeriesName
=
res
.
data
.
data
.
carSeriesName
this
.
formData
.
carLicenseReqDTO
.
carSeriesName
=
res
.
data
.
data
.
carSeriesName
this
.
formData
.
carLicenseReqDTO
.
carTypeName
=
res
.
data
.
data
.
carTypeName
this
.
formData
.
carLicenseReqDTO
.
carTypeName
=
res
.
data
.
data
.
carTypeName
// 行驶证识别到 VIN 后,再调用 queryByVin
if
(
this
.
formData
.
carBaseReqDTO
.
vin
)
{
uni
.
$api
.
evaluationApi
.
queryByVin
({
vin
:
this
.
formData
.
carBaseReqDTO
.
vin
})
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
this
.
carTips
=
res
.
data
.
data
.
base
.
commonName
||
''
}
else
{
this
.
carTips
=
''
}
})
}
}
else
{
}
else
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
data
.
data
.
errorMessage
,
icon
:
'none'
})
uni
.
showToast
({
title
:
res
.
data
.
data
.
errorMessage
,
icon
:
'none'
})
...
...
pages/usedCar/reportManagement/index.vue
View file @
496b80f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
class=
"search-box flex"
>
<view
class=
"search-box flex"
>
<view
:class=
"['form-item form-item-input',
{ active: focusIndex == 0 }]">
<view
:class=
"['form-item form-item-input',
{ active: focusIndex == 0 }]">
<view
class=
"form-item-box flex"
>
<view
class=
"form-item-box flex"
>
<input
:maxlength=
"
5
0"
v-model=
"searchText"
class=
"input"
placeholder=
"请输入车架号"
@
focus=
"focusIndex = 0"
@
blur=
"resetFocusIndex"
placeholder-class=
"placeholder"
/>
<input
:maxlength=
"
2
0"
v-model=
"searchText"
class=
"input"
placeholder=
"请输入车架号"
@
focus=
"focusIndex = 0"
@
blur=
"resetFocusIndex"
placeholder-class=
"placeholder"
/>
<view
class=
"sprite-icon icon-vinScan"
@
click
.
stop=
"scan('vinOcr')"
></view>
<view
class=
"sprite-icon icon-vinScan"
@
click
.
stop=
"scan('vinOcr')"
></view>
</view>
</view>
</view>
</view>
...
@@ -363,6 +363,12 @@ export default {
...
@@ -363,6 +363,12 @@ export default {
sizeType
:
[
'original'
],
sizeType
:
[
'original'
],
sourceType
:
[
'camera'
],
sourceType
:
[
'camera'
],
success
:
async
res
=>
{
success
:
async
res
=>
{
uni
.
saveImageToPhotosAlbum
({
filePath
:
res
.
tempFilePaths
[
0
],
success
:
function
()
{
console
.
log
(
'图片保存成功'
)
}
})
try
{
try
{
const
MAX_IMAGE_SIZE
=
10
*
1024
*
1024
// 10MB
const
MAX_IMAGE_SIZE
=
10
*
1024
*
1024
// 10MB
for
(
const
file
of
res
.
tempFiles
)
{
for
(
const
file
of
res
.
tempFiles
)
{
...
...
Write
Preview
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