"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),s=require("../model.js"),n=require("../method.js"),t=require("../../../common/libraries/apiLoading.js"),a=require("../../../gen/Apis.js"),r=require("../../../common/libraries/naviHelper.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-button")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const u=e.defineComponent({__name:"OwnerAuditList",setup(u){const l=e.ref(!1),i=e.ref({id:"",reason:""}),m=()=>{l.value=!1},d=()=>{var e;if(!(null==(e=i.value)?void 0:e.reason))return r.showToast("请输入理由!");t.getApiLoading(a.Apis.Archive.HouseRegisters.Audit,{...i.value,status:"Rejected"}).then((e=>{var o;r.showToast("提交成功！"),l.value=!1,null==(o=n.method)||o.handleSrarch(),console.log(e)}))};return(t,a)=>{var r,u;return{a:e.f(null==(u=null==(r=e.unref(s.useModel))?void 0:r.dataList)?void 0:u.value,((s,t,a)=>{var r;return e.e({a:e.t(null==(r=null==s?void 0:s.asset_house)?void 0:r.full_name),b:"a711ea00-0-"+a,c:e.p({value:null==s?void 0:s.approval_owner_status,Enums:e.unref(o.HouseRegistersStatusEnum)}),d:e.n(`status_tab status_${null==s?void 0:s.approval_owner_status}`),e:e.f(null==s?void 0:s.customer_info,((s,n,r)=>({a:e.t(null==s?void 0:s.name),b:e.t(null==s?void 0:s.phone),c:"a711ea00-1-"+a+"-"+r,d:e.p({value:null==s?void 0:s.residential_relation,Enums:e.unref(o.HouseOccupantsResidentialRelationEnum)}),e:`f_item_${t}_${n}`}))),f:e.t(null==s?void 0:s.created_at),g:"Pending"===(null==s?void 0:s.approval_owner_status)},"Pending"===(null==s?void 0:s.approval_owner_status)?{h:e.o((e=>{return o=s,l.value=!0,void(i.value.id=null==o?void 0:o.id);var o}),`item_${t}`),i:"a711ea00-2-"+a,j:e.p({label:"驳回",size:"sm",type:"display"}),k:e.o((o=>{var t;return null==(t=e.unref(n.method))?void 0:t.handleAudit(s)}),`item_${t}`),l:"a711ea00-3-"+a,m:e.p({label:"审核通过",size:"sm",type:"primary"})}:{},{n:`item_${t}`})})),b:i.value.reason,c:e.o((e=>i.value.reason=e.detail.value)),d:e.o(m),e:e.p({label:"取消",size:"md",type:"display"}),f:e.o(d),g:e.p({label:"提交",size:"md",type:"primary"}),h:e.p({show:l.value,mode:"center",title:"审核驳回"})}}}}),l=e._export_sfc(u,[["__scopeId","data-v-a711ea00"]]);wx.createComponent(l);
