Commit f428b9d6 authored by 郑娟's avatar 郑娟

批量签约接口 增加逻辑和参数

parent 291719ff
......@@ -64,6 +64,7 @@ export default {
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'
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
......@@ -114,7 +115,8 @@ 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 })) }
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'
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
this.hlsPopup.hideLoading()
......@@ -187,8 +189,7 @@ export default {
},
}
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.master['content_type'] = 'PRODUCT_SALE_CONTRACT'
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
this.hlsPopup.hideLoading()
......
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