Commit 291719ff authored by 郑娟's avatar 郑娟

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

parent 67511430
...@@ -63,6 +63,8 @@ export default { ...@@ -63,6 +63,8 @@ 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
if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
...@@ -184,6 +186,8 @@ export default { ...@@ -184,6 +186,8 @@ export default {
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,
}, },
} }
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('请稍候') hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param) let res = await this.$post(url, param)
......
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