"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),n=require("./method.js"),l=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("up-avatar")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad(()=>{var e;null==(e=n.method)||e.getList()}),e.onUnload(()=>{l.useModel.listData.value=[]}),(u,i)=>{var r,s,a,t,d,c;return{a:e.o(null==(r=e.unref(n.method))?void 0:r.handleSearch),b:e.o(o=>e.unref(l.useModel).formData.value.keyword=o),c:e.p({placeholder:"搜索房号/手机号/姓名",showAction:!1,modelValue:e.unref(l.useModel).formData.value.keyword}),d:e.f(null==(a=null==(s=e.unref(l.useModel))?void 0:s.listData)?void 0:a.value,(n,l,u)=>({a:e.t(null==n?void 0:n.house_name),b:e.f(null==n?void 0:n.occupants,(l,i,r)=>e.e({a:"508bcffd-2-"+u+"-"+r+",508bcffd-1",b:e.t(null==l?void 0:l.name),c:e.t(null==l?void 0:l.phone),d:"Owner"===(null==l?void 0:l.house_relation)},(null==l||l.house_relation,{}),(null==n||n.is_contact,{}),{e:"NonOwner"===(null==l?void 0:l.house_relation)&&(null==l?void 0:l.residential_relation)},"NonOwner"===(null==l?void 0:l.house_relation)&&(null==l?void 0:l.residential_relation)?{f:"508bcffd-3-"+u+"-"+r+",508bcffd-1",g:e.p({Enums:e.unref(o.HouseOccupantsResidentialRelationEnum),value:null==l?void 0:l.residential_relation})}:{},{h:"508bcffd-4-"+u+"-"+r+",508bcffd-1",i:e.o(o=>{return n=l,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${null==n?void 0:n.id}`});var n},null==n?void 0:n.index)})),c:null==n?void 0:n.is_contact,d:null==n?void 0:n.index,e:`customer_${null==n?void 0:n.index}`})),e:e.p({type:"right",size:"13",color:"#999"}),f:e.o(null==(t=e.unref(n.method))?void 0:t.handleLoad),g:e.p({meta:null==(c=null==(d=e.unref(l.useModel))?void 0:d.metaData)?void 0:c.value})}})});wx.createPage(u);
