"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),l=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("up-search")+e.resolveComponent("hs-popup-project")+e.resolveComponent("hs-popup-building")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.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")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup(u){const n=[{label:"住户仪表",value:"HouseMeter"},{label:"公共仪表",value:"CommonMeter"}];return e.onLoad(()=>{var e;l.useModel.formData.value.page=1,l.useModel.listData.value=[],null==(e=o.method)||e.getList()}),(u,r)=>{var s,t,a,i,d,m,p,v,h,c,f;return{a:e.o(null==(s=e.unref(o.method))?void 0:s.handleChangeTabs),b:e.p({list:n,current:null==(a=null==(t=e.unref(l.useModel))?void 0:t.currentTabs)?void 0:a.value}),c:e.o(null==(i=e.unref(o.method))?void 0:i.handleSearch),d:e.o(o=>e.unref(l.useModel).formData.value.keyword=o),e:e.p({"show-action":!1,placeholder:"搜索房屋名称/仪表名称",modelValue:e.unref(l.useModel).formData.value.keyword}),f:e.o(null==(d=e.unref(o.method))?void 0:d.handleChangeFilter),g:e.o(null==(m=e.unref(o.method))?void 0:m.handleChangeFilter),h:e.p({params:e.unref(l.useModel).formData.value}),i:e.f(null==(v=null==(p=e.unref(l.useModel))?void 0:p.listData)?void 0:v.value,(l,u,n)=>{var r,s,t,a,i,d,m;return e.e({a:"WaterMeter"===(null==(r=null==l?void 0:l.house_meter)?void 0:r.usage_type)},(null==(s=null==l?void 0:l.house_meter)||s.usage_type,{}),{b:"ElectricMeter"===(null==(t=null==l?void 0:l.house_meter)?void 0:t.usage_type)},(null==(a=null==l?void 0:l.house_meter)||a.usage_type,{}),{c:e.f(null==(i=null==l?void 0:l.house_meter)?void 0:i.house_meter_has_houses,(o,l,u)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${l}`})),d:e.t(null==(d=null==l?void 0:l.house_meter)?void 0:d.name),e:e.t(null==l?void 0:l.current_reading),f:e.t(null==l?void 0:l.reading_time),g:e.t(null==(m=null==l?void 0:l.company_employee)?void 0:m.name),h:`items_${u}`,i:e.o(u=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleToDetail(l)},`items_${u}`)})}),j:e.o(null==(h=e.unref(o.method))?void 0:h.handleLoad),k:e.p({meta:null==(f=null==(c=e.unref(l.useModel))?void 0:c.metaData)?void 0:f.value})}}}});wx.createPage(u);
