index.52647906.js 15 KB

1
  1. import{ao as F,d as E,ai as t,c as s,aj as w,a5 as D,r as S,Z as B,$ as k,q as C,B as W,o as M,P}from"./index.1c621181.js";import{i as G}from"./isSameOrBefore.691e15de.js";import{C as x}from"./index.36db2313.js";import{C as T}from"./index.2db9d877.js";import{C as y}from"./index.fd5ae97b.js";import{S as I}from"./index.d5b73933.js";import{T as U}from"./index.c4f0d694.js";const J="_calendarContainer_1u0cy_1",K="_calendar_1u0cy_1",L="_subtitle_1u0cy_11",O="_right_1u0cy_22",R="_today_1u0cy_26",V="_disabled_1u0cy_29";var f={calendarContainer:J,calendar:K,subtitle:L,right:O,today:R,disabled:V},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAArtJREFUWEfVmc9LVFEUxz/nGZpKrewPKCGCkqJFiyhaWeNCFwW+kTDcRQW1CSJSuWVoi1ZCRZsIEvQtCrJFkauodeQiCiPaCFFKwYgzTdC78eaHjuOM837MU+4sZ+753s87c949P64Q4aNVdwtu83Es6wS4+0H2Am0IO3KymiVgEfQcWB9x3TdYmbeiXqTDbithDLXqS4A7gKYHoTmQhiaDMA3WY1GTrwLZAoGAtbJPA8PAwaAbVVk/C9wS5Tzzq+cLWI/Y7fyTB6A7/QoHWyczNOgLMuR8rWVXE1grOwk8BHbWEov4ewo4L8qZ2khnQ2CtkiOgByOCBDSX26KmhqoZVQXWyr4HXAy4W72W3xflXKokVhF4azxbjlfZ0+uACzE7WS9XRdTpK4/pNcD504D3m/CC+X2OFA0cLj091gKr5Ov4ji6/jOtCY0bU1MnityvAhaTwNKws2xqhvQO+f4PUr9AyVQzPFJNLKfCHSBns3CDsPgDZDEyMwfxcPaFnRTmHPMEccKE2eBlph2uPYHtLXiIWaKvLqz0KwLaXXexIwEcS0DWwKlF/aEeUkxR9tb+V1r8LgauuSk93tBs6z8YD7VV5y427RA/3nsKSwGVe1X8jTmhXJ0Sr5Cjo65HCodw4Nmg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MJKLLcOOmx8Aa+vY87wj13Uv2U7NYNMT6ZdtL7VlwTfwhmEjObANPP7Q3SJ5juNsE9GjBdiJLRKAtTahlUplrV6v78xyEwroXG3zAZy7gxRtaSh0YGlL/jyqShYbr34KLyJ9GJjYztVx6zw9rXygnUDn6soggc7VpQwbL7m59uKDPDcXi6LsNNOr218W/TW6/mbABgAAAABJRU5ErkJggg==",b={exports:{}};(function(e,m){(function(c,u){e.exports=u()})(F,function(){return function(c,u,a){u.prototype.isToday=function(){var g="YYYY-MM-DD",p=a();return this.format(g)===p.format(g)}}})})(b);var X=b.exports;t.extend(X);t.extend(G);var ut=E({name:"calendar",props:{calendarDate:{type:String,default:""},list:{type:Array,default:()=>[]},onSelect:{type:Function,default:e=>{}},prevMonth:{type:Function,default:e=>{}},nextMonth:{type:Function,default:e=>{}},toDayMonth:{type:Function,default:e=>{}},selectDay:{type:Function,default:e=>{}},onDestory:{type:Function,default:()=>{}}},data(){return{minDate:new Date,maxDate:new Date,currentDate:t().toDate(),subtitle:"",dayList:[],selectDays:[]}},computed:{arrowStatus(){return!t().isBefore(t(this.currentDate),"month")},selectDayTitle(){return t(this.currentDate).format("YYYY-MM-DD")},todayStatus(){return console.log(this.calendarDate),this.calendarDate?t().isSame(t(this.calendarDate),"month"):!1}},watch:{calendarDate(){this.subtitle=t(this.calendarDate||new Date).format("YYYY\u5E74MM\u6708"),this.maxDate=t(this.calendarDate||new Date).endOf("month").toDate(),this.minDate=t(this.calendarDate||new Date).toDate(),this.currentDate=t(this.calendarDate||new Date).toDate()}},mounted(){this.subtitle=t(this.calendarDate||new Date).format("YYYY\u5E74MM\u6708"),this.maxDate=t(this.calendarDate||new Date).endOf("month").toDate(),this.minDate=t(this.calendarDate||new Date).toDate(),this.currentDate=t(this.calendarDate||new Date).toDate(),console.log(this.list,"this.list"),console.log(this.calendarDate,"calendarDate")},methods:{formatter(e){const m=t(e.date).format("YYYY-MM-DD");let c=!1;return this.list.forEach(u=>{u.calendarDate===m&&(c=!0)}),c&&t(t().format("YYYY-MM-DD")).isSameOrBefore(t(e.date))?(e.bottomInfo="\u53EF\u9009",t(m).isSame(this.calendarDate)?e.type="selected":e.type=""):e.type="disabled",m===t().format("YYYY-MM-DD")&&(e.className="today"),e},onPrevMonth(){if(this.arrowStatus)return;const e=t(this.currentDate).subtract(1,"month");this._monthChange(e),this.prevMonth&&this.prevMonth(this.minDate)},onToday(){const e=t();this._monthChange(e),this.toDayMonth&&this.toDayMonth(this.minDate)},onNextMonth(){const e=t(this.currentDate).add(1,"month");this._monthChange(e),this.nextMonth&&this.nextMonth(this.minDate)},_monthChange(e){const m=t().toDate(),c=e.startOf("month").toDate();this.minDate=t(m).isAfter(c)?m:c,this.maxDate=e.endOf("month").toDate(),this.currentDate=e.toDate(),this.subtitle=e.format("YYYY\u5E74MM\u6708")},onDateSelect(e){this._dayChange(e),this.onSelect&&this.onSelect(e)},_dayChange(e){this.currentDate=e,this.$emit("update:calendarDate",t(e).format("YYYY-MM-DD"))}},unmounted(){this.onDestory()},render(){return s("div",{class:f.calendarContainer},[s(w,{title:"\u8BAD\u7EC3\u65E5\u671F",border:!1,background:"transparent",desotry:!1},null),s(x,{class:f.calendar,showTitle:!1,poppable:!1,showConfirm:!1,showMark:!1,firstDayOfWeek:1,rowHeight:62,minDate:this.minDate,maxDate:this.maxDate,defaultDate:t(this.calendarDate||"").toDate(),color:"var(--van-primary)",formatter:this.formatter,onSelect:this.onDateSelect},{"top-info":()=>s("div",{class:f.topInfo},null),subtitle:()=>s("div",{class:f.subtitle},[s("span",null,[this.subtitle]),s("div",null,[s(D,{name:this.arrowStatus?q:H,size:22,class:[f.right],onClick:this.onPrevMonth},null),s(D,{name:H,size:22,onClick:this.onNextMonth},null)])])})])}});const j="_selectTimer_16p3k_1",Z="_cellGroup_16p3k_8",z="_cellTitle_16p3k_13",_="_cellIcon_16p3k_17",$="_cellTimers_16p3k_21",tt="_noTime_16p3k_46";var l={selectTimer:j,cellGroup:Z,cellTitle:z,cellIcon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3aGQWcy8fvtxdDQArX3ZHFQ/C9H6d/PQF/MVOzKIIyPmYDhPLM+ldRATR2U1WYGYkpkHqXFf9PqZYMBNN1ex6SgpssLK7ko/N+v9P4FIRycXEnBlNcAAAAASUVORK5CYII=",At=E({name:"timer",props:{timerList:{type:Object,default:()=>{}},times:{type:Number,default:120}},emits:["close","confirm"],setup(e,{slots:m,attrs:c,emit:u}){t().format("YYYY-MM-DD HH:mm:ss");const a=S({calendarDate:null,selectTimeStatus:!1,selectTime:null,useTimer:[],useTimerFormat:[],usedTimer:[],minMinute:0,maxMinute:59}),g=(n,o)=>(n==="hour"&&(o.text+="\u65F6"),n==="minute"&&(o.text+="\u5206"),o),p=(n,o)=>{if(n==="hour"){const r=[];return o.forEach(i=>{a.useTimerFormat.forEach(A=>{var h;i.value>=A.startHour&&i.value<=A.endHour&&i.value!=((h=r[r.length-1])==null?void 0:h.value)&&r.push(i)})}),r}return o},v=n=>{if(n.columnIndex===1)return;const o=Number(n.selectedValues[0]);let r=0;a.useTimerFormat.forEach(i=>{o===i.startHour?r=i.startMinute:o===i.endHour&&(r=i.endMinute)}),a.minMinute=r,a.maxMinute=59},Y=n=>{const o=[];return n.forEach(r=>{o.push({startHour:Number(t(r.startTime).format("HH")),startMinute:Number(t(r.startTime).format("mm")),endHour:Number(t(r.endTime).format("HH")),endMinute:Number(t(r.endTime).format("mm"))})}),o},Q=n=>{const o=n.selectedValues,r=t(a.calendarDate).hour(o[0]).minute(o[1]).second(0),i=t(r).minute(e.times+t(r).minute());let A=!1;if(a.useTimer.forEach(h=>{t(r).valueOf()>=t(h.startTime).valueOf()&&t(i).valueOf()<=t(h.endTime).valueOf()&&(A=!0)}),!A){M("\u60A8\u9009\u62E9\u7684\u65F6\u95F4\u8D85\u8FC7\u53EF\u6392\u8BFE\u65F6\u95F4\u8303\u56F4");return}a.selectTime=r.toDate(),a.selectTimeStatus=!1};B(()=>e.timerList,()=>{N()});const N=()=>{var A,h;console.log(e.timerList,"timerList"),a.calendarDate=(A=e.timerList)==null?void 0:A.calendarDate;const n=((h=e.timerList)==null?void 0:h.timeDetailList)||[],o=[],r=[];n.forEach(d=>{d.enable?o.push(d):r.push(d)}),a.useTimer=[...o];const i=Y(o);if(a.useTimerFormat=i,a.usedTimer=[...r],console.log(Y(o),"onFormatTimer"),console.log(a.useTimer,a.usedTimer,"onUseTimer"),i.length>0){const d=i[0];a.minMinute=d.startMinute,a.maxMinute=59}};return k(()=>{N()}),()=>s("div",{class:l.timer},[s(w,{title:"\u8BAD\u7EC3\u65F6\u95F4",desotry:!1},null),a.useTimer&&a.useTimer.length>0&&s(T,{inset:!0,class:l.cellGroup,style:{marginTop:"12px"}},{default:()=>[s(y,null,{icon:()=>s(D,{name:et,class:l.cellIcon},null),title:()=>s("div",{class:l.cellTimers},[s("h3",null,[C("\u53EF\u6392\u8BFE\u65F6\u95F4\u6BB5")]),s("div",null,[a.useTimer.map(n=>s("span",null,[`${t(n.startTime).format("HH:mm")}~${t(n.endTime).format("HH:mm")}`]))])])})]}),a.usedTimer&&a.usedTimer.length>0&&s(T,{inset:!0,class:l.cellGroup,style:{marginTop:"12px"}},{default:()=>[s(y,null,{icon:()=>s(D,{name:at,class:l.cellIcon},null),title:()=>s("div",{class:l.cellTimers},[s("h3",null,[C("\u51B2\u7A81\u65F6\u95F4")]),s("div",null,[a.usedTimer.map(n=>s("span",null,[`${t(n.startTime).format("HH:mm")}~${t(n.endTime).format("HH:mm")}`]))])])})]}),s(T,{inset:!0,class:l.cellGroup},{default:()=>[s(y,{center:!0,title:"\u8BAD\u7EC3\u5F00\u59CB\u65F6\u95F4",titleClass:l.cellTitle,value:a.selectTime?t(a.selectTime).format("HH:mm"):"",isLink:!0,onClick:()=>a.selectTimeStatus=!0},{icon:()=>s(D,{name:st,class:l.cellIcon},null)})]}),s(I,{position:"bottom"},{default:()=>[s("div",{class:"btnGroup"},[s(W,{round:!0,block:!0,type:"primary",onClick:()=>{if(!a.selectTime){M("\u8BF7\u9009\u62E9\u8BAD\u7EC3\u5F00\u59CB\u65F6\u95F4");return}u("confirm",a.selectTime),u("close")}},{default:()=>[C("\u786E\u8BA4")]})])]}),s(P,{show:a.selectTimeStatus,"onUpdate:show":n=>a.selectTimeStatus=n,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[s(U,{minMinute:a.minMinute,maxMinute:a.maxMinute,formatter:g,filter:p,onChange:v,onConfirm:Q,onCancel:()=>a.selectTimeStatus=!1},null)]})])}});export{ut as C,At as T};