"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),n=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-popup-project")+e.resolveComponent("hs-popup-building")+e.resolveComponent("hs-radio-picker-enum")+e.resolveComponent("hs-button")+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-popup-project/hs-popup-project.js")+(()=>"../../../components/hs-popup-building/hs-popup-building.js")+(()=>"../../../components/hs-radio-picker-enum/hs-radio-picker-enum.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const l=e.defineComponent({__name:"index",setup(l){const u=[{label:"住户仪表",value:"HouseMeter"},{label:"公共仪表",value:"CommonMeter"}],r=[{name:"全部",value:void 0},{name:"已抄表",value:"read"},{name:"未抄表",value:"unread"}];return e.onShow((()=>{var e;n.useModel.formData.value.page=1,n.useModel.listData.value=[],null==(e=o.method)||e.getList()})),e.onUnload((()=>{n.useModel.formData.value={page:1,keyword:"",meter_type:"HouseMeter"}})),(l,s)=>{var t,a,i,d,m,p,c,h,v,f,g,j;return{a:e.o(null==(t=e.unref(o.method))?void 0:t.handleChangeTabs),b:e.p({list:u,current:null==(i=null==(a=e.unref(n.useModel))?void 0:a.currentTabs)?void 0:i.value}),c:e.p({type:"right",size:"13",color:"#333"}),d:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleToLog()})),e:e.o(null==(d=e.unref(o.method))?void 0:d.handleSearch),f:e.o((o=>e.unref(n.useModel).formData.value.keyword=o)),g:e.p({"show-action":!1,placeholder:"搜索房屋名称/仪表名称",modelValue:e.unref(n.useModel).formData.value.keyword}),h:e.o(null==(m=e.unref(o.method))?void 0:m.handleChangeFilter),i:e.o(null==(p=e.unref(o.method))?void 0:p.handleChangeFilter),j:e.p({params:e.unref(n.useModel).formData.value}),k:e.o(null==(c=e.unref(o.method))?void 0:c.handleChangeFilterReadingStatus),l:e.p({Enums:r,title:"抄表状态"}),m:e.f(null==(v=null==(h=e.unref(n.useModel))?void 0:h.listData)?void 0:v.value,((n,l,u)=>e.e({a:"WaterMeter"===(null==n?void 0:n.usage_type)},(null==n||n.usage_type,{}),{b:"ElectricMeter"===(null==n?void 0:n.usage_type)},(null==n||n.usage_type,{}),{c:e.f(null==n?void 0:n.house_meter_has_houses,((o,n,l)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${n}`}))),d:e.t(null==n?void 0:n.name),e:e.t(null==n?void 0:n.latest_value),f:e.t(null==n?void 0:n.latest_time),g:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleToAdd(n)}),`items_${l}`),h:"7f08fc71-7-"+u+",7f08fc71-6",i:`items_${l}`}))),n:e.p({type:"primary",label:"抄表"}),o:e.o(null==(f=e.unref(o.method))?void 0:f.handleLoad),p:e.p({meta:null==(j=null==(g=e.unref(n.useModel))?void 0:g.metaData)?void 0:j.value})}}}});wx.createPage(l);
