"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),l=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),i=require("./method.js");if(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-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||(u+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=()=>"./components/pickerSelectHouse.js",s=e.defineComponent({__name:"index",setup:u=>(e.onShow(async()=>{var o,u;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),n.useModel.listData.value=[],n.useModel.showData.value={},n.useModel.currentHouses.value={id:"",name:""},(null==(u=l.getUser)?void 0:u.onBindPhone())&&e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=i.method)||o.getList()},fail:function(e){var o;null==(o=i.method)||o.getList()}})}),e.onUnload(()=>{n.useModel.currentHouses.value={id:"",name:""}}),(l,u)=>{var s,t,r,a,d,m,v,c,h,p,f,g,j,y,S,b,q,_,w,M;return e.e({a:null==(a=null==(r=null==(t=null==(s=e.unref(n.useModel))?void 0:s.showData)?void 0:t.value)?void 0:r.houseList)?void 0:a.length},(null==(c=null==(v=null==(m=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:m.value)?void 0:v.houseList)?void 0:c.length)?{b:e.p({data:null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value})}:{},{c:!(null==(j=null==(g=null==(f=e.unref(n.useModel))?void 0:f.listData)?void 0:g.value)?void 0:j.length)},(null==(b=null==(S=null==(y=e.unref(n.useModel))?void 0:y.listData)?void 0:S.value)||b.length,{}),{d:e.f(null==(_=null==(q=e.unref(n.useModel))?void 0:q.listData)?void 0:_.value,(l,n,u)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-2-"+u,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-3-"+u,e:e.p({type:"circle",size:"18",color:"#666"})},{f:e.t(null==l?void 0:l.display_text),g:e.o(o=>{var l;return null==(l=e.unref(i.method))?void 0:l.handleSelect(n)},`items_${n}`),h:e.t(null==l?void 0:l.display_amount),i:"68f75638-4-"+u,j:e.p({type:(null==l?void 0:l.isShow)?"down":"right",color:"#999999",size:"14"}),k:e.o(e=>l.isShow=!l.isShow,`items_${n}`),l:null==l?void 0:l.isShow},(null==l?void 0:l.isShow)?{m:e.f(null==l?void 0:l.bills,(l,s,t)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-5-"+u+"-"+t,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-6-"+u+"-"+t,e:e.p({type:"circle",size:"18",color:"#666"})},{f:"68f75638-7-"+u+"-"+t,g:e.p({Enums:e.unref(o.HouseBillsTypeEnum),value:null==l?void 0:l.type}),h:e.t(null==l?void 0:l.amount),i:`item_f_${n}_${s}`,j:e.o(o=>{var u;return null==(u=e.unref(i.method))?void 0:u.handleFindSelect(l,n,s)},`item_f_${n}_${s}`)}))}:{},{n:`items_${n}`})),e:e.o(null==(w=e.unref(i.method))?void 0:w.handleParmaryClick),f:e.o(null==(M=e.unref(i.method))?void 0:M.handleQRCode),g:e.p({btnParimaryName:"分享账单",btnOtherName:"二维码收款",btnOtherShow:!0})})})});wx.createPage(s);
