提交 7bba3498 编写于 作者: 刘英杰's avatar 刘英杰

v20240301 预约列表添加时间段搜索

上级 590d8923
流水线 #24372 已通过 ,包含阶段
in 32 second
import{h as i,u as p,i as g,o as l,c as _,a as k,j as w,L as d,k as f,l as n,p as c}from"./index-96312938.js";function x(a){const t={userName:a.userName};return i.get("/api/Login/api/Login/test",{params:t})}function y(a){const t={code:a.code,sign:a.sign,timestamp:a.timestamp};return i.get("/api/Login/api/Login/ManageWxLogin",{params:t})}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(a){const t=p(),r=async o=>{const e=await(void 0)(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},m=async o=>{const e=await y(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},u=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await r(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await m(e)},test:async()=>{const e=await x({userName:"asc666"});if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return g(()=>{u()}),(o,e)=>{const s=d;return l(),_("div",L,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:w(()=>[f(" 登录中")]),_:1})])}}};export{A as default}; import{h as i,u as p,i as g,o as l,c as _,a as k,j as w,L as d,k as f,l as n,p as c}from"./index-0a4d5320.js";function x(a){const t={userName:a.userName};return i.get("/api/Login/api/Login/test",{params:t})}function y(a){const t={code:a.code,sign:a.sign,timestamp:a.timestamp};return i.get("/api/Login/api/Login/ManageWxLogin",{params:t})}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(a){const t=p(),r=async o=>{const e=await(void 0)(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},m=async o=>{const e=await y(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},u=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await r(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await m(e)},test:async()=>{const e=await x({userName:"asc666"});if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return g(()=>{u()}),(o,e)=>{const s=d;return l(),_("div",L,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:w(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{u as i,i as l,o as p,c as k,a as _,j as d,l as s,L as m,k as y}from"./index-96312938.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default}; import{u as i,i as l,o as p,c as k,a as _,j as d,l as s,L as m,k as y}from"./index-0a4d5320.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{h as x,Z as h,$ as y,i as v,a1 as w,o,c as r,a2 as t,a as g,F as m,a4 as p,a7 as k,a6 as B,a3 as c,I}from"./index-0a4d5320.js";function q(u){const n={appointmentid:u.appointmentid};return x.get("/api/Background/api/guest/GetAppointmentInfo",{params:n})}const A={class:"w-screen h-screen bg-gray-200 overflow-y-scroll"},G={class:"w-full h-11 bg-white flex"},j=t("div",{class:"w-[87%] h-full text-gray-600 flex justify-center items-center"},[t("span",{class:"mr-6"},"预约详情")],-1),C=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"姓名")],-1),D={class:"w-[70%] h-full flex items-center text-wrap box-border"},F=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"身份证号码")],-1),N={class:"w-[70%] h-full flex items-center text-wrap box-border"},V=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"手机号码")],-1),E={class:"w-[70%] h-full flex items-center text-wrap box-border"},M={__name:"index",setup(u){const n=h(),s=y({users:[],array:[],date:"",moment:""});function d(){k.push({name:"welcome",query:{moment:n.query.moment,begin_date:n.query.begin_date,end_date:n.query.end_date}})}function _(){q({appointmentid:n.query.appointmentid}).then(e=>{s.date=e.response.museum_date,s.moment=e.response.moment?e.response.moment:0,s.users=e.response.users.map(l=>({name:l.name,identity_num:l.identity_num,mobile:l.mobile})),s.array=[[{label:"姓名",value:e.response.name},{label:"身份证号",value:e.response.identity_num},{label:"电话号码",value:e.response.mobile}],[{label:"日期",value:e.response.museum_date},{label:"入场时间",value:["","上午","下午"][e.response.moment]+" "+(e.response.begin_time?e.response.begin_time.split(" ")[1]:"无")+"-"+(e.response.end_time?e.response.end_time.split(" ")[1]:"无")},{label:"人数",value:e.response.num+"人"},{label:"预约类型",value:["散客预约","团队预约","公务预约"][e.response.type]}],[{label:"参观事由",value:e.response.reason}]]})}return v(()=>{_()}),(e,l)=>{const f=I,b=w("cs-detail-card");return o(),r("div",A,[t("div",G,[t("div",{onClick:d,class:"w-[13%] text-gray-600 h-full flex justify-center items-center text-[30px]"},[g(f,{class:"",name:"arrow-left"})]),j]),(o(!0),r(m,null,p(s.array,(a,i)=>(o(),B(b,{array:a,key:i},null,8,["array"]))),128)),(o(!0),r(m,null,p(s.users,(a,i)=>(o(),r("div",{class:"w-full min-h-[150px] mt-3 flex p-3 bg-white flex-wrap",key:i},[C,t("div",D,[t("span",null,c(a.name),1)]),F,t("div",N,[t("span",null,c(a.identity_num),1)]),V,t("div",E,[t("span",null,c(a.mobile),1)])]))),128))])}}};export{M as default};
import{h as b,Z as h,$ as v,i as w,a1 as y,o as a,c as r,a2 as t,a as g,F as p,a4 as u,a7 as k,a6 as B,a3 as c,I}from"./index-96312938.js";function A(m){const o={appointmentid:m.appointmentid};return b.get("/api/Background/api/guest/GetAppointmentInfo",{params:o})}const q={class:"w-screen h-screen bg-gray-200 overflow-y-scroll"},G={class:"w-full h-11 bg-white flex"},j=t("div",{class:"w-[87%] h-full text-gray-600 flex justify-center items-center"},[t("span",{class:"mr-6"},"预约详情")],-1),C=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"姓名")],-1),D={class:"w-[70%] h-full flex items-center text-wrap box-border"},F=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"身份证号码")],-1),N={class:"w-[70%] h-full flex items-center text-wrap box-border"},V=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"手机号码")],-1),E={class:"w-[70%] h-full flex items-center text-wrap box-border"},M={__name:"index",setup(m){const o=h(),n=v({users:[],array:[],date:"",moment:""});function d(){k.push({name:"welcome",query:{date:n.date,moment:o.query.moment}})}function _(){A({appointmentid:o.query.appointmentid}).then(e=>{n.date=e.response.museum_date,n.moment=e.response.moment?e.response.moment:0,n.users=e.response.users.map(l=>({name:l.name,identity_num:l.identity_num,mobile:l.mobile})),n.array=[[{label:"姓名",value:e.response.name},{label:"身份证号",value:e.response.identity_num},{label:"电话号码",value:e.response.mobile}],[{label:"日期",value:e.response.museum_date},{label:"参观场次",value:["","上午","下午"][e.response.moment]+" "+(e.response.begin_time?e.response.begin_time.split(" ")[1]:"无")+"-"+(e.response.end_time?e.response.end_time.split(" ")[1]:"无")},{label:"人数",value:e.response.num+"人"},{label:"预约类型",value:["散客预约","团队预约","公务预约"][e.response.type]}],[{label:"参观事由",value:e.response.reason}]]})}return w(()=>{_()}),(e,l)=>{const f=I,x=y("cs-detail-card");return a(),r("div",q,[t("div",G,[t("div",{onClick:d,class:"w-[13%] text-gray-600 h-full flex justify-center items-center text-[30px]"},[g(f,{class:"",name:"arrow-left"})]),j]),(a(!0),r(p,null,u(n.array,(s,i)=>(a(),B(x,{array:s,key:i},null,8,["array"]))),128)),(a(!0),r(p,null,u(n.users,(s,i)=>(a(),r("div",{class:"w-full min-h-[150px] mt-3 flex p-3 bg-white flex-wrap",key:i},[C,t("div",D,[t("span",null,c(s.name),1)]),F,t("div",N,[t("span",null,c(s.identity_num),1)]),V,t("div",E,[t("span",null,c(s.mobile),1)])]))),128))])}}};export{M as default};
import{u as n,o as c,c as s,a as e,F as m}from"./index-96312938.js";import{N as _,E as p}from"./index-f8e8c276.js";import"./use-height-73c8bd07.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{k as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-0a4d5320.js";import{N as _,E as p}from"./index-9f8b7bf7.js";import"./use-height-c138b7f3.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{k as default};
import{b as U,q as se,s as Re,m as j,n as oe,d as Q,v as Pe,x as Oe,a as r,I as ke,y as Ae,L as $e,w as Se,z as te,t as O,A as ue,C as ne,D as Ye,E as M,G as Ie,r as K,J as Ne,K as pe,M as de,N as Fe,O as ae,P as qe,Q as re,R as He,S as ze,T as fe,U as le,V as We,W as Ge,X as _e,h as Te,Y as Ve,_ as Le,Z as je,$ as Ee,a0 as W,i as Ue,a1 as Z,o as ce,c as be,a2 as N,j as ee,k as De,a3 as Je,F as we,a4 as Ke,a5 as Qe,a6 as Xe,a7 as Ze,a8 as et}from"./index-0a4d5320.js";import{u as tt}from"./use-height-c138b7f3.js";const[nt,E]=U("button"),at=se({},Re,{tag:j("button"),text:String,icon:String,type:j("default"),size:j("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:j("button"),loadingSize:oe,loadingText:String,loadingType:String,iconPosition:j("left")});var ot=Q({name:nt,props:at,emits:["click"],setup(e,{emit:i,slots:t}){const m=Pe(),y=()=>t.loading?t.loading():r($e,{size:e.loadingSize,type:e.loadingType,class:E("loading")},null),D=()=>{if(e.loading)return y();if(t.icon)return r("div",{class:E("icon")},[t.icon()]);if(e.icon)return r(ke,{name:e.icon,class:E("icon"),classPrefix:e.iconPrefix},null)},T=()=>{let s;if(e.loading?s=e.loadingText:s=t.default?t.default():e.text,s)return r("span",{class:E("text")},[s])},h=()=>{const{color:s,plain:v}=e;if(s){const g={color:v?s:"white"};return v||(g.background=s),s.includes("gradient")?g.border=0:g.borderColor=s,g}},a=s=>{e.loading?Ae(s):e.disabled||(i("click",s),m())};return()=>{const{tag:s,type:v,size:g,block:c,round:u,plain:C,square:F,loading:V,disabled:I,hairline:q,nativeType:L,iconPosition:H}=e,z=[E([v,g,{plain:C,block:c,round:u,square:F,loading:V,disabled:I,hairline:q}]),{[Oe]:q}];return r(s,{type:L,class:z,style:h(),disabled:I,onClick:a},{default:()=>[r("div",{class:E("content")},[H==="left"&&D(),T(),H==="right"&&D()])]})}}});const Ce=Se(ot);U("picker-toolbar");const it={title:String,cancelButtonText:String,confirmButtonText:String},Me=se({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:te(44),showToolbar:O,swipeDuration:te(1e3),visibleOptionNum:te(6)},it);se({},Me,{columns:ue(),modelValue:ue(),toolbarPosition:j("top"),columnsFieldNames:Object});const[st,b,G]=U("calendar"),rt=e=>G("monthTitle",e.getFullYear(),e.getMonth()+1);function me(e,i){const t=e.getFullYear(),m=i.getFullYear();if(t===m){const y=e.getMonth(),D=i.getMonth();return y===D?0:y>D?1:-1}return t>m?1:-1}function P(e,i){const t=me(e,i);if(t===0){const m=e.getDate(),y=i.getDate();return m===y?0:m>y?1:-1}return t}const ie=e=>new Date(e),xe=e=>Array.isArray(e)?e.map(ie):ie(e);function ye(e,i){const t=ie(e);return t.setDate(t.getDate()+i),t}const ge=e=>ye(e,-1),Be=e=>ye(e,1),he=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function lt(e){const i=e[0].getTime();return(e[1].getTime()-i)/(1e3*60*60*24)+1}se({},Me,{modelValue:ue(),filter:Function,formatter:{type:Function,default:(e,i)=>i}});const ct=(e,i)=>32-new Date(e,i-1,32).getDate(),[ut]=U("calendar-day");var dt=Q({name:ut,props:{item:ne(Object),color:String,index:Number,offset:Ye(0),rowHeight:String},emits:["click"],setup(e,{emit:i,slots:t}){const m=M(()=>{var a;const{item:s,index:v,color:g,offset:c,rowHeight:u}=e,C={height:u};if(s.type==="placeholder")return C.width="100%",C;if(v===0&&(C.marginLeft=`${100*c/7}%`),g)switch(s.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":C.background=g;break;case"middle":C.color=g;break}return c+(((a=s.date)==null?void 0:a.getDate())||1)>28&&(C.marginBottom=0),C}),y=()=>{e.item.type!=="disabled"&&i("click",e.item)},D=()=>{const{topInfo:a}=e.item;if(a||t["top-info"])return r("div",{class:b("top-info")},[t["top-info"]?t["top-info"](e.item):a])},T=()=>{const{bottomInfo:a}=e.item;if(a||t["bottom-info"])return r("div",{class:b("bottom-info")},[t["bottom-info"]?t["bottom-info"](e.item):a])},h=()=>{const{item:a,color:s,rowHeight:v}=e,{type:g,text:c}=a,u=[D(),c,T()];return g==="selected"?r("div",{class:b("selected-day"),style:{width:v,height:v,background:s}},[u]):u};return()=>{const{type:a,className:s}=e.item;return a==="placeholder"?r("div",{class:b("day"),style:m.value},null):r("div",{role:"gridcell",style:m.value,class:[b("day",a),s],tabindex:a==="disabled"?void 0:-1,onClick:y},[h()])}}});const[ft]=U("calendar-month"),mt={date:ne(Date),type:String,color:String,minDate:ne(Date),maxDate:ne(Date),showMark:Boolean,rowHeight:oe,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var gt=Q({name:ft,props:mt,emits:["click"],setup(e,{emit:i,slots:t}){const[m,y]=Ie(),D=K(),T=K(),h=tt(T),a=M(()=>rt(e.date)),s=M(()=>Ne(e.rowHeight)),v=M(()=>{const l=e.date.getDay();return e.firstDayOfWeek?(l+7-e.firstDayOfWeek)%7:l}),g=M(()=>ct(e.date.getFullYear(),e.date.getMonth()+1)),c=M(()=>m.value||!e.lazyRender),u=()=>a.value,C=l=>{const w=k=>e.currentDate.some(_=>P(_,k)===0);if(w(l)){const k=ge(l),_=Be(l),S=w(k),n=w(_);return S&&n?"multiple-middle":S?"end":n?"start":"multiple-selected"}return""},F=l=>{const[w,k]=e.currentDate;if(!w)return"";const _=P(l,w);if(!k)return _===0?"start":"";const S=P(l,k);return e.allowSameDay&&_===0&&S===0?"start-end":_===0?"start":S===0?"end":_>0&&S<0?"middle":""},V=l=>{const{type:w,minDate:k,maxDate:_,currentDate:S}=e;if(P(l,k)<0||P(l,_)>0)return"disabled";if(S===null)return"";if(Array.isArray(S)){if(w==="multiple")return C(l);if(w==="range")return F(l)}else if(w==="single")return P(l,S)===0?"selected":"";return""},I=l=>{if(e.type==="range"){if(l==="start"||l==="end")return G(l);if(l==="start-end")return`${G("start")}/${G("end")}`}},q=()=>{if(e.showMonthTitle)return r("div",{class:b("month-title")},[t["month-title"]?t["month-title"]({date:e.date,text:a.value}):a.value])},L=()=>{if(e.showMark&&c.value)return r("div",{class:b("month-mark")},[e.date.getMonth()+1])},H=M(()=>{const l=Math.ceil((g.value+v.value)/7);return Array(l).fill({type:"placeholder"})}),z=M(()=>{const l=[],w=e.date.getFullYear(),k=e.date.getMonth();for(let _=1;_<=g.value;_++){const S=new Date(w,k,_),n=V(S);let o={date:S,type:n,text:_,bottomInfo:I(n)};e.formatter&&(o=e.formatter(o)),l.push(o)}return l}),B=M(()=>z.value.filter(l=>l.type==="disabled")),A=(l,w)=>{if(D.value){const k=de(D.value),_=H.value.length,n=(Math.ceil((w.getDate()+v.value)/7)-1)*k.height/_;Fe(l,k.top+n+l.scrollTop-de(l).top)}},J=(l,w)=>r(dt,{item:l,index:w,color:e.color,offset:v.value,rowHeight:s.value,onClick:k=>i("click",k)},ae(t,["top-info","bottom-info"])),X=()=>r("div",{ref:D,role:"grid",class:b("days")},[L(),(c.value?z:H).value.map(J)]);return pe({getTitle:u,getHeight:()=>h.value,setVisible:y,scrollToDate:A,disabledDays:B}),()=>r("div",{class:b("month"),ref:T},[q(),X()])}});const[ht]=U("calendar-header");var yt=Q({name:ht,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:i,emit:t}){const m=()=>{if(e.showTitle){const h=e.title||G("title"),a=i.title?i.title():h;return r("div",{class:b("header-title")},[a])}},y=h=>t("clickSubtitle",h),D=()=>{if(e.showSubtitle){const h=i.subtitle?i.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return r("div",{class:b("header-subtitle"),onClick:y},[h])}},T=()=>{const{firstDayOfWeek:h}=e,a=G("weekdays"),s=[...a.slice(h,7),...a.slice(0,h)];return r("div",{class:b("weekdays")},[s.map(v=>r("span",{class:b("weekday")},[v]))])};return()=>r("div",{class:b("header")},[m(),D(),T()])}});const vt={show:Boolean,type:j("single"),title:String,color:String,round:O,readonly:Boolean,poppable:O,maxRange:te(null),position:j("bottom"),teleport:[String,Object],showMark:O,showTitle:O,formatter:Function,rowHeight:oe,confirmText:String,rangePrompt:String,lazyRender:O,showConfirm:O,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:O,closeOnPopstate:O,showRangePrompt:O,confirmDisabledText:String,closeOnClickOverlay:O,safeAreaInsetTop:Boolean,safeAreaInsetBottom:O,minDate:{type:Date,validator:fe,default:he},maxDate:{type:Date,validator:fe,default:()=>{const e=he();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:oe,default:0,validator:e=>e>=0&&e<=6}};var _t=Q({name:st,props:vt,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle"],setup(e,{emit:i,slots:t}){const m=(n,o=e.minDate,d=e.maxDate)=>P(n,o)===-1?o:P(n,d)===1?d:n,y=(n=e.defaultDate)=>{const{type:o,minDate:d,maxDate:f,allowSameDay:R}=e;if(n===null)return n;const p=he();if(o==="range"){Array.isArray(n)||(n=[]);const $=m(n[0]||p,d,R?f:ge(f)),x=m(n[1]||p,R?d:Be(d));return[$,x]}return o==="multiple"?Array.isArray(n)?n.map($=>m($)):[m(p)]:((!n||Array.isArray(n))&&(n=p),m(n))};let D;const T=K(),h=K({text:"",date:void 0}),a=K(y()),[s,v]=qe(),g=M(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),c=M(()=>{const n=[],o=new Date(e.minDate);o.setDate(1);do n.push(new Date(o)),o.setMonth(o.getMonth()+1);while(me(o,e.maxDate)!==1);return n}),u=M(()=>{if(a.value){if(e.type==="range")return!a.value[0]||!a.value[1];if(e.type==="multiple")return!a.value.length}return!a.value}),C=()=>a.value,F=()=>{const n=We(T.value),o=n+D,d=c.value.map((x,Y)=>s.value[Y].getHeight()),f=d.reduce((x,Y)=>x+Y,0);if(o>f&&n>0)return;let R=0,p;const $=[-1,-1];for(let x=0;x<c.value.length;x++){const Y=s.value[x];R<=o&&R+d[x]>=n&&($[1]=x,p||(p=Y,$[0]=x),s.value[x].showed||(s.value[x].showed=!0,i("monthShow",{date:Y.date,title:Y.getTitle()}))),R+=d[x]}c.value.forEach((x,Y)=>{const ve=Y>=$[0]-1&&Y<=$[1]+1;s.value[Y].setVisible(ve)}),p&&(h.value={text:p.getTitle(),date:p.date})},V=n=>{le(()=>{c.value.some((o,d)=>me(o,n)===0?(T.value&&s.value[d].scrollToDate(T.value,n),!0):!1),F()})},I=()=>{if(!(e.poppable&&!e.show))if(a.value){const n=e.type==="single"?a.value:a.value[0];fe(n)&&V(n)}else le(F)},q=()=>{e.poppable&&!e.show||(le(()=>{D=Math.floor(de(T).height)}),I())},L=(n=y())=>{a.value=n,I()},H=n=>{const{maxRange:o,rangePrompt:d,showRangePrompt:f}=e;return o&&lt(n)>+o?(f&&_e(d||G("rangePrompt",o)),i("overRange"),!1):!0},z=()=>{var n;return i("confirm",(n=a.value)!=null?n:xe(a.value))},B=(n,o)=>{const d=f=>{a.value=f,i("select",xe(f))};if(o&&e.type==="range"&&!H(n)){d([n[0],ye(n[0],+e.maxRange-1)]);return}d(n),o&&!e.showConfirm&&z()},A=(n,o,d)=>{var f;return(f=n.find(R=>P(o,R.date)===-1&&P(R.date,d)===-1))==null?void 0:f.date},J=M(()=>s.value.reduce((n,o)=>{var d,f;return n.push(...(f=(d=o.disabledDays)==null?void 0:d.value)!=null?f:[]),n},[])),X=n=>{if(e.readonly||!n.date)return;const{date:o}=n,{type:d}=e;if(d==="range"){if(!a.value){B([o]);return}const[f,R]=a.value;if(f&&!R){const p=P(o,f);if(p===1){const $=A(J.value,f,o);if($){const x=ge($);P(f,x)===-1?B([f,x]):B([o])}else B([f,o],!0)}else p===-1?B([o]):e.allowSameDay&&B([o,o],!0)}else B([o])}else if(d==="multiple"){if(!a.value){B([o]);return}const f=a.value,R=f.findIndex(p=>P(p,o)===0);if(R!==-1){const[p]=f.splice(R,1);i("unselect",ie(p))}else e.maxRange&&f.length>=+e.maxRange?_e(e.rangePrompt||G("rangePrompt",e.maxRange)):B([...f,o])}else B(o,!0)},l=n=>i("update:show",n),w=(n,o)=>{const d=o!==0||!e.showSubtitle;return r(gt,Ge({ref:v(o),date:n,currentDate:a.value,showMonthTitle:d,firstDayOfWeek:g.value},ae(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:X}),ae(t,["top-info","bottom-info","month-title"]))},k=()=>{if(t.footer)return t.footer();if(e.showConfirm){const n=t["confirm-text"],o=u.value,d=o?e.confirmDisabledText:e.confirmText;return r(Ce,{round:!0,block:!0,type:"primary",color:e.color,class:b("confirm"),disabled:o,nativeType:"button",onClick:z},{default:()=>[n?n({disabled:o}):d||G("confirm")]})}},_=()=>r("div",{class:[b("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[k()]),S=()=>r("div",{class:b()},[r(yt,{date:h.value.date,title:e.title,subtitle:h.value.text,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:g.value,onClickSubtitle:n=>i("clickSubtitle",n)},ae(t,["title","subtitle"])),r("div",{ref:T,class:b("body"),onScroll:F},[c.value.map(w)]),_()]);return re(()=>e.show,q),re(()=>[e.type,e.minDate,e.maxDate],()=>L(y(a.value))),re(()=>e.defaultDate,(n=null)=>{a.value=n,I()}),pe({reset:L,scrollToDate:V,getSelectedDate:C}),He(q),()=>e.poppable?r(ze,{show:e.show,class:b("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":l},{default:S}):S()}});const bt=Se(_t);function Dt(e){const i={condition:e.condition,begin_date:e.begin_date,end_date:e.end_date,moment:e.moment,page_index:e.page_index,page_size:e.page_size};return Te.get("/api/Background/api/guest/GetGuestListByManage",{params:i})}function wt(e){const i={begin_date:e.begin_date,end_date:e.end_date};return Te.get("/api/Background/api/guest/GetGuestCount",{params:i})}function xt(e){try{return e(),!1}catch(i){return Ve({type:"danger",message:i}),!1}}const kt={class:"w-screen h-screen"},St={class:"w-full h-[102px] bg-red-600"},pt={class:"w-full h-[48px] flex"},Tt={class:"w-1/2 h-[48px]"},Ct={class:"w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3"},Mt={class:"w-full h-full flex justify-end"},Bt={class:"w-full h-[55px]"},Rt={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},Pt={__name:"index",setup(e){const i=je(),t=Ee({date:{show:!1},array:[],selectArray:[],search:{minDate:new Date(W().year(),W().month()-1,1),maxDate:new Date(W().year(),W().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",begin_date:W().format("YYYY-MM-DD"),end_date:W().format("YYYY-MM-DD"),date:i.query.date||W().format("YYYY-MM-DD"),moment:i.query.moment||"0",page_index:1,page_size:10,total:0}});function m(c,u){u.appointmentid!==void 0&&Ze.push({name:"messageDetails",query:{appointmentid:String(u.appointmentid),moment:t.search.moment,begin_date:t.search.begin_dateChange||i.query.begin_date||t.search.begin_date,end_date:t.search.end_dateChange||i.query.end_date||t.search.end_date}})}const y=M(()=>t.search.begin_dateChange||i.query.begin_date||t.search.begin_date),D=M(()=>t.search.end_dateChange||i.query.end_date||t.search.end_date);function T(c){t.search.page_index=1,t.search.moment=c,a()}function h(c){t.date.show=!1,t.search.page_index=1,t.search.moment="0",t.search.begin_dateChange=W(c[0]).format("YYYY-MM-DD"),t.search.end_dateChange=W(c[1]).format("YYYY-MM-DD"),g(),a()}function a(){xt(()=>{Dt({...t.search,begin_date:t.search.begin_dateChange||i.query.begin_date||t.search.begin_date,end_date:t.search.end_dateChange||i.query.end_date||t.search.end_date}).then(c=>{t.array=c.response.data.map((u,C)=>({...u,name:u.name,mobile:u.mobile,museum_date:u.museum_date,visitTime:["","上午","下午"][u.moment],num:u.num,type:["散客预约","团队预约","公务预约"][u.type],reason:u.reason})),t.search.total=c.response.data_count})})}function s(c){t.search.condition=c,a()}function v(c){t.search.page_index=c,a()}function g(){wt({begin_date:t.search.begin_dateChange||i.query.begin_date||t.search.begin_date,end_date:t.search.end_dateChange||i.query.end_date||t.search.end_date}).then(c=>{t.selectArray=[{text:`全天 (${c.response.all_day})人`,value:"0"},{text:`上午 (${c.response.forenoon})人`,value:"1"},{text:`下午 (${c.response.afternoon})人`,value:"2"}]})}return Ue(()=>{g(),a()}),(c,u)=>{const C=Z("cs-header"),F=et,V=Qe,I=ke,q=Ce,L=Z("cs-card"),H=Z("cs-page"),z=bt,B=Z("cs-pop-up");return ce(),be(we,null,[N("div",kt,[N("div",St,[r(C,{onSearchFun:s}),N("div",pt,[N("div",Tt,[r(V,{class:"aaa"},{default:ee(()=>[r(F,{onChange:T,modelValue:t.search.moment,"onUpdate:modelValue":u[0]||(u[0]=A=>t.search.moment=A),options:t.selectArray},null,8,["modelValue","options"])]),_:1})]),N("div",{onClick:u[1]||(u[1]=A=>t.date.show=!0),class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"},[N("span",null,[De(Je(y.value+"到"+D.value),1),r(I,{class:"ml-1",name:"setting"})])])])]),N("div",Ct,[(ce(!0),be(we,null,Ke(t.array,(A,J)=>(ce(),Xe(L,{item:A,key:J},{default:ee(()=>[N("div",Mt,[r(q,{onClick:X=>m("messageDetails",A),class:"w-1/2 text-gray-600",plain:"",size:"small"},{default:ee(()=>[De("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item"]))),128))]),N("div",Bt,[r(H,{total:t.search.total,onPageChange:v},null,8,["total"])])]),r(B,{show:t.date.show,height:83},{content:ee(()=>[N("div",Rt,[r(z,{poppable:!1,show:t.search.date,"onUpdate:show":u[2]||(u[2]=A=>t.search.date=A),"close-on-click-overlay":!1,minDate:t.search.minDate,maxDate:t.search.maxDate,type:"range",onConfirm:h},null,8,["show","minDate","maxDate"])])]),_:1},8,["show"])],64)}}},$t=Le(Pt,[["__scopeId","data-v-d71828f6"]]);export{$t as default};
import{u as n,o as c,c as s,a as e,F as m}from"./index-96312938.js";import{N as _,E as p}from"./index-f8e8c276.js";import"./use-height-73c8bd07.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-0a4d5320.js";import{N as _,E as p}from"./index-9f8b7bf7.js";import"./use-height-c138b7f3.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default};
import{b as j,q as ae,s as Ce,m as q,n as te,d as U,v as Pe,x as Oe,a as r,I as ke,y as Ae,L as $e,w as Se,z as X,t as A,A as ce,C as Z,D as Ie,E as C,G as Ne,r as E,J as Fe,K as pe,M as ue,N as He,O as ee,P as Ye,Q as ie,R as ze,S as We,T as de,U as le,V as Ge,W as Ve,X as ve,h as Te,Y as qe,_ as Le,Z as je,$ as Ee,a0 as we,i as Ue,a1 as K,o as re,c as De,a2 as F,j as Q,k as be,a3 as Je,F as _e,a4 as Ke,a5 as Qe,a6 as Xe,a7 as Ze,a8 as et}from"./index-96312938.js";import{u as tt}from"./use-height-73c8bd07.js";const[nt,L]=j("button"),at=ae({},Ce,{tag:q("button"),text:String,icon:String,type:q("default"),size:q("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:q("button"),loadingSize:te,loadingText:String,loadingType:String,iconPosition:q("left")});var ot=U({name:nt,props:at,emits:["click"],setup(e,{emit:s,slots:n}){const m=Pe(),y=()=>n.loading?n.loading():r($e,{size:e.loadingSize,type:e.loadingType,class:L("loading")},null),D=()=>{if(e.loading)return y();if(n.icon)return r("div",{class:L("icon")},[n.icon()]);if(e.icon)return r(ke,{name:e.icon,class:L("icon"),classPrefix:e.iconPrefix},null)},h=()=>{let i;if(e.loading?i=e.loadingText:i=n.default?n.default():e.text,i)return r("span",{class:L("text")},[i])},g=()=>{const{color:i,plain:u}=e;if(i){const l={color:u?i:"white"};return u||(l.background=i),i.includes("gradient")?l.border=0:l.borderColor=i,l}},o=i=>{e.loading?Ae(i):e.disabled||(s("click",i),m())};return()=>{const{tag:i,type:u,size:l,block:b,round:O,plain:T,square:H,loading:G,disabled:N,hairline:Y,nativeType:V,iconPosition:z}=e,B=[L([u,l,{plain:T,block:b,round:O,square:H,loading:G,disabled:N,hairline:Y}]),{[Oe]:Y}];return r(i,{type:V,class:B,style:g(),disabled:N,onClick:o},{default:()=>[r("div",{class:L("content")},[z==="left"&&D(),h(),z==="right"&&D()])]})}}});const Be=Se(ot);j("picker-toolbar");const st={title:String,cancelButtonText:String,confirmButtonText:String},Me=ae({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:X(44),showToolbar:A,swipeDuration:X(1e3),visibleOptionNum:X(6)},st);ae({},Me,{columns:ce(),modelValue:ce(),toolbarPosition:q("top"),columnsFieldNames:Object});const[it,w,W]=j("calendar"),lt=e=>W("monthTitle",e.getFullYear(),e.getMonth()+1);function fe(e,s){const n=e.getFullYear(),m=s.getFullYear();if(n===m){const y=e.getMonth(),D=s.getMonth();return y===D?0:y>D?1:-1}return n>m?1:-1}function P(e,s){const n=fe(e,s);if(n===0){const m=e.getDate(),y=s.getDate();return m===y?0:m>y?1:-1}return n}const ne=e=>new Date(e),xe=e=>Array.isArray(e)?e.map(ne):ne(e);function ge(e,s){const n=ne(e);return n.setDate(n.getDate()+s),n}const me=e=>ge(e,-1),Re=e=>ge(e,1),he=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function rt(e){const s=e[0].getTime();return(e[1].getTime()-s)/(1e3*60*60*24)+1}ae({},Me,{modelValue:ce(),filter:Function,formatter:{type:Function,default:(e,s)=>s}});const ct=(e,s)=>32-new Date(e,s-1,32).getDate(),[ut]=j("calendar-day");var dt=U({name:ut,props:{item:Z(Object),color:String,index:Number,offset:Ie(0),rowHeight:String},emits:["click"],setup(e,{emit:s,slots:n}){const m=C(()=>{var o;const{item:i,index:u,color:l,offset:b,rowHeight:O}=e,T={height:O};if(i.type==="placeholder")return T.width="100%",T;if(u===0&&(T.marginLeft=`${100*b/7}%`),l)switch(i.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":T.background=l;break;case"middle":T.color=l;break}return b+(((o=i.date)==null?void 0:o.getDate())||1)>28&&(T.marginBottom=0),T}),y=()=>{e.item.type!=="disabled"&&s("click",e.item)},D=()=>{const{topInfo:o}=e.item;if(o||n["top-info"])return r("div",{class:w("top-info")},[n["top-info"]?n["top-info"](e.item):o])},h=()=>{const{bottomInfo:o}=e.item;if(o||n["bottom-info"])return r("div",{class:w("bottom-info")},[n["bottom-info"]?n["bottom-info"](e.item):o])},g=()=>{const{item:o,color:i,rowHeight:u}=e,{type:l,text:b}=o,O=[D(),b,h()];return l==="selected"?r("div",{class:w("selected-day"),style:{width:u,height:u,background:i}},[O]):O};return()=>{const{type:o,className:i}=e.item;return o==="placeholder"?r("div",{class:w("day"),style:m.value},null):r("div",{role:"gridcell",style:m.value,class:[w("day",o),i],tabindex:o==="disabled"?void 0:-1,onClick:y},[g()])}}});const[ft]=j("calendar-month"),mt={date:Z(Date),type:String,color:String,minDate:Z(Date),maxDate:Z(Date),showMark:Boolean,rowHeight:te,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var ht=U({name:ft,props:mt,emits:["click"],setup(e,{emit:s,slots:n}){const[m,y]=Ne(),D=E(),h=E(),g=tt(h),o=C(()=>lt(e.date)),i=C(()=>Fe(e.rowHeight)),u=C(()=>{const c=e.date.getDay();return e.firstDayOfWeek?(c+7-e.firstDayOfWeek)%7:c}),l=C(()=>ct(e.date.getFullYear(),e.date.getMonth()+1)),b=C(()=>m.value||!e.lazyRender),O=()=>o.value,T=c=>{const _=k=>e.currentDate.some(v=>P(v,k)===0);if(_(c)){const k=me(c),v=Re(c),S=_(k),t=_(v);return S&&t?"multiple-middle":S?"end":t?"start":"multiple-selected"}return""},H=c=>{const[_,k]=e.currentDate;if(!_)return"";const v=P(c,_);if(!k)return v===0?"start":"";const S=P(c,k);return e.allowSameDay&&v===0&&S===0?"start-end":v===0?"start":S===0?"end":v>0&&S<0?"middle":""},G=c=>{const{type:_,minDate:k,maxDate:v,currentDate:S}=e;if(P(c,k)<0||P(c,v)>0)return"disabled";if(S===null)return"";if(Array.isArray(S)){if(_==="multiple")return T(c);if(_==="range")return H(c)}else if(_==="single")return P(c,S)===0?"selected":"";return""},N=c=>{if(e.type==="range"){if(c==="start"||c==="end")return W(c);if(c==="start-end")return`${W("start")}/${W("end")}`}},Y=()=>{if(e.showMonthTitle)return r("div",{class:w("month-title")},[n["month-title"]?n["month-title"]({date:e.date,text:o.value}):o.value])},V=()=>{if(e.showMark&&b.value)return r("div",{class:w("month-mark")},[e.date.getMonth()+1])},z=C(()=>{const c=Math.ceil((l.value+u.value)/7);return Array(c).fill({type:"placeholder"})}),B=C(()=>{const c=[],_=e.date.getFullYear(),k=e.date.getMonth();for(let v=1;v<=l.value;v++){const S=new Date(_,k,v),t=G(S);let a={date:S,type:t,text:v,bottomInfo:N(t)};e.formatter&&(a=e.formatter(a)),c.push(a)}return c}),M=C(()=>B.value.filter(c=>c.type==="disabled")),J=(c,_)=>{if(D.value){const k=ue(D.value),v=z.value.length,t=(Math.ceil((_.getDate()+u.value)/7)-1)*k.height/v;He(c,k.top+t+c.scrollTop-ue(c).top)}},oe=(c,_)=>r(dt,{item:c,index:_,color:e.color,offset:u.value,rowHeight:i.value,onClick:k=>s("click",k)},ee(n,["top-info","bottom-info"])),se=()=>r("div",{ref:D,role:"grid",class:w("days")},[V(),(b.value?B:z).value.map(oe)]);return pe({getTitle:O,getHeight:()=>g.value,setVisible:y,scrollToDate:J,disabledDays:M}),()=>r("div",{class:w("month"),ref:h},[Y(),se()])}});const[gt]=j("calendar-header");var yt=U({name:gt,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:s,emit:n}){const m=()=>{if(e.showTitle){const g=e.title||W("title"),o=s.title?s.title():g;return r("div",{class:w("header-title")},[o])}},y=g=>n("clickSubtitle",g),D=()=>{if(e.showSubtitle){const g=s.subtitle?s.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return r("div",{class:w("header-subtitle"),onClick:y},[g])}},h=()=>{const{firstDayOfWeek:g}=e,o=W("weekdays"),i=[...o.slice(g,7),...o.slice(0,g)];return r("div",{class:w("weekdays")},[i.map(u=>r("span",{class:w("weekday")},[u]))])};return()=>r("div",{class:w("header")},[m(),D(),h()])}});const vt={show:Boolean,type:q("single"),title:String,color:String,round:A,readonly:Boolean,poppable:A,maxRange:X(null),position:q("bottom"),teleport:[String,Object],showMark:A,showTitle:A,formatter:Function,rowHeight:te,confirmText:String,rangePrompt:String,lazyRender:A,showConfirm:A,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:A,closeOnPopstate:A,showRangePrompt:A,confirmDisabledText:String,closeOnClickOverlay:A,safeAreaInsetTop:Boolean,safeAreaInsetBottom:A,minDate:{type:Date,validator:de,default:he},maxDate:{type:Date,validator:de,default:()=>{const e=he();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:te,default:0,validator:e=>e>=0&&e<=6}};var wt=U({name:it,props:vt,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle"],setup(e,{emit:s,slots:n}){const m=(t,a=e.minDate,d=e.maxDate)=>P(t,a)===-1?a:P(t,d)===1?d:t,y=(t=e.defaultDate)=>{const{type:a,minDate:d,maxDate:f,allowSameDay:R}=e;if(t===null)return t;const p=he();if(a==="range"){Array.isArray(t)||(t=[]);const $=m(t[0]||p,d,R?f:me(f)),x=m(t[1]||p,R?d:Re(d));return[$,x]}return a==="multiple"?Array.isArray(t)?t.map($=>m($)):[m(p)]:((!t||Array.isArray(t))&&(t=p),m(t))};let D;const h=E(),g=E({text:"",date:void 0}),o=E(y()),[i,u]=Ye(),l=C(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),b=C(()=>{const t=[],a=new Date(e.minDate);a.setDate(1);do t.push(new Date(a)),a.setMonth(a.getMonth()+1);while(fe(a,e.maxDate)!==1);return t}),O=C(()=>{if(o.value){if(e.type==="range")return!o.value[0]||!o.value[1];if(e.type==="multiple")return!o.value.length}return!o.value}),T=()=>o.value,H=()=>{const t=Ge(h.value),a=t+D,d=b.value.map((x,I)=>i.value[I].getHeight()),f=d.reduce((x,I)=>x+I,0);if(a>f&&t>0)return;let R=0,p;const $=[-1,-1];for(let x=0;x<b.value.length;x++){const I=i.value[x];R<=a&&R+d[x]>=t&&($[1]=x,p||(p=I,$[0]=x),i.value[x].showed||(i.value[x].showed=!0,s("monthShow",{date:I.date,title:I.getTitle()}))),R+=d[x]}b.value.forEach((x,I)=>{const ye=I>=$[0]-1&&I<=$[1]+1;i.value[I].setVisible(ye)}),p&&(g.value={text:p.getTitle(),date:p.date})},G=t=>{le(()=>{b.value.some((a,d)=>fe(a,t)===0?(h.value&&i.value[d].scrollToDate(h.value,t),!0):!1),H()})},N=()=>{if(!(e.poppable&&!e.show))if(o.value){const t=e.type==="single"?o.value:o.value[0];de(t)&&G(t)}else le(H)},Y=()=>{e.poppable&&!e.show||(le(()=>{D=Math.floor(ue(h).height)}),N())},V=(t=y())=>{o.value=t,N()},z=t=>{const{maxRange:a,rangePrompt:d,showRangePrompt:f}=e;return a&&rt(t)>+a?(f&&ve(d||W("rangePrompt",a)),s("overRange"),!1):!0},B=()=>{var t;return s("confirm",(t=o.value)!=null?t:xe(o.value))},M=(t,a)=>{const d=f=>{o.value=f,s("select",xe(f))};if(a&&e.type==="range"&&!z(t)){d([t[0],ge(t[0],+e.maxRange-1)]);return}d(t),a&&!e.showConfirm&&B()},J=(t,a,d)=>{var f;return(f=t.find(R=>P(a,R.date)===-1&&P(R.date,d)===-1))==null?void 0:f.date},oe=C(()=>i.value.reduce((t,a)=>{var d,f;return t.push(...(f=(d=a.disabledDays)==null?void 0:d.value)!=null?f:[]),t},[])),se=t=>{if(e.readonly||!t.date)return;const{date:a}=t,{type:d}=e;if(d==="range"){if(!o.value){M([a]);return}const[f,R]=o.value;if(f&&!R){const p=P(a,f);if(p===1){const $=J(oe.value,f,a);if($){const x=me($);P(f,x)===-1?M([f,x]):M([a])}else M([f,a],!0)}else p===-1?M([a]):e.allowSameDay&&M([a,a],!0)}else M([a])}else if(d==="multiple"){if(!o.value){M([a]);return}const f=o.value,R=f.findIndex(p=>P(p,a)===0);if(R!==-1){const[p]=f.splice(R,1);s("unselect",ne(p))}else e.maxRange&&f.length>=+e.maxRange?ve(e.rangePrompt||W("rangePrompt",e.maxRange)):M([...f,a])}else M(a,!0)},c=t=>s("update:show",t),_=(t,a)=>{const d=a!==0||!e.showSubtitle;return r(ht,Ve({ref:u(a),date:t,currentDate:o.value,showMonthTitle:d,firstDayOfWeek:l.value},ee(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:se}),ee(n,["top-info","bottom-info","month-title"]))},k=()=>{if(n.footer)return n.footer();if(e.showConfirm){const t=n["confirm-text"],a=O.value,d=a?e.confirmDisabledText:e.confirmText;return r(Be,{round:!0,block:!0,type:"primary",color:e.color,class:w("confirm"),disabled:a,nativeType:"button",onClick:B},{default:()=>[t?t({disabled:a}):d||W("confirm")]})}},v=()=>r("div",{class:[w("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[k()]),S=()=>r("div",{class:w()},[r(yt,{date:g.value.date,title:e.title,subtitle:g.value.text,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:l.value,onClickSubtitle:t=>s("clickSubtitle",t)},ee(n,["title","subtitle"])),r("div",{ref:h,class:w("body"),onScroll:H},[b.value.map(_)]),v()]);return ie(()=>e.show,Y),ie(()=>[e.type,e.minDate,e.maxDate],()=>V(y(o.value))),ie(()=>e.defaultDate,(t=null)=>{o.value=t,N()}),pe({reset:V,scrollToDate:G,getSelectedDate:T}),ze(Y),()=>e.poppable?r(We,{show:e.show,class:w("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":c},{default:S}):S()}});const Dt=Se(wt);function bt(e){const s={condition:e.condition,date:e.date,moment:e.moment,page_index:e.page_index,page_size:e.page_size};return Te.get("/api/Background/api/guest/GetGuestListByManage",{params:s})}function _t(e){const s={date:e.date};return Te.get("/api/Background/api/guest/GetGuestCount",{params:s})}function xt(e){try{return e(),!1}catch(s){return qe({type:"danger",message:s}),!1}}const kt={class:"w-screen h-screen"},St={class:"w-full h-[102px] bg-red-600"},pt={class:"w-full h-[48px] flex"},Tt={class:"w-1/2 h-[48px]"},Bt={class:"w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3"},Mt={class:"w-full h-full flex justify-end"},Rt={class:"w-full h-[55px]"},Ct={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},Pt={__name:"index",setup(e){const s=je(),n=Ee({date:{show:!1},array:[],selectArray:[],search:{condition:"",date:s.query.date||we().format("YYYY-MM-DD"),moment:s.query.moment||"0",page_index:1,page_size:10,total:0}});function m(u,l){l.appointmentid!==void 0&&Ze.push({name:"messageDetails",query:{appointmentid:String(l.appointmentid),moment:n.search.moment}})}function y(u){n.search.page_index=1,n.search.moment=u,h()}function D(u){n.date.show=!1,n.search.page_index=1,n.search.moment="0",n.search.date=we(u).format("YYYY-MM-DD"),i(),h()}function h(){xt(()=>{bt(n.search).then(u=>{n.array=u.response.data.map((l,b)=>({...l,name:l.name,mobile:l.mobile,museum_date:l.museum_date,visitTime:["","上午","下午"][l.moment],num:l.num,type:["散客预约","团队预约","公务预约"][l.type],reason:l.reason})),n.search.total=u.response.data_count})})}function g(u){n.search.condition=u,h()}function o(u){n.search.page_index=u,h()}function i(){_t({date:n.search.date}).then(u=>{n.selectArray=[{text:`全天 (${u.response.all_day})人`,value:"0"},{text:`上午 (${u.response.forenoon})人`,value:"1"},{text:`下午 (${u.response.afternoon})人`,value:"2"}]})}return Ue(()=>{i(),h()}),(u,l)=>{const b=K("cs-header"),O=et,T=Qe,H=ke,G=Be,N=K("cs-card"),Y=K("cs-page"),V=Dt,z=K("cs-pop-up");return re(),De(_e,null,[F("div",kt,[F("div",St,[r(b,{onSearchFun:g}),F("div",pt,[F("div",Tt,[r(T,{class:"aaa"},{default:Q(()=>[r(O,{onChange:y,modelValue:n.search.moment,"onUpdate:modelValue":l[0]||(l[0]=B=>n.search.moment=B),options:n.selectArray},null,8,["modelValue","options"])]),_:1})]),F("div",{onClick:l[1]||(l[1]=B=>n.date.show=!0),class:"w-1/2 h-[48px] flex justify-center items-center bg-white"},[F("span",null,[be(Je(n.search.date),1),r(H,{class:"ml-1",name:"setting"})])])])]),F("div",Bt,[(re(!0),De(_e,null,Ke(n.array,(B,M)=>(re(),Xe(N,{item:B,key:M},{default:Q(()=>[F("div",Mt,[r(G,{onClick:J=>m("messageDetails",B),class:"w-1/2 text-gray-600",plain:"",size:"small"},{default:Q(()=>[be("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item"]))),128))]),F("div",Rt,[r(Y,{total:n.search.total,onPageChange:o},null,8,["total"])])]),r(z,{show:n.date.show,height:83},{content:Q(()=>[F("div",Ct,[r(V,{poppable:!1,show:n.search.date,"onUpdate:show":l[2]||(l[2]=B=>n.search.date=B),"close-on-click-overlay":!1,onConfirm:D},null,8,["show"])])]),_:1},8,["show"])],64)}}},$t=Le(Pt,[["__scopeId","data-v-2598301a"]]);export{$t as default};
import{a as e,b as k,d as B,e as G,g as b,m as A,w as S,r as I,n as M,t as D,f as T,H as w,B as z,I as P}from"./index-96312938.js";import{u as R}from"./use-height-73c8bd07.js";function $(r,d){const a=R(r,!0);return h=>e("div",{class:d("placeholder"),style:{height:a.value?`${a.value}px`:void 0}},[h()])}const[H,g]=k("empty"),N={image:A("default"),imageSize:[Number,String,Array],description:String};var L=B({name:H,props:N,setup(r,{slots:d}){const a=()=>{const n=d.description?d.description():r.description;if(n)return e("p",{class:g("description")},[n])},h=()=>{if(d.default)return e("div",{class:g("bottom")},[d.default()])},F=G(),l=n=>`${F}-${n}`,t=n=>`url(#${l(n)})`,i=(n,f,C)=>e("stop",{"stop-color":n,offset:`${f}%`,"stop-opacity":C},null),c=(n,f)=>[i(n,0),i(f,100)],u=n=>[e("defs",null,[e("radialGradient",{id:l(n),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(n),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],s=()=>[e("defs",null,[e("linearGradient",{id:l("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],x=()=>[e("defs",null,[e("linearGradient",{id:l("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:t("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:t("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:l(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:l(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:l(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:l(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[s(),e("path",{fill:t(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:t(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(5)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:l(6)},[c("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:l(7)},[c("#EAEDF1","#DCDEE0")])]),s(),x(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:t(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:t(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:t(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),v=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(8)},[c("#EAEDF1","#DCDEE0")])]),s(),x(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:t(8)},null)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:l(9)},[c("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:l(10)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(11)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(12)},[c("#FFF","#F7F8FA")])]),s(),x(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var n;if(d.image)return d.image();const f={error:v,search:m,network:y,default:E};return((n=f[r.image])==null?void 0:n.call(f))||e("img",{src:r.image},null)};return()=>e("div",{class:g()},[e("div",{class:g("image"),style:b(r.imageSize)},[p()]),a(),h()])}});const U=S(L),[_,o]=k("nav-bar"),V={title:String,fixed:Boolean,zIndex:M,border:D,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:D};var Z=B({name:_,props:V,emits:["clickLeft","clickRight"],setup(r,{emit:d,slots:a}){const h=I(),F=$(h,o),l=s=>d("clickLeft",s),t=s=>d("clickRight",s),i=()=>a.left?a.left():[r.leftArrow&&e(P,{class:o("arrow"),name:"arrow-left"},null),r.leftText&&e("span",{class:o("text")},[r.leftText])],c=()=>a.right?a.right():e("span",{class:o("text")},[r.rightText]),u=()=>{const{title:s,fixed:x,border:y,zIndex:E}=r,v=T(E),m=r.leftArrow||r.leftText||a.left,p=r.rightText||a.right;return e("div",{ref:h,style:v,class:[o({fixed:x}),{[z]:y,"van-safe-area-top":r.safeAreaInsetTop}]},[e("div",{class:o("content")},[m&&e("div",{class:[o("left"),r.clickable?w:""],onClick:l},[i()]),e("div",{class:[o("title"),"van-ellipsis"]},[a.title?a.title():s]),p&&e("div",{class:[o("right"),r.clickable?w:""],onClick:t},[c()])])])};return()=>r.fixed&&r.placeholder?F(u):u()}});const j=S(Z);export{U as E,j as N}; import{a as e,b as k,d as B,e as G,g as b,m as A,w as S,r as I,n as M,t as D,f as T,H as w,B as z,I as P}from"./index-0a4d5320.js";import{u as R}from"./use-height-c138b7f3.js";function $(r,d){const a=R(r,!0);return h=>e("div",{class:d("placeholder"),style:{height:a.value?`${a.value}px`:void 0}},[h()])}const[H,g]=k("empty"),N={image:A("default"),imageSize:[Number,String,Array],description:String};var L=B({name:H,props:N,setup(r,{slots:d}){const a=()=>{const n=d.description?d.description():r.description;if(n)return e("p",{class:g("description")},[n])},h=()=>{if(d.default)return e("div",{class:g("bottom")},[d.default()])},F=G(),l=n=>`${F}-${n}`,t=n=>`url(#${l(n)})`,i=(n,f,C)=>e("stop",{"stop-color":n,offset:`${f}%`,"stop-opacity":C},null),c=(n,f)=>[i(n,0),i(f,100)],u=n=>[e("defs",null,[e("radialGradient",{id:l(n),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(n),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],s=()=>[e("defs",null,[e("linearGradient",{id:l("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],x=()=>[e("defs",null,[e("linearGradient",{id:l("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:t("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:t("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:l(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:l(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:l(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:l(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[s(),e("path",{fill:t(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:t(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(5)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:l(6)},[c("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:l(7)},[c("#EAEDF1","#DCDEE0")])]),s(),x(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:t(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:t(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:t(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),v=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(8)},[c("#EAEDF1","#DCDEE0")])]),s(),x(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:t(8)},null)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:l(9)},[c("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:l(10)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(11)},[c("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(12)},[c("#FFF","#F7F8FA")])]),s(),x(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var n;if(d.image)return d.image();const f={error:v,search:m,network:y,default:E};return((n=f[r.image])==null?void 0:n.call(f))||e("img",{src:r.image},null)};return()=>e("div",{class:g()},[e("div",{class:g("image"),style:b(r.imageSize)},[p()]),a(),h()])}});const U=S(L),[_,o]=k("nav-bar"),V={title:String,fixed:Boolean,zIndex:M,border:D,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:D};var Z=B({name:_,props:V,emits:["clickLeft","clickRight"],setup(r,{emit:d,slots:a}){const h=I(),F=$(h,o),l=s=>d("clickLeft",s),t=s=>d("clickRight",s),i=()=>a.left?a.left():[r.leftArrow&&e(P,{class:o("arrow"),name:"arrow-left"},null),r.leftText&&e("span",{class:o("text")},[r.leftText])],c=()=>a.right?a.right():e("span",{class:o("text")},[r.rightText]),u=()=>{const{title:s,fixed:x,border:y,zIndex:E}=r,v=T(E),m=r.leftArrow||r.leftText||a.left,p=r.rightText||a.right;return e("div",{ref:h,style:v,class:[o({fixed:x}),{[z]:y,"van-safe-area-top":r.safeAreaInsetTop}]},[e("div",{class:o("content")},[m&&e("div",{class:[o("left"),r.clickable?w:""],onClick:l},[i()]),e("div",{class:[o("title"),"van-ellipsis"]},[a.title?a.title():s]),p&&e("div",{class:[o("right"),r.clickable?w:""],onClick:t},[c()])])])};return()=>r.fixed&&r.placeholder?F(u):u()}});const j=S(Z);export{U as E,j as N};
import{r as n,i as h,a9 as s,aa as r,Q as u,ab as c,ac as g,M as p}from"./index-96312938.js";const d=(o,i)=>{const a=n(),e=()=>{a.value=p(o).height};return h(()=>{if(s(e),i)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>s(e)),u([c,g],e),a};export{d as u}; import{r as n,i as h,a9 as s,aa as r,Q as u,ab as c,ac as g,M as p}from"./index-0a4d5320.js";const d=(o,i)=>{const a=n(),e=()=>{a.value=p(o).height};return h(()=>{if(s(e),i)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>s(e)),u([c,g],e),a};export{d as u};
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>博物馆预约管理</title> <title>博物馆预约管理</title>
<script type="module" crossorigin src="./assets/index-96312938.js"></script> <script type="module" crossorigin src="./assets/index-0a4d5320.js"></script>
<link rel="stylesheet" href="./assets/index-84864f7f.css"> <link rel="stylesheet" href="./assets/index-84864f7f.css">
</head> </head>
<body> <body>
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
......
...@@ -19,6 +19,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp ...@@ -19,6 +19,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -26,6 +27,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp ...@@ -26,6 +27,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
......
...@@ -14,6 +14,7 @@ export declare function getApiBackgroundApiGuestGetGuestCount(params: GetApiBack ...@@ -14,6 +14,7 @@ export declare function getApiBackgroundApiGuestGetGuestCount(params: GetApiBack
}; };
}, any>>; }, any>>;
interface GetApiBackgroundApiGuestGetGuestCountParams { interface GetApiBackgroundApiGuestGetGuestCountParams {
date: string; begin_date: string;
end_date: string;
} }
export {}; export {};
...@@ -5,7 +5,8 @@ import request from "../../../../util/axios.js"; ...@@ -5,7 +5,8 @@ import request from "../../../../util/axios.js";
*/ */
export function getApiBackgroundApiGuestGetGuestCount(params) { export function getApiBackgroundApiGuestGetGuestCount(params) {
const paramsInput = { const paramsInput = {
date: params.date, begin_date: params.begin_date,
end_date: params.end_date,
}; };
return request.get(`/api/Background/api/guest/GetGuestCount`, { return request.get(`/api/Background/api/guest/GetGuestCount`, {
params: paramsInput, params: paramsInput,
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetGuestListParams { ...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetGuestListParams {
condition?: string; condition?: string;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
approvalState?: number; approvalState?: number;
begin_time?: string;
end_time?: string;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
page_index?: number; page_index?: number;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
......
...@@ -7,6 +7,8 @@ export function getApiBackgroundApiGuestGetGuestList(params) { ...@@ -7,6 +7,8 @@ export function getApiBackgroundApiGuestGetGuestList(params) {
const paramsInput = { const paramsInput = {
condition: params.condition, condition: params.condition,
approvalState: params.approvalState, approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -67,7 +69,8 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -67,7 +69,8 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
}, any>>; }, any>>;
interface GetApiBackgroundApiGuestGetGuestListByManageParams { interface GetApiBackgroundApiGuestGetGuestListByManageParams {
condition?: string; condition?: string;
date: string; begin_date: string;
end_date: string;
moment?: number; moment?: number;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
......
...@@ -6,7 +6,8 @@ import request from "../../../../util/axios.js"; ...@@ -6,7 +6,8 @@ import request from "../../../../util/axios.js";
export function getApiBackgroundApiGuestGetGuestListByManage(params) { export function getApiBackgroundApiGuestGetGuestListByManage(params) {
const paramsInput = { const paramsInput = {
condition: params.condition, condition: params.condition,
date: params.date, begin_date: params.begin_date,
end_date: params.end_date,
moment: params.moment, moment: params.moment,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -69,6 +71,8 @@ interface GetApiBackgroundApiGuestGetOfficialListParams { ...@@ -69,6 +71,8 @@ interface GetApiBackgroundApiGuestGetOfficialListParams {
condition?: string; condition?: string;
approvalView?: number; approvalView?: number;
approvalState?: number; approvalState?: number;
begin_time?: string;
end_time?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
......
...@@ -8,6 +8,8 @@ export function getApiBackgroundApiGuestGetOfficialList(params) { ...@@ -8,6 +8,8 @@ export function getApiBackgroundApiGuestGetOfficialList(params) {
condition: params.condition, condition: params.condition,
approvalView: params.approvalView, approvalView: params.approvalView,
approvalState: params.approvalState, approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetTeamListParams { ...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetTeamListParams {
approvalView?: number; approvalView?: number;
approvalState?: number; approvalState?: number;
museum_state?: string; museum_state?: string;
begin_time?: string;
end_time?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
......
...@@ -9,6 +9,8 @@ export function getApiBackgroundApiGuestGetTeamList(params) { ...@@ -9,6 +9,8 @@ export function getApiBackgroundApiGuestGetTeamList(params) {
approvalView: params.approvalView, approvalView: params.approvalView,
approvalState: params.approvalState, approvalState: params.approvalState,
museum_state: params.museum_state, museum_state: params.museum_state,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
/**
* 导出散客视图
* /api/Background/GuestExport
*/
export declare function getApiBackgroundGuestExport(params: GetApiBackgroundGuestExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundGuestExportParams {
condition?: string;
approvalState?: number;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出散客视图
* /api/Background/GuestExport
*/
export function getApiBackgroundGuestExport(params) {
const paramsInput = {
condition: params.condition,
approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/GuestExport`, {
params: paramsInput,
});
}
/**
* 导出公务视图
* /api/Background/OfficialExport
*/
export declare function getApiBackgroundOfficialExport(params: GetApiBackgroundOfficialExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundOfficialExportParams {
condition?: string;
approvalView?: number;
approvalState?: number;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出公务视图
* /api/Background/OfficialExport
*/
export function getApiBackgroundOfficialExport(params) {
const paramsInput = {
condition: params.condition,
approvalView: params.approvalView,
approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/OfficialExport`, {
params: paramsInput,
});
}
/**
* 导出团队视图
* /api/Background/TeamExport
*/
export declare function getApiBackgroundTeamExport(params: GetApiBackgroundTeamExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundTeamExportParams {
condition?: string;
approvalView?: number;
approvalState?: number;
museum_state?: string;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出团队视图
* /api/Background/TeamExport
*/
export function getApiBackgroundTeamExport(params) {
const paramsInput = {
condition: params.condition,
approvalView: params.approvalView,
approvalState: params.approvalState,
museum_state: params.museum_state,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/TeamExport`, {
params: paramsInput,
});
}
...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek"; ...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek";
export * from "./getApiBackgroundApiGuestGetGuestList"; export * from "./getApiBackgroundApiGuestGetGuestList";
export * from "./getApiBackgroundApiGuestGetTeamList"; export * from "./getApiBackgroundApiGuestGetTeamList";
export * from "./getApiBackgroundApiGuestGetOfficialList"; export * from "./getApiBackgroundApiGuestGetOfficialList";
export * from "./getApiBackgroundGuestExport";
export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage"; export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount"; export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo"; export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
......
...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek"; ...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek";
export * from "./getApiBackgroundApiGuestGetGuestList"; export * from "./getApiBackgroundApiGuestGetGuestList";
export * from "./getApiBackgroundApiGuestGetTeamList"; export * from "./getApiBackgroundApiGuestGetTeamList";
export * from "./getApiBackgroundApiGuestGetOfficialList"; export * from "./getApiBackgroundApiGuestGetOfficialList";
export * from "./getApiBackgroundGuestExport";
export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage"; export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount"; export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo"; export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
......
...@@ -21,6 +21,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf ...@@ -21,6 +21,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf
start_use_time: string; start_use_time: string;
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
after_time: string;
}; };
}, any>>; }, any>>;
interface GetApiSysconfigurationApiSysconfigGetSysconfigurationInfoParams { interface GetApiSysconfigurationApiSysconfigGetSysconfigurationInfoParams {
......
...@@ -21,5 +21,6 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf ...@@ -21,5 +21,6 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf
start_use_time: string; start_use_time: string;
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
after_time: string;
}; };
}, any>>; }, any>>;
...@@ -42,6 +42,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationLis ...@@ -42,6 +42,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationLis
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
identification: number; identification: number;
after_time: string;
}; };
}[]; }[];
query: { query: {
......
...@@ -11,6 +11,7 @@ export interface GuestAppointmentViewModels { ...@@ -11,6 +11,7 @@ export interface GuestAppointmentViewModels {
num?: number; num?: number;
reason?: string; reason?: string;
approval_state?: number; approval_state?: number;
approval_name?: string;
type?: number; type?: number;
createtime?: string; createtime?: string;
unit?: string; unit?: string;
...@@ -18,6 +19,7 @@ export interface GuestAppointmentViewModels { ...@@ -18,6 +19,7 @@ export interface GuestAppointmentViewModels {
approval_remark?: string; approval_remark?: string;
leader?: string; leader?: string;
employ_state?: number; employ_state?: number;
employ_name?: string;
change_remark?: string; change_remark?: string;
begin_time?: string; begin_time?: string;
end_time?: string; end_time?: string;
......
...@@ -12,4 +12,5 @@ export interface Sysconfiguration { ...@@ -12,4 +12,5 @@ export interface Sysconfiguration {
start_use_time?: string; start_use_time?: string;
end_use_time?: string; end_use_time?: string;
introduction?: string; introduction?: string;
after_time?: string;
} }
...@@ -13,4 +13,5 @@ export interface SysconfigurationModel { ...@@ -13,4 +13,5 @@ export interface SysconfigurationModel {
end_use_time?: string; end_use_time?: string;
introduction?: string; introduction?: string;
identification?: number; identification?: number;
after_time?: string;
} }
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="w-full h-[30px] flex"> <div class="w-full h-[30px] flex">
<div class="w-1/3 h-full"> <div class="w-1/3 h-full">
<span class="text-gray-600">参观场次</span> <span class="text-gray-600">入场时间</span>
</div> </div>
<div class="text-red-600 w-2/3 h-full flex justify-end "> <div class="text-red-600 w-2/3 h-full flex justify-end ">
{{ item.visitTime }} {{ item.visitTime }}
......
...@@ -55,9 +55,12 @@ function back() { ...@@ -55,9 +55,12 @@ function back() {
router.push({ router.push({
name: 'welcome', name: 'welcome',
query: { query: {
date: init.date, // date: init.date,
// condition: route.query.condition, // condition: route.query.condition,
moment: route.query.moment, moment: route.query.moment,
begin_date: route.query.begin_date,
end_date: route.query.end_date,
} }
}) })
} }
...@@ -88,7 +91,7 @@ function getData() { ...@@ -88,7 +91,7 @@ function getData() {
{label: '日期', value: res.response.museum_date}, {label: '日期', value: res.response.museum_date},
{ {
label: '参观场次', label: '入场时间',
value: ['', '上午', '下午'][res.response.moment] + ' ' + (res.response.begin_time ? res.response.begin_time.split(' ')[1] : '无') + '-' + (res.response.end_time ? res.response.end_time.split(' ')[1] : '无') value: ['', '上午', '下午'][res.response.moment] + ' ' + (res.response.begin_time ? res.response.begin_time.split(' ')[1] : '无') + '-' + (res.response.end_time ? res.response.end_time.split(' ')[1] : '无')
}, },
{label: '人数', value: res.response.num + '人'}, {label: '人数', value: res.response.num + '人'},
...@@ -103,6 +106,7 @@ function getData() { ...@@ -103,6 +106,7 @@ function getData() {
} }
onMounted(() => { onMounted(() => {
getData() getData()
}) })
</script> </script>
......
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
</van-dropdown-item> </van-dropdown-item>
</van-dropdown-menu> </van-dropdown-menu>
</div> </div>
<div @click="init.date.show = true" class="w-1/2 h-[48px] flex justify-center items-center bg-white"> <div @click="init.date.show = true"
<span>{{ init.search.date }}<van-icon class="ml-1" name="setting"/></span> class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white">
<span>{{
beginDate + '到' + endDate
}}<van-icon class="ml-1" name="setting"/></span>
</div> </div>
</div> </div>
</div> </div>
...@@ -41,6 +44,9 @@ ...@@ -41,6 +44,9 @@
<template #content> <template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto "> <div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar :poppable="false" v-model:show="init.search.date" :close-on-click-overlay="false" <van-calendar :poppable="false" v-model:show="init.search.date" :close-on-click-overlay="false"
:minDate="init.search.minDate"
:maxDate="init.search.maxDate"
type="range"
@confirm="onConfirm"/> @confirm="onConfirm"/>
</div> </div>
</template> </template>
...@@ -53,7 +59,7 @@ import * as api from '../../api/dist/controller/index.js' ...@@ -53,7 +59,7 @@ import * as api from '../../api/dist/controller/index.js'
import {useRoute} from "vue-router"; import {useRoute} from "vue-router";
const route = useRoute() const route = useRoute()
import {onMounted, reactive, ref} from 'vue' import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs"; import dayjs from "dayjs";
import router from "../../router/index.js"; import router from "../../router/index.js";
...@@ -64,7 +70,13 @@ const init = reactive({ ...@@ -64,7 +70,13 @@ const init = reactive({
array: [], array: [],
selectArray: [], selectArray: [],
search: { search: {
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '', condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
date: route.query.date || dayjs().format('YYYY-MM-DD'), date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0", moment: route.query.moment || "0",
page_index: 1, page_index: 1,
...@@ -82,12 +94,26 @@ function detail(key, value) { ...@@ -82,12 +94,26 @@ function detail(key, value) {
query: { query: {
appointmentid: String(value.appointmentid), appointmentid: String(value.appointmentid),
// condition: init.search.condition, // condition: init.search.condition,
moment: init.search.moment moment: init.search.moment,
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
} }
}) })
} }
const beginDate = computed(() => {
//计算开始日期
return (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date)
})
const endDate = computed(() => {
//计算开始日期
return (init.search.end_dateChange || route.query.end_date || init.search.end_date)
})
function selectChange(e) { function selectChange(e) {
//时段下拉框 //时段下拉框
init.search.page_index = 1 init.search.page_index = 1
...@@ -97,11 +123,14 @@ function selectChange(e) { ...@@ -97,11 +123,14 @@ function selectChange(e) {
function onConfirm(e) { function onConfirm(e) {
//选择日期 //选择日期
init.date.show = false init.date.show = false
init.search.page_index = 1 init.search.page_index = 1
init.search.moment = '0' init.search.moment = '0'
init.search.date = dayjs(e).format('YYYY-MM-DD') // init.search.date = dayjs(e).format('YYYY-MM-DD')
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray() getSelectArray()
getData() getData()
} }
...@@ -109,7 +138,12 @@ function onConfirm(e) { ...@@ -109,7 +138,12 @@ function onConfirm(e) {
function getData() { function getData() {
//初始化 //初始化
hooks.getInitListRequest(() => { hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetGuestListByManage(init.search).then(res => {
api.getApiBackgroundApiGuestGetGuestListByManage({
...init.search,
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
}).then(res => {
init.array = res.response.data.map((cur, index) => { init.array = res.response.data.map((cur, index) => {
return { return {
...cur, ...cur,
...@@ -142,7 +176,10 @@ function pageChange(e) { ...@@ -142,7 +176,10 @@ function pageChange(e) {
function getSelectArray() { function getSelectArray() {
//获取下拉框数组 //获取下拉框数组
api.getApiBackgroundApiGuestGetGuestCount({date: init.search.date}) api.getApiBackgroundApiGuestGetGuestCount({
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
})
.then(res => { .then(res => {
init.selectArray = [ init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'}, {text: `全天 (${res.response.all_day})人`, value: '0'},
...@@ -153,6 +190,7 @@ function getSelectArray() { ...@@ -153,6 +190,7 @@ function getSelectArray() {
} }
onMounted(() => { onMounted(() => {
getSelectArray() getSelectArray()
getData() getData()
}) })
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或