import{d as e,r as a,o as t,a as n,s as r,g as o,b as s,c as i,w as p,e as m,f as l,F as c,i as h,t as y,h as u,n as d}from"./index-z4UiUMlV.js";import{g as w}from"./index.Wwo-uIrA.js";import{_ as f}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=f(e({__name:"index",setup(e){const f=a([{path:"../whiteEmbryo/listSearch",name:"白胚库存列表",type:"rawFabric"},{path:"../maintenance/processOldzmd",name:"工艺维护",type:"flowBind"},{path:"../maintenance/m-flow",name:"工艺流程维护",type:"craftFlow"},{path:"../maintenance/m-process",name:"工序项维护",type:"process"},{path:"../maintenance/m-requirements",name:"工艺要求维护",type:"craftRequire"},{path:"../maintenance/m-factory",name:"工厂维护",type:"factory"},{path:"../maintenance/m-other",name:"其他要求项维护",type:"extraOption"},{path:"../whiteEmbryo/w-warehousing",name:"白胚入库",type:"rawFabric"},{path:"../whiteEmbryo/w-level",name:"白胚等级维护",type:"rawFabricLevel"},{path:"../whiteEmbryo/w-suppliers",name:"供应商维护",type:"supplier"},{path:"../whiteEmbryo/w-scanCode",name:"白胚扫码放货架",type:"rawFabric"},{path:"../whiteEmbryo/w-warehouse",name:"仓库维护",type:"warehouse"},{path:"../whiteEmbryo/w-libraryLocation",name:"库位号维护",type:"shelves"},{path:"../whiteEmbryo/w-list",name:"白胚列表",type:"rawFabric"},{path:"../spot/list",name:"需求单列表",type:"interOrder"},{path:"../customOrder/list",name:"定做单列表",type:"customOrder"},{path:"../distribution/distribution",name:"待配货列表",type:"tribute"},{path:"../documentary/documentary",name:"跟单列表",type:"tracking"},{path:"../colorBlank/colorBlank",name:"色胚质检列表",type:"stockroom"},{path:"../colorBlank/defect",name:"色胚质检瑕疵维护",type:"blemish"}]),b=a([]);t((()=>{w("/v1/auth/info").then((e=>{200===e.code?(localStorage.setItem("info",JSON.stringify(e.data)),e.data.permissions.forEach((e=>{f.value.forEach((a=>{if(e.includes(a.type)){b.value.find((e=>e.path==a.path))||b.value.push(a)}}))}))):(n({url:"/pages/login/login"}),r(e.msg))})),o({key:"token",success:function(e){e.data||n({url:"/pages/login/login"})},fail:function(e){n({url:"/pages/login/login"})}})}));return(e,a)=>{const t=h;return s(),i(t,{class:"content"},{default:p((()=>[(s(!0),m(c,null,l(b.value,((e,a)=>(s(),i(t,{key:a},{default:p((()=>[e.name?(s(),m("p",{key:0,class:"btn",onClick:a=>(e=>{d({url:e.path})})(e)},y(e.name),9,["onClick"])):u("",!0)])),_:2},1024)))),128))])),_:1})}}}),[["__scopeId","data-v-6898fd11"]]);export{b as default};
