"use strict";const e=require("../../common/vendor.js"),l=require("../../gen/Enums.js"),o=require("./method.js"),u=require("./model.js");if(require("../../common/libraries/apiLoading.js"),require("../../common/libraries/day.js"),require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("u-avatar")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const n=e.defineComponent({__name:"index",setup:n=>(e.onLoad((e=>{var l;null==(l=o.method)||l.getShow(e),console.log(e)})),(n,i)=>{var r,s,d,v,a,t,m,p,f,h,c,M,w,j,_,q,D,x,b,k,E,S,g,A,y,C,F,W,z,I,L,N,O,P,H,V,$,B,G,J,K,Q,R,T,U,X,Y,Z,ee,le,oe,ue,ne,ie,re,se,de,ve,ae;return e.e({a:null==(s=null==(r=e.unref(u.useModel))?void 0:r.isExpired)?void 0:s.value},(null==(v=null==(d=e.unref(u.useModel))?void 0:d.isExpired)?void 0:v.value)?{b:e.p({type:"info",size:"50",color:"#FF4D4F"})}:{c:e.p({src:(null==(m=null==(t=null==(a=e.unref(u.useModel))?void 0:a.userInfo)?void 0:t.value)?void 0:m.worker_photo)&&(null==(c=null==(h=null==(f=null==(p=e.unref(u.useModel))?void 0:p.userInfo)?void 0:f.value)?void 0:h.worker_photo[0])?void 0:c.url),size:"70"}),d:e.t((null==(j=null==(w=null==(M=e.unref(u.useModel))?void 0:M.showData)?void 0:w.value)?void 0:j.visitor_name)||"-"),e:e.t((null==(D=null==(q=null==(_=e.unref(u.useModel))?void 0:_.showData)?void 0:q.value)?void 0:D.visitor_phone)||"-")},{f:e.t((null==(E=null==(k=null==(b=null==(x=e.unref(u.useModel))?void 0:x.showData)?void 0:b.value)?void 0:k.asset_house)?void 0:E.full_name)||"-"),g:null==(g=null==(S=e.unref(u.useModel))?void 0:S.isExpired)?void 0:g.value},(null==(y=null==(A=e.unref(u.useModel))?void 0:A.isExpired)?void 0:y.value)?{}:{h:e.t(null==(z=e.unref(l.VisitorAppliesStatusEnum)[null==(W=null==(F=null==(C=e.unref(u.useModel))?void 0:C.showData)?void 0:F.value)?void 0:W.status])?void 0:z.text),i:e.n(`value status_${null==(N=null==(L=null==(I=e.unref(u.useModel))?void 0:I.showData)?void 0:L.value)?void 0:N.status}`)},{j:null==(H=null==(P=null==(O=e.unref(u.useModel))?void 0:O.showData)?void 0:P.value)?void 0:H.remark},(null==(B=null==($=null==(V=e.unref(u.useModel))?void 0:V.showData)?void 0:$.value)?void 0:B.remark)?{k:e.t((null==(K=null==(J=null==(G=e.unref(u.useModel))?void 0:G.showData)?void 0:J.value)?void 0:K.remark)||"-")}:{},{l:e.t((null==(U=null==(T=null==(R=null==(Q=e.unref(u.useModel))?void 0:Q.showData)?void 0:R.value)?void 0:T.last_enter_record)?void 0:U.enter_time)||"-"),m:e.t((null==(ee=null==(Z=null==(Y=null==(X=e.unref(u.useModel))?void 0:X.showData)?void 0:Y.value)?void 0:Z.last_exit_record)?void 0:ee.exit_time)||"-"),n:"Approved"===(null==(ue=null==(oe=null==(le=e.unref(u.useModel))?void 0:le.showData)?void 0:oe.value)?void 0:ue.status)&&!(null==(ie=null==(ne=e.unref(u.useModel))?void 0:ne.isExpired)?void 0:ie.value)},"Approved"!==(null==(de=null==(se=null==(re=e.unref(u.useModel))?void 0:re.showData)?void 0:se.value)?void 0:de.status)||(null==(ae=null==(ve=e.unref(u.useModel))?void 0:ve.isExpired)?void 0:ae.value)?{}:{o:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleSubmit("enter")})),p:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleSubmit("exit")})),q:e.p({btnParimaryName:"进入小区",btnOtherShow:!0,btnOtherName:"离开小区"})})})});wx.createPage(n);
