{"version":3,"sources":["webpack:///./src/doctor-app/service/DoctorAppointmentService.ts","webpack:///./node_modules/core-js/modules/es6.array.find.js","webpack:///./src/doctor-app/views/appointment/List.vue?ed3a","webpack:///./src/doctor-app/views/appointment/List.vue","webpack:///./src/doctor-app/views/appointment/List.vue?8035","webpack:///./src/doctor-app/views/appointment/List.vue?5115"],"names":["refreshAptScheduleSubject","refreshAptSchedule","refresh","next","getAptScheduleRefresh","asObservable","insert","appoit","post","DrAppointmentInsert","JSON","stringify","insertDr","DrAppointmentInsertAdmin","varify","DrAppointmentVerification","reSendCode","appointmentId","get","DrAppointmentReSendCode","approvedUnApproved","appointment","DrAppointmentAppUnApp","GetAppoitmentByCurrentUser","DrAppointmentGetListByUser","GetAppoitmentByDrId","DrAppointmentGetListByDrId","GetAppoitmentByDate1","DrAppointmentGetListByAppointmentDate","GetAppoitmentByDate","fromDate","toDate","DrAppointmentGetByAppointmentDate","toISOString","GetAppoitmentByCurrentDoctor","DrAppointmentGetListByDoctor","delete","id","DrAwardDelete","cancel","DrAppointmentCancel","daysOfMonth","month","DrAppointmentDaysOfMonth","getChartDate","DrAppointmentChartData","getByAppointmentDate","appointmentDate","getChamberCountByAppointmentDate","DrAppointmentGetChamberCountByAppointmentDate","getChamberWeeklyCountByAppointmentDate","DrAppointmentGetChamberWeeklyCountByAppointmentDate","getAppointmentSearch","phone","patientId","patientName","dob","DrAppointmentSearch","getAppointmentById","DrAppointmentById","$export","$find","KEY","forced","Array","P","F","find","callbackfn","this","arguments","length","undefined","render","_vm","_h","$createElement","_c","_self","staticClass","_m","attrs","model","value","callback","$$v","expression","nativeOn","$event","searchAppointment","_v","_l","appoint","index","key","staticStyle","_s","chamberName","_f","startTime","endTime","directives","name","rawName","customClass","modifiers","appointApprovedList","_e","rows","perPage","on","onPageChanged","currentPage","isApproved","isSameDay","status","appointPendingList","rowsPending","perPagePending","onPageChangedPending","staticRenderFns","appointApprovedListPaginate","appointApprovedListPaginatePending","currentDate","Date","someDate","numberOfDaysToAdd","result","setDate","getDate","getAppointmentListDateRange","DoctorAppointmentService","then","res","appointList","data","filter","s","paginate","paginatePending","page","page_size","page_number","slice","apId","isActive","$bvModal","msgBoxConfirm","title","okVariant","okTitle","cancelVariant","cancelTitle","hideHeaderClose","headerClass","bodyClass","centered","footerClass","push","AlertService","sendMessage","message","apptDate","component"],"mappings":"kHAAA,wCAKMA,EAA4B,IAAI,OAEvB,QACbC,mBAAoB,SAACC,GAGnBF,EAA0BG,KAAKD,IAEjCE,sBAAuB,WACrB,OAAOJ,EAA0BK,gBAGnCC,OAVa,SAUNC,GACL,OAAO,OAAUC,KAAK,OAAQC,oBAAqBC,KAAKC,UAAUJ,KAEpEK,SAba,SAaJL,GACP,OAAO,OAAUC,KAAK,OAAQK,yBAA0BH,KAAKC,UAAUJ,KAEzEO,OAhBa,SAgBNP,GACL,OAAO,OAAUC,KAAK,OAAQO,0BAA2BL,KAAKC,UAAUJ,KAE1ES,WAnBa,SAmBFC,GACT,OAAO,OAAUC,IAAI,OAAQC,wBAA0B,IAAMF,IAQ/DG,mBA5Ba,SA4BMC,GACjB,OAAO,OAAUb,KAAK,OAAQc,sBAAuBZ,KAAKC,UAAUU,KAEtEE,2BA/Ba,WAgCX,OAAO,OAAUL,IAAI,OAAQM,6BAE/BC,oBAlCa,WAmCX,OAAO,OAAUP,IAAI,OAAQQ,6BAE/BC,qBArCa,WAsCX,OAAO,OAAUT,IAAI,OAAQU,wCAE/BC,oBAxCa,SAwCOC,EAAgBC,GAClC,OAAO,OAAUb,IAAV,UACF,OAAQc,kCADN,qBACoDF,EAASG,cAD7D,mBACqFF,EAAOE,iBAGrGC,6BA7Ca,WA8CX,OAAO,OAAUhB,IAAI,OAAQiB,+BAE/BC,OAhDa,SAgDNC,GACL,OAAO,OAAUD,OAAV,UAAoB,OAAQE,cAA5B,YAA6CD,KAEtDE,OAnDa,SAmDNF,GACL,OAAO,OAAUD,OAAV,UAAoB,OAAQI,oBAA5B,YAAmDH,KAG5DI,YAv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mBAAmB7C,OACzC,EAAKoE,gBAAgB,EAAKrB,eAAgB,QA9IhD,6BAiJSjF,GAAU,WACfgC,KAAK6E,SACFC,cAAc,gCAAiC,CAC9CC,MAAO,iBACPC,UAAW,UACXC,QAAS,KACTC,cAAe,SACfC,YAAa,MACbC,iBAAiB,EACjBC,YAAa,yBACbC,UAAW,cACXC,UAAU,EACVC,YAAa,0DAEdzB,MAAK,SAACjD,GACQ,GAATA,GACFgD,EAAA,KAAyB5F,OAAOF,GAAI+F,MAAK,SAACC,GACpCA,EAAIE,KAAKpB,SACX,EAAKC,mBAAqB,EAAKA,mBAAmBoB,QAAO,SAACC,GAAD,OAAOA,EAAEpG,KAAOA,KACzE0H,EAAA,KAAaC,YAAY,CAAE7C,QAAQ,EAAM8C,QAAS,yBAClD,EAAK/B,uCArKnB,gCA4KYgC,GAER,OADAA,EAAW,IAAItC,KAAKsC,GAChB7F,KAAKsD,aAAeuC,MA9K5B,GAAkC,QAAb,EAAI,QADxB,QACoB,WC7M8Y,I,YCO/ZC,EAAY,eACd,EACA1F,EACA+C,GACA,EACA,KACA,KACA,MAIa,aAAA2C,E","file":"js/chunk-449d96c2.e0bc1b09.js","sourcesContent":["import { AuthAxios } from \"../../global-config/HttpConfig\";\r\nimport { ApiURIs } from \"../../global-config/ApiList\";\r\nimport { IDoctorAppointment } from \"../models/DoctorAppointment\";\r\nimport { Subject } from \"rxjs\";\r\n\r\nconst refreshAptScheduleSubject = new Subject();\r\n\r\nexport default {\r\n refreshAptSchedule: (refresh: boolean) => {\r\n //console.log(\"refreshAptSchedule\", refresh);\r\n\r\n refreshAptScheduleSubject.next(refresh);\r\n },\r\n getAptScheduleRefresh: () => {\r\n return refreshAptScheduleSubject.asObservable();\r\n },\r\n\r\n insert(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentInsert, JSON.stringify(appoit));\r\n },\r\n insertDr(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentInsertAdmin, JSON.stringify(appoit));\r\n },\r\n varify(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentVerification, JSON.stringify(appoit));\r\n },\r\n reSendCode(appointmentId: number) {\r\n return AuthAxios.get(ApiURIs.DrAppointmentReSendCode + \"/\" + appointmentId);\r\n },\r\n // approvedUnApproved(appId: number, isApp: boolean) {\r\n // return AuthAxios.post(ApiURIs.DrAppointmentAppUnApp, {\r\n // appointmentId: appId,\r\n // isActive: isApp\r\n // });\r\n // },\r\n approvedUnApproved(appointment: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentAppUnApp, JSON.stringify(appointment));\r\n },\r\n GetAppoitmentByCurrentUser() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByUser);\r\n },\r\n GetAppoitmentByDrId() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByDrId);\r\n },\r\n GetAppoitmentByDate1() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByAppointmentDate);\r\n },\r\n GetAppoitmentByDate(fromDate: Date, toDate: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentGetByAppointmentDate}?fromDate=${fromDate.toISOString()}&toDate=${toDate.toISOString()}`\r\n );\r\n },\r\n GetAppoitmentByCurrentDoctor() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByDoctor);\r\n },\r\n delete(id: number) {\r\n return AuthAxios.delete(`${ApiURIs.DrAwardDelete}/${id}`);\r\n },\r\n cancel(id: number) {\r\n return AuthAxios.delete(`${ApiURIs.DrAppointmentCancel}/${id}`);\r\n },\r\n\r\n daysOfMonth(month: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentDaysOfMonth}?month=${month}`);\r\n },\r\n getChartDate(month: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentChartData}?month=${month}`);\r\n },\r\n\r\n getByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentGetByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`);\r\n },\r\n\r\n getChamberCountByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentGetChamberCountByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`);\r\n },\r\n getChamberWeeklyCountByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentGetChamberWeeklyCountByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`\r\n );\r\n },\r\n getAppointmentSearch(phone: string, patientId: string, patientName: string, dob: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentSearch}?phone=${phone}&patientId=${patientId}&patientName=${patientName}&dob=${dob.toISOString()}`\r\n );\r\n },\r\n getAppointmentById(id: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentById}?id=${id}`);\r\n }\r\n};\r\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"card mb-7\"},[_vm._m(0),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row mb-4\"},[_vm._m(1),_c('div',{staticClass:\"col-12 col-md-6 col-xl-4 form-group\"},[_c('datepicker',{attrs:{\"placeholder\":\"From: DD/MM/YY\",\"bootstrap-styling\":true},model:{value:(_vm.fromDate),callback:function ($$v) {_vm.fromDate=$$v},expression:\"fromDate\"}})],1),_c('div',{staticClass:\"col-12 col-md-6 col-xl-4 form-group\"},[_c('datepicker',{attrs:{\"placeholder\":\"To: DD/MM/YY\",\"bootstrap-styling\":true},model:{value:(_vm.toDate),callback:function ($$v) {_vm.toDate=$$v},expression:\"toDate\"}})],1),_c('div',{staticClass:\"col-12 col-md-6 col-xl-4 form-group d-flex\"},[_c('router-link',{staticClass:\"btn btn-secondary mt-auto badge-pill px-4\",attrs:{\"to\":\"\"},nativeOn:{\"click\":function($event){return _vm.searchAppointment()}}},[_vm._v(\" Search \")])],1)]),_c('div',{staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-lg-9 col-12\"},[_c('div',{staticClass:\"card\"},[_vm._m(2),_c('div',{staticClass:\"card-body p-0\"},[_c('table',{staticClass:\"table table-striped table-borderless table-sm table-bddot\"},[_vm._m(3),_c('tbody',[_vm._l((_vm.appointApprovedListPaginate),function(appoint,index){return _c('tr',{key:index},[_c('td',{staticStyle:{\"width\":\"15px\"}}),_c('td',[_c('p',{staticClass:\"mb-1 text-uppercase\"},[_vm._v(\" \"+_vm._s(appoint.patientName)+\" \")])]),_c('td',[_c('p',{staticClass:\"mb-1 text-uppercase\"},[_vm._v(\" \"+_vm._s(appoint.chamberName)+\" \")])]),_c('td',{staticClass:\"align-middle\"},[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(appoint.appointmentDate,\"DD MMM YYYY\"))+\" \")]),_c('td',{staticClass:\"align-middle\"},[_vm._v(_vm._s(_vm._f(\"time12hour\")(appoint.startTime))+\"-\"+_vm._s(_vm._f(\"time12hour\")(appoint.endTime)))]),_c('td',{staticClass:\"align-middle\"},[_vm._v(\"-\")]),_c('td',{staticClass:\"align-middle text-center\"},[_c('router-link',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:({ customClass: 'mb-2' }),expression:\"{ customClass: 'mb-2' }\",modifiers:{\"hover\":true}}],attrs:{\"to\":\"\",\"title\":\"Decline appointments\"},nativeOn:{\"click\":function($event){return _vm.cancel(appoint.id)}}},[_c('i',{staticClass:\"icon-circle-cross fs-18 text-danger\"})])],1)])}),(_vm.appointApprovedList.length == 0)?_c('tr',[_vm._m(4)]):_vm._e()],2)]),_c('b-pagination',{staticClass:\"my-3\",attrs:{\"total-rows\":_vm.rows,\"per-page\":_vm.perPage,\"first-text\":\"First\",\"prev-text\":\"Prev\",\"next-text\":\"Next\",\"last-text\":\"Last\",\"align\":\"center\"},on:{\"change\":_vm.onPageChanged},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])]),_c('div',{staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-lg-9 col-12\"},[_c('div',{staticClass:\"card\"},[_vm._m(5),_c('div',{staticClass:\"card-body p-0\"},[_c('table',{staticClass:\"table table-striped table-borderless table-sm table-bddot\"},[_vm._m(6),_c('tbody',[_vm._l((_vm.appointApprovedListPaginatePending),function(appoint,index){return _c('tr',{key:index},[_c('td',{staticStyle:{\"width\":\"15px\"}}),_c('td',[_c('p',{staticClass:\"mb-1 text-uppercase\"},[_vm._v(\" \"+_vm._s(appoint.patientName)+\" \")])]),_c('td',[_c('p',{staticClass:\"mb-1 text-uppercase\"},[_vm._v(\" \"+_vm._s(appoint.chamberName)+\" \")])]),_c('td',{staticClass:\"align-middle\"},[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(appoint.appointmentDate,\"DD MMM YYYY\"))+\" \")]),_c('td',{staticClass:\"align-middle\"},[_vm._v(_vm._s(_vm._f(\"time12hour\")(appoint.startTime))+\"-\"+_vm._s(_vm._f(\"time12hour\")(appoint.endTime)))]),_c('td',{staticClass:\"align-middle\"},[(appoint.isApproved == 0)?_c('p',[_vm._v(\"Pending\")]):(appoint.isApproved == 3)?_c('p',[_vm._v(\"Cancelled\")]):_vm._e()]),_c('td',{staticClass:\"align-middle text-center\"},[(_vm.isSameDay(appoint.appointmentDate) == true && appoint.isApproved != 3)?_c('router-link',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:({ customClass: 'mb-2' }),expression:\"{ customClass: 'mb-2' }\",modifiers:{\"hover\":true}}],staticClass:\"mr-2\",attrs:{\"to\":\"\",\"title\":\"Approve appointments\"},nativeOn:{\"click\":function($event){return _vm.status(appoint.id, 1)}}},[_c('i',{staticClass:\"icon-circle-tick fs-18 text-primary\"})]):_vm._e(),(appoint.isApproved != 3)?_c('router-link',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:({ customClass: 'mb-2' }),expression:\"{ customClass: 'mb-2' }\",modifiers:{\"hover\":true}}],attrs:{\"to\":\"\",\"title\":\"Decline appointments\"},nativeOn:{\"click\":function($event){return _vm.cancel(appoint.id)}}},[_c('i',{staticClass:\"icon-circle-cross fs-18 text-danger\"})]):_vm._e()],1)])}),(_vm.appointPendingList.length == 0)?_c('tr',[_vm._m(7)]):_vm._e()],2)]),_c('b-pagination',{staticClass:\"my-3\",attrs:{\"total-rows\":_vm.rowsPending,\"per-page\":_vm.perPagePending,\"first-text\":\"First\",\"prev-text\":\"Prev\",\"next-text\":\"Next\",\"last-text\":\"Last\",\"align\":\"center\"},on:{\"change\":_vm.onPageChangedPending},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header d-flex justify-content-between py-2\"},[_c('h4',{staticClass:\"text-uppercase playBold\"},[_vm._v(\"Appointments Status\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col-12 mb-2\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"Search appointments between:\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header py-2\"},[_c('h5',{staticClass:\"text-uppercase playBold\"},[_vm._v(\"Approved Appointments\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',{staticClass:\"text-uppercase font-weight-bold\"},[_c('td',{staticStyle:{\"width\":\"15px\"}}),_c('td',[_vm._v(\"Title\")]),_c('td',[_vm._v(\"Chamber Name\")]),_c('td',[_vm._v(\"Appt. Date\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Time\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Aproved By\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Action\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticClass:\"text-center\",attrs:{\"colspan\":\"6\"}},[_c('h2',{staticClass:\"my-5\"},[_vm._v(\"No records available\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header py-2\"},[_c('h5',{staticClass:\"text-uppercase playBold\"},[_vm._v(\"Pending Appointments\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',{staticClass:\"text-uppercase font-weight-bold\"},[_c('td',{staticStyle:{\"width\":\"15px\"}}),_c('td',[_vm._v(\"Patient Name\")]),_c('td',[_vm._v(\"Chamber Name\")]),_c('td',[_vm._v(\"Appt. Date\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Time\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Status\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Action\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticClass:\"text-center\",attrs:{\"colspan\":\"5\"}},[_c('h2',{staticClass:\"my-5\"},[_vm._v(\"No records available\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport DoctorAppointmentService from \"../../service/DoctorAppointmentService\";\r\nimport { IDoctorAppointment } from \"../../models/DoctorAppointment\";\r\nimport AlertService from \"../../../common-app/service/AlertService\";\r\n\r\n@Component\r\nexport default class List extends Vue {\r\n public appointApprovedList: IDoctorAppointment[] = [];\r\n public appointApprovedListPaginate: IDoctorAppointment[] = [];\r\n public appointApprovedListPaginatePending: IDoctorAppointment[] = [];\r\n\r\n public appointPendingList: IDoctorAppointment[] = [];\r\n public appointment: IDoctorAppointment = {} as IDoctorAppointment;\r\n public currentDate: Date = new Date();\r\n public fromDate: Date = new Date();\r\n public toDate: Date = new Date();\r\n public currentPage = 1;\r\n public perPage = 10;\r\n public rows = 10;\r\n\r\n public perPagePending = 10;\r\n public rowsPending = 10;\r\n\r\n created() {\r\n // DoctorAppointmentService.GetAppoitmentByDrId().then((res) => {\r\n // let appointList: IDoctorAppointment[] = res.data.result || [];\r\n // //console.log(appointList);\r\n // this.appointApprovedList = appointList.filter((s) => s.isApproved==1);\r\n // this.appointPendingList = appointList.filter((s) => s.isApproved==0 || s.isApproved==3);\r\n // // console.log(this.appointPendingList);\r\n // });\r\n // this.GetAppointmentList();\r\n\r\n var someDate = new Date();\r\n var numberOfDaysToAdd = 6;\r\n var result = someDate.setDate(someDate.getDate() + numberOfDaysToAdd);\r\n this.toDate = new Date(result);\r\n //console.log(new Date(result));\r\n\r\n // DoctorAppointmentService.GetAppoitmentByDate(this.fromDate, this.toDate).then((res) => {\r\n // let appointList: IDoctorAppointment[] = res.data.result || [];\r\n // this.appointApprovedList = appointList.filter((s) => s.isApproved == 1);\r\n // this.appointPendingList = appointList.filter((s) => s.isApproved == 0 || s.isApproved == 3);\r\n // });\r\n this.getAppointmentListDateRange();\r\n }\r\n\r\n GetAppointmentList() {\r\n DoctorAppointmentService.GetAppoitmentByDrId().then((res) => {\r\n let appointList: IDoctorAppointment[] = res.data.result || [];\r\n this.appointApprovedList = appointList.filter((s) => s.isApproved == 1);\r\n this.appointPendingList = appointList.filter((s) => s.isApproved == 0 || s.isApproved == 3);\r\n });\r\n }\r\n\r\n getAppointmentListDateRange(){\r\n DoctorAppointmentService.GetAppoitmentByDate(this.fromDate, this.toDate).then((res) => {\r\n let appointList: IDoctorAppointment[] = res.data.result || [];\r\n this.appointApprovedList = appointList.filter((s) => s.isApproved == 1);\r\n //console.log(this.appointApprovedList);\r\n this.rows=this.appointApprovedList.length;\r\n this.paginate(this.perPage, 0);\r\n \r\n this.appointPendingList = appointList.filter((s) => s.isApproved == 0 || s.isApproved == 3);\r\n this.rowsPending=this.appointPendingList.length;\r\n this.paginatePending(this.perPagePending, 0);\r\n //console.log(this.appointPendingList);\r\n });\r\n }\r\n\r\n onPageChanged(page: number) {\r\n this.paginate(this.perPage, page - 1);\r\n }\r\n\r\n onPageChangedPending(page: number) {\r\n this.paginatePending(this.perPagePending, page - 1);\r\n }\r\n\r\n paginate(page_size: number, page_number: number) {\r\n this.appointApprovedListPaginate = [];\r\n this.appointApprovedListPaginate = this.appointApprovedList.slice(page_number * page_size, (page_number + 1) * page_size);\r\n }\r\n\r\n paginatePending(page_size: number, page_number: number) {\r\n this.appointApprovedListPaginatePending = [];\r\n this.appointApprovedListPaginatePending = this.appointPendingList.slice(page_number * page_size, (page_number + 1) * page_size);\r\n }\r\n\r\n status(apId: number, isActive: number) {\r\n this.$bvModal\r\n .msgBoxConfirm(\"Do you really want to approve?\", {\r\n title: \"Please Confirm\",\r\n okVariant: \"danger\",\r\n okTitle: \"NO\",\r\n cancelVariant: \"success\",\r\n cancelTitle: \"YES\",\r\n hideHeaderClose: true,\r\n headerClass: \"justify-content-center\",\r\n bodyClass: \"text-center\",\r\n centered: true,\r\n footerClass: \"justify-content-center border-top-0 flex-wrap-reverse\",\r\n })\r\n .then((value) => {\r\n if (value == false) {\r\n this.appointment.id = apId;\r\n this.appointment.isApproved = isActive;\r\n DoctorAppointmentService.approvedUnApproved(this.appointment).then((res) => {\r\n if (isActive == 1) {\r\n this.appointApprovedList.push(this.appointPendingList.find((s) => s.id == apId) || ({} as IDoctorAppointment));\r\n this.appointPendingList = this.appointPendingList.filter((s) => s.id !== apId);\r\n AlertService.sendMessage({ status: true, message: \"Appointment Approved\" });\r\n this.getAppointmentListDateRange();\r\n } else {\r\n this.appointPendingList.push(this.appointApprovedList.find((s) => s.id == apId) || ({} as IDoctorAppointment));\r\n this.appointApprovedList = this.appointPendingList.filter((s) => s.id !== apId);\r\n AlertService.sendMessage({ status: true, message: \"Appointment Canceled\" });\r\n this.getAppointmentListDateRange();\r\n }\r\n });\r\n }\r\n // else\r\n // {\r\n // // DoctorAppointmentService.approvedUnApproved(apId, isActive).then((res) => {\r\n // this.appointment.id=apId;\r\n // this.appointment.isApproved=isActive;\r\n // DoctorAppointmentService.approvedUnApproved(this.appointment).then((res) => {\r\n // if (isActive) {\r\n // this.appointApprovedList.push(this.appointPendingList.find((s) => s.id == apId) || ({} as IDoctorAppointment));\r\n // this.appointPendingList = this.appointPendingList.filter((s) => s.id !== apId);\r\n // AlertService.sendMessage({ status: true, message: \"Appointment Approved\" });\r\n // } else {\r\n // this.appointPendingList.push(this.appointApprovedList.find((s) => s.id == apId) || ({} as IDoctorAppointment));\r\n // this.appointApprovedList = this.appointPendingList.filter((s) => s.id !== apId);\r\n // AlertService.sendMessage({ status: true, message: \"Appointment Canceled\" });\r\n // }\r\n // });\r\n // }\r\n });\r\n }\r\n\r\n searchAppointment() {\r\n DoctorAppointmentService.GetAppoitmentByDate(this.fromDate, this.toDate).then((res) => {\r\n let appointList: IDoctorAppointment[] = res.data.result || [];\r\n this.appointApprovedList = appointList.filter((s) => s.isApproved == 1);\r\n this.rows=this.appointApprovedList.length;\r\n this.paginate(this.perPage, 0);\r\n this.appointPendingList = appointList.filter((s) => s.isApproved == 0 || s.isApproved == 3);\r\n this.rowsPending=this.appointPendingList.length;\r\n this.paginatePending(this.perPagePending, 0);\r\n });\r\n }\r\n cancel(id: number) {\r\n this.$bvModal\r\n .msgBoxConfirm(\"Do you really want to cancel?\", {\r\n title: \"Please Confirm\",\r\n okVariant: \"success\",\r\n okTitle: \"NO\",\r\n cancelVariant: \"danger\",\r\n cancelTitle: \"YES\",\r\n hideHeaderClose: true,\r\n headerClass: \"justify-content-center\",\r\n bodyClass: \"text-center\",\r\n centered: true,\r\n footerClass: \"justify-content-center border-top-0 flex-wrap-reverse\",\r\n })\r\n .then((value) => {\r\n if (value == false) {\r\n DoctorAppointmentService.cancel(id).then((res) => {\r\n if (res.data.status) {\r\n this.appointPendingList = this.appointPendingList.filter((s) => s.id !== id);\r\n AlertService.sendMessage({ status: true, message: \"Appointment Canceled\" });\r\n this.getAppointmentListDateRange();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n isSameDay(apptDate: Date) {\r\n apptDate = new Date(apptDate);\r\n if (this.currentDate <= apptDate) {\r\n return true;\r\n }\r\n // if(this.currentDate.getFullYear() === date2.getFullYear() &&\r\n // this.currentDate.getMonth() === date2.getMonth() &&\r\n // this.currentDate.getDay() === date2.getDay())\r\n // {\r\n // return true\r\n // }\r\n return false;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=7622e624&\"\nimport script from \"./List.vue?vue&type=script&lang=ts&\"\nexport * from \"./List.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}