Commit 2ff081c9 authored by linxin's avatar linxin

add

parent 3c4cbe0c
......@@ -569,6 +569,11 @@ export default {
this.flag = true
}
},
'flag' (newVal, oldVal) {
if (window.localStorage.getItem('bp_id') && !this.flag) {
this.checkUpdate()
}
},
// 监听客户类型
'baseInfo.bp_type_n' () {
let vm = this
......@@ -897,16 +902,23 @@ export default {
},
})
},
// changeUndertake () {
// this.$router.push({
// name: 'MarginFirstPay',
// params: {
// bp_id: this.$route.params.bp_id,
// status: this.$route.params.status,
// isAGENT: this.isAGENT,
// },
// })
// },
checkUpdate () {
let vm = this
let url = process.env.basePath + 'prj_cdd_check_update'
let param = {
document_id: window.localStorage.bp_id,
tab_group: 'HLS_ORG_AUTH',
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.loadItemList(false)
} else {
hlsPopup.showError(res.message)
}
})
},
addRows (e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
......@@ -1735,7 +1747,7 @@ export default {
// 附件查询
loadItemList (flag) {
let vm = this
let bpId = vm.from ? vm.$route.params.bp_id : vm.bp_id
let bpId = vm.from ? window.localStorage.bp_id : vm.bp_id
if (bpId === 'undefined') {
bpId = null
}
......
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