"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/naviHelper.js"),n=require("./model.js"),l=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-icon")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||(r+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+i+(()=>"../../../components/hs-footer/hs-footer.js"))();const r=()=>"../components/CollectionMethods.js",i=()=>"../components/CollectionResult.js",u=e.defineComponent({__name:"index",setup(r){const i=o=>{e.index.showToast({title:o||"",icon:"none"})},u=e=>{var o;n.useModel.formData.value.notified_time=null==(o=null==e?void 0:e.detail)?void 0:o.value,console.log(e)},s=()=>{let e=n.useModel.formData.value;return(null==e?void 0:e.channel)?(null==e?void 0:e.notified_time)?(null==e?void 0:e.collection_result)?(l.getApiLoading(t.Apis.Collection.HouseCollectionRecords.Store,n.useModel.formData.value).then(e=>{o.showToastBack("提交成功",1,!0)}),void console.log(e)):i("请选择催缴结果！"):i("请选择催缴时间！"):i("请选择催缴方式！")};return e.onLoad(e=>{n.useModel.formData.value={total_unpaid_amount:null==e?void 0:e.amount,asset_houses_id:null==e?void 0:e.id}}),(o,l)=>e.e({a:e.o(o=>e.unref(n.useModel).formData.value.channel=o),b:e.p({valueModel:e.unref(n.useModel).formData.value.channel}),c:e.p({name:"calendar",color:"#C4C4C4",size:"26"}),d:e.unref(n.useModel).formData.value.notified_time},e.unref(n.useModel).formData.value.notified_time?{e:e.t(e.unref(n.useModel).formData.value.notified_time||"请选择通知时间")}:{},{f:e.p({type:"right",size:"15",color:"#333"}),g:e.o(u),h:e.o(o=>e.unref(n.useModel).formData.value.collection_result=o),i:e.p({valueModel:e.unref(n.useModel).formData.value.collection_result}),j:e.unref(n.useModel).formData.value.collection_content,k:e.o(o=>e.unref(n.useModel).formData.value.collection_content=o.detail.value),l:e.o(s),m:e.p({btnParimaryName:"提交"})})}});wx.createPage(u);
