Commit 8ed9de55 authored by 李苏's avatar 李苏 💬

list 提交

parent 71457d42
export default{
list:[
{
path:'/baseData',
component: 'Layout',
hidden: false,
alwaysShow:true,
redirect: 'store',
meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:215000000},
children:[
/* 计量单位*/
{
erpComponent:true,
component:'template/index',
hidden:false,
meta:{
"title": "财务",
"icon": "",
"noCache": false,
"link": null,
"mkid": 215060000,
},
redirect: 'meteringUnit',
name:'finance',
path:"finance",
children:[{
erpComponent:true,
component:'template/view/index',
hidden:false,
meta:{
"title": "发票分类",
"icon": "",
"noCache": false,
"link": null,
"mkid":215060100,
},
name:'financeClassification',
path:"financeClassification",
},
{ erpComponent:true,
component:'baseData/finance/period/index',
hidden:false,
meta:{
"title": "会计期间",
"icon": "",
"noCache": false,
"link": null,
"mkid":215060200,
},
name:'financePeriod',
path:"financePeriod",
},
{
erpComponent:true,
component:'template/view/index',
hidden:false,
meta:{
"title": "会计单位",
"icon": "",
"noCache": false,
"link": null,
"mkid":215060300,
},
name:'financeUnit',
path:"financeUnit",
},
{
erpComponent:true,
component:'baseData/finance/store/index',
hidden:false,
meta:{
"title": "仓库财务信息",
"icon": "",
"noCache": false,
"link": null,
"mkid":215060400,
},
name:'financeStore',
path:"financeStore",
},
]
}
]
}
]
}
import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken, setUserid } from '@/utils/auth'
import materialProp from 'common/src/utils/materialProp'
const user = {
state: {
......@@ -52,6 +53,14 @@ const user = {
localStorage.setItem('systemid',systemid)
/* 存储本地一份 */
setToken(res.data.token)
/* ERP项目查询物料属性*/
materialProp().then(res=>{
let list=['isKwgl','isPhgl','isFjldw']
list.forEach(item=>{
localStorage.setItem(item,res[item])
})
})
commit('SET_TOKEN', res.data.token)
setUserid(res.data.userid)
resolve()
......
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