"use strict";const e=require("../../../common/vendor.js"),l=require("../../../gen/Enums.js"),o=require("./method.js"),u=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("up-search")+e.resolveComponent("hs-radio")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../components/hs-radio/hs-radio.js")+n+r+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const n=()=>"./components/HouseAreaList.js",r=()=>"./components/SharedAreaList.js",a=e.defineComponent({__name:"index",setup(n){const r=[{label:"房屋表",value:"HouseMeter"},{label:"公摊表",value:"CommonMeter"}],a=[{label:"超30天未抄表",value:"30",color:"#0082FA"},{label:"超60天未抄表",value:"60",color:"#FF8F26"},{label:"超90天未抄表",value:"90",color:"#DF3600"}],s={all:{text:"全部",value:""},...l.HouseMetersUsageTypeEnum};return e.onLoad(e=>{u.useModel.formData.value.asset_projects_id=null==e?void 0:e.id}),e.onShow(()=>{var e,l,n,r;u.useModel.formData.value.page=1,(null==(n=null==(l=null==(e=u.useModel)?void 0:e.listData)?void 0:l.value)?void 0:n.length)||null==(r=o.method)||r.getMenuList()}),e.onUnload(()=>{u.useModel.currentTabs.value=0,u.useModel.listData.value=[],u.useModel.formData.value={page:1,keyword:"",meter_type:"HouseMeter"}}),(l,n)=>{var t,d,i,v,m,c,f,h,_,p,M,b,g,j,y,D,T,q,w,C,k,F,A,L,S,H,$,x;return e.e({a:e.o(null==(t=e.unref(o.method))?void 0:t.handleChangeTabs),b:e.p({list:r,current:null==(i=null==(d=e.unref(u.useModel))?void 0:d.currentTabs)?void 0:i.value}),c:e.p({type:"right",size:"13",color:"#333"}),d:e.o(l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleToLog()}),e:null==(m=null==(v=e.unref(u.useModel))?void 0:v.currentTabs)?void 0:m.value},(null==(f=null==(c=e.unref(u.useModel))?void 0:c.currentTabs)?void 0:f.value)?{f:e.o(null==(h=e.unref(o.method))?void 0:h.handleSearch),g:e.o(l=>e.unref(u.useModel).formData.value.keyword=l),h:e.p({"show-action":!1,placeholder:"仪表名称",modelValue:e.unref(u.useModel).formData.value.keyword})}:{},{i:e.o(null==(_=e.unref(o.method))?void 0:_.handleChangeUsageTypeFilter),j:e.o(l=>e.unref(u.useModel).formData.value.usage_type=l),k:e.p({Enums:s,modelValue:e.unref(u.useModel).formData.value.usage_type}),l:e.f(a,(l,n,r)=>{var a,s,t;return{a:null==l?void 0:l.color,b:e.t(null==l?void 0:l.label),c:`instrument_day_num_${n}`,d:e.n("filter_day_item "+((null==(t=null==(s=null==(a=e.unref(u.useModel))?void 0:a.formData)?void 0:s.value)?void 0:t.overdue_days)===(null==l?void 0:l.value)?"filter_day_item_active":"")),e:e.o(u=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleChangeOverdueDaysFilter(l)},`instrument_day_num_${n}`)}}),m:e.n("header "+((null==(M=null==(p=e.unref(u.useModel))?void 0:p.currentTabs)?void 0:M.value)?"":"header_two")),n:!(null==(g=null==(b=e.unref(u.useModel))?void 0:b.currentTabs)?void 0:g.value)},(null==(y=null==(j=e.unref(u.useModel))?void 0:j.currentTabs)?void 0:y.value)?{}:{o:e.f(null==(T=null==(D=e.unref(u.useModel))?void 0:D.listMenuData)?void 0:T.value,(l,n,r)=>{var a,s,t;return{a:e.t(null==l?void 0:l.asset_buildings_name),b:e.t(null==l?void 0:l.name),c:`menu_item_${n}`,d:e.n("menu_item "+((null==(t=null==(s=null==(a=e.unref(u.useModel))?void 0:a.formData)?void 0:s.value)?void 0:t.asset_units_id)===(null==l?void 0:l.id)?"menu_item_active":"")),e:e.o(u=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleChangeFilter({asset_units_id:null==l?void 0:l.id})},`menu_item_${n}`)}})},{p:!(null==(w=null==(q=e.unref(u.useModel))?void 0:q.currentTabs)?void 0:w.value)},(null==(k=null==(C=e.unref(u.useModel))?void 0:C.currentTabs)||k.value,{}),{q:e.o(null==(F=e.unref(o.method))?void 0:F.handleLoad),r:e.p({meta:null==(L=null==(A=e.unref(u.useModel))?void 0:A.metaData)?void 0:L.value}),s:e.n(""+((null==(H=null==(S=e.unref(u.useModel))?void 0:S.currentTabs)?void 0:H.value)?"":"work_item_content")),t:e.n("work_contents "+((null==(x=null==($=e.unref(u.useModel))?void 0:$.currentTabs)?void 0:x.value)?"":"work_contents_two"))})}}});wx.createPage(a);
