PageSourceSearch

https://time.alameh.ir/js/chunk-6aa21ada.b7e1be5f.js

js alameh.ir collected 2026-09-26 12:32:21 UTC 13,964 bytes, 2 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6aa21ada"],{"0d2c":function(t,a,e){},"33f5":function(t,a,e){},5454:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-card",{attrs:{loading:t.showDialogProgress,disabled:t.showDialogProgress}},[e("div",{staticClass:"VacationRequest"},[e("vacation-remain"),e("box",{attrs:{title:this.$t("nav-request-leave")}},[e("div",{staticClass:"px-3 pt-2"},[e("v-form",{ref:"form",model:{value:t.form,callback:function(a){t.form=a},expression:"form"}},[e("v-row",[e("v-col",{attrs:{cols:"12",sm:"6"}},[e("v-row",[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto",attrs:{for:"vacationParams.vacationType"}},[t._v(t._s(t.$t("vacationType"))+" : ")])]),e("v-col",[e("v-select",{staticClass:"my-auto py-0",attrs:{rules:[t.$rules.required],"hide-details":"",items:t.vacationTypes,label:t.$t("vacationType"),"item-text":"Name","item-value":"Code","return-object":"",dense:"",solo:""},on:{change:t.changeVacationType},model:{value:t.vacationParams.vacationType,callback:function(a){t.$set(t.vacationParams,"vacationType",a)},expression:"vacationParams.vacationType"}})],1)],1)],1)],1),e("v-row",{staticClass:"mt-2"},[e("v-col",{attrs:{cols:"12",sm:"6"}},[e("v-row",[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto"},[t._v(t._s(t.$t("fromDate"))+" : ")])]),e("v-col",[e("dialog-date-picker",{attrs:{label:t.$t("fromDate")+":",initDate:t.initBeginDate},on:{dateResult:t.bDate}})],1)],1)],1),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("v-row",{staticClass:"mt-2 mt-sm-0"},[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto"},[t._v(t._s(t.$t("toDate"))+" : ")])]),e("v-col",[e("dialog-date-picker",{attrs:{label:t.$t("toDate")+":",initDate:t.initEndDate},on:{dateResult:t.eDate}})],1)],1)],1)],1),t.showVacationTime?e("v-row",{staticClass:"mt-2"},[e("v-col",{attrs:{cols:"12",sm:"6"}},[e("v-row",[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto"},[t._v(t._s(t.$t("fromTime"))+" : ")])]),e("v-col",[e("dialog-time-picker",{attrs:{label:t.$t("fromTime")+":",initTime:t.initBeginTime},on:{dateResult:t.bTime}})],1)],1)],1),e("v-col",{attrs:{cols:"12",sm:"6"}},[e("v-row",{staticClass:"mt-2 mt-sm-0"},[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto"},[t._v(t._s(t.$t("toTime"))+" : ")])]),e("v-col",[e("dialog-time-picker",{attrs:{label:t.$t("toT
1ime")+":",initTime:t.initEndTime},on:{dateResult:t.eTime}})],1)],1)],1)],1):t._e(),e("v-row",{staticClass:"mt-2"},[e("v-col",{attrs:{cols:"12",sm:"12"}},[e("v-row",[e("v-col",{staticClass:"max-width-text-title px-1 d-flex"},[e("label",{staticClass:"my-auto"},[t._v(t._s(t.$t("description"))+" : ")])]),e("v-col",[e("v-textarea",{ref:"description",attrs:{solo:"",dense:"","hide-details":"","auto-grow":"",placeholder:t.$t("description"),rows:"2"},model:{value:t.vacationParams.Description,callback:function(a){t.$set(t.vacationParams,"Description",a)},expression:"vacationParams.Description"}})],1)],1)],1)],1)],1),e("v-card-actions",{staticClass:"px-0 pt-4"},[e("v-spacer"),e("v-btn",{attrs:{color:"primary"},on:{click:function(a){t.showWorkCalndar=!t.showWorkCalndar}}},[t._v(t._s(t.$t("workCalendar")))]),e("v-btn",{attrs:{color:"primary",disabled:!t.form,loading:t.isLoading},on:{click:t.addVacation}},[t._v(t._s(t.$t("vacationRegistration")))]),t.visibleBtn?e("v-btn",{attrs:{color:"primary",disabled:!t.form,loading:t.isLoading},on:{click:t.showIntervalIo}},[t._v(t._s(t.$t("nav-interval-io")))]):t._e()],1)],1)]),e("IntervalIOList",{ref:"intervalIOList",staticClass:"py-2",attrs:{visible:t.IntervalIOListVisibility}}),e("WorkCalendar",{attrs:{showWorkCalndar:t.showWorkCalndar,perno:t.vacationDetails.PerNo}})],1)])},s=[],o=(e("d3b7"),e("3ca3"),e("ddb0"),e("9861"),e("498a"),e("7db0"),e("a4d3"),e("e01a"),e("879e")),n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.pnlRemainVacationVisible?e("div",{staticClass:"VacationRemain mb-2"},[e("box",{attrs:{title:this.$t("vacationRemain.title")}},[e("div",{staticClass:"pa-3"},[e("v-row",[e("v-col",{attrs:{cols:"4"}},[e("span",[t._v("مانده تا پایان ماه/دوره قبل")]),t._v(":"),e("span",{staticClass:"text-value"},[t._v(t._s(t.remainUptoMonth))])]),e("v-col",{attrs:{cols:"4"}},[t._v(t._s(t.$t("vacationRemain.MandeTapayanSal"))+":"),e("span",{staticClass:"text-value"},[t._v(t._s(t.remainUptoYear))])]),t.showRemaining?e("v-col",{attrs:{cols:"4"}},[e("span",[t._v("مانده تاکنون")]),t._v(":"),e("span",{staticClass:"text-value"},[t._v(t._s(t.remainDetail))])]):t._e()],1)],1)])],1):t._e()},r=[],c=e("c7eb"),l=e("1da1"),h=(e("25f0"),e("c31f")),d=e("2afd"),m={data:function(){return{year:null,month:null,vacationRemain:null,pnlRemainVacationVisible:!1,remainUptoYear:"",remainUptoMonth:"",remainDetail:"",showRemaining:!1}},mounted:function(){this.pageLoad()},methods:{pageLoad:function(){var t=this;return Object(l["a"])(Object(c["a"])().mark((function a(){var e;return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!d["a"].isWebKartAdmin()){a.next=2;break}return a.abrupt("return");case 2:e=localStorage.getItem("ShowMorRemaining"),"1"==e&&(t.showRemaining=!0),t.GetVacationRemainDetail();case 5:case"end":return a.stop()}}),a)})))()},GetVacationRemainDetail:function(){var t=this;return Object(l["a"])(Object(c["a"])().mark((function a(){var i,s,o,n,r,l;return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=!1,a.next=3,t.$store.dispatch("readwebkartsetting");case 3:if(s=a.sent,s.type==h["a"].success&&(i="1"==s.data.DisableShowingMorLeft),!i){a.next=8;break}return t.pnlRemainVacationVisible=!1,a.abrupt("return");case 8:t.pnlRemainVacationVisible=!0,o=e("042b"),n=o().locale("fa").format("YYYY"),r=o().locale("fa").format("MM/DD"),l={perno:t.$store.state.auth.auth.username,date:r,year:n,holiDaysCounted:!1},t.$store.dispatch("GetRemainMorakhasiUntilNow",{GetRemainMorakhasiUntilNowParams:l}).then((function(a){if(console.log(a),"success"===a.type){var e=a.data[2];t.remainUptoMonth=e<0?"-"+d["a"].ConvertMinToHour(e.toString()):d["a"].ConvertMinToHour(e.toString());var i=a.data[3];t.remainUptoYear=i<0?"-"+d["a"].ConvertMinToHour(i.toString()):d["a"].ConvertMinToHour(i.toString())}})),t.$store.dispatch("GetRealTimeCurrentVacationRemainUntilNow",{GetRemainMorakhasiUntilNowParams:l}).then((function(a){if(console.log(a),"success"===a.type){var e=a.data;t.remainDetail=e<0?"-"+d["a"].ConvertMinToHour(e.toString()):d["a"].ConvertMinToHour(e.toString())}}));case 15:case"end":return a.stop()}}),a)})))()}}},u=m,v=e("2877"),p=e("6544"),g=e.n(p),b=e("62ad"),f=e("0fd9"),D=Object(v["a"])(u,n,r,!1,null,null,null),T=D.exports;g()(D,{VCol:b["a"],VRow:f["a"]});var w=e("6f9e"),y=e("ad82"),$=e("7b2b"),C=e("b834"),V=e("124d"),R=e("d0c5"),x={components:{WorkCalendar:w["a"],DialogDatePicker:y["a"],VacationRemain:T,DialogTimePicker:$["a"],IntervalIOList:o["a"]}
1,mounted:function(){this.getVacationTypes(),this.checkDescriptionRules()},data:function(){return{args:{},vacationDetails:{},vacationParams:{},vacationTypes:[],showVacationTime:!1,showWorkCalndar:!1,showDialogProgress:!1,form:!1,isLoading:!1,initBeginDate:null,beginDate:"",initEndDate:null,endDate:"",initBeginTime:"",initEndTime:"",beginTime:"",endTime:"",descriptionRules:"",visibleBtn:!1,IntervalIOListVisibility:!1,countResult:0}},methods:{getArgs:function(){this.args=this.$route.params.vacationDetails,this.args&&(this.loadVacationRegistration(this.args),this.countResult=1);var t=this.$route.query.SD;t&&(this.initBeginDate=this.beginDate=t,this.initEndDate=this.endDate=t)},loadVacationRegistration:function(t){var a=this,e=new URLSearchParams;e.append("pageNo",R["a"].convertToEnglishDigits(t.PageNo)),e.append("dbkind",t.DBKind),e.append("year",t.Year),e.append("perno",t.selectedPerno||""),this.$store.dispatch("GetVacationDetailForPerson",{params:e}).then((function(e){"success"==e.type&&a.countResult>0&&(a.vacationDetails=e.data[0],a.vacationDetails.Year=t.Year,a.ShowVacationDetailForEdit(a.vacationDetails),a.countResult=0)}))},ShowVacationDetailForEdit:function(t){this.vacationParams.PageNo=t.PageNo.trim(),this.vacationParams.Description=t.UserDescription;var a=this.vacationTypes.find((function(a){return a.Code==t.Type}));a&&this.changeVacationType(a),this.initBeginDate=this.beginDate=t.Year+"/"+t.BeginDate,this.initEndDate=this.endDate=t.Year+"/"+t.EndDate,!1===t.IsDaily&&(this.initBeginTime=this.beginTime=t.BeginTime,this.initEndTime=this.endTime=t.EndTime)},bDate:function(t){this.beginDate=t,0==this.vacationParams.vacationType.IsDaily&&(this.initEndDate=t)},eDate:function(t){this.endDate=t},bTime:function(t){this.beginTime=t},eTime:function(t){this.endTime=t},getVacationTypes:function(){var t=this;this.$store.dispatch("GetWebVacationTypeList").then((function(a){"success"===a.type&&(t.vacationTypes=a.data,t.vacationTypes.length>0&&(t.vacationParams.vacationType=t.vacationTypes[0],t.showVacationTime=0==t.vacationTypes[0].IsDaily,t.getArgs()))}))},changeVacationType:function(t){console.log(t),this.IntervalIOListVisibility=!1,this.vacationParams.vacationType=t,0==t.IsDaily?(this.showVacationTime=!0,this.visibleBtn=!0,this.getArgs(),this.initEndDate=this.beginDate):(this.showVacationTime=!1,this.visibleBtn=!1)},addVacation:function(){var t=this;if(this.showDialogProgress=!0,!this.beginDate||!this.endDate){var a=this.endDate,i=this.beginDate;return console.log("aa:"+a+"bb:"+i),this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.wrongDate")}),void(this.showDialogProgress=!1)}if(this.beginDate.substr(0,4)!=this.endDate.substr(0,4))return this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.dateMustbeinSameYear")}),void(this.showDialogProgress=!1);if(1!=V["a"].CompareDates(this.beginDate,this.endDate))return this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.CompareDates")}),void(this.showDialogProgress=!1);if(0==this.vacationParams.vacationType.IsDaily){if(!this.beginTime||!this.endTime)return this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.wrongTime")}),void(this.showDialogProgress=!1);if(this.beginDate+" "+this.beginTime>=this.endDate+" "+this.endTime)return this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.CompareTimes")}),void(this.showDialogProgress=!1);if(this.beginDate==this.endDate&&this.beginTime>=this.endTime)return this.$EosToast.show({type:C["a"].error,msg:this.$t("eosWinKartWebResource.CompareTimes")}),void(this.showDialogProgress=!1);var s=e("042b"),o=s(this.beginDate+"-"+this.beginTime,"jYYYY/jMM/jDD-hh:mm").locale("fa"),n=s(this.endDate+"-"+this.endTime,"jYYYY/jMM/jDD-hh:mm").locale("fa"),r=n.diff(o,"hours");if(r>24)return void this.$EosToast.show({type:C["a"].error,msg:"مدت زمان مرخصی ساعتی بیش از 24 ساعت است"})}else if(this.beginTime="00:00",this.endTime="23:59",this.beginDate==this.endDate&&this.beginTime&&this.endTime&&this.beginTime===this.endTime)return this.$EosToast.show({type:C["a"].error,msg:"ساعت شروع و پایان مرخصی در یک روز، یکسان درج شده است"}),void(this.showDialogProgress=!1);var c=new URLSearchParams;
1c.append("BeginDate",this.beginDate),c.append("EndDate",this.endDate),c.append("BeginTime",this.beginTime),c.append("EndTime",this.endTime),c.append("Description",this.vacationParams.Description||""),c.append("VacationType",this.vacationParams.vacationType.Code),c.append("PageNo",this.vacationParams.PageNo||""),this.$store.dispatch("AddVacation",{params:c}).then((function(a){"success"===a.type?(t.$EosToast.show({type:C["a"].success,msg:t.$t("msg-registration-success",{opName:t.$t("nav-request-leave")})}),t.showDialogProgress=!1,t.vacationParams.PageNo&&t.args&&t.args.from&&t.$router.push({name:t.args.from})):(t.$EosToast.show({type:C["a"].error,msg:a.error||"error"}),t.showDialogProgress=!1)}))},gotoIntervalIo:function(){this.$router.push({name:"interval-io"})},showIntervalIo:function(){this.IntervalIOListVisibility=!0,this.$refs.intervalIOList.showIntervalDays(2,this.beginDate)},checkDescriptionRules:function(){var t=this.$store.state.settings.settings.IsCommentRequiredForVacation;1==t&&(this.$refs.description.rules=[this.$rules.required])}}},P=x,_=(e("62d7"),e("8336")),k=e("b0af"),E=e("99d9"),I=e("4bd4"),M=e("b974"),W=e("2fa4"),Y=e("a844"),S=Object(v["a"])(P,i,s,!1,null,"14d658e3",null);a["default"]=S.exports;g()(S,{VBtn:_["a"],VCard:k["a"],VCardActions:E["a"],VCol:b["a"],VForm:I["a"],VRow:f["a"],VSelect:M["a"],VSpacer:W["a"],VTextarea:Y["a"]})},"62d7":function(t,a,e){"use strict";e("33f5")},"65e1":function(t,a,e){"use strict";e("0d2c")},"7b2b":function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("date-picker",{ref:"dialog",staticClass:"datepicker",attrs:{type:"time",editable:"",format:"HH:mm",placeholder:"00:00",color:"var(--color-primary)",disabled:t.disabled,"input-attrs":{style:{width:"100% !important"}}},model:{value:t.date,callback:function(a){t.date=a},expression:"date"}})],1)},s=[],o=e("a632"),n=e.n(o),r=e("124d"),c={components:{datePicker:n.a},props:{label:String,initTime:String,timeNow:Boolean,disabled:{type:Boolean,default:!1}},mounted:function(){if(this.initTime){var t=this.initTime;console.log("initTime : "+t),this.date=this.initTime}else{var a=new Date,e=a.getHours()+":"+a.getMinutes();this.date=e}},data:function(){return{date:"00:00",modal:!1}},computed:{},methods:{dateResult:function(){var t=r["a"].fixTimeFormatTwoDigit(this.date);this.$emit("dateResult",t)}},watch:{date:function(){this.dateResult()},initTime:function(t){this.date=t}}},l=c,h=(e("65e1"),e("2877")),d=Object(h["a"])(l,i,s,!1,null,null,null);a["a"]=d.exports}}]);
2//# sourceMappingURL=chunk-6aa21ada.b7e1be5f.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.