chunk-22367c97.4ae33720.js 4.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22367c97"],{"8d7e":function(e,t,s){"use strict";s.r(t);var c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("ul",{staticClass:"tap_Top_box"},e._l(e.activeList,(function(t,c){return s("li",{key:c,class:{active:e.activeName===t.value},on:{click:function(s){return e.handleClick(t)}}},[e._v(" "+e._s(t.name)+" ")])})),0),s("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName == 'first'"}],staticClass:"over"},[s("div",{staticStyle:{margin:"10px 0 10px 0","font-weight":"700","font-size":"17px"}},[e._v("预约状态")]),s("el-checkbox",{on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),s("div",{staticStyle:{margin:"15px 0"}}),s("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,c){return s("el-checkbox",{key:t.dictValue,class:e.getClass(c),attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:"second"==e.activeName,expression:"activeName == 'second'"}],staticClass:"over"},[e._m(0),s("ul",{staticClass:"bottom_box"},e._l(e.doctorList,(function(t,c){return s("li",{key:c},[s("div",{staticClass:"big"},[s("img",{attrs:{src:e.baseUrl+t.avatar,alt:""}}),s("div",{staticClass:"two"},[s("span",[e._v(e._s(t.nickName))]),s("span",{staticStyle:{color:"#67696b","margin-top":"3px"}},[e._v(e._s(t.deptName))])])]),t.isFree?s("div",{staticClass:"three"},[e._v(" 忙碌 ")]):s("div",{staticClass:"three"},[e._v(" 空闲 ")])])})),0)])])},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticStyle:{"font-weight":"700","font-size":"17px"}},[e._v(" 出诊医生 ")]),s("div",{staticStyle:{color:"#67696b","margin-top":"3px"}},[e._v(" 出诊时间 : 早8点至晚22点 ")])])}],a=s("c7eb"),n=s("1da1"),r=(s("d81d"),s("943d")),o={name:"EitcErmPcBottomSelect",data:function(){return{activeList:[{name:"预约筛选",value:"first"},{name:"出诊医生",value:"second"}],baseUrl:"http://39.105.121.97:8080/api",checkedCities:["1","2","3","4","5","6","7","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.$emit("checkedCities",["1","2","3","4","5","6","7","8"])},methods:{initsysUserSexerm_reservation_status:function(){var e=this;return Object(n["a"])(Object(a["a"])().mark((function t(){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["Fb"])();case 2:s=t.sent,e.sysUserSexerm_reservation_statusOptions=s.data.map((function(e){switch(e.checked=!1,e.dictLabel){case"预约":e.color="#0077fa";break;case"已确定":e.color="#00f900";break;case"已到店":e.color="#4f9de7";break;case"待复诊":e.color="#93d2f3";break;case"治疗完成":e.color="#fb881a";break;case"已结账":e.color="#1afb91";break;case"已离开":e.color="#8a8385";break;case"已失约":e.color="#cbcbcb";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","2","3","4","5","6","7","8"]:["0"],this.$emit("checkedCities",this.checkedCities)},getClass:function(e){return"box"+(e+1)},initDoctorList:function(){var e=this;return Object(n["a"])(Object(a["a"])().mark((function t(){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["A"])();case 2:s=t.sent,e.doctorList=s.data;case 4:case"end":return t.stop()}}),t)})))()}}},l=o,h=(s("ff19"),s("2877")),u=Object(h["a"])(l,c,i,!1,null,"44708748",null);t["default"]=u.exports},c8fa:function(e,t,s){},ff19:function(e,t,s){"use strict";s("c8fa")}}]);