import{h as p,k as f}from"./index-996f931c-1782111760424v=1.0.0.js";import{a as u}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";const d=o=>p.post("/project/project/statisticByStatus",o,{headers:{noLoading:!0}}),v=(o=!1,i={})=>{const e=u({all:{label:"\u5168\u90E8",value:0,type:"primary",key:"all"},for_check:{label:"\u5BA1\u6838\u4E2D",value:0,type:"warning",key:"for_check"},pass:{label:"\u901A\u8FC7",value:0,type:"success",key:"pass"},fail:{label:"\u9A73\u56DE",value:0,type:"danger",key:"fail"},draft:{label:"\u8349\u7A3F",value:0,type:"info",key:"draft"}});o&&delete e.value.draft;const y=async(t={})=>{let a=await d(t);if(a.code==200){let l=0;for(const s in a.data)l+=a.data[s],e.value[s]&&(e.value[s].value=a.data[s]);e.value.all.value=l}},r=u([]),c=u([]),n=u("");return{fileterData:r,expandKeys:c,defaultValue:n,getCompanyArea:async()=>{var l;let t=await f(i);r.value=t.data;let a=(l=t==null?void 0:t.data[0])==null?void 0:l.company_area_id;c.value=[a],n.value=String(a)},statusObj:e,getStatisticByStatusMap:y}},A=v;export{A as u};
