Commit 403ee951 authored by 白日依山山山's avatar 白日依山山山

fix:电子签返回后检测签署状态

parent 640f5c42
...@@ -56,50 +56,51 @@ export default { ...@@ -56,50 +56,51 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(async vm => { next(async vm => {
// let list = JSON.parse(window.localStorage.getItem('check_list')) // window.localStorage.setItem('check_list', this.checkList)
// console.log('!@#', list) let list = JSON.parse(window.localStorage.getItem('check_list'))
// if (from.name === 'ElectronicSign') { console.log('!@#', list)
// let url = process.env.basePath + 'batch_check_sign' if (from.name === 'ElectronicSign') {
// let data_class = vm.$route.query.name === 'confirmList' ? 'LEASE_ITEM' : 'PRJ_CONFIRM' let url = process.env.basePath + 'batch_check_sign'
// let param = { 'master': list.map(item => ({ confirm_id: item.confirm_id, data_class })) } let data_class = vm.$route.query.name === 'confirmList' ? 'LEASE_ITEM' : 'PRJ_CONFIRM'
// hlsPopup.showLoading('请稍候') let param = { 'master': list.map(item => ({ confirm_id: item.confirm_id, data_class })) }
// let res = await vm.$post(url, param) hlsPopup.showLoading('请稍候')
// vm.hlsPopup.hideLoading() let res = await vm.$post(url, param)
vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// let checkList = res.lists.filter(ele => ele.signed_flag === 'Y').map(ele => ele.confirm_id) // if (res.result === 'S') {
// let checkList = res.lists.filter(ele => ele.signed_flag === 'Y').map(ele => ele.confirm_id)
// let submitList = list.filter(ele => checkList.includes(ele.confirm_id))
// if (!submitList.length) return // let submitList = list.filter(ele => checkList.includes(ele.confirm_id))
// let confirm_list = submitList.map(item => ({ confirm_id: item.confirm_id, data_class, confirm_status: 'APPROVED' })) // if (!submitList.length) return
// if (!confirm_list.length) return // let confirm_list = submitList.map(item => ({ confirm_id: item.confirm_id, data_class, confirm_status: 'APPROVED' }))
// if (!confirm_list.length) return
// let url2 = process.env.basePath + 'batch_do_confirm_bp'
// let param2 = { master: { confirm_list } } // let url2 = process.env.basePath + 'batch_do_confirm_bp'
// let param2 = { master: { confirm_list } }
// hlsPopup.showLoading('提交数据中')
// let res2 = await vm.$post(url2, param2) // hlsPopup.showLoading('提交数据中')
// vm.hlsPopup.hideLoading() // let res2 = await vm.$post(url2, param2)
// vm.hlsPopup.hideLoading()
// if (res2.result === 'S') {
// vm.hlsPopup.showSuccess('提交成功') // if (res2.result === 'S') {
// vm.hlsPopup.showSuccess('提交成功')
// let successList = res2.info.filter(item => item.status === 'S').map(item => item.confirm_id)
// let successList = res2.info.filter(item => item.status === 'S').map(item => item.confirm_id)
// vm.list = vm.list.filter(item => !successList.includes(item.confirm_id))
// vm.list = vm.list.filter(item => !successList.includes(item.confirm_id))
// if (!vm.list.length) vm.goBack()
// if (!vm.list.length) vm.goBack()
// window.localStorage.setItem('handleContact', JSON.stringify(vm.list))
// window.localStorage.setItem('handleContact', JSON.stringify(vm.list))
// await vm.checkSigned()
// } else { // await vm.checkSigned()
// this.hlsPopup.showLongCenter(res2.message) // } else {
// } // this.hlsPopup.showLongCenter(res2.message)
// } else { // }
// hlsPopup.showLongCenter(res.message) // } else {
// } // hlsPopup.showLongCenter(res.message)
// } // }
}
}) })
}, },
methods: { methods: {
......
...@@ -283,24 +283,24 @@ export default { ...@@ -283,24 +283,24 @@ export default {
} }
vm.confirm_id = window.localStorage.getItem('confirm_id') vm.confirm_id = window.localStorage.getItem('confirm_id')
vm.project_id = window.localStorage.getItem('project_id') vm.project_id = window.localStorage.getItem('project_id')
// if (from.name === 'ElectronicSign') { if (from.name === 'ElectronicSign') {
// let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
// let param = { let param = {
// confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
// data_class: 'LEASE_ITEM', data_class: 'LEASE_ITEM',
// } }
// vm.hlsPopup.showLoading('请稍候!') vm.hlsPopup.showLoading('请稍候!')
// let res = await vm.hlsHttp.post(url, param) let res = await vm.hlsHttp.post(url, param)
// vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
// if (res.result === 'S') { // if (res.result === 'S') {
// vm.signFlag = true // vm.signFlag = true
// await vm.confirm() // await vm.confirm()
// } else { // } else {
// vm.signMsg = res.message // vm.signMsg = res.message
// vm.signFlag = false // vm.signFlag = false
// } // }
// } }
// if (from.name === 'ContractRepayPlan') { // if (from.name === 'ContractRepayPlan') {
vm.signCheck() vm.signCheck()
vm.getDetail() vm.getDetail()
......
...@@ -406,16 +406,16 @@ export default { ...@@ -406,16 +406,16 @@ export default {
vm.bankCardQuery() vm.bankCardQuery()
} else if (from.name === 'ElectronicSign') { } else if (from.name === 'ElectronicSign') {
// 征信签署完后查看是否签署成功,成功就直接提交审批--同意通过 // 征信签署完后查看是否签署成功,成功就直接提交审批--同意通过
// vm.confirm_id = window.localStorage.getItem('confirm_id') vm.confirm_id = window.localStorage.getItem('confirm_id')
// vm.isReadFlag = false vm.isReadFlag = false
// hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
// let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
// let param = { let param = {
// confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
// data_class: 'PRJ_CONFIRM', data_class: 'PRJ_CONFIRM',
// } }
// let res = await vm.hlsHttp.post(url, param) let res = await vm.hlsHttp.post(url, param)
// hlsPopup.hideLoading() hlsPopup.hideLoading()
// if (res.result === 'S') { // if (res.result === 'S') {
// vm.signFlag = true // vm.signFlag = true
// vm.confirm_note = '同意' // vm.confirm_note = '同意'
......
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