"use strict";(self["webpackChunksgc_mobile"]=self["webpackChunksgc_mobile"]||[]).push([[954],{7954:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var s=o(6252),d=o(9963),l=o(3577);const a={slot:"end",class:"deft-status"};function n(e,t,o,n,i,r){const c=(0,s.up)("sgc-item-input"),h=(0,s.up)("ion-button"),u=(0,s.up)("ion-list"),m=(0,s.up)("ion-badge"),f=(0,s.up)("ion-label"),g=(0,s.up)("ion-item"),p=(0,s.up)("sgc-loading"),C=(0,s.up)("sgc-page"),D=(0,s.up)("ion-page");return(0,s.wg)(),(0,s.j4)(D,null,{default:(0,s.w5)((()=>[(0,s.Wm)(C,{title:e.title},{default:(0,s.w5)((()=>[(0,s._)("form",{novalidate:"",onSubmit:t[9]||(t[9]=(0,d.iM)(((...t)=>e.onSearch&&e.onSearch(...t)),["prevent"]))},[(0,s.Wm)(u,{class:"item-form"},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{label:"DEFT.LBL_SITE_NM",type:"select",required:!0,"code-key":e.codeKey.siteCd,modelValue:e.searchModel.siteCd,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchModel.siteCd=t),onSgcChange:t[1]||(t[1]=t=>e.formChange("siteCd")),ref:"siteCd"},null,8,["code-key","modelValue"]),(0,s.Wm)(c,{label:"DEFT.LBL_DONG",type:"select",addAll:!0,"code-key":e.codeKey.dong,modelValue:e.searchModel.dong,"onUpdate:modelValue":t[2]||(t[2]=t=>e.searchModel.dong=t),onSgcChange:t[3]||(t[3]=t=>e.formChange("dong")),ref:"dong"},null,8,["code-key","modelValue"]),(0,s.Wm)(c,{label:"DEFT.LBL_HSNO",type:"select",addAll:!0,"code-key":e.codeKey.hsno,modelValue:e.searchModel.hsno,"onUpdate:modelValue":t[4]||(t[4]=t=>e.searchModel.hsno=t),onSgcChange:t[5]||(t[5]=t=>e.formChange("hsno")),ref:"hsno"},null,8,["code-key","modelValue"]),(0,s.Wm)(c,{label:"DEFT.LBL_APLNT_NM",type:"text",modelValue:e.searchModel.aplntNm,"onUpdate:modelValue":t[6]||(t[6]=t=>e.searchModel.aplntNm=t),ref:"aplntNm"},null,8,["modelValue"]),(0,s.Wm)(c,{label:"DEFT.LBL_RCPT_DT",type:"datetime-range",modelValue:e.searchModel.offrDtFrom,"onUpdate:modelValue":t[7]||(t[7]=t=>e.searchModel.offrDtFrom=t),to:e.searchModel.offrDtTo,"onUpdate:to":t[8]||(t[8]=t=>e.searchModel.offrDtTo=t),ref:"offrDt"},null,8,["modelValue","to"]),(0,s.Wm)(h,{type:"submit",color:"primary",size:"small",expand:"block"},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(e.$t("BTN_SEARCH")),1)])),_:1})])),_:1})],32),(0,s.Wm)(p,{loadStatus:e.loadStatus,loadType:"list"},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{class:"item-list"},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.dataList,((t,o)=>((0,s.wg)(),(0,s.j4)(g,{key:o,routerLink:"/as/defting/"+t.deftNo},{default:(0,s.w5)((()=>[(0,s.Wm)(f,null,{default:(0,s.w5)((()=>[(0,s._)("h3",null,[(0,s.Wm)(m,{class:(0,l.C_)(["emg-gb",t.emgGbCd])},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(t.emgGbNm),1)])),_:2},1032,["class"]),(0,s.Uk)(" "+(0,l.zw)(e.utils.getDonghsno(t.dong,t.hsno)),1)]),(0,s._)("p",null,(0,l.zw)(e.utils.getJobTypeNm(t.deftLjobtypNm,t.deftMjobtypNm,t.deftJobtypNm)),1),(0,s._)("p",null,(0,l.zw)(t.deftCn),1),(0,s._)("p",null,(0,l.zw)(t.rcptDt)+" "+(0,l.zw)(e.utils.getDatePass(t.rcptDt)),1)])),_:2},1024),(0,s._)("div",a,[(0,s.Wm)(m,{class:(0,l.C_)(["deft-prcg-stus",t.deftPrcgStusCd])},{default:(0,s.w5)((()=>[(0,s.Uk)((0,l.zw)(t.deftPrcgStusNm),1)])),_:2},1032,["class"])])])),_:2},1032,["routerLink"])))),128))])),_:1})])),_:1},8,["loadStatus"])])),_:1},8,["title"])])),_:1})}var i=o(9243),r=(0,i.aZ)({name:"AsDeftIngPage",components:{...i.nv,...i.jm},setup(){return{utils:i.P6}},mounted(){i.Jd.isNotNull(this.searchModel.siteCd)&&(this.formChange("siteCd"),this.onSearch())},data(){return{title:"TIT_DEPTING",loadStatus:"ready",searchModel:{cmpnCd:"",siteCd:i.Jd.getAppConf()?.loginInfo?.connSiteCd,dong:"",hsno:"",deftNo:"",aplntNm:"",deftPrcgStusCd:"",offrDtFrom:"",offrDtTo:null,emgGbCd:"",crryTelNo:""},dataList:[],codeKey:{siteCd:"SITECD",dong:"",hsno:""}}},methods:{formChange(e){switch(e){case"siteCd":this.searchModel.dong="",this.searchModel.hsno="",i.Jd.isNull(this.searchModel.siteCd)?(i.Jd.setFormDisabled(!0,this.$refs,"dong"),i.Jd.setFormDisabled(!0,this.$refs,"hsno")):(i.Jd.changeLoginData(this.searchModel.siteCd),i.Jd.setFormDisabled(!1,this.$refs,"dong"),i.Jd.setFormDisabled(!0,this.$refs,"hsno"),this.codeKey.dong="DONG_"+this.searchModel.siteCd);break;case"dong":this.searchModel.hsno="",i.Jd.isNull(this.searchModel.dong)?i.Jd.setFormDisabled(!0,this.$refs,"hsno"):(i.Jd.setFormDisabled(!1,this.$refs,"hsno"),this.codeKey.hsno="DONG_"+this.searchModel.siteCd+"_"+this.searchModel.dong);break}},onSearch(){if(i.Jd.isNull(this.searchModel.siteCd))return i.Jd.openFormInvalid("현장",this.$refs,"siteCd");i.Jd.checkLoadStatusList(this,i.Jd.getList("api/selectTcsDeftList",i.Jd.getSubmitData(this.searchModel,{offrDtFrom:"date",offrDtTo:"date"},{showType:"ING"})).then((e=>{this.dataList=e})))}}}),c=o(7789);const h=(0,c.Z)(r,[["render",n]]);var u=h}}]);
//# sourceMappingURL=954.c49eacf5.js.map