"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../gen/Enums.js"),i=require("../../common/libraries/userUserLogin.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"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-button"))()}Math||((()=>"../../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-button/hs-button.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((async n=>{var r,t,u;await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),l.useModel.formData.value=n,(null==(t=i.getUser)?void 0:t.getLoginStatus())&&(l.useModel.items.value=[],null==(u=o.method)||u.handleGetList())})),(i,r)=>{var t,u,s,d,a,m,c,v,p,h,f,g,j;return e.e({a:e.t(null==(s=null==(u=null==(t=e.unref(l.useModel))?void 0:t.formData)?void 0:u.value)?void 0:s.name),b:!(null==(m=null==(a=null==(d=e.unref(l.useModel))?void 0:d.items)?void 0:a.value)?void 0:m.length)},(null==(p=null==(v=null==(c=e.unref(l.useModel))?void 0:c.items)?void 0:v.value)?void 0:p.length)?{}:{c:e.p({text:"无账单"})},{d:e.f(null==(f=null==(h=e.unref(l.useModel))?void 0:h.items)?void 0:f.value,((l,i,r)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-1-"+r,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-2-"+r,e:e.p({type:"circle",size:"20",color:"#888"})},{f:e.t((null==l?void 0:l.display_text)||""),g:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCollapseAllCheckedBtn(i,l)}),`items_${i}`),h:e.t((null==l?void 0:l.pending_amount)||"0.00"),i:"1712258e-3-"+r,j:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCollapseClick(i,l)}),`items_${i}`),k:null==l?void 0:l.show},(null==l?void 0:l.show)?{l:e.f(null==l?void 0:l.bills,((l,t,u)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-4-"+r+"-"+u,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-5-"+r+"-"+u,e:e.p({type:"circle",size:"20",color:"#888"})},{f:"1712258e-6-"+r+"-"+u,g:e.p({Enums:e.unref(n.HouseBillsTypeEnum),value:null==l?void 0:l.type,objStyle:{color:"#555",fontSize:"28rpx"}}),h:e.t((null==l?void 0:l.total_payable_amount)||"-"),i:`ks_${i}_${t}`,j:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCalculatePrice(i,t,l)}),`ks_${i}_${t}`)})))}:{},{m:`items_${i}`}))),e:e.p({type:"down",size:"15",color:"#999"}),f:e.o(null==(g=e.unref(o.method))?void 0:g.handleQRCode),g:e.p({label:"二维码收款",size:"md",type:"ghost"}),h:e.o(null==(j=e.unref(o.method))?void 0:j.handleSelectExternalContact),i:e.p({type:"primary",size:"md",label:"分享账单"})})})});wx.createPage(r);
