Commit 09737ab8 authored by 郑娟's avatar 郑娟

fix:电子签增加参数

parent b3cffb37
......@@ -63,9 +63,10 @@ export default {
let url = process.env.basePath + 'batch_check_sign'
let data_class = vm.$route.query.name === 'confirmList' ? 'LEASE_ITEM' : 'PRJ_CONFIRM'
let param = { 'master': list.map(item => ({ confirm_id: item.confirm_id, data_class })) }
let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
console.log('~~~',user_bp_type === 'AGENT');
if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
// let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
// console.log('~~~',user_bp_type === 'AGENT');
// if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
param['bp_id'] = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
vm.hlsPopup.hideLoading()
......@@ -115,8 +116,14 @@ export default {
let data_class = this.$route.query.name === 'confirmList' ? 'LEASE_ITEM' : 'PRJ_CONFIRM'
let param = { 'master': this.list.map(item => ({ confirm_id: item.confirm_id, data_class })) }
<<<<<<< Updated upstream
let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
=======
// let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
// if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
param['bp_id'] = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id
>>>>>>> Stashed changes
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
this.hlsPopup.hideLoading()
......
......@@ -288,6 +288,7 @@ export default {
let param = {
confirm_id: vm.confirm_id,
data_class: 'LEASE_ITEM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
vm.hlsPopup.showLoading('请稍候!')
let res = await vm.hlsHttp.post(url, param)
......@@ -416,6 +417,7 @@ export default {
let param = {
confirm_id: vm.confirm_id,
data_class: 'LEASE_ITEM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
vm.hlsPopup.showLoading('请稍候!')
let res = await vm.hlsHttp.post(url, param)
......
......@@ -303,7 +303,7 @@
</h-content>
<bottom-tab v-if="con_confirm_status !== 'APPROVED'" class="add-box">
<tab-button v-if="!signFlag" class="before" @click.native="takePhonto">
<img src="@/assets/constractSigning/certification.png">征信签约
<img src="@/assets/constractSigning/certification.png">签署电子文件
</tab-button>
<tab-button v-else class="next" @click.native="inSure">
<img src="@/assets/intoApproval/approve.png">提交审核
......@@ -508,6 +508,7 @@ export default {
let param = {
confirm_id: vm.confirm_id,
data_class: 'PRJ_CONFIRM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
let res = await vm.hlsHttp.post(url, param)
hlsPopup.hideLoading()
......@@ -567,6 +568,7 @@ export default {
let param = {
confirm_id: vm.confirm_id,
data_class: 'PRJ_CONFIRM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
let res = await vm.hlsHttp.post(url, param)
hlsPopup.hideLoading()
......@@ -620,7 +622,7 @@ export default {
data_class: 'PRJ_CONFIRM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
// if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(res => {
hlsPopup.hideLoading()
......@@ -643,7 +645,7 @@ export default {
data_class: 'PRJ_CONFIRM',
bp_id: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_id,
}
if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
// if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(res => {
hlsPopup.hideLoading()
......@@ -723,8 +725,9 @@ export default {
let param = {
confirm_id: vm.confirm_id,
data_class: 'PRJ_CONFIRM',
bp_id: vm.baseInfo.bp_id,
}
if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
// if (vm.user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
......@@ -759,7 +762,7 @@ export default {
async takePhonto() {
let vm = this
if (!vm.isReadFlag) {
vm.hlsPopup.showLongCenter('请先阅读征信授权书')
vm.hlsPopup.showLongCenter('请先阅读电子文件')
return
}
vm.goElectronicSign()
......
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