import{P as a,O as s,I as l,Q as e,R as i,y as t,S as d}from"./element-plus-DSMJnpwa.js";import{d as r}from"./index-mv7arXuk.js";/* empty css                *//* empty css                    *//* empty css                        *//* empty css               *//* empty css               *//* empty css                 *//* empty css               */import{_ as n}from"./index-ppR_FSA-.js";import{_ as u}from"./index-9_f6rNAP.js";import{g as o}from"./index-FcTFFc8G.js";import{f as v}from"./time-DpZ222L_.js";import{B as m,g as c,a4 as p,aB as f,aE as _,H as j,L as h,M as x,P as b,O as g,Z as y,u as T,Y as N,d as B}from"./vue-vendor-DZekML78.js";import"./utils-cPVb2Haz.js";const I={class:"ResidentMainBox p-2 w-full h-full"},w={class:"ResidentMainBody"},M={class:"grid grid-cols-3 grid-rows-3"},P={class:"carinfo_item"},R={class:"main"},O={class:"carinfo_item"},k={class:"main"},q={class:"carinfo_item"},C={class:"main"},D={class:"carinfo_item"},G={class:"main"},Q={class:"carinfo_item"},E={class:"main"},H={class:"carinfo_item"},L={class:"main"},S={class:"carinfo_item"},U={class:"main"},W={class:"flex"},Y={class:"content-imageBox"},Z=r(m({__name:"visitorMain",setup(r){const{proxy:m}=c(),{sys_user_sex:Z}=p(m?.useDict("sys_user_sex")),z=B([{date:"",name:"西大门"},{date:"",name:"西大门"}]),A=B(null),F=f(),J=_(),K=B({id:null,houseId:null,visitorName:"",villageId:null,houseName:"",visitorGender:"0",visitorPhone:"",carNum:null,visitorNum:null,startTime:"",endTime:"",type:"1",status:"0",url:""});function V(){J.push({path:"/repair/visitorlist"})}return F.query.id&&(A.value=F.query.id,o(A.value).then(a=>{K.value={...K.value,...a.data},z.value[0].date=K.value.startTime,z.value[1].date=K.value.endTime})),(r,o)=>{const m=n,c=s,p=l,f=a,_=i,B=e,A=t,F=d;return j(),h("div",I,[x(u,{title:"访客信息"}),b("div",w,[x(F,null,{header:g(()=>[...o[0]||(o[0]=[b("div",{class:"card-header"},[b("span",null,"基本信息")],-1)])]),default:g(()=>[x(f,null,{default:g(()=>[x(c,{span:14},{default:g(()=>[b("div",M,[b("div",P,[o[1]||(o[1]=b("div",{class:"label"},"访问房屋:",-1)),b("div",R,y(K.value.houseName),1)]),b("div",O,[o[2]||(o[2]=b("div",{class:"label"},"访客姓名:",-1)),b("div",k,y(K.value.visitorName),1)]),b("div",q,[o[3]||(o[3]=b("div",{class:"label"},"访客性别:",-1)),b("div",C,[x(m,{options:T(Z),value:K.value.visitorGender},null,8,["options","value"])])]),b("div",D,[o[4]||(o[4]=b("div",{class:"label"},"手机号码:",-1)),b("div",G,y(K.value.visitorPhone),1)]),b("div",Q,[o[5]||(o[5]=b("div",{class:"label"},"访问日期:",-1)),b("div",E,y(K.value.startTime)+" - "+y(K.value.endTime),1)]),b("div",H,[o[6]||(o[6]=b("div",{class:"label"},"访问时长:",-1)),b("div",L,y(T(v)(K.value.startTime,K.value.endTime)),1)]),b("div",S,[o[7]||(o[7]=b("div",{class:"label"},"提交时间:",-1)),b("div",U,y(K.value.startTime),1)])])]),_:1}),x(c,{span:5}),x(c,{span:4},{default:g(()=>[b("div",W,[o[10]||(o[10]=b("div",null,"通行证:",-1)),b("div",Y,[o[8]||(o[8]=b("i",{class:"bordertopline"},null,-1)),x(p,{src:K.value.url},null,8,["src"]),o[9]||(o[9]=b("i",{class:"borderline"},null,-1))])])]),_:1})]),_:1}),o[12]||(o[12]=b("div",{class:"visitorlist"},[b("h2",null,"访问记录")],-1)),x(f,null,{default:g(()=>[x(c,{span:8},{default:g(()=>[x(B,{data:z.value,style:{width:"100%"}},{default:g(()=>[x(_,{align:"center",prop:"name",label:"开门位置"}),x(_,{align:"center",prop:"date",label:"开门时间"})]),_:1},8,["data"])]),_:1})]),_:1}),x(f,{class:"mt-30px"},{default:g(()=>[x(c,{span:12},{default:g(()=>[x(A,{onClick:V},{default:g(()=>[...o[11]||(o[11]=[N("返回",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])])}}}),[["__scopeId","data-v-9a6926ce"]]);export{Z as default};
