import{a}from"./project-4a4cab5b-1780912037814v=1.0.0.js";import{g as e}from"./common-0c693521-1780912037814v=1.0.0.js";import{a2 as l,s as t,r as s}from"./index-d052b22f-1780912037814v=1.0.0.js";const r=(r=!1,o={})=>{const u=l();t((()=>u.companyAreaId));const n=s({all:{label:"全部",value:0,type:"primary",key:"all"},for_check:{label:"审核中",value:0,type:"warning",key:"for_check"},pass:{label:"通过",value:0,type:"success",key:"pass"},fail:{label:"驳回",value:0,type:"danger",key:"fail"},draft:{label:"草稿",value:0,type:"info",key:"draft"}});r&&delete n.value.draft;const c=s([]),i=s([]),v=s("");return{fileterData:c,expandKeys:i,defaultValue:v,getCompanyArea:async()=>{var a;let l=await e(o);c.value=l.data;let t=null==(a=null==l?void 0:l.data[0])?void 0:a.company_area_id;i.value=[t],v.value=String(t)},statusObj:n,getStatisticByStatusMap:async(e={})=>{let l=await a(e);if(200==l.code){let a=0;for(const e in l.data)a+=l.data[e],n.value[e]&&(n.value[e].value=l.data[e]);n.value.all.value=a}}}};export{r as u};
