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