1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1df691a6","chunk-199760c2"],{"0257":function(e,t,i){},"0736":function(e,t,i){},"1a6e":function(e,t,i){"use strict";i("5278")},2805:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"top_title"},[a("img",{staticClass:"pre",attrs:{src:i("f541")},on:{click:e.pre}}),a("span",{staticClass:"day_box",on:{click:e.getToday}},[e._v("今")]),a("img",{staticClass:"next",attrs:{src:i("a169")},on:{click:e.next}}),a("span",{staticClass:"title"},[e._v(e._s(e.calendarTitle))])]),a("FullCalendar",{ref:"fullCalendar",staticClass:"demo-app-calendar",attrs:{options:e.calendarOptions},on:{dateClick:e.handleDateClick1},scopedSlots:e._u([{key:"eventContent",fn:function(t){return[a("b",[e._v(e._s(t.timeText))]),a("i",[e._v(e._s(t.event.title))])]}}])})],1)},n=[],r=i("ade3"),s=(i("14d9"),i("c1df")),o=i.n(s),l=i("7516"),c=i("3cdb"),d=i("f46e"),m=i("4505"),u=i("e35a"),p={name:"EitcErmPcTopLeftCalendar",components:{FullCalendar:l["a"]},data:function(){var e;return{calendarOptions:(e={plugins:[c["a"],d["a"],m["a"]],initialDate:o()().format("YYYY-MM-DD"),locale:"zh-cn",headerToolbar:{left:"prev today next",center:"title",right:""},buttonText:{today:"今天"}},Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(e,"headerToolbar",!1),"initialView","dayGridMonth"),"initialEvents",u["a"]),"editable",!0),"selectable",!0),"selectMirror",!0),"dayMaxEvents",!0),"weekends",!0),"eventClick",this.handleEventClick),"eventsSet",this.handleEvents),Object(r["a"])(Object(r["a"])(Object(r["a"])(e,"editable",!0),"dateClick",this.handleDateClick),"eventDrop",this.handleEventDrop)),currentEvents:[],calendarApi:"",calendarTitle:"",timeDay:""}},mounted:function(){var e=this;setTimeout((function(){var t;e.calendarApi=null===(t=e.$refs.fullCalendar)||void 0===t?void 0:t.getApi(),e.calendarTitle=e.calendarApi.view.title,e.defaultDate=o()(new Date).format("YYYY-MM-DD"),e.calendarApi.gotoDate(e.defaultDate),e.calendarApi.changeView("dayGridMonth")}),100)},methods:{handleWeekendsToggle:function(){this.calendarOptions.weekends=!this.calendarOptions.weekends},handleDateSelect:function(e){if(!this.dateTime)return this.$message.error("请先选择预约日期");var t=e.view.calendar;if(this.timeList.length>=1)return t.unselect(),this.$message.error("当前医生当天时间已有预约,请选择预约其他时间段");t.unselect(),t.addEvent({id:Object(u["b"])(),start:this.formatTime(e.startStr),end:this.formatTime(e.endStr)}),this.timeList.push({id:Object(u["b"])(),appointmentStartTime:this.formatTime(e.startStr),appointmentEndTime:this.formatTime(e.endStr)})},formatTime:function(e){return o()(e).format("YYYY-MM-DD HH:mm")},changeDate:function(){this.calendarApi.gotoDate(this.dateTime)},handleEventDrop:function(e){console.log(e,6666)},handleEventClick:function(e){confirm("是否删除'".concat(e.event.title,"'"))&&e.event.remove()},handleEvents:function(e){this.currentEvents=e},pre:function(){this.calendarApi.prev(),this.calendarTitle=this.calendarApi.view.title},getToday:function(){this.calendarApi.today(),this.calendarTitle=this.calendarApi.view.title,this.$emit("changDay",this.formatTimeDay(new Date))},getTodayNew:function(){this.calendarApi.today(),this.calendarTitle=this.calendarApi.view.title},formatTimeDay:function(e){return o()(e).format("YYYY-MM-DD")},next:function(){this.calendarApi.next(),this.calendarTitle=this.calendarApi.view.title},handleDateClick:function(e){this.timeDay=e.dateStr,this.$emit("changDay",e.dateStr)},handleDateClick1:function(e){this.calendarApi.gotoDate(e.date)}}},h=p,b=(i("6fea"),i("2877")),f=Object(b["a"])(h,a,n,!1,null,"4d4c6373",null);t["default"]=f.exports},3336:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.addappointmentDialog?i("el-dialog",{attrs:{title:"预约",visible:e.addappointmentDialog,width:"1000px","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":e.beforeClose},on:{"update:visible":function(t){e.addappointmentDialog=t},close:e.beforeClose}},[i("div",{staticStyle:{"max-height":"70vh","overflow-y":"auto"}},[i("el-row",[i("el-col",{attrs:{span:11}},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"患者姓名",prop:"patientName"}},[i("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"300px"},attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入患者姓名","trigger-on-focus":!1,maxlength:10},on:{select:e.handleSelect,input:e.handleInput},model:{value:e.ruleForm.patientName,callback:function(t){e.$set(e.ruleForm,"patientName",t)},expression:"ruleForm.patientName"}})],1),i("el-form-item",{attrs:{label:"预约门诊",prop:"outpatientService"}},[i("el-select",{staticStyle:{width:"300px"},on:{change:e.initOptions3},model:{value:e.ruleForm.outpatientService,callback:function(t){e.$set(e.ruleForm,"outpatientService",t)},expression:"ruleForm.outpatientService"}},e._l(e.outpatientOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),i("el-form-item",{attrs:{label:"预约科室"}},[i("el-select",{staticStyle:{width:"300px"},model:{value:e.ruleForm.department,callback:function(t){e.$set(e.ruleForm,"department",t)},expression:"ruleForm.department"}},e._l(e.administrativeOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),i("el-form-item",{attrs:{label:"电话",prop:"linkPhone",rules:[{required:!0,message:"电话不能为空",trigger:"blur"},{min:11,max:11,message:"长度11个数字",trigger:"blur"},{pattern:/^((0\d{2,3}-\d{7,8})|(1[356789]\d{9}))$/,message:"手机号格式不正确",trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"210px"},attrs:{maxlength:11,placeholder:"请输入患者电话"},model:{value:e.ruleForm.linkPhone,callback:function(t){e.$set(e.ruleForm,"linkPhone",t)},expression:"ruleForm.linkPhone"}}),i("el-select",{staticStyle:{width:"80px","margin-left":"10px"},model:{value:e.ruleForm.personalRelationship,callback:function(t){e.$set(e.ruleForm,"personalRelationship",t)},expression:"ruleForm.personalRelationship"}},e._l(e.sysUserSexerm_personal_relationshipOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.dictName,value:e.dictValue}})})),1)],1),i("el-form-item",{attrs:{label:"出生日期"}},[i("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择出生日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions1},model:{value:e.ruleForm.birthday,callback:function(t){e.$set(e.ruleForm,"birthday",t)},expression:"ruleForm.birthday"}})],1),i("el-form-item",{attrs:{label:"性别",prop:"sex"}},[i("el-radio-group",{model:{value:e.ruleForm.sex,callback:function(t){e.$set(e.ruleForm,"sex",t)},expression:"ruleForm.sex"}},[i("el-radio",{attrs:{label:1}},[e._v("男")]),i("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),i("el-form-item",{attrs:{label:"预约类型"}},[i("el-radio-group",{model:{value:e.ruleForm.appointmentType,callback:function(t){e.$set(e.ruleForm,"appointmentType",t)},expression:"ruleForm.appointmentType"}},[i("el-radio",{attrs:{label:1}},[e._v("就诊预约")]),i("el-radio",{attrs:{label:2}},[e._v("复诊预约")])],1)],1),i("el-form-item",{attrs:{label:"患者来源"}},[i("el-select",{staticStyle:{width:"300px"},model:{value:e.ruleForm.patientSource,callback:function(t){e.$set(e.ruleForm,"patientSource",t)},expression:"ruleForm.patientSource"}},e._l(e.sysUserSexerm_patient_sourceOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.dictName,value:+e.dictValue}})})),1)],1),i("el-form-item",{attrs:{label:"预约医生",prop:"attendingDoctor"}},[i("el-select",{staticStyle:{width:"300px"},model:{value:e.ruleForm.attendingDoctor,callback:function(t){e.$set(e.ruleForm,"attendingDoctor",t)},expression:"ruleForm.attendingDoctor"}},e._l(e.userOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.nickName,value:e.nickName}})})),1)],1),i("el-form-item",{attrs:{label:"身份证号",prop:"identificationCard",rules:[{required:!0,message:"身份证号不能为空",trigger:"blur"},{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"身份证号格式不正确",trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入身份证号"},model:{value:e.ruleForm.identificationCard,callback:function(t){e.$set(e.ruleForm,"identificationCard",t)},expression:"ruleForm.identificationCard"}})],1),i("el-form-item",{attrs:{label:"预约人",prop:"registerUserId"}},[i("el-select",{staticStyle:{width:"300px"},model:{value:e.ruleForm.registerUserId,callback:function(t){e.$set(e.ruleForm,"registerUserId",t)},expression:"ruleForm.registerUserId"}},e._l(e.userOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.nickName,value:e.userId}})})),1)],1),i("el-form-item",{attrs:{label:"备注",prop:"remark"}},[i("el-input",{staticStyle:{width:"300px"},attrs:{type:"textarea"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1),i("el-col",{attrs:{span:6}},[i("p",{staticStyle:{padding:"0",margin:"0","font-size":"18px"}},[e._v("预约时段")]),i("HR"),i("el-form",{ref:"ruleForm1",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm1}},[i("el-form-item",{attrs:{prop:"dateTime",rules:[{required:!0,message:"预约日期不能为空",trigger:"change"}]}},[i("el-date-picker",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{type:"date","picker-options":e.pickerOptions,placeholder:"选择日期",format:"yyyy 年 MM 月 dd 日",clearable:!1,"value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.ruleForm1.dateTime,callback:function(t){e.$set(e.ruleForm1,"dateTime",t)},expression:"ruleForm1.dateTime"}})],1)],1),i("FullCalendar",{ref:"fullCalendar",staticClass:"demo-app-calendar",attrs:{options:e.calendarOptions},scopedSlots:e._u([{key:"eventContent",fn:function(t){return[i("b",[e._v(e._s(t.timeText))]),i("i",[e._v(e._s(t.event.title))])]}}],null,!1,2300555269)})],1),i("el-col",{staticStyle:{"padding-left":"20px"},attrs:{span:7}},[i("p",{staticStyle:{padding:"0",margin:"0","font-size":"18px"}},[e._v("预约项目")]),i("HR"),i("el-checkbox-group",{staticStyle:{display:"flex","flex-wrap":"wrap"},model:{value:e.projectList,callback:function(t){e.projectList=t},expression:"projectList"}},e._l(e.projectListOptios,(function(t){return i("el-checkbox",{key:t.id,staticStyle:{flex:"1","margin-top":"5px"},attrs:{label:t.appointmentName}},[e._v(e._s(t.appointmentName))])})),1)],1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.beforeClose}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保 存")])],1)]):e._e()],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("ade3"),l=(i("a15b"),i("d81d"),i("14d9"),i("b64b"),i("943d")),c=i("c1df"),d=i.n(c),m=i("7516"),u=i("3cdb"),p=i("f46e"),h=i("4505"),b=i("e35a"),f={name:"EitcErmPcAddappointmentDialog",components:{FullCalendar:m["a"]},props:{addappointmentDialog:{type:Boolean,default:!1},timeArr:{type:Array,default:[]},timeObj:{type:Object,default:{}}},data:function(){return{restaurants:[],ruleForm:{sex:1,patientName:"",appointmentType:1},pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},rules:{patientName:[{required:!0,message:"请输入患者姓名",trigger:"blur"}],linkPhone:[{required:!0,message:"请输入电话",trigger:"blur"}],sex:[{required:!0,message:"请选择性别",trigger:"change"}],attendingDoctor:[{required:!0,message:"请选择预约医生",trigger:"change"}],outpatientService:[{required:!0,message:"请选择预约门诊",trigger:"change"}],registerUserId:[{required:!0,message:"请选择预约人",trigger:"change"}],identificationCard:[{required:!0,message:"请输入身份证号",trigger:"blur"}]},projectListOptios:[],projectList:[],userOptions:[],outpatientOptions:[],administrativeOptions:[],sysUserSexerm_personal_relationshipOptions:[],sysUserSexerm_patient_sourceOptions:[],calendarOptions:Object(o["a"])(Object(o["a"])({plugins:[u["a"],p["a"],h["a"]],events:[],initialDate:d()().format("YYYY-MM-DD"),locale:"zh-cn",buttonText:{today:"今天"},slotMinTime:"08:00",allDaySlot:!1,headerToolbar:!1,initialView:"timeGridDay",initialEvents:b["a"],editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:this.handleDateSelect,eventClick:this.handleEventClick,eventsSet:this.handleEvents},"editable",!0),"eventDrop",this.handleEventDrop),currentEvents:[],calendarApi:"",calendarTitle:"",defaultDate:"",ruleForm1:{dateTime:""},timeList:[]}},mounted:function(){var e=this;this.initOptions(),this.initProjectList(),this.initOptions2(),this.initDropdownList(),this.$nextTick((function(){e.calendarApi=e.$refs.fullCalendar.getApi(),e.calendarTitle=e.calendarApi.view.title,e.defaultDate=d()(new Date).format("YYYY-MM-DD"),e.calendarApi.changeView("timeGridDay"),e.timeArr.length&&e.fetchEvents(),console.log(e.timeObj,"this.timeObj"),Object.keys(e.timeObj).length?(console.log(e.timeObj,"牛逼"),e.ruleForm=e.timeObj,e.projectList=e.timeObj.appointmentProject.split(","),e.ruleForm1.dateTime=e.timeObj.appointmentStartTime.split(" ")[0],e.calendarApi.gotoDate(e.ruleForm1.dateTime),e.calendarOptions.events=[{id:1,start:e.formatTime(e.timeObj.appointmentStartTime),end:e.formatTime(e.timeObj.appointmentEndTime)}],e.timeList=[{id:1,appointmentStartTime:e.formatTime(e.timeObj.appointmentStartTime),appointmentEndTime:e.formatTime(e.timeObj.appointmentEndTime)}],e.initOptions3(1)):e.ruleForm={sex:1,patientName:"",department:"",linkPhone:"",identificationCard:"",registerUserId:"",attendingDoctor:"",remark:"",appointmentType:1}}))},methods:Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({initDropdownList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["B"])("erm_patient_source");case 2:return i=t.sent,t.next=5,Object(l["B"])("erm_personal_relationship");case 5:a=t.sent,e.sysUserSexerm_patient_sourceOptions=i.data,e.sysUserSexerm_personal_relationshipOptions=a.data;case 8:case"end":return t.stop()}}),t)})))()},fetchEvents:function(){this.timeArr&&(this.calendarOptions.events=[],console.log(this.timeArr[0],"this.timeArr[0]"),this.ruleForm1.dateTime=this.timeArr[0].start.split(" ")[0],this.calendarOptions.events=this.timeArr,this.calendarApi.gotoDate(this.ruleForm1.dateTime),this.timeList=[{id:this.timeArr[0].id,appointmentStartTime:this.timeArr[0].start,appointmentEndTime:this.timeArr[0].end}],console.log(this.calendarOptions.events,9999))},initProjectList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["ab"])();case 2:i=t.sent,e.projectListOptios=i.data;case 4:case"end":return t.stop()}}),t)})))()},initOptions:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["a"])();case 2:i=t.sent,e.userOptions=i.data;case 4:case"end":return t.stop()}}),t)})))()},initOptions2:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["o"])();case 2:i=t.sent,e.outpatientOptions=i.data,e.$refs.ruleForm.resetFields(),e.ruleForm.outpatientService=i.data[0].label,e.initOptions3(i.data[0].label);case 7:case"end":return t.stop()}}),t)})))()},initOptions3:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!e){i.next=7;break}return i.next=3,Object(l["p"])(t.ruleForm.outpatientService);case 3:a=i.sent,t.administrativeOptions=a.data,i.next=12;break;case 7:return i.next=9,Object(l["p"])(t.ruleForm.outpatientService);case 9:n=i.sent,t.administrativeOptions=n.data,t.ruleForm.department="";case 12:case"end":return i.stop()}}),i)})))()},handleWeekendsToggle:function(){this.calendarOptions.weekends=!this.calendarOptions.weekends},handleDateSelect:function(e){if(!this.ruleForm1.dateTime){var t=e.view.calendar;return t.unselect(),this.$message.error("请先选择预约日期")}if(this.timeList.length>=1){var i=e.view.calendar;return i.unselect(),this.$message.error("请先点击删除当前预约时间,重新选择预约时间")}var a=e.view.calendar;a.unselect(),a.addEvent({id:Object(b["b"])(),start:this.formatTime(e.startStr),end:this.formatTime(e.endStr)}),this.timeList.push({id:Object(b["b"])(),appointmentStartTime:this.formatTime(e.startStr),appointmentEndTime:this.formatTime(e.endStr)})},formatTime:function(e){return d()(e).format("YYYY-MM-DD HH:mm")},formatDate:function(e){return d()(e).format("YYYY-MM-DD")},changeDate:function(){this.calendarApi.gotoDate(this.ruleForm1.dateTime)},handleEventDrop:function(e){console.log(e,6666)},handleEventClick:function(e){var t=this;this.$confirm("是否删除该时间段?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.timeList=[],e.event.remove(),t.$message({type:"success",message:"删除成功!"})}))},handleEvents:function(e){this.currentEvents=e},beforeClose:function(){this.$emit("closeDialog")}},"beforeClose",(function(){var e=this;this.$confirm("确认退出吗?退出将不会保留当前填写数据","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.calendarOptions.events=[],e.$emit("closeDialog")})).catch((function(e){}))})),"handleSelect",(function(e){this.ruleForm=e,this.$forceUpdate()})),"handleInput",(function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!e){i.next=6;break}return console.log(e,999),i.next=4,Object(l["L"])(e);case 4:a=i.sent,t.restaurants=a.data;case 6:case"end":return i.stop()}}),i)})))()})),"querySearch",(function(e,t){t(this.restaurants.map((function(e){return e.value=e.patientName,e})))})),"submit",(function(){var e=this;this.$refs.ruleForm.validate(function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(i){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i&&e.$refs.ruleForm1.validate(function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(i){var a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!i){t.next=17;break}if(0!==e.timeList.length){t.next=3;break}return t.abrupt("return",e.$message.error("请选择预约时段!"));case 3:if(console.log(e.projectList,"this.projectList"),0!==e.projectList.length){t.next=6;break}return t.abrupt("return",e.$message.error("请选择预约项目!"));case 6:return a=e.ruleForm,a.appointmentStartTime=e.timeList[0].appointmentStartTime,a.appointmentEndTime=e.timeList[0].appointmentEndTime,a.appointmentProject=e.projectList.join(),t.next=12,Object(l["b"])(a);case 12:if(n=t.sent,200===n.code){t.next=15;break}return t.abrupt("return",e.$message.error(n.msg));case 15:e.$message.success("预约成功"),e.$emit("closeDialog");case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},g=f,v=(i("bdb0"),i("2877")),A=Object(v["a"])(g,a,n,!1,null,"b3d2d2f6",null);t["default"]=A.exports},5278:function(e,t,i){},"6a7e":function(e,t,i){},"6fea":function(e,t,i){"use strict";i("0257")},"7abe":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container",staticStyle:{"background-color":"#f7f8fa",padding:"0"}},[i("div",{staticClass:"parent"},[i("div",{staticClass:"child_box"},[i("div",{staticClass:"div2"},[i("BottomSelect",{on:{checkedCities:e.checkedCities}})],1)]),i("div",{staticClass:"div3",style:{height:e.tableRigthHeight1+"px"}},[i("RigthPanel",{ref:"rigthPanelRef",attrs:{day:e.day,checkedCitiesList:e.checkedCitiesList},on:{getToday:e.getToday,addAppointment:e.addAppointment,timeListEcho:e.timeListEcho,timeListEdit:e.timeListEdit}})],1)]),e.addappointmentDialog?i("addappointmentDialog",{ref:"addappointmentDialogRef",attrs:{addappointmentDialog:e.addappointmentDialog,timeArr:e.timeArr,timeObj:e.timeObj},on:{closeDialog:e.closeDialog}}):e._e()],1)},n=[],r=i("3336"),s=i("2805"),o=i("c52b"),l=i("c6d7"),c={name:"Home",components:{addappointmentDialog:r["default"],TopLeftCalendar:s["default"],BottomSelect:o["default"],RigthPanel:l["default"]},data:function(){return{addappointmentDialog:!1,timeArr:[],tableHeight:window.innerHeight-580,tableRigthHeight:window.innerHeight-240,tableRigthHeight1:window.innerHeight-155,checkedCitiesList:[],timeObj:{},day:""}},mounted:function(){console.log(window.innerHeight)},methods:{getList:function(){},addAppointment:function(){this.addappointmentDialog=!0},closeDialog:function(){var e=this;this.addappointmentDialog=!1,this.timeObj={},this.$nextTick((function(){e.$refs.rigthPanelRef.initList(e.$refs.rigthPanelRef.calendarTitle)}))},timeListEcho:function(e){var t=this;this.timeArr=e,this.$nextTick((function(){t.addappointmentDialog=!0}))},timeListEdit:function(e){var t=this;this.timeObj=e,this.$nextTick((function(){t.addappointmentDialog=!0}))},checkedCities:function(e){var t=this;this.checkedCitiesList=e,this.$nextTick((function(){t.$refs.rigthPanelRef.initList(t.$refs.rigthPanelRef.calendarTitle)}))},changDay:function(e){this.day=e,this.$refs.rigthPanelRef.getTodayNew()},getToday:function(){this.$refs.topLeftCalendarRef.getToday()}}},d=c,m=(i("89dc"),i("2877")),u=Object(m["a"])(d,a,n,!1,null,"dbb2feb4",null);t["default"]=u.exports},"821f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAy5JREFUeF7tm+Ft4z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NzlDQkFBOEU4MTUwMUQzNDgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6ODBBNDRCMzUyOTk4MTFFNzlDQkFBOEU4MTUwMUQzNDgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5DEIUCAAABS0lEQVR42pzUsUrDUBTG8SQ4OogtfQOpoNKhOrjp4FpHpWhx8QmqOIpDNusLuAhVFLfq6CAuOmiHog4FfYFaxcHFSf8HvkgIySV44EdDe+7Xm9x744dh6CVqFJtYxgzG8YFHdHCIr/iAIBFQRx9zaGESvj5b+r6vvr8aiV3vooEauonwN1xKFeeYwF48pK6AeQw8d3XVd4dXHAd6BvtYyREQ1UD9BxizkA1c4yGl+ccRZP1XWAv0DNqOZleQjatZyFTGLDytjCuoh2kLKWLo+DdX0DsKgS6KOW7HT/mtYOMt5Amz/wiwquDZQi6wnuN20srGdSzkCIsZs3EFWP9StNnsMG3jDKWcm62k/iY+owN4ojW/1dlwVVV97Wh/xQ+gHaYXPaMbnOqcDLUKNv1VLGDHbiPrVWAzKuMeW3qHfGsFm9qU5XiA1a8AAwA/1EhGhDADGgAAAABJRU5ErkJggg=="},bdb0:function(e,t,i){"use strict";i("0736")},c52b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("ul",{staticClass:"tap_Top_box"},e._l(e.activeList,(function(t,n){return a("li",{key:n,class:{active:e.activeName===t.value},staticStyle:{display:"flex","align-items":"center"},on:{click:function(i){return e.handleClick(t)}}},[0==n?a("img",{staticClass:"img_box1",attrs:{src:i("821f"),alt:""}}):e._e(),1==n?a("img",{staticClass:"img_box2",attrs:{src:i("ea82"),alt:""}}):e._e(),a("span",{staticStyle:{"margin-left":"10px"}},[e._v(" "+e._s(t.name)+" ")])])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName == 'first'"}],staticClass:"over"},[a("div",{staticStyle:{margin:"10px 0 10px 0","font-weight":"700","font-size":"17px"}},[e._v("预约状态")]),a("el-checkbox",{staticClass:"quan",on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),a("div",{staticStyle:{margin:"15px 0"}}),a("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},on:{change:e.changaCities},model:{value:e.checkedCities,callback:function(t){e.checkedCities=t},expression:"checkedCities"}},e._l(e.sysUserSexerm_reservation_statusOptions,(function(t,i){return a("el-checkbox",{key:t.dictValue,class:e.getClass(i),attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==e.activeName,expression:"activeName == 'second'"}],staticClass:"over"},[e._m(0),a("ul",{staticClass:"bottom_box"},e._l(e.doctorList,(function(t,i){return a("li",{key:i},[a("div",{staticClass:"big"},[a("img",{attrs:{src:e.baseUrl+t.avatar,alt:""}}),a("div",{staticClass:"two"},[a("span",[e._v(e._s(t.nickName))]),a("span",{staticStyle:{color:"#67696b","margin-top":"3px"}},[e._v(e._s(t.deptName))])])]),t.isFree?a("div",{staticClass:"three"},[e._v(" 忙碌 ")]):a("div",{staticClass:"three"},[e._v(" 空闲 ")])])})),0)])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{margin:"10px 0 10px 0","font-weight":"700","font-size":"17px"}},[e._v(" 出诊医生 ")]),i("div",{staticStyle:{color:"#67696b","margin-top":"3px","font-size":"15px"}},[e._v(" 出诊时间 : 早8点至晚22点 ")])])}],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("943d")),l={name:"EitcErmPcBottomSelect",data:function(){return{activeList:[{name:"预约筛选",value:"first"},{name:"出诊医生",value:"second"}],baseUrl:"http://39.105.121.97:8080/api",checkedCities:["1","3","4","5","6","8"],isIndeterminate:!0,activeName:"first",checkAll:!0,doctorList:[],sysUserSexerm_reservation_statusOptions:[]}},watch:{checkedCities:{handler:function(){this.checkAll=this.checkedCities.length===this.sysUserSexerm_reservation_statusOptions.length,console.log(this.checkAll,88888)},deep:!0}},mounted:function(){this.initsysUserSexerm_reservation_status(),this.initDoctorList(),this.$emit("checkedCities",["1","3","4","5","6","8"])},methods:{initsysUserSexerm_reservation_status:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["Fb"])();case 2:i=t.sent,e.sysUserSexerm_reservation_statusOptions=i.data.map((function(e){switch(e.checked=!1,e.dictLabel){case"预约":e.color="#649aff";break;case"已到店":e.color="#b6d8b3";break;case"待复诊":e.color="#fdc86a";break;case"治疗完成":e.color="#74a863";break;case"已结账":e.color="#ff8683";break;case"已失约":e.color="#c7c7c7";break;default:break}return e}));case 4:case"end":return t.stop()}}),t)})))()},changaCities:function(){this.$emit("checkedCities",this.checkedCities)},handleClick:function(e){switch(this.activeName=e.value,this.activeName){case"first":this.initsysUserSexerm_reservation_status();break;case"second":this.initDoctorList();break;default:break}},handleCheckAllChange:function(e){this.checkedCities=e?["1","3","4","5","6","8"]:["0"],this.$emit("checkedCities",this.checkedCities)},getClass:function(e){return"box"+(e+1)},initDoctorList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["A"])();case 2:i=t.sent,e.doctorList=i.data;case 4:case"end":return t.stop()}}),t)})))()}}},c=l,d=(i("1a6e"),i("2877")),m=Object(d["a"])(c,a,n,!1,null,"b4422226",null);t["default"]=m.exports},ea82:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA5lJREFUeF7tWtFxgzAMxWaRdJK2k7T5gLBFmy0IfCSdpOkkZRHsohxwRpETG9s0l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