Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
be12c4bc
Commit
be12c4bc
authored
Dec 16, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
8b529ded
Pipeline
#4197
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
36 deletions
+45
-36
accessory-info.vue
src/pages/userBindNew/np/accessory-info.vue
+43
-35
base-info.vue
src/pages/userBindNew/np/base-info.vue
+2
-1
No files found.
src/pages/userBindNew/np/accessory-info.vue
View file @
be12c4bc
...
...
@@ -147,6 +147,7 @@
</item>
<item>
<div
slot=
"name"
>
其他
</div>
<input
slot=
"content"
v-model=
"hauseInfo.others"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
地号
</div>
...
...
@@ -181,50 +182,46 @@
<input
slot=
"content"
v-model=
"carInfo.vehicle_identify_num"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<input
slot=
"content"
v-model=
"carInfo.address"
readonly
placeholder=
"识别行驶证自动填充"
>
<input
slot=
"content"
v-model=
"carInfo.address"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<input
slot=
"content"
v-model=
"carInfo.brand_model_number"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发证日期
"
</div>
<input
slot=
"content"
v-model=
"carInfo.start_date"
readonly
placeholder=
"识别行驶证自动填充"
>
<div
slot=
"name"
>
发证日期
</div>
<input
slot=
"content"
v-model=
"carInfo.start_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<input
slot=
"content"
v-model=
"carInfo.vehicle_type"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<input
slot=
"content"
v-model=
"carInfo.owner"
readonly
placeholder=
"识别行驶证自动填充"
>
<input
slot=
"content"
v-model=
"carInfo.owner"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<input
slot=
"content"
v-model=
"carInfo.use_nature"
readonly
placeholder=
"识别行驶证自动填充"
>
<input
slot=
"content"
v-model=
"carInfo.use_nature"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<input
slot=
"content"
v-model=
"carInfo.engine_number"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
...
...
@@ -233,7 +230,6 @@
<input
slot=
"content"
v-model=
"carInfo.plate_number"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
...
...
@@ -242,7 +238,6 @@
<input
slot=
"content"
v-model=
"carInfo.regist_date"
readonly
placeholder=
"识别行驶证自动填充"
>
</item>
...
...
@@ -324,23 +319,20 @@ export default {
})
},
methods
:
{
saveCarInfo
()
{
async
saveCarInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_vehicleLicense_save'
let
param
=
{
master
:
vm
.
carInfo
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
$router
.
push
({
name
:
'NPBankInfo'
,
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
},
getCarInfo
()
{
let
vm
=
this
...
...
@@ -358,21 +350,26 @@ export default {
}
})
},
saveHouseInfo
()
{
async
saveHouseInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_house_info_save'
let
isSaveCar
=
await
vm
.
saveCarInfo
()
let
param
=
{
master
:
vm
.
hauseInfo
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
saveCarInfo
()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
if
(
isSaveCar
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
$router
.
push
({
name
:
'NPBankInfo'
,
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
getHouseInfo
()
{
let
vm
=
this
...
...
@@ -478,9 +475,19 @@ export default {
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
data
for
(
let
i
in
vm
.
hauseInfo
)
{
vm
.
hauseInfo
[
i
]
=
result
[
i
].
word
}
vm
.
hauseInfo
.
house_owner
=
result
.
house_owner
.
word
vm
.
hauseInfo
.
public_situation
=
result
.
public_situation
.
word
vm
.
hauseInfo
.
house_located
=
result
.
house_located
.
word
vm
.
hauseInfo
.
regist_date
=
result
.
regist_date
.
word
vm
.
hauseInfo
.
house_property
=
result
.
house_property
.
word
vm
.
hauseInfo
.
plan_purpose
=
result
.
plan_purpose
.
word
vm
.
hauseInfo
.
house_layers
=
result
.
house_layers
.
word
vm
.
hauseInfo
.
built_area
=
result
.
built_area
.
word
vm
.
hauseInfo
.
built_in_area
=
result
.
built_in_area
.
word
vm
.
hauseInfo
.
others
=
result
.
others
.
word
vm
.
hauseInfo
.
land_number
=
result
.
land_number
.
word
vm
.
hauseInfo
.
land_get_method
=
result
.
land_get_method
.
word
vm
.
hauseInfo
.
land_use_limit
=
result
.
land_use_limit
.
word
})
},
carIdentify
(
fileUrl
)
{
...
...
@@ -500,6 +507,7 @@ export default {
vm
.
carInfo
.
engine_number
=
result
.
发动机号码
.
words
vm
.
carInfo
.
regist_date
=
result
.
注册日期
.
words
vm
.
carInfo
.
plate_number
=
result
.
号牌号码
.
words
vm
.
carInfo
.
success
=
res
.
success
})
},
takePicture
(
ocrType
,
type
)
{
...
...
@@ -521,7 +529,7 @@ export default {
}
else
if
(
ocrType
===
'CAR_CARD'
)
{
vm
.
carImg
=
imgUrl
[
0
]
vm
.
isUploadCar
=
true
vm
.
cardentify
(
imgUrl
[
0
])
vm
.
car
I
dentify
(
imgUrl
[
0
])
}
}
}
...
...
@@ -793,7 +801,7 @@ export default {
},
}
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
scoped
>
#accessory {
.userInfo {
height: 45px;
...
...
src/pages/userBindNew/np/base-info.vue
View file @
be12c4bc
...
...
@@ -124,6 +124,7 @@
placeholder=
"上传身份证自动填充"
class=
"auto"
>
<!--
<span
class=
"auto"
>
{{
baseInfo
.
id_card_date_from
|
dateFormat
}}
</span>
-->
</item>
<item>
<div
slot=
"name"
class=
"required"
>
身份证有效期到
</div>
...
...
@@ -440,7 +441,7 @@ export default {
vm
.
basicInfoQuery
()
vm
.
loadItemList
()
// 附件查询
}
else
if
(
from
.
name
===
'UserBind'
)
{
window
.
location
.
reload
()
vm
.
baseInfo
.
bp_class
=
vm
.
$route
.
params
.
bp_class
}
})
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment