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