"use strict";(self["webpackChunksgc_mobile"]=self["webpackChunksgc_mobile"]||[]).push([[960],{3500:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var o=a(6252),l=a(9963),d=a(3577);const n=(0,o._)("br",null,null,-1),s={key:0},m=(0,o._)("br",null,null,-1);function r(e,t,a,r,u,i){const c=(0,o.up)("sgc-item-input"),y=(0,o.up)("ion-button"),h=(0,o.up)("ion-list"),p=(0,o.up)("ion-label"),g=(0,o.up)("ion-list-header"),w=(0,o.up)("ion-badge"),M=(0,o.up)("ion-text"),_=(0,o.up)("ion-item"),f=(0,o.up)("sgc-loading"),k=(0,o.up)("sgc-page"),R=(0,o.up)("ion-page");return(0,o.wg)(),(0,o.j4)(R,null,{default:(0,o.w5)((()=>[(0,o.Wm)(k,{title:e.title,useRefresh:!0,onSgcRefresh:e.onSearch},{default:(0,o.w5)((()=>[(0,o._)("form",{novalidate:"",onSubmit:t[7]||(t[7]=(0,l.iM)(((...t)=>e.onSearch&&e.onSearch(...t)),["prevent"]))},[(0,o.Wm)(h,{class:"item-form"},{default:(0,o.w5)((()=>[(0,o.Wm)(c,{type:"datetime-range",label:"ROOM.LBL_YYYYMMDD",required:!0,modelValue:e.searchModel.reYyyymmddF,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchModel.reYyyymmddF=t),to:e.searchModel.reYyyymmddT,"onUpdate:to":t[1]||(t[1]=t=>e.searchModel.reYyyymmddT=t),onSgcChange:t[2]||(t[2]=t=>e.onSearch()),ref:"startEndYyyymmdd"},null,8,["modelValue","to"]),(0,o.Wm)(c,{type:"select",label:"ROOM.LBL_ROOM",required:!0,"add-all":!0,"code-key":e.codeKey.meetingroomId,modelValue:e.searchModel.meetingroomId,"onUpdate:modelValue":t[3]||(t[3]=t=>e.searchModel.meetingroomId=t),onSgcChange:t[4]||(t[4]=t=>e.onSearch()),ref:"meetingroomId"},null,8,["code-key","modelValue"]),(0,o.Wm)(c,{type:"radio",label:"ROOM.LBL_STATUS","code-key":e.codeKey.status,modelValue:e.searchModel.status,"onUpdate:modelValue":t[5]||(t[5]=t=>e.searchModel.status=t),onSgcChange:t[6]||(t[6]=t=>e.onSearch()),ref:"meetingroomId"},null,8,["code-key","modelValue"]),(0,o.Wm)(y,{type:"submit",color:"primary",size:"small",expand:"block"},{default:(0,o.w5)((()=>[(0,o.Uk)((0,d.zw)(e.$t("BTN_SEARCH")),1)])),_:1})])),_:1})],32),(0,o.Wm)(f,{loadStatus:e.loadStatus,loadType:"list"},{default:(0,o.w5)((()=>[(0,o.Wm)(h,{class:"item-list"},{default:(0,o.w5)((()=>[(0,o.Wm)(g,null,{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,d.zw)(e.$t("ROOM.LBL_ROOMREV")),1)])),_:1})])),_:1}),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.dataList,((t,a)=>((0,o.wg)(),(0,o.j4)(_,{key:a,detail:!0},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{onClick:a=>e.viewRemMeetingCon(t)},{default:(0,o.w5)((()=>[(0,o._)("h3",null,[(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,d.zw)(t.statusNm),1)])),_:2},1024),(0,o.Uk)(" "+(0,d.zw)(t.reName),1)]),(0,o._)("h4",null,(0,d.zw)(t.locationNm)+" -"+(0,d.zw)(t.bunho),1),(0,o._)("p",null,[(0,o.Uk)((0,d.zw)(t.pymd),1),n,(0,o.Uk)((0,d.zw)(t.phm),1)]),(0,o._)("p",null,[(0,o.Uk)((0,d.zw)(t.snm)+" ",1),t.attendNum?((0,o.wg)(),(0,o.iD)("span",s,"("+(0,d.zw)(t.attendNum)+" 명)",1)):(0,o.kq)("",!0)])])),_:2},1032,["onClick"]),(0,o.Wm)(M,{slot:"end"},{default:(0,o.w5)((()=>[m,(0,o.Wm)(y,{fill:"solid",onClick:a=>e.setCancelClose(t,"APP"),disabled:"20"!==t?.status},{default:(0,o.w5)((()=>[(0,o.Uk)((0,d.zw)(e.$t("ROOM.BTN_REV_APP")),1)])),_:2},1032,["onClick","disabled"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["loadStatus"])])),_:1},8,["title","onSgcRefresh"])])),_:1})}var u=a(9243),i=a(8959),c=(0,u.aZ)({name:"PoRoomAppPage",components:{...u.nv,...u.jm},mounted(){const e=u.P6.getDateObject();e.setDate(1),this.searchModel.reYyyymmddF=u.P6.getDate(e,"yyyyMMdd"),e.setMonth(e.getMonth()+1),this.searchModel.reYyyymmddT=u.P6.getDateAddDay(e,-1,"yyyyMMdd"),this.onSearch()},setup(){return{utils:u.P6}},data(){return{title:"TIT_ROOMREV",loadStatus:"ready",searchModel:{meetingroomId:"",reYyyymmddF:"",reYyyymmddT:"",status:"20"},dataList:[],codeKey:{status:"RE002_APP",meetingroomId:"ROOMCD"}}},methods:{viewRemMeetingCon(e){null!==e&&u.Jd.openAlert(e.meetingCon||e.meetingName||e.recon,null,{header:"ROOM.LBL_MEETING_CON",backdropDismiss:!0})},setRoomRevReg(e){u.Jd.openModal(i.P,{remInfo:{},showType:e}).then((()=>{this.onSearch()}))},setCancelClose(e,t){switch(t){case"APP":switch(e.status){case"20":u.Jd.openModal(i.X,{remInfo:{reservationId:e.reservationId},showType:"APP"}).then((()=>{this.onSearch()}));break}break}},onSearch(){const e=u.Jd.getSubmitData(this.searchModel,{reYyyymmddF:"date",reYyyymmddT:"date",status:"codeall",meetingroomId:"codeall"});u.Jd.checkLoadStatusList(this,u.Jd.getList("api/room/selectZehrRomResrvtnStatusList",e).then((e=>{this.dataList=e||[]})))}}}),y=a(7789);const h=(0,y.Z)(c,[["render",r]]);var p=h}}]);
//# sourceMappingURL=960.a9f20100.js.map