Commit 84d7aeaa authored by linxin's avatar linxin

fix:修改

parent 5e59ea0f
......@@ -269,11 +269,10 @@ export default {
}
},
'tabNum': function (newVal, oldVal) {
// if ((newVal === 1 && !window.localStorage.user_id) || (newVal === 2 && !window.localStorage.user_id)) {
// // this.handleNotify()
// this.hlsPopup.showError('清先保存基本信息')
// this.tabNum = oldVal
// }
if ((newVal === 1 && !window.sessionStorage.user_id) || (newVal === 2 && !window.sessionStorage.user_id)) {
this.hlsPopup.showError('清先保存基本信息')
this.tabNum = oldVal
}
},
},
created () {
......@@ -310,6 +309,7 @@ export default {
if (res.result === 'S') {
vm.hlsPopup.showSuccess('保存成功')
window.localStorage.setItem('user_id', res.bp_id)
window.sessionStorage.setItem('user_id', res.bp_id)
window.localStorage.setItem('bp_name', vm.baseInfo.bp_name)
console.log('dbnxuweijhcdieuc', window.localStorage.getItem('bp_name'))
}
......@@ -421,14 +421,6 @@ export default {
}
})
},
handleNotify () {
this.hlsPopup.showNotify({
content: '清先保存基本信息',
position: 'top',
time: 2000,
type: 'warning',
})
},
getinvoiceList (i) {
Object.assign(this.baseInfo, i)
},
......
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