Commit be12c4bc authored by linxin's avatar linxin

add

parent 8b529ded
Pipeline #4197 canceled with stages
......@@ -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.carIdentify(imgUrl[0])
}
}
}
......@@ -793,7 +801,7 @@ export default {
},
}
</script>
<style lang="less">
<style lang="less" scoped>
#accessory {
.userInfo {
height: 45px;
......
......@@ -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
}
})
},
......
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