|
@@ -16,6 +16,7 @@ const user = {
|
|
|
authOrgs: [],
|
|
|
changeOrg: '',
|
|
|
settleAccountFlag: 0, // 结算账户管理是否开启
|
|
|
+ isShowSpecialPrice: 0, // 是否显示特约价
|
|
|
},
|
|
|
|
|
|
mutations: {
|
|
@@ -49,6 +50,9 @@ const user = {
|
|
|
SET_SETTLEACCOUNT:(state, status) => {
|
|
|
state.settleAccountFlag = status
|
|
|
},
|
|
|
+ SET_isShowSpecialPrice:(state, status) => {
|
|
|
+ state.isShowSpecialPrice = status
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
actions: {
|
|
@@ -68,6 +72,7 @@ const user = {
|
|
|
commit('SET_AUTHORGS', res.auth_orgs || [])
|
|
|
commit('SET_NAME', { name: users.userNameCN, welcome: welcome() })
|
|
|
commit('SET_MUSTCHANGEPWD', users.mustChangePwd)
|
|
|
+ commit('SET_isShowSpecialPrice',users.extInfo.isShowSpecialPrice)
|
|
|
Vue.ls.set('rolesAccess-qpls-md', { permissionList: users.permCodes }, 7 * 24 * 60 * 60 * 1000)
|
|
|
commit('SET_AVATAR', res.avatar ? res.avatar : '')
|
|
|
// 记住密码
|
|
@@ -152,6 +157,7 @@ const user = {
|
|
|
commit('SET_MUSTCHANGEPWD', '')
|
|
|
commit('SET_AVATAR', '')
|
|
|
commit('SET_TOKEN', '')
|
|
|
+ commit('SET_isShowSpecialPrice','0')
|
|
|
commit('SET_ROLES', { permissionList: [] })
|
|
|
Vue.ls.remove(ACCESS_TOKEN)
|
|
|
Vue.ls.remove('userName')
|