import{b as p}from"./project-d8b2e0b3-1778929502341v=1.0.0.js";import{U as d,a as v,r as u,F as m}from"./index-17740f03-1778929502341v=1.0.0.js";const g=(n=!1,i={})=>{const y=d();v(()=>y.companyAreaId);const t=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"}});n&&delete t.value.draft;const f=async(e={})=>{let a=await p(e);if(a.code==200){let l=0;for(const s in a.data)l+=a.data[s],t.value[s]&&(t.value[s].value=a.data[s]);t.value.all.value=l}},r=u([]),o=u([]),c=u("");return{fileterData:r,expandKeys:o,defaultValue:c,getCompanyArea:async()=>{var l;let e=await m(i);r.value=e.data;let a=(l=e==null?void 0:e.data[0])==null?void 0:l.company_area_id;o.value=[a],c.value=String(a)},statusObj:t,getStatisticByStatusMap:f}},S=g;export{S as u};
