"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("./method.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("cc-scroll-loading"))()}Math||(s+(()=>"../../../components/hs-tabs/hs-tabs.js")+a+n+u+t+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+r)();const n=()=>"./components/BillItem.js",s=()=>"./components/PageHeader.js",r=()=>"./components/PageFooter.js",a=()=>"./components/BillRecord.js",u=()=>"./components/WorkOrderList.js",t=()=>"./components/PersonnelList.js",i=e.defineComponent({__name:"index",setup(n){const s=[{label:"房屋账单"},{label:"房屋工单"},{label:"房屋人员"}];return e.onShow(async()=>{var n,s,r,a,u;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),(null==(a=null==(r=null==(s=o.useModel)?void 0:s.showData)?void 0:r.value)?void 0:a.id)&&(o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],null==(u=l.method)||u.handleTabsChange(o.useModel.tabsCurrent.value))}),e.onUnload(()=>{o.useModel.showData.value=void 0,o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],o.useModel.total_amount.value=0}),e.onLoad(async n=>{var s,r,a;o.useModel.tabsCurrent.value=0,await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.formData.value.asset_houses_id=null==n?void 0:n.id,null==(r=l.method)||r.getShow(null==n?void 0:n.id),null==(a=l.method)||a.getHouseBills(1)}),(n,r)=>{var a,u,t,i,d,c;return e.e({a:e.o(null==(a=e.unref(l.method))?void 0:a.handleTabsChange),b:e.p({list:s,current:e.unref(o.useModel).tabsCurrent.value}),c:0===e.unref(o.useModel).tabsCurrent.value},0===e.unref(o.useModel).tabsCurrent.value?{d:e.f(null==(t=null==(u=e.unref(o.useModel))?void 0:u.houseBillsData)?void 0:t.value,(o,l,n)=>({a:`items_${l}`,b:"e72aaab2-4-"+n+",e72aaab2-2",c:e.p({item:o,index:l})}))}:{},{e:1===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{f:2===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{g:e.o(null==(i=e.unref(l.method))?void 0:i.loadMore),h:e.p({meta:null==(c=null==(d=e.unref(o.useModel))?void 0:d.metaData)?void 0:c.value}),i:e.n(`show_container_${e.unref(o.useModel).tabsCurrent.value}`)})}}});wx.createPage(i);
