"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),n=require("../../../common/libraries/getPageConfig.js"),t=require("../model.js"),l=require("../../../common/libraries/apiLoading.js"),u=require("../../../gen/Apis.js"),s=require("../../../common/libraries/public.js");if(require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps")+e.resolveComponent("hs-button")+e.resolveComponent("hs-popup-custom"))()}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")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const a=e.defineComponent({__name:"HouseRegistersList",setup(a){const i=e.ref(!1),r=e.ref(0),d=e.ref([]),v=()=>{i.value=!1};return(a,p)=>{var m,c,_,h,f,g;return e.e({a:e.f(null==(c=null==(m=e.unref(t.useModel))?void 0:m.dataList)?void 0:c.value,((n,t,s)=>{var a,v;return{a:e.t(null==(a=null==n?void 0:n.asset_house)?void 0:a.full_name),b:"8a7a7d3f-0-"+s,c:e.p({value:(null==n?void 0:n.approval_owner_status)||(null==n?void 0:n.status),Enums:e.unref(o.HouseRegistersStatusEnum)}),d:e.n(`status_tab status_${v=n,"AddOwner"===(null==v?void 0:v.type)?null==v?void 0:v.status:"Approved"===(null==v?void 0:v.status)&&"Approved"===(null==v?void 0:v.approval_owner_status)?"Approved":"Pending"===(null==v?void 0:v.status)||"Pending"===(null==v?void 0:v.approval_owner_status)?"Pending":"Rejected"===(null==v?void 0:v.status)||"Rejected"===(null==v?void 0:v.approval_owner_status)?"Rejected":void 0}`),e:e.f(null==n?void 0:n.customer_info,((n,l,u)=>e.e({a:"NonOwner"===(null==n?void 0:n.house_relation)},"NonOwner"===(null==n?void 0:n.house_relation)?{b:"8a7a7d3f-1-"+s+"-"+u,c:e.p({value:null==n?void 0:n.residential_relation,Enums:e.unref(o.HouseOccupantsResidentialRelationEnum)})}:{d:"8a7a7d3f-2-"+s+"-"+u,e:e.p({value:null==n?void 0:n.house_relation,Enums:e.unref(o.HouseOccupantsHouseRelationEnum)})},{f:`f_item_${t}_${l}`}))),f:e.o((e=>(e=>{var o;i.value=!0,l.getApiLoading(u.Apis.Grid.Grids.GetHousekeeper,{asset_houses_id:null==(o=null==e?void 0:e.asset_house)?void 0:o.id}).then((o=>{var n,t;"AddOccupant"===(null==e?void 0:e.type)&&("Approved"===(null==e?void 0:e.status)&&"Pending"===(null==e?void 0:e.approval_owner_status)&&(r.value=1),"Approved"===(null==e?void 0:e.status)&&"Approved"===(null==e?void 0:e.approval_owner_status)&&(r.value=2),d.value=[{label:"第一步：后台初步审核",content:"如需加快进度，可联系社区管家催审 管家电话：",phone:null==(n=null==o?void 0:o.data)?void 0:n.phone,status:null==e?void 0:e.status},{label:"第二步：业主确认审核",content:"如需加快进度，可联系社区管家催审 管家电话：",phone:null==e?void 0:e.apply_customer_phone,status:null==e?void 0:e.approval_owner_status}]),"AddOwner"===(null==e?void 0:e.type)&&(d.value=[{content:"如需加快进度，可联系社区管家催审",phone_text:"管家电话：",phone:null==(t=null==o?void 0:o.data)?void 0:t.phone}]),console.log(o)})),console.log(e,"e")})(n)),`item_${t}`),g:`item_${t}`}})),b:e.s(e.unref(n.getStyleColorInfo)()),c:(null==(_=d.value)?void 0:_.length)>1},(null==(h=d.value)?void 0:h.length)>1?{d:e.f(d.value,((o,n,t)=>e.e({a:e.t(null==o?void 0:o.label),b:r.value===n&&"Pending"===(null==o?void 0:o.status)},r.value===n&&"Pending"===(null==o?void 0:o.status)?{c:e.n(`text_${null==o?void 0:o.status}`)}:{},{d:r.value===n&&"Approved"===(null==o?void 0:o.status)},r.value===n&&"Approved"===(null==o?void 0:o.status)?{e:e.n(`text_${null==o?void 0:o.status}`)}:{},{f:r.value===n&&"Rejected"===(null==o?void 0:o.status)},r.value===n&&"Rejected"===(null==o?void 0:o.status)?{g:e.n(`text_${null==o?void 0:o.status}`)}:{},{h:e.t(null==o?void 0:o.content),i:e.t(e.unref(s.formatPhoneNumber)(null==o?void 0:o.phone)),j:e.o((n=>{var t;(t=null==o?void 0:o.phone)&&e.index.makePhoneCall({phoneNumber:t})}),`step_${n}`),k:`step_${n}`,l:"8a7a7d3f-5-"+t+",8a7a7d3f-4"}))),e:e.p({direction:"column",dot:!0,current:r.value})}:{},{f:1===(null==(f=d.value)?void 0:f.length)},1===(null==(g=d.value)?void 0:g.length)?{g:e.f(d.value,((o,n,t)=>e.e({a:e.t(null==o?void 0:o.content),b:null==o?void 0:o.phone},(null==o?void 0:o.phone)?{c:e.t(null==o?void 0:o.phone_text),d:e.t(e.unref(s.formatPhoneNumber)(null==o?void 0:o.phone))}:{},{e:`step_${n}`})))}:{},{h:e.o(v),i:e.p({label:"我知道了",size:"md",type:"primary"}),j:e.p({show:i.value,mode:"center",title:"房屋审核进度"})})}}}),i=e._export_sfc(a,[["__scopeId","data-v-8a7a7d3f"]]);wx.createComponent(i);
