"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),n=require("./model.js"),l=require("../../gen/Enums.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"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=e.defineComponent({__name:"index",setup(u){const s=o=>{e.index.navigateTo({url:o})};return e.onLoad(async n=>{var l,u;await(null==(l=e.getCurrentInstance())?void 0:l.appContext.config.globalProperties.$onLaunched),null==(u=o.method)||u.getShow(null==n?void 0:n.id)}),(u,i)=>{var r,a,t,d,v,m,h,p,c,_,f,g,j,q,b,C;return e.e({a:e.p({size:"50px"}),b:e.t((null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.name)||"请补充姓名"),c:e.p({title:"手机号",placeholder:"手机号码信息缺失",value:null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.phone}),d:e.o(o=>{var l,u,i,r,a,t;return s(`/CUSTOMER/assets/index?name=${null==(i=null==(u=null==(l=e.unref(n.useModel))?void 0:l.showData)?void 0:u.value)?void 0:i.name}&phone=${null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.phone}`)}),e:e.f(null==(p=null==(h=e.unref(n.useModel))?void 0:h.userHouse)?void 0:p.value,(o,n,u)=>{var i,r,a,t;return e.e({a:e.t(null==(i=null==o?void 0:o.asset_project)?void 0:i.name),b:e.t(null==(r=null==o?void 0:o.asset_building)?void 0:r.name),c:e.t(null==(a=null==o?void 0:o.asset_unit)?void 0:a.name),d:e.t(null==(t=null==o?void 0:o.asset_house)?void 0:t.name),e:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{f:"9c5679fc-2-"+u,g:e.p({Enums:e.unref(l.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{h:"9c5679fc-3-"+u,i:`items_${n}`,j:e.o(e=>s(`/BILL/outstanding_fee/show/index?id=${null==o?void 0:o.asset_houses_id}`),`items_${n}`)})}),f:e.p({type:"right",size:"13",color:"#999"}),g:!(null==(f=null==(_=null==(c=e.unref(n.useModel))?void 0:c.arrearageHouses)?void 0:_.value)?void 0:f.length)},(null==(q=null==(j=null==(g=e.unref(n.useModel))?void 0:g.arrearageHouses)?void 0:j.value)?void 0:q.length)?{}:{h:e.p({baseStyle:{height:"200rpx",padding:"30rpx 0"}})},{i:e.f(null==(C=null==(b=e.unref(n.useModel))?void 0:b.arrearageHouses)?void 0:C.value,(n,l,u)=>({a:e.t(null==n?void 0:n.full_name),b:e.t(null==n?void 0:n.total_overdue_amount),c:e.o(e=>s(`/CUSTOMER/list_bill/index?asset_houses_id=${null==n?void 0:n.asset_houses_id}&name=${null==n?void 0:n.full_name}`),`items_${l}`),d:e.o(n=>{var l;return null==(l=e.unref(o.method))?void 0:l.shareBill()},`items_${l}`),e:`items_${l}`})),j:e.o(n=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleMakePhoneCall()}),k:e.p({btnParimaryName:"拨打电话"})})}}});wx.createPage(u);
