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

fix:电子签增加参数

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