Commit 34895437 authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents c8d51e01 b5905947
Pipeline #4539 canceled with stages
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="down-content"> <div class="down-content">
<span>请上传照片</span> <span>请上传照片</span>
<div class="photo"> <div class="photo">
<!-- <img src=""> --> <img :src="vehicleImg">
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
v-for="(item,index) in equip" v-for="(item,index) in equip"
:key="index" :key="index"
class="equipment" class="equipment"
@click="downNum=true;getRent(item.contract_id)" @click="downNum=true;getRent(item.contract_id,item.contract_lease_item_id)"
> >
<div class="left"> <div class="left">
<span> <span>
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
downNum: false, downNum: false,
show: false, show: false,
flag: false, // 判断是否为已确认 flag: false, // 判断是否为已确认
vehicleImg: '', // 查询到的合格证
leasePic: '', // 租赁合同图片 leasePic: '', // 租赁合同图片
agentPic: '', // 经销商担保协议图片 agentPic: '', // 经销商担保协议图片
bankPic: '', // 农行代扣授权书图片 bankPic: '', // 农行代扣授权书图片
...@@ -257,6 +258,30 @@ export default { ...@@ -257,6 +258,30 @@ export default {
}) })
}, },
methods: { methods: {
getImg (id) { // 获取合格证
let vm = this
let randomString = Math.floor(Math.random() * 21)
let url =
process.env.basePath +
'app_attment_query' +
'&index' +
`'${randomString}'`
let param = {
'master': {
'source_type': 'CON_CONTRACT_LEASE_ITEM',
'pkvalue': id,
},
}
vm.$post(url, param).then(function (res) {
if (res.result === 'S') {
if (res.info) {
vm.vehicleImg = process.env.filePath + 'attachment_id=' + res.info.attachment_id + '&access_token=' + window.localStorage.access_token
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 签约校验 // 签约校验
async signCheck () { async signCheck () {
let vm = this let vm = this
...@@ -276,9 +301,6 @@ export default { ...@@ -276,9 +301,6 @@ export default {
}, },
getTabNum (i) { getTabNum (i) {
this.tabNum = i this.tabNum = i
},
getImg () {
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
...@@ -503,7 +525,7 @@ export default { ...@@ -503,7 +525,7 @@ export default {
} }
}) })
}, },
getRent (e) { getRent (e, id) {
let vm = this let vm = this
let url = process.env.basePath + 'leases_info_query' let url = process.env.basePath + 'leases_info_query'
let param = { let param = {
...@@ -514,6 +536,7 @@ export default { ...@@ -514,6 +536,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.rentInfo, res.info) Object.assign(vm.rentInfo, res.info)
vm.getImg(id)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
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