"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),l=require("./method.js"),n=require("./model.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"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js")+(()=>"../../../node-modules/uview-plus/components/u-steps/u-steps.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const t=e.defineComponent({__name:"index",setup(t){const u=()=>{var o,l,t,u,s,a;e.index.navigateTo({url:`/BILL/outstanding_fee/add/index?amount=${null==(t=null==(l=null==(o=n.useModel)?void 0:o.formData)?void 0:l.value)?void 0:t.total_pending_amount}&id=${null==(a=null==(s=null==(u=n.useModel)?void 0:u.formData)?void 0:s.value)?void 0:a.asset_houses_id}`})};return e.onShow(()=>{var e,o,t,u;(null==(t=null==(o=null==(e=n.useModel)?void 0:e.listData)?void 0:o.value)?void 0:t.length)&&(n.useModel.listData.value=[],null==(u=l.method)||u.loadMore(1))}),e.onLoad(e=>{var o;console.log(e,"e"),n.useModel.formData.value={asset_houses_id:null==e?void 0:e.asset_houses_id,total_pending_amount:null==e?void 0:e.total_pending_amount,page:1},null==(o=l.method)||o.getHouseCollectionRecords()}),e.onUnload(()=>{n.useModel.listData.value=[]}),(t,s)=>{var a,i,d,r,m,c,v,p;return{a:e.f(null==(i=null==(a=e.unref(n.useModel))?void 0:a.listData)?void 0:i.value,(l,n,t)=>{var u;return e.e({a:e.t(null==l?void 0:l.created_at),b:e.t(null==(u=null==l?void 0:l.company_employee)?void 0:u.name),c:e.t(null==l?void 0:l.total_unpaid_amount),d:null==l?void 0:l.collection_result},(null==l?void 0:l.collection_result)?{e:"30ebd59a-3-"+t+",30ebd59a-2-"+t,f:e.p({value:null==l?void 0:l.collection_result,Enums:e.unref(o.HouseCollectionRecordsCollectionResultEnum)}),g:e.n(`tag_${null==l?void 0:l.collection_result}`)}:{},{h:"30ebd59a-4-"+t+",30ebd59a-2-"+t,i:e.p({value:null==l?void 0:l.channel,Enums:e.unref(o.HouseCollectionTasksChannelEnum)}),j:null==l?void 0:l.collection_content},(null==l?void 0:l.collection_content)?{k:e.t(null==l?void 0:l.collection_content)}:{},{l:`pay_item_${n}`,m:"30ebd59a-2-"+t+",30ebd59a-1"})}),b:e.p({direction:"column",dot:!0,current:(null==(m=null==(r=null==(d=e.unref(n.useModel))?void 0:d.listData)?void 0:r.value)?void 0:m.length)-1}),c:e.o(null==(c=e.unref(l.method))?void 0:c.loadMore),d:e.p({meta:null==(p=null==(v=e.unref(n.useModel))?void 0:v.metaData)?void 0:p.value}),e:e.o(u),f:e.p({btnParimaryName:"新增催缴记录"})}}}});wx.createPage(t);
