Commit be12c4bc authored by linxin's avatar linxin

add

parent 8b529ded
Pipeline #4197 canceled with stages
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
</item> </item>
<item> <item>
<div slot="name">其他</div> <div slot="name">其他</div>
<input slot="content" v-model="hauseInfo.others" placeholder="识别房产证自动填充" >
</item> </item>
<item> <item>
<div slot="name">地号</div> <div slot="name">地号</div>
...@@ -181,50 +182,46 @@ ...@@ -181,50 +182,46 @@
<input <input
slot="content" slot="content"
v-model="carInfo.vehicle_identify_num" v-model="carInfo.vehicle_identify_num"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">住址</div> <div slot="name">住址</div>
<input slot="content" v-model="carInfo.address" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.address" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">品牌型号</div> <div slot="name">品牌型号</div>
<input <input
slot="content" slot="content"
v-model="carInfo.brand_model_number" v-model="carInfo.brand_model_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">发证日期"</div> <div slot="name">发证日期</div>
<input slot="content" v-model="carInfo.start_date" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.start_date" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">车辆类型</div> <div slot="name">车辆类型</div>
<input <input
slot="content" slot="content"
v-model="carInfo.vehicle_type" v-model="carInfo.vehicle_type"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">所有人</div> <div slot="name">所有人</div>
<input slot="content" v-model="carInfo.owner" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.owner" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">使用性质</div> <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>
<item> <item>
<div slot="name">发动机号码</div> <div slot="name">发动机号码</div>
<input <input
slot="content" slot="content"
v-model="carInfo.engine_number" v-model="carInfo.engine_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -233,7 +230,6 @@ ...@@ -233,7 +230,6 @@
<input <input
slot="content" slot="content"
v-model="carInfo.plate_number" v-model="carInfo.plate_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -242,7 +238,6 @@ ...@@ -242,7 +238,6 @@
<input <input
slot="content" slot="content"
v-model="carInfo.regist_date" v-model="carInfo.regist_date"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -324,23 +319,20 @@ export default { ...@@ -324,23 +319,20 @@ export default {
}) })
}, },
methods: { methods: {
saveCarInfo () { async saveCarInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_vehicleLicense_save' let url = process.env.basePath + 'bp_vehicleLicense_save'
let param = { let param = {
master: vm.carInfo, master: vm.carInfo,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { let res = await vm.$post(url, param)
if (res.result === 'S') {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { return true
vm.$router.push({ } else {
name: 'NPBankInfo', hlsPopup.showLongCenter(res.message)
}) }
} else {
hlsPopup.showLongCenter(res.message)
}
})
}, },
getCarInfo () { getCarInfo () {
let vm = this let vm = this
...@@ -358,21 +350,26 @@ export default { ...@@ -358,21 +350,26 @@ export default {
} }
}) })
}, },
saveHouseInfo () { async saveHouseInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_save' let url = process.env.basePath + 'bp_house_info_save'
let isSaveCar = await vm.saveCarInfo()
let param = { let param = {
master: vm.hauseInfo, master: vm.hauseInfo,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { if (isSaveCar) {
vm.hlsPopup.hideLoading() vm.$post(url, param).then(function (res) {
if (res.result === 'S') { vm.hlsPopup.hideLoading()
vm.saveCarInfo() if (res.result === 'S') {
} else { vm.$router.push({
hlsPopup.showLongCenter(res.message) name: 'NPBankInfo',
} })
}) } else {
hlsPopup.showLongCenter(res.message)
}
})
}
}, },
getHouseInfo () { getHouseInfo () {
let vm = this let vm = this
...@@ -478,9 +475,19 @@ export default { ...@@ -478,9 +475,19 @@ export default {
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
let result = res.result.data let result = res.result.data
for (let i in vm.hauseInfo) { vm.hauseInfo.house_owner = result.house_owner.word
vm.hauseInfo[i] = result[i].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) { carIdentify (fileUrl) {
...@@ -500,6 +507,7 @@ export default { ...@@ -500,6 +507,7 @@ export default {
vm.carInfo.engine_number = result.发动机号码.words vm.carInfo.engine_number = result.发动机号码.words
vm.carInfo.regist_date = result.注册日期.words vm.carInfo.regist_date = result.注册日期.words
vm.carInfo.plate_number = result.号牌号码.words vm.carInfo.plate_number = result.号牌号码.words
vm.carInfo.success = res.success
}) })
}, },
takePicture (ocrType, type) { takePicture (ocrType, type) {
...@@ -521,7 +529,7 @@ export default { ...@@ -521,7 +529,7 @@ export default {
} else if (ocrType === 'CAR_CARD') { } else if (ocrType === 'CAR_CARD') {
vm.carImg = imgUrl[0] vm.carImg = imgUrl[0]
vm.isUploadCar = true vm.isUploadCar = true
vm.cardentify(imgUrl[0]) vm.carIdentify(imgUrl[0])
} }
} }
} }
...@@ -793,7 +801,7 @@ export default { ...@@ -793,7 +801,7 @@ export default {
}, },
} }
</script> </script>
<style lang="less"> <style lang="less" scoped>
#accessory { #accessory {
.userInfo { .userInfo {
height: 45px; height: 45px;
......
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
placeholder="上传身份证自动填充" placeholder="上传身份证自动填充"
class="auto" class="auto"
> >
<!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> -->
</item> </item>
<item> <item>
<div slot="name" class="required">身份证有效期到</div> <div slot="name" class="required">身份证有效期到</div>
...@@ -440,7 +441,7 @@ export default { ...@@ -440,7 +441,7 @@ export default {
vm.basicInfoQuery() vm.basicInfoQuery()
vm.loadItemList() // 附件查询 vm.loadItemList() // 附件查询
} else if (from.name === 'UserBind') { } else if (from.name === 'UserBind') {
window.location.reload() vm.baseInfo.bp_class = vm.$route.params.bp_class
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment