"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("hs-popup")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup/hs-popup.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"PopupSubmitTemplate",props:["formData","type"],setup(r){const n=r,s=e.ref(!1),l=e.ref(!1),a=()=>{var o;console.log(null==n?void 0:n.type,"type"),(null==(o=null==n?void 0:n.type)?void 0:o.length)?s.value=!s.value:e.index.showToast({title:"请选择通知方式!",icon:"none"})},i=()=>{e.index.navigateBack({delta:1})},p=()=>{o.getApiLoading(t.Apis.Collection.HouseCollectionTasks.Store,{...n.formData,channel:n.type}).then(e=>{s.value=!1,l.value=!0})},u=()=>{e.index.redirectTo({url:"/BILL/collection_record/index/index"})};return(o,t)=>{var r,m;return{a:e.t(null==(m=null==(r=null==n?void 0:n.formData)?void 0:r.houses)?void 0:m.length),b:e.o(p),c:e.p({label:"确认提交",size:"md",type:"primary"}),d:e.o(a),e:e.p({show:s.value,mode:"center",round:15,closeable:!0}),f:e.o(a),g:e.p({btnParimaryName:"提交"}),h:e.o(i),i:e.p({label:"返回欠费列表",size:"md",type:"default"}),j:e.o(u),k:e.p({label:"查看任务详情",size:"md"}),l:e.p({show:l.value,mode:"center",round:15})}}}}),n=e._export_sfc(r,[["__scopeId","data-v-7c88a356"]]);wx.createComponent(n);
