Commit c623bff6 authored by linxin's avatar linxin

add

parent 4e5feb6b
Pipeline #4423 canceled with stages
...@@ -321,6 +321,7 @@ export default { ...@@ -321,6 +321,7 @@ export default {
}) })
}, },
changeBase (item) { changeBase (item) {
window.localStorage.setItem('bp_name_tenant', item.bp_name)
if (this.num === 1) { if (this.num === 1) {
window.localStorage.setItem('contractReadonly', false) window.localStorage.setItem('contractReadonly', false)
window.localStorage.setItem('fromPage', 'list') window.localStorage.setItem('fromPage', 'list')
......
...@@ -281,6 +281,7 @@ export default { ...@@ -281,6 +281,7 @@ export default {
}, */ }, */
saveInfo: { saveInfo: {
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
bp_name: '',
product_id: '', product_id: '',
product_id_n: '', product_id_n: '',
product_num: '', product_num: '',
...@@ -322,7 +323,6 @@ export default { ...@@ -322,7 +323,6 @@ export default {
if (window.localStorage.contractReadonly === 'true' && this.fromPage === 'list') { if (window.localStorage.contractReadonly === 'true' && this.fromPage === 'list') {
return true return true
} else { } else {
debugger
return false return false
} }
}, },
...@@ -368,6 +368,7 @@ export default { ...@@ -368,6 +368,7 @@ export default {
vm.calculeFlag = false vm.calculeFlag = false
vm.salesEnter = vm.$route.params.salesEnter vm.salesEnter = vm.$route.params.salesEnter
vm.bp_agent_id = vm.$route.params.bp_agent_id vm.bp_agent_id = vm.$route.params.bp_agent_id
vm.saveInfo.bp_name = window.localStorage.bp_name_tenant
vm.saveTed = false vm.saveTed = false
if (vm.fromPage === 'sale') { if (vm.fromPage === 'sale') {
vm.fromList = false vm.fromList = false
...@@ -376,7 +377,7 @@ export default { ...@@ -376,7 +377,7 @@ export default {
vm.rentInfoQuery() vm.rentInfoQuery()
} }
Object.keys(vm.saveInfo).forEach(i => { // 置空saveInfo Object.keys(vm.saveInfo).forEach(i => { // 置空saveInfo
if (i !== 'project_id') { if (i !== 'project_id' && i !== 'bp_name') {
vm.saveInfo[i] = '' vm.saveInfo[i] = ''
} }
}) })
......
...@@ -447,6 +447,7 @@ export default { ...@@ -447,6 +447,7 @@ export default {
this.showModal = false this.showModal = false
window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant) window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant)
window.localStorage.setItem('bp_class_tenant', item.bp_class) window.localStorage.setItem('bp_class_tenant', item.bp_class)
window.localStorage.setItem('bp_name_tenant', item.bp_name)
}, },
hideModal () { hideModal () {
this.showModal = false this.showModal = false
......
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