canyin-project/ybcy/views/channel/index/static/js/chunk-3864d790.f0af5229.js

1 line
7.6 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3864d790"],{"29e5":function(e,t,n){},"3bbe":function(e,t,n){var a=n("861d");e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3d19":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"outmain ba_f appointment"},[e._m(0),n("div",{staticClass:"mar_t20"},[n("el-calendar",{attrs:{id:"calendar"},scopedSlots:e._u([{key:"dateCell",fn:function(t){var a=t.date,r=t.data;return[n("div",{on:{click:function(t){return e.changeTime(a,r)}}},[n("div",[n("div",{staticClass:"t_c"},[n("div",[e._v(e._s(r.day.split("-").slice(1).join("-")))]),e.dealMyDate(r.day)?n("div",{staticClass:"mar_t10"},[e._v("预约单数:"),n("span",{staticClass:"fon_18 wei color-green"},[e._v(e._s(e.dealMyDate(r.day)))])]):e._e()])])])]}}]),model:{value:e.timeValue,callback:function(t){e.timeValue=t},expression:"timeValue"}})],1)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"shuju_title mar_b20"},[n("div",{staticClass:"shuju_title_text"},[n("span",[e._v("预约列表")])])])}],i=(n("96cf"),n("1da1")),o=n("7cb7"),c=n("ed08"),s={mounted:function(){},created:function(){var e=this;this.$nextTick((function(){var t=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(1)");t.addEventListener("click",(function(t){var n=new Date(e.timeValue);n.getFullYear(),e.handleTime(n.getMonth()+1);e.fetchData()}));var n=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(3)");n.addEventListener("click",(function(t){var n=new Date(e.timeValue);n.getFullYear(),e.handleTime(n.getMonth()+1);e.fetchData()}));var a=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)");a.addEventListener("click",(function(t){var n=new Date(e.timeValue);n.getFullYear(),e.handleTime(n.getMonth()+1);e.fetchData()}))})),this.fetchData()},data:function(){return{activeName:"1",timeValue:new Date,calendarData:[],body:[{name:"大厅",weekArr:[{week:"周一",time:"2021-06-28",num:"",isAppointment:"1"},{week:"周二",time:"2021-06-28",num:"2",isAppointment:"1"},{week:"周三",time:"2021-06-28",num:"0",isAppointment:"2"}]},{name:"包厢",weekArr:[{week:"周一",time:"2021-06-28",num:"",isAppointment:"1"},{week:"周二",time:"2021-06-28",num:"",isAppointment:"1"},{week:"周三",time:"2021-06-30",num:"",isAppointment:"1"}]},{name:"VIP",weekArr:[{week:"周一",time:"2021-06-28",num:"",isAppointment:"1"},{week:"周二",time:"2021-06-28",num:"",isAppointment:"1"},{week:"周三",time:"2021-06-30",num:"",isAppointment:"1"}]}],form:{keyword:"",timeType:"1",time:[new Date,new Date]},list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,n={month:Object(c["b"])(e.timeValue).substr(0,7),storeId:""},t.next=4,Object(o["Nc"])(n);case 4:a=t.sent,r=a.data,i=a.count,e.calendarData=r,e.page.total=i,e.listLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},dealMyDate:function(e){for(var t=this.calendarData.length,n="",a=0;a<t;a++)if(this.calendarData[a].time==e){n=this.calendarData[a].num;break}return n},handleClick:function(){},handleTime:function(e){return e<10?"0"+e:e},changeTime:function(e,t){this.$router.push("/appointmentorder?day=".concat(t.day))},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},selectType:function(){this.fetchData()},handleEdit2:function(e){e.id?this.$refs["edit"].showEdit(e,1):this.$refs["edit"].showEdit()},linkPage:function(){},handleEdit:function(e,t){var n=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var r,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("adopt"!=t){a.next=9;break}return a.next=3,Object(o["O