提交 4f555e7c 编写于 作者: 刘英杰's avatar 刘英杰

20241105 保存

上级 fb997fb1
import{f as u,h as l,u as p,i as f,c as m,a as d,j as _,L as y,o as k,k as g,p as h,l as v,n as x,q as T,r as I,t as q}from"./index-xjfnhJx1.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},S={__name:"SSO",setup(A){const n=u(),r=l(),o=p();function a(){I().then(t=>{t.response.role_list.forEach((e,s)=>{e==="1"&&t.response.role_list.splice(s,1)}),n.setUserInfo({...t.response,role:t.response.role_list[0]}),q().then(e=>{r.setDomainInfo(e.response)}),o.replace({name:"welcome"})})}function c(){o.replace({name:"403"})}const i=async()=>{({wx:()=>{h({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},asc:async()=>{v({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},first:()=>{let e={sign:o.currentRoute.value.query.sign,code:o.currentRoute.value.query.code,timestamp:o.currentRoute.value.query.timestamp};x(e).then(s=>{s.code!==1?c():(n.setToken(s.response),a())})},test:()=>{T({card:"syjs295"}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})}})[o.currentRoute.value.query.type]()};return f(()=>{i()}),(t,e)=>{const s=y;return k(),m("div",R,[d(s,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[g(" 登录中")]),_:1})])}}};export{S as default};
import{f as i,u as l,v as p,i as d,c as u,a as f,j as _,p as y,L as m,o as v,k,r as x}from"./index-xjfnhJx1.js";const g={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(h){const s=i(),t=l(),n=p({data:{type:""}});function r(){x().then(e=>{e.response.role_list.forEach((a,o)=>{a==="1"&&e.response.role_list.splice(o,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),n.data.type==="Badness"?t.replace({name:"adverseActivityRecord",query:{name:"adverseActivityRecord"}}):t.replace({name:"details",query:{id:t.currentRoute.value.query.id,type:"record",name:"welcome"}})})}function c(){y({token:idt.GetToken()}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),r())})}return d(()=>{n.data.type=t.currentRoute.value.query.type,c()}),(e,a)=>{const o=m;return v(),u("div",g,[f(o,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[k(" 登录中")]),_:1})])}}};export{R as default};
import{_ as D,y as i,v as G,i as H,o as h,c as w,a as t,j as s,A as l,k as d,F as C,H as J,B as P,W as V,bI as K,K as W,M as Q,N as X,P as Y,S as Z,bJ as ee}from"./index-xjfnhJx1.js";import{a as oe,T as ae}from"./index-CMS08OSP.js";import{P as te}from"./index-Lfp6YOD4.js";import{L as se}from"./index-Cqq3HMzq.js";import"./index-C5bYkHWG.js";import{C as le,R as ne}from"./index-9HVe95w2.js";import{C as re}from"./index-CdlO7hSg.js";import{P as ie}from"./index-DS4EzEcx.js";import"./index-BqIpURvl.js";import"./index-_xGsRtnT.js";const de={class:"title-filter"},ue={class:"form-field"},me={class:"btn"},pe={class:"w-full p-3 h-[calc(100%-66px)]"},ce={class:"sticky top-0 w-full h-[64px] z-50"},fe={style:{"border-top":"1px solid #ebedf0"}},_e={class:"w-full h-[calc(100%-124px)] overflow-y-auto"},ve=["title"],he=["src"],we=["src"],xe={__name:"admin",emits:["getTabBarIndex"],setup(ye,{emit:R}){const x=i(0),o=G({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:"不限"},{text:"女",value:"女"},{text:"男",value:"男"}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=i([]),u=i(!1),p=i(!1),r=i(!1),c=()=>{K(o.params).then(n=>{r.value&&(m.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(e=>{m.value.push(e)}),u.value=!1,o.params.page_index++,r.value=!1})},U=()=>{p.value=!1,u.value=!0,o.params.page_index=1,c()};function B(){o.advancedfilter.show=!0}let y=i("");function I(n){f()}function f(){o.params.page_index=1,m.value=[],p.value=!1,u.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function L(){o.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(e=>o[e].value=""),f(),o.advancedfilter.show=!1}function $(){f(),o.advancedfilter.show=!1}function z(n){const e=n.selectedOptions[0];o.roomType.value=e.text,o.params.room_type_id=e.value,o.roomType.showPicker=!1}function N(n){const e=n.selectedOptions[0];o.sex.value=e.text,o.params.sex=e.value,o.sex.showPicker=!1}async function j(){o.roomType.columns=await re.getRoomType()}return H(()=>{document.title="房间列表",j()}),(n,e)=>{const E=W,g=Q,_=X,b=le,F=ne,v=Y,k=ie,S=Z,q=ee,A=se,M=te,T=oe,O=ae;return h(),w(C,null,[t(v,{show:o.advancedfilter.show,"onUpdate:show":e[5]||(e[5]=a=>o.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",de,[d(" 高级筛选"),l("span",{class:"icon",onClick:e[0]||(e[0]=a=>o.advancedfilter.show=!1)},[t(E,{name:"cross"})])]),l("div",ue,[t(g,{modelValue:o.roomType.value,"onUpdate:modelValue":e[1]||(e[1]=a=>o.roomType.value=a),label:"房间类型",readonly:"",onClick:e[2]||(e[2]=a=>o.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),t(g,{modelValue:o.sex.value,"onUpdate:modelValue":e[3]||(e[3]=a=>o.sex.value=a),label:"性别",readonly:"",onClick:e[4]||(e[4]=a=>o.sex.showPicker=!0),placeholder:"请选择性别",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",me,[t(F,{gutter:"20"},{default:s(()=>[t(b,{span:"12"},{default:s(()=>[t(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:L},{default:s(()=>[d("重置 ")]),_:1})]),_:1}),t(b,{span:"12"},{default:s(()=>[t(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:$},{default:s(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),t(v,{show:o.roomType.showPicker,"onUpdate:show":e[7]||(e[7]=a=>o.roomType.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"房间类型","show-toolbar":"",columns:o.roomType.columns,onConfirm:z,onCancel:e[6]||(e[6]=a=>o.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),t(v,{show:o.sex.showPicker,"onUpdate:show":e[9]||(e[9]=a=>o.sex.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"性别","show-toolbar":"",columns:o.sex.columns,onConfirm:N,onCancel:e[8]||(e[8]=a=>o.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",pe,[l("div",ce,[l("div",fe,[t(S,{clearable:"",modelValue:o.params.room_name,"onUpdate:modelValue":[e[10]||(e[10]=a=>o.params.room_name=a),I],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[t(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:B},{default:s(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",_e,[t(M,{modelValue:r.value,"onUpdate:modelValue":e[12]||(e[12]=a=>r.value=a),onRefresh:U},{default:s(()=>[t(A,{loading:u.value,"onUpdate:loading":e[11]||(e[11]=a=>u.value=a),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(h(!0),w(C,null,J(m.value,a=>(h(),w("div",{key:a,title:a,class:"w-full min-h-[40px]"},[t(q,{item:a},null,8,["item"])],8,ve))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),t(O,{class:"w-full h-[80px]",fixed:"",modelValue:x.value,"onUpdate:modelValue":e[13]||(e[13]=a=>x.value=a),onChange:e[14]||(e[14]=a=>R("getTabBarIndex",a))},{default:s(()=>[t(T,{icon:"home-o"},{icon:s(()=>[l("img",{src:P(V)("cwgl1"),class:"w-[20px] h-[20px]"},null,8,he)]),default:s(()=>[d("房间管理 ")]),_:1}),t(T,{icon:"search"},{icon:s(()=>[l("img",{src:P(V)("bljl2"),class:"w-[20px] h-[20px]"},null,8,we)]),default:s(()=>[d("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])],64)}}},Ie=D(xe,[["__scopeId","data-v-f7f313b2"]]);export{Ie as default};
import{_ as S,y as i,v as j,i as A,c as f,A as d,a as s,j as t,S as G,o as _,F as U,H as z,k as v,B as w,W as k,aB as D,ay as E,N as F,b0 as q,ac as K,Z as $,b1 as H,J}from"./index-xjfnhJx1.js";import{T as M,a as W}from"./index-CMS08OSP.js";import{P as Z}from"./index-Lfp6YOD4.js";import{L as O}from"./index-Cqq3HMzq.js";import{C as Q}from"./index-CdlO7hSg.js";import"./index-BqIpURvl.js";import"./index-_xGsRtnT.js";const X={class:"w-full p-3 h-[calc(100%-66px)]"},Y={class:"sticky top-0 w-full h-[54px] z-50"},ee={style:{"border-top":"1px solid #ebedf0"}},ae={class:"w-full h-[calc(100%-124px)] py-3 overflow-y-auto"},te=["title"],se={class:"w-full h-full flex justify-end"},oe=["src"],le=["src"],ne={__name:"adminNoGoodRecord",emits:["getTabBarIndex"],setup(ie,{emit:B}){const h=i(1),o=j({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=i([]),r=i(!1),c=i(!1),n=i(!1),p=()=>{D(o.params).then(l=>{n.value&&(u.value=[],n.value=!1),l.response.data.length===0&&(c.value=!0,n.value=!1),l.response.data.forEach(e=>{u.value.push({...e,imageKey:E.appointmentImageKey[e.state]})}),r.value=!1,o.params.page_index++,n.value=!1})},R=()=>{c.value=!1,r.value=!0,o.params.page_index=1,p()};let x=i({});function V(l){g()}function g(){o.params.page_index=1,u.value=[],c.value=!1,r.value=!0,clearTimeout(x.value),x.value=setTimeout(()=>p(),500)}async function C(){o.seatRoom.columns=await Q.getRoom()}function T(l,e){({cancelBadRecord:()=>{K(()=>$(()=>H({id:l.id}).then(m=>(m.code===1&&g(),m))))},details:()=>{J.push({path:"/details",query:{id:l.id,type:"record"}})}})[e]()}return A(()=>{document.title="座位预约记录",C()}),(l,e)=>{const y=G,m=F,L=q,N=O,I=Z,b=W,P=M;return _(),f("div",X,[d("div",Y,[d("div",ee,[s(y,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:o.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>o.params.key_name=a),V],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),d("div",ae,[s(I,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),onRefresh:R},{default:t(()=>[s(N,{loading:r.value,"onUpdate:loading":e[1]||(e[1]=a=>r.value=a),finished:c.value,"finished-text":"没有更多了",onLoad:p},{default:t(()=>[(_(!0),f(U,null,z(u.value,a=>(_(),f("div",{key:a,title:a,class:"w-full min-h-[40px]"},[s(L,{item:a},{default:t(()=>[d("div",se,[s(m,{disabled:a.state===2,onClick:de=>{T(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:t(()=>[v("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,te))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),s(P,{class:"w-full h-[80px]",fixed:"",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=a=>h.value=a),onChange:e[4]||(e[4]=a=>B("getTabBarIndex",a))},{default:t(()=>[s(b,{icon:"home-o"},{icon:t(()=>[d("img",{src:w(k)("cwgl2"),class:"w-[20px] h-[20px]"},null,8,oe)]),default:t(()=>[v("座位管理 ")]),_:1}),s(b,{icon:"search"},{icon:t(()=>[d("img",{src:w(k)("bljl1"),class:"w-[20px] h-[20px]"},null,8,le)]),default:t(()=>[v("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])}}},ve=S(ne,[["__scopeId","data-v-23f9ae15"]]);export{ve as default};
此差异已折叠。
const __vite__fileDeps=["./reserveASeat-CjPZjwxO.js","./index-xjfnhJx1.js","./index-CZiMdQLq.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as V,v as P,y as n,i as B,c as d,A as m,a as r,j as _,S as A,o as v,F as D,H as E,D as S,E as N,aB as I,ay as T,J as f,aC as U}from"./index-xjfnhJx1.js";import{P as j}from"./index-Lfp6YOD4.js";import{L as q}from"./index-Cqq3HMzq.js";import{N as z}from"./index-BDQ5ejp6.js";import{C as F}from"./index-CdlO7hSg.js";import"./index-BqIpURvl.js";import"./index-_xGsRtnT.js";const G={class:"w-screen h-screen bg-gray-100 box-border relative"},K={class:"sticky top-0 w-full h-[112px] z-50"},H={style:{"border-top":"1px solid #ebedf0"}},J={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto"},M=["title"],O={__name:"adverseActivityRecord",setup($){S(()=>N(()=>import("./reserveASeat-CjPZjwxO.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=P({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),i=n([]),l=n(!1),u=n(!1),o=n(!1),c=()=>{I(t.params).then(s=>{o.value&&(i.value=[],o.value=!1),s.response.data.length===0&&(u.value=!0,o.value=!1),s.response.data.forEach(e=>{i.value.push({...e,imageKey:T.appointmentImageKey[e.state]})}),l.value=!1,t.params.page_index++,o.value=!1})},h=()=>{u.value=!1,l.value=!0,t.params.page_index=1,c()};let p=n({});function x(s){y()}function y(){t.params.page_index=1,i.value=[],u.value=!1,l.value=!0,clearTimeout(p.value),p.value=setTimeout(()=>c(),500)}function g(){let s=f.currentRoute.value.query.name;s?f.replace({name:s}):f.back()}async function k(){t.seatRoom.columns=await F.getRoom()}return B(()=>{k()}),(s,e)=>{const w=z,R=A,L=U,b=q,C=j;return v(),d("div",G,[m("div",K,[r(w,{"left-text":"返回","left-arrow":"",onClickLeft:g,title:"座位使用违约记录"}),m("div",H,[r(R,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),x],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),m("div",J,[r(C,{modelValue:o.value,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value=a),onRefresh:h},{default:_(()=>[r(b,{loading:l.value,"onUpdate:loading":e[1]||(e[1]=a=>l.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:c},{default:_(()=>[(v(!0),d(D,null,E(i.value,a=>(v(),d("div",{key:a,title:a,class:"w-full min-h-[100px]"},[r(L,{item:a},null,8,["item"])],8,M))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},te=V(O,[["__scopeId","data-v-04667cc1"]]);export{te as default};
此差异已折叠。
import{_ as c,f as i,i as u,c as p,J as t,Z as d,br as _,bs as l,o as f,a2 as m,a3 as h,A as v}from"./index-xjfnhJx1.js";import"./seat-DIfO0MxQ.js";const x=e=>(m("data-v-7274a561"),e=e(),h(),e),w={class:"container ccFlex"},I=x(()=>v("div",{class:"im"},null,-1)),b=[I],k={__name:"downloadTransfer",setup(e){const r=i();function a(){var o=window.navigator.userAgent.toLowerCase();return o.match(/MicroMessenger/i)=="micromessenger"}function n(){r.tokenInfo.access_token.token_content=t.currentRoute.value.query.xxx;const o=JSON.parse(t.currentRoute.value.query.params);d(()=>_(o,{responseType:"blob"}).then(s=>(l(s),s)),!0,"正在导出...")}return u(()=>{a()||n()}),(o,s)=>(f(),p("div",w,b))}},g=c(k,[["__scopeId","data-v-7274a561"]]);export{g as default};
此差异已折叠。
import{b as d,d as g,aD as C,a6 as p,a as h,m,ao as N,aL as v,b6 as S,an as _,w}from"./index-xjfnhJx1.js";const[P,E]=d("row"),$=Symbol(P),R={tag:m("div"),wrap:N,align:String,gutter:v(0),justify:String};var j=g({name:P,props:R,setup(o,{slots:r}){const{children:l,linkChildren:u}=C($),i=p(()=>{const a=[[]];let t=0;return l.forEach((e,s)=>{t+=Number(e.span),t>24?(a.push([s]),t-=24):a[a.length-1].push(s)}),a}),n=p(()=>{const a=Number(o.gutter),t=[];return a&&i.value.forEach(e=>{const s=a*(e.length-1)/e.length;e.forEach((c,b)=>{if(b===0)t.push({right:s});else{const f=a-t[c-1].right,y=s-f;t.push({left:f,right:y})}})}),t});return u({spaces:n}),()=>{const{tag:a,wrap:t,align:e,justify:s}=o;return h(a,{class:E({[`align-${e}`]:e,[`justify-${s}`]:s,nowrap:!t})},{default:()=>{var c;return[(c=r.default)==null?void 0:c.call(r)]}})}}});const[k,x]=d("col"),L={tag:m("div"),span:v(0),offset:_};var D=g({name:k,props:L,setup(o,{slots:r}){const{parent:l,index:u}=S($),i=p(()=>{if(!l)return;const{spaces:n}=l;if(n&&n.value&&n.value[u.value]){const{left:a,right:t}=n.value[u.value];return{paddingLeft:a?`${a}px`:null,paddingRight:t?`${t}px`:null}}});return()=>{const{tag:n,span:a,offset:t}=o;return h(n,{style:i.value,class:x({[a]:a,[`offset-${t}`]:t})},{default:()=>{var e;return[(e=r.default)==null?void 0:e.call(r)]}})}}});const K=w(D),O=w(j);export{K as C,O as R};
import{b as m,d as I,y as R,bp as w,an as A,ao as s,a as n,bl as o,au as C,K as P,bq as L,w as N}from"./index-xjfnhJx1.js";const[S,t]=m("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=I({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=R(),f=w(c,t),d=r=>l("clickLeft",r),h=r=>l("clickRight",r),g=()=>a.left?a.left():[e.leftArrow&&n(P,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&n("span",{class:t("text")},[e.leftText])],x=()=>a.right?a.right():n("span",{class:t("text")},[e.rightText]),i=()=>{const{title:r,fixed:u,border:v,zIndex:T}=e,b=L(T),k=e.leftArrow||e.leftText||a.left,B=e.rightText||a.right;return n("div",{ref:c,style:b,class:[t({fixed:u}),{[C]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[n("div",{class:t("content")},[k&&n("div",{class:[t("left"),e.clickable?o:""],onClick:d},[g()]),n("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():r]),B&&n("div",{class:[t("right"),e.clickable?o:""],onClick:h},[x()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const _=N(E);export{_ as N};
const __vite__fileDeps=["./reserveASeat-CjPZjwxO.js","./index-xjfnhJx1.js","./index-CZiMdQLq.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{b as O,d as U,b2 as ue,y as de,a6 as I,b3 as fe,aJ as ve,a as r,an as ae,m as F,aL as se,ao as pe,b4 as me,aG as _e,K as V,aM as oe,b5 as he,w as X,aD as be,b6 as ge,b7 as ye,_ as xe,v as we,i as ke,J as E,R as Ce,c as m,A as f,U as Se,F as z,H as A,j as D,N as Pe,o as v,X as Re,V as P,C as Ee,B as Ie,ay as G,aw as Ve,k as Te,D as Be,E as Ne,Z as ze,b8 as Ae,a0 as De,b9 as $e,ba as Fe}from"./index-xjfnhJx1.js";import{N as Me}from"./index-BDQ5ejp6.js";import{u as He}from"./use-refs-B_6Oslh9.js";import{a as Le}from"./function-call-mmqvtYs2.js";const[Ge,$]=O("rate");function Oe(e,t,c,_){return e>=t?{status:"full",value:1}:e+.5>=t&&c&&!_?{status:"half",value:.5}:e+1>=t&&c&&_?{status:"half",value:Math.round((e-t+1)*1e10)/1e10}:{status:"void",value:0}}const Ue={size:ae,icon:F("star"),color:String,count:se(5),gutter:ae,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:F("star-o"),allowHalf:Boolean,voidColor:String,touchable:pe,iconPrefix:String,modelValue:me(0),disabledColor:String};var Xe=U({name:Ge,props:Ue,emits:["change","update:modelValue"],setup(e,{emit:t}){const c=ue(),[_,p]=He(),s=de(),h=I(()=>e.readonly||e.disabled),o=I(()=>h.value||!e.touchable),y=I(()=>Array(+e.count).fill("").map((l,a)=>Oe(e.modelValue,a+1,e.allowHalf,e.readonly)));let u,x,d=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER;const C=()=>{x=oe(s);const l=_.value.map(oe);u=[],l.forEach((a,i)=>{d=Math.min(a.top,d),b=Math.max(a.top,b),e.allowHalf?u.push({score:i+.5,left:a.left,top:a.top,height:a.height},{score:i+1,left:a.left+a.width/2,top:a.top,height:a.height}):u.push({score:i+1,left:a.left,top:a.top,height:a.height})})},n=(l,a)=>{for(let i=u.length-1;i>0;i--)if(a>=x.top&&a<=x.bottom){if(l>u[i].left&&a>=u[i].top&&a<=u[i].top+u[i].height)return u[i].score}else{const B=a<x.top?d:b;if(l>u[i].left&&u[i].top===B)return u[i].score}return e.allowHalf?.5:1},k=l=>{h.value||l===e.modelValue||(t("update:modelValue",l),t("change",l))},g=l=>{o.value||(c.start(l),C())},S=l=>{if(!o.value&&(c.move(l),c.isHorizontal()&&!c.isTap.value)){const{clientX:a,clientY:i}=l.touches[0];_e(l),k(n(a,i))}},T=(l,a)=>{const{icon:i,size:B,color:q,count:Y,gutter:j,voidIcon:J,disabled:R,voidColor:K,allowHalf:Z,iconPrefix:Q,disabledColor:W}=e,M=a+1,H=l.status==="full",N=l.status==="void",re=Z&&l.value>0&&l.value<1;let ee;j&&M!==+Y&&(ee={paddingRight:he(j)});const ce=te=>{C();let L=Z?n(te.clientX,te.clientY):M;e.clearable&&c.isTap.value&&L===e.modelValue&&(L=0),k(L)};return r("div",{key:a,ref:p(a),role:"radio",style:ee,class:$("item"),tabindex:R?void 0:0,"aria-setsize":Y,"aria-posinset":M,"aria-checked":!N,onClick:ce},[r(V,{size:B,name:H?i:J,class:$("icon",{disabled:R,full:H}),color:R?W:H?q:K,classPrefix:Q},null),re&&r(V,{size:B,style:{width:l.value+"em"},name:N?J:i,class:$("icon",["half",{disabled:R,full:!N}]),color:R?W:N?K:q,classPrefix:Q},null)])};return fe(()=>e.modelValue),ve("touchmove",S,{target:s}),()=>r("div",{ref:s,role:"radiogroup",class:$({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:g},[y.value.map(T)])}});const qe=X(Xe),[ne,le]=O("steps"),Ye={active:se(0),direction:F("horizontal"),activeIcon:F("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},ie=Symbol(ne);var je=U({name:ne,props:Ye,emits:["clickStep"],setup(e,{emit:t,slots:c}){const{linkChildren:_}=be(ie);return _({props:e,onClickStep:s=>t("clickStep",s)}),()=>{var s;return r("div",{class:le([e.direction])},[r("div",{class:le("items")},[(s=c.default)==null?void 0:s.call(c)])])}}});const[Je,w]=O("step");var Ke=U({name:Je,setup(e,{slots:t}){const{parent:c,index:_}=ge(ie);if(!c)return;const p=c.props,s=()=>{const d=+p.active;return _.value<d?"finish":_.value===d?"process":"waiting"},h=()=>s()==="process",o=I(()=>({background:s()==="finish"?p.activeColor:p.inactiveColor})),y=I(()=>{if(h())return{color:p.activeColor};if(s()==="waiting")return{color:p.inactiveColor}}),u=()=>c.onClickStep(_.value),x=()=>{const{iconPrefix:d,finishIcon:b,activeIcon:C,activeColor:n,inactiveIcon:k}=p;return h()?t["active-icon"]?t["active-icon"]():r(V,{class:w("icon","active"),name:C,color:n,classPrefix:d},null):s()==="finish"&&(b||t["finish-icon"])?t["finish-icon"]?t["finish-icon"]():r(V,{class:w("icon","finish"),name:b,color:n,classPrefix:d},null):t["inactive-icon"]?t["inactive-icon"]():k?r(V,{class:w("icon"),name:k,classPrefix:d},null):r("i",{class:w("circle"),style:o.value},null)};return()=>{var d;const b=s();return r("div",{class:[ye,w([p.direction,{[b]:b}])]},[r("div",{class:w("title",{active:h()}),style:y.value,onClick:u},[(d=t.default)==null?void 0:d.call(t)]),r("div",{class:w("circle-container"),onClick:u},[x()]),r("div",{class:w("line"),style:o.value},null)])}}});const Ze=X(Ke),Qe=X(je),We={class:"w-screen h-screen bg-gray-100 box-border relative"},et={class:"sticky top-0 w-full h-[46px] z-50"},tt={class:"w-full h-[calc(100%-116px)] overflow-y-auto"},at={class:"w-full min-h-[50px] flex p-3"},ot={class:"w-[30%] h-full flex items-center text-wrap box-border"},lt={key:0,class:"w-[70%] h-full flex items-center text-wrap box-border"},st={class:"ml-1"},nt={key:1,class:"w-[70%] h-full flex items-center text-wrap box-border"},it={class:"w-full min-h-[80px] flex justify-start"},rt=["onClick"],ct=["src"],ut={key:2,class:"w-[70%] h-full flex items-center text-wrap box-border"},dt={class:"ml-1"},ft={key:3,class:"w-[70%] h-full flex items-center text-wrap box-border"},vt={class:"ml-1"},pt={key:4,class:"w-[70%] h-full flex items-center text-wrap box-border"},mt=["onClick"],_t=["src"],ht={class:"w-full h-[70px] z-50 ccFlex p-2 shadow shadow-gray-600"},bt={__name:"index",props:{array:Array,nmt:Boolean,nmb:Boolean},setup(e){Be(()=>Ne(()=>import("./reserveASeat-CjPZjwxO.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=we({array:[],params:{id:"",type:""}});function c(s,h){let o=[];s.map((y,u)=>{o.push(window.location.origin+y.path)}),Le({images:o,startPosition:h})}function _(){({record:()=>{ze(()=>Ae({id:t.params.id}).then(async h=>{let o=h.response;return t.array=[{label:"房间名称",value:o.room_name,mt:"10px"},{label:"房间地址",value:o.room_address},{label:"房间类型",value:o.room_type_name},{label:"占座人",value:o.name,mt:"10px"},{label:"占座时间",value:`${o.begin_time}-${o.end_time.split(" ")[1]} ${De(o.begin_time.split(" ")[1],o.end_time.split(" ")[1])}小时`},{label:"座位",value:o.seat_code_name+"号",mt:"10px"},{label:"活动状态",tag:G.activityStatus[o.state]},{label:"签到状态",tag:o.sign_state_name}],o.leave_state!==0&&t.array.push({label:"暂离状态",tag:G.transientState[o.leave_state],mt:"10px"},{label:"归位时间",value:o.leave_time}),await $e({id:t.params.id}).then(y=>(t.array.push({label:"签到记录",record:y.response,mt:"10px"}),y)),h}),!0,"加载中...")}})[t.params.type]()}function p(){let s=E.currentRoute.value.query.name;s?E.replace({name:s}):E.back()}return ke(()=>{t.params={id:E.currentRoute.value.query.id,type:E.currentRoute.value.query.type},_()}),(s,h)=>{const o=Me,y=qe,u=Fe,x=Ze,d=Qe,b=Pe,C=Ce("font");return v(),m("div",We,[f("div",et,[r(o,{"left-text":"返回","left-arrow":"",onClickLeft:p,title:"详情"})]),Se((v(),m("div",tt,[(v(!0),m(z,null,A(t.array,(n,k)=>(v(),m("div",{key:k,style:Re({marginTop:n.mt}),class:"w-full h-auto bg-white"},[f("div",at,[f("div",ot,[f("span",null,P(n.label),1)]),n.value?(v(),m("div",lt,[f("span",st,P(n.value),1)])):n.image?(v(),m("div",nt,[f("div",it,[(v(!0),m(z,null,A(n.image,(g,S)=>(v(),m("div",{key:S,onClick:T=>c(n.image,S),class:"m-1 w-[70px] h-[60px] border border-dashed border-gray-300"},[f("img",{src:g.path,class:"w-full h-full"},null,8,ct)],8,rt))),128))])])):n.level?(v(),m("div",ut,[f("span",dt,[r(y,{readonly:"",modelValue:n.level,"onUpdate:modelValue":g=>n.level=g,size:25,count:5,color:"#FE9E0B","void-icon":"star","void-color":"#eee"},null,8,["modelValue","onUpdate:modelValue"])])])):n.tag?(v(),m("div",ft,[f("span",vt,[r(u,{size:"large",type:"success"},{default:D(()=>[f("span",null,P(n.tag),1)]),_:2},1024)])])):n.record?(v(),m("div",pt,[r(d,{class:"ml-1 w-full",direction:"vertical",active:0},{default:D(()=>[(v(!0),m(z,null,A(n.record,(g,S)=>(v(),Ee(x,{key:S},{default:D(()=>[f("h3",null,"【"+P(Ie(G).signOrSignOutStatus[g.sign_state])+"】",1),f("p",null,"地址:"+P(g.address),1),f("p",null,"时间:"+P(g.createtime),1),(v(!0),m(z,null,A([g.file_info],(T,l)=>(v(),m("div",{key:l,onClick:a=>c([g.file_info],l),class:"m-1 w-[70px] h-[60px] border border-dashed border-gray-300"},[f("img",{src:T.path,class:"w-full h-full"},null,8,_t)],8,mt))),128))]),_:2},1024))),128))]),_:2},1024)])):Ve("",!0)])],4))),128))])),[[C,void 0,"{color:`#515A6E`,size:18}"]]),f("div",ht,[r(b,{onClick:p,round:"",block:""},{default:D(()=>[Te("返 回")]),_:1})])])}}},kt=xe(bt,[["__scopeId","data-v-b7ccfd10"]]);export{kt as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{bW as i}from"./index-xjfnhJx1.js";function n(o){return i({url:`${window.location.origin}/wx/eicrs/api/GetJSSDK/GetWxConfig`,method:"get",params:o})}export{n as G};
import{b as $,aP as me,at as S,bh as G,d as J,an as U,bi as N,am as V,y as P,b2 as fe,a6 as T,b6 as oe,aE as ae,ah as ve,aJ as le,a as d,aG as ce,bl as Q,aL as B,ao as he,m as be,aD as ge,bP as Oe,ag as Y,bQ as j,L as Te,aq as W,al as X,ak as pe,bR as ke}from"./index-xjfnhJx1.js";const[ye,g,Z]=$("picker"),ie=e=>e.find(a=>!a.disabled)||e[0];function Ce(e,a){const o=e[0];if(o){if(Array.isArray(o))return"multiple";if(a.children in o)return"cascade"}return"default"}function _(e,a){a=G(a,0,e.length);for(let o=a;o<e.length;o++)if(!e[o].disabled)return o;for(let o=a-1;o>=0;o--)if(!e[o].disabled)return o;return 0}const ee=(e,a,o)=>a!==void 0&&!!e.find(s=>s[o.value]===a);function z(e,a,o){const s=e.findIndex(f=>f[o.value]===a),c=_(e,s);return e[c]}function xe(e,a,o){const s=[];let c={[a.children]:e},f=0;for(;c&&c[a.children];){const v=c[a.children],h=o.value[f];if(c=me(h)?z(v,h,a):void 0,!c&&v.length){const u=ie(v)[a.value];c=z(v,u,a)}f++,s.push(v)}return s}function Ee(e){const{transform:a}=window.getComputedStyle(e),o=a.slice(7,a.length-1).split(", ")[5];return Number(o)}function Pe(e){return S({text:"text",value:"value",children:"children"},e)}const te=200,ne=300,Se=15,[se,q]=$("picker-column"),ue=Symbol(se);var we=J({name:se,props:{value:U,fields:N(Object),options:V(),readonly:Boolean,allowHtml:Boolean,optionHeight:N(Number),swipeDuration:N(U),visibleOptionNum:N(U)},emits:["change","clickOption","scrollInto"],setup(e,{emit:a,slots:o}){let s,c,f,v,h;const u=P(),p=P(),r=P(0),m=P(0),y=fe(),C=()=>e.options.length,M=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,k=i=>{let t=_(e.options,i);const n=-t*e.optionHeight,l=()=>{t>C()-1&&(t=_(e.options,i));const O=e.options[t][e.fields.value];O!==e.value&&a("change",O)};s&&n!==r.value?h=l:l(),r.value=n},b=()=>e.readonly||!e.options.length,A=i=>{s||b()||(h=null,m.value=te,k(i),a("clickOption",e.options[i]))},x=i=>G(Math.round(-i/e.optionHeight),0,C()-1),D=T(()=>x(r.value)),F=(i,t)=>{const n=Math.abs(i/t);i=r.value+n/.003*(i<0?-1:1);const l=x(i);m.value=+e.swipeDuration,k(l)},w=()=>{s=!1,m.value=0,h&&(h(),h=null)},K=i=>{if(!b()){if(y.start(i),s){const t=Ee(p.value);r.value=Math.min(0,t-M())}m.value=0,c=r.value,f=Date.now(),v=c,h=null}},L=i=>{if(b())return;y.move(i),y.isVertical()&&(s=!0,ce(i,!0));const t=G(c+y.deltaY.value,-(C()*e.optionHeight),e.optionHeight),n=x(t);n!==D.value&&a("scrollInto",e.options[n]),r.value=t;const l=Date.now();l-f>ne&&(f=l,v=t)},I=()=>{if(b())return;const i=r.value-v,t=Date.now()-f;if(t<ne&&Math.abs(i)>Se){F(i,t);return}const l=x(r.value);m.value=te,k(l),setTimeout(()=>{s=!1},0)},E=()=>{const i={height:`${e.optionHeight}px`};return e.options.map((t,n)=>{const l=t[e.fields.text],{disabled:O}=t,H=t[e.fields.value],re={role:"button",style:i,tabindex:O?-1:0,class:[q("item",{disabled:O,selected:H===e.value}),t.className],onClick:()=>A(n)},de={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:l};return d("li",re,[o.option?o.option(t,n):d("div",de,null)])})};return oe(ue),ae({stopMomentum:w}),ve(()=>{const i=s?Math.floor(-r.value/e.optionHeight):e.options.findIndex(l=>l[e.fields.value]===e.value),t=_(e.options,i),n=-t*e.optionHeight;s&&t<i&&w(),r.value=n}),le("touchmove",L,{target:u}),()=>d("div",{ref:u,class:q(),onTouchstartPassive:K,onTouchend:I,onTouchcancel:I},[d("ul",{ref:p,style:{transform:`translate3d(0, ${r.value+M()}px, 0)`,transitionDuration:`${m.value}ms`,transitionProperty:m.value?"all":"none"},class:q("wrapper"),onTransitionend:w},[E()])])}});const[Ie]=$("picker-toolbar"),R={title:String,cancelButtonText:String,confirmButtonText:String},He=["cancel","confirm","title","toolbar"],Me=Object.keys(R);var De=J({name:Ie,props:R,emits:["confirm","cancel"],setup(e,{emit:a,slots:o}){const s=()=>{if(o.title)return o.title();if(e.title)return d("div",{class:[g("title"),"van-ellipsis"]},[e.title])},c=()=>a("cancel"),f=()=>a("confirm"),v=()=>{const u=e.cancelButtonText||Z("cancel");return d("button",{type:"button",class:[g("cancel"),Q],onClick:c},[o.cancel?o.cancel():u])},h=()=>{const u=e.confirmButtonText||Z("confirm");return d("button",{type:"button",class:[g("confirm"),Q],onClick:f},[o.confirm?o.confirm():u])};return()=>d("div",{class:g("toolbar")},[o.toolbar?o.toolbar():[v(),s(),h()]])}});const[Ne,Re]=$("picker-group"),Be=Symbol(Ne);S({tabs:V(),activeTab:B(0),nextStepText:String},R);const _e=S({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:B(44),showToolbar:he,swipeDuration:B(1e3),visibleOptionNum:B(6)},R),Ve=S({},_e,{columns:V(),modelValue:V(),toolbarPosition:be("top"),columnsFieldNames:Object});var Ae=J({name:ye,props:Ve,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:a,slots:o}){const s=P(),c=P(e.modelValue.slice(0)),{parent:f}=oe(Be),{children:v,linkChildren:h}=ge(ue);h();const u=T(()=>Pe(e.columnsFieldNames)),p=T(()=>Oe(e.optionHeight)),r=T(()=>Ce(e.columns,u.value)),m=T(()=>{const{columns:t}=e;switch(r.value){case"multiple":return t;case"cascade":return xe(t,u.value,c);default:return[t]}}),y=T(()=>m.value.some(t=>t.length)),C=T(()=>m.value.map((t,n)=>z(t,c.value[n],u.value))),M=T(()=>m.value.map((t,n)=>t.findIndex(l=>l[u.value.value]===c.value[n]))),k=(t,n)=>{if(c.value[t]!==n){const l=c.value.slice(0);l[t]=n,c.value=l}},b=()=>({selectedValues:c.value.slice(0),selectedOptions:C.value,selectedIndexes:M.value}),A=(t,n)=>{k(n,t),r.value==="cascade"&&c.value.forEach((l,O)=>{const H=m.value[O];ee(H,l,u.value)||k(O,H.length?H[0][u.value.value]:void 0)}),W(()=>{a("change",S({columnIndex:n},b()))})},x=(t,n)=>{const l={columnIndex:n,currentOption:t};a("clickOption",S(b(),l)),a("scrollInto",l)},D=()=>{v.forEach(n=>n.stopMomentum());const t=b();return W(()=>{a("confirm",t)}),t},F=()=>a("cancel",b()),w=()=>m.value.map((t,n)=>d(we,{value:c.value[n],fields:u.value,options:t,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:p.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:l=>A(l,n),onClickOption:l=>x(l,n),onScrollInto:l=>{a("scrollInto",{currentOption:l,columnIndex:n})}},{option:o.option})),K=t=>{if(y.value){const n={height:`${p.value}px`},l={backgroundSize:`100% ${(t-p.value)/2}px`};return[d("div",{class:g("mask"),style:l},null),d("div",{class:[ke,g("frame")],style:n},null)]}},L=()=>{const t=p.value*+e.visibleOptionNum,n={height:`${t}px`};return d("div",{ref:s,class:g("columns"),style:n},[w(),K(t)])},I=()=>{if(e.showToolbar&&!f)return d(De,pe(X(e,Me),{onConfirm:D,onCancel:F}),X(o,He))};Y(m,t=>{t.forEach((n,l)=>{n.length&&!ee(n,c.value[l],u.value)&&k(l,ie(n)[u.value.value])})},{immediate:!0});let E;return Y(()=>e.modelValue,t=>{!j(t,c.value)&&!j(t,E)&&(c.value=t.slice(0),E=t.slice(0))},{deep:!0}),Y(c,t=>{j(t,e.modelValue)||(E=t.slice(0),a("update:modelValue",E))},{immediate:!0}),le("touchmove",ce,{target:s}),ae({confirm:D,getSelectedOptions:()=>C.value}),()=>{var t,n;return d("div",{class:g()},[e.toolbarPosition==="top"?I():null,e.loading?d(Te,{class:g("loading")},null):null,(t=o["columns-top"])==null?void 0:t.call(o),L(),(n=o["columns-bottom"])==null?void 0:n.call(o),e.toolbarPosition==="bottom"?I():null])}}});export{_e as p,Ae as s};
import{_ as J,v as K,Q as d,y as Q,a6 as Z,i as W,Z as A,a7 as X,J as h,R as ee,c,a as i,j as m,A as n,F as $,a8 as te,a9 as R,aa as Y,ab as ae,ac as oe,ad as ie,N as ne,P as se,ae as le,o as l,U as _,k as s,V as u,H as ce,C as I,af as me,s as re,a0 as de,K as ue,M as pe,a2 as fe,a3 as _e,a4 as he,a5 as P}from"./index-xjfnhJx1.js";import{N as ye}from"./index-BDQ5ejp6.js";import{C as Te}from"./index-CHXgyb8S.js";import"./index-C5bYkHWG.js";import{C as ke}from"./index-CF-dSnMf.js";import"./lodash-jaHd8q6W.js";import{u as ve}from"./seat-DIfO0MxQ.js";import{C as we}from"./index-CdlO7hSg.js";import"./use-refs-B_6Oslh9.js";import"./index-BqIpURvl.js";import"./index-_xGsRtnT.js";const B=k=>(fe("data-v-e399dfe8"),k=k(),_e(),k),ge={class:"w-full h-full bg-white overflow-y-auto relative"},xe={class:"w-full h-[90px] z-100 sticky top-0 px-3"},be={class:"flex justify-between items-center w-full h-[60px]"},De={class:"w-[180px] h-full flex justify-between items-center"},Se={key:1},Ce={class:"w-full h-[30px] ccFlex"},Ae=B(()=>n("span",{class:"ml-1"},"点击选择开始时间和结束时间",-1)),Ye={class:"w-full h-[calc(100%-150px)] z-40 p-3 pt-0 relative"},Ie={class:"w-full h-full overflow-y-auto timeDisplay"},Ve={class:"w-full h-[60px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},Me={key:0},qe=B(()=>n("span",null,"至",-1)),ze={key:1},$e={class:"w-screen h-screen"},Re={class:"w-full h-[90%] bg-gray-100 overflow-y-auto flex content-start flex-wrap"},Pe={class:"w-full h-[54px] flex bg-white"},Be={class:"w-full h-full flex items-center justify-center"},Ee={class:"w-full h-[10%] flex items-center justify-between p-3 shadow-gray-600 shadow"},Fe={__name:"index",setup(k){const w=ve(),e=K({minmaxTime:{max:"",min:""},seatAppointmentTime:{value:"",columns:[],showPicker:!1,date:[],dateShow:!1},timeSelector:{begin_time:0,end_time:0,timeDiff:0,day:d().format("YYYY-MM-DD")},seatParams:{day:d().format("YYYY-MM-DD"),seat_id:w.getSeatInfo().seat_id},occupancyTime:{checkTime:[],array:[]},formData:{userid:"",card:"",name:"",sex:"",room_id:"",room_name:"",room_type_id:"",room_type_name:"",seat_id:"",seat_code:0,seat_code_name:"",begin_time:"",end_time:""}});function E(a){if(a.occupy_flag!==0)return;const t=r=>he({title:"提示",message:r,theme:"round-button",confirmButtonColor:"#1989FA"});if(e.occupancyTime.checkTime.length<1)e.occupancyTime.checkTime.push(a),e.timeSelector={...e.timeSelector,...x()};else{let r=e.occupancyTime.checkTime[0].index-1,y=e.occupancyTime.checkTime[e.occupancyTime.checkTime.length-1].index+1,p=e.occupancyTime.checkTime[0].index,D=e.occupancyTime.checkTime[e.occupancyTime.checkTime.length-1].index;if(e.occupancyTime.checkTime.map(S=>S.time_section).includes(a.time_section)){switch(a.index){case p:e.occupancyTime.checkTime.shift();break;case D:e.occupancyTime.checkTime.pop();break;default:t("当前时间取消后,时段未连续,请重新选择取消时间!");break}e.timeSelector={...e.timeSelector,...x()}}else{switch(a.index){case r:e.occupancyTime.checkTime.unshift(a);break;case y:e.occupancyTime.checkTime.push(a);break;default:t("选择当前时间,时段未连续,请选择可连续时间!");break}e.timeSelector={...e.timeSelector,...x()}}}}function V(){let a=h.currentRoute.value.query.name;a?h.replace({name:a}):h.back()}function g(){A(()=>me({...e.seatParams,seat_id:h.currentRoute.value.query.seatId,day:e.timeSelector.day}).then(a=>(e.occupancyTime.array=a.response.map((t,r)=>({...t,index:r})),a)),!0)}function F(){te().then(a=>{a.response.forEach(t=>{t.id==="occupyseat_day_max"&&(v.value=t.value)})})}function N(a){e.timeSelector.day=d(a).format("YYYY-MM-DD"),e.occupancyTime.checkTime=[],e.timeSelector={...e.timeSelector,begin_time:0,end_time:0,timeDiff:0},e.seatAppointmentTime.dateShow=!1,g()}function U(a){const t=d(a.date).format("YYYY-MM-DD");return R(t,Y(d(),v.value))?ae(d(t).format("YYYY-MM-DD"))&&(a.bottomInfo="可占座"):a.type="disabled",a}let v=Q("");function M(a){let t={加:()=>P(e.timeSelector.day,a),减:()=>P(e.timeSelector.day,a)};R(t[a](),Y(d(),v.value))?(e.timeSelector.day=t[a](),e.occupancyTime.checkTime=[],e.timeSelector={...e.timeSelector,begin_time:0,end_time:0,timeDiff:0},g()):re({type:"warning",message:`可预约日期截止至:${Y(d(),v.value)}`})}function x(){if(e.occupancyTime.checkTime.length!==0){let a=e.occupancyTime.checkTime[0].begin_time.split(" ")[1],t=e.occupancyTime.checkTime[e.occupancyTime.checkTime.length-1].end_time.split(" ")[1],r=de(a,t);return{begin_time:a,end_time:t,timeDiff:r}}else return{begin_time:0,end_time:0,timeDiff:0}}function q(){e.seatAppointmentTime.value=`${e.timeSelector.day} ${e.timeSelector.begin_time}~${e.timeSelector.end_time}`,e.formData={...e.formData,...w.getSeatInfo(),begin_time:`${e.timeSelector.day} ${e.timeSelector.begin_time}`,end_time:`${e.timeSelector.day} ${e.timeSelector.end_time}`},e.seatAppointmentTime.showPicker=!1}function j(){e.occupancyTime.checkTime=[],e.timeSelector={begin_time:0,end_time:0,timeDiff:0,day:d().format("YYYY-MM-DD")},g(),e.seatAppointmentTime.showPicker=!0}function G(){oe(()=>A(()=>ie(e.formData).then(a=>(a.code===1&&h.back(),a))),"是否确人预约此座位?")}async function L(){e.minmaxTime=await we.GetMaxAndMinOccupyseat()}const b=Z(()=>e.timeSelector.timeDiff>=e.minmaxTime.min&&e.timeSelector.timeDiff<=e.minmaxTime.max);return W(()=>{F(),L(),A(()=>X({seat_id:h.currentRoute.value.query.seatId}).then(a=>{e.formData={...e.formData,...a.response},w.setSeatInfo(a.response)}),!1,"正在加载中"),document.title="占座座位表单填写"}),(a,t)=>{const r=ke,y=ue,p=ne,D=Te,S=se,O=ye,T=pe,C=le,f=ee("font");return l(),c($,null,[i(r,{show:e.seatAppointmentTime.dateShow,"onUpdate:show":t[0]||(t[0]=o=>e.seatAppointmentTime.dateShow=o),onConfirm:N,formatter:U,round:!1,position:"right"},null,8,["show"]),i(S,{show:e.seatAppointmentTime.showPicker,"onUpdate:show":t[5]||(t[5]=o=>e.seatAppointmentTime.showPicker=o),round:"",position:"bottom",style:{height:"70%"}},{default:m(()=>[n("div",ge,[n("div",xe,[n("div",be,[_((l(),c("span",{onClick:t[1]||(t[1]=o=>e.seatAppointmentTime.showPicker=!1)},[s("取消")])),[[f,void 0,"{color:`#9E9E9E`,size:18}"]]),n("div",De,[i(y,{size:"22",name:"arrow-left",onClick:t[2]||(t[2]=o=>M("减"))}),n("div",{onClick:t[3]||(t[3]=o=>e.seatAppointmentTime.dateShow=!0),class:"text-[18px]"},u(e.timeSelector.day),1),i(y,{size:"22",name:"arrow",onClick:t[4]||(t[4]=o=>M("加"))})]),b.value?_((l(),c("span",{key:0,onClick:q},[s("确定")])),[[f,void 0,"{color:`#3E93D6`,size:18}"]]):_((l(),c("span",Se,[s("确定")])),[[f,void 0,"{color:`#A9B7C6`,size:18}"]])]),n("div",Ce,[i(y,{name:"warning"}),Ae])]),n("div",Ye,[n("div",Ie,[(l(!0),c($,null,ce(e.occupancyTime.array,(o,H)=>(l(),I(D,{onClick:z=>E(o),class:"h-[50px] w-full ccFlex",disabled:o.occupy_flag!==0,name:o,key:H},{default:m(()=>[e.occupancyTime.checkTime.map(z=>z.time_section).includes(o.time_section)?(l(),I(p,{key:0,style:{padding:"9px"},hairline:"",type:"primary"},{default:m(()=>[s(u(o.time_section),1)]),_:2},1024)):(l(),I(p,{key:1,style:{padding:"9px"},plain:"",hairline:"",disabled:o.occupy_flag!==0,color:["","#706c6c"][+(o.occupy_flag!==0)],type:"primary"},{default:m(()=>[s(u(o.time_section),1)]),_:2},1032,["disabled","color"]))]),_:2},1032,["onClick","disabled","name"]))),128))])]),n("div",Ve,[b.value?(l(),c("span",Me,[_((l(),c("span",null,[s(u(e.timeSelector.begin_time),1)])),[[f,void 0,"{color:`#4895D0`}"]]),qe,_((l(),c("span",null,[s(u(e.timeSelector.end_time),1)])),[[f,void 0,"{color:`#4895D0`}"]]),n("span",null,[s("共 "),_((l(),c("span",null,[s(u(e.timeSelector.timeDiff),1)])),[[f,void 0,"{color:`#4895D0`}"]]),s(" 小时")])])):_((l(),c("span",ze,[s("预约时间不得少于"+u(e.minmaxTime.min)+"小时大于"+u(e.minmaxTime.max)+"小时",1)])),[[f,void 0,"{color:`#FB784E`,size:14}"]]),i(p,{disabled:!b.value,class:"w-[40%]",round:"",type:"primary",onClick:q},{default:m(()=>[s("确定 ")]),_:1},8,["disabled"])])])]),_:1},8,["show"]),n("div",$e,[n("div",Re,[n("div",Pe,[n("div",Be,[i(O,{style:{height:"54px"},class:"w-full h-full","left-text":"返回","left-arrow":"",onClickLeft:V,title:"占座座位表单填写"})])]),i(C,{class:"w-full mt-3"},{default:m(()=>[i(T,{modelValue:e.formData.name,"onUpdate:modelValue":t[6]||(t[6]=o=>e.formData.name=o),name:"姓名",label:"姓名",placeholder:"姓名",size:"large",required:"",clearable:"",rules:[{required:!0,message:"请填写姓名"}]},null,8,["modelValue"]),i(T,{modelValue:e.formData.sex,"onUpdate:modelValue":t[7]||(t[7]=o=>e.formData.sex=o),name:"性别",label:"性别",placeholder:"性别",size:"large",required:"",clearable:"",rules:[{required:!0,message:"请填写性别"}]},null,8,["modelValue"])]),_:1}),i(C,{class:"w-full mt-3"},{default:m(()=>[i(T,{modelValue:e.formData.room_name,"onUpdate:modelValue":t[8]||(t[8]=o=>e.formData.room_name=o),name:"房间名称",label:"房间名称",placeholder:"房间名称",size:"large",required:"",clearable:"",rules:[{required:!0,message:"请填写房间名称"}]},null,8,["modelValue"]),i(T,{modelValue:e.formData.seat_code_name,"onUpdate:modelValue":t[9]||(t[9]=o=>e.formData.seat_code_name=o),name:"座位序号",label:"座位序号",placeholder:"座位序号",size:"large",required:"",clearable:"",rules:[{required:!0,message:"请选择报读专业"}]},null,8,["modelValue"])]),_:1}),i(C,{class:"mt-3 w-full"},{default:m(()=>[i(T,{modelValue:e.seatAppointmentTime.value,"onUpdate:modelValue":t[10]||(t[10]=o=>e.seatAppointmentTime.value=o),"is-link":"",readonly:"",required:"",name:"dateText",label:"占座时间",size:"large",placeholder:"请选择占座时间",onClick:j,rules:[{required:!0,message:"请选择占座时间"}]},null,8,["modelValue","onClick"])]),_:1})]),n("div",Ee,[i(p,{class:"w-[35%]",round:"",onClick:V},{default:m(()=>[s("关闭")]),_:1}),i(p,{class:"w-[60%]",round:"",type:"primary",onClick:G},{default:m(()=>[s("确认占座")]),_:1})])])],64)}}},We=J(Fe,[["__scopeId","data-v-e399dfe8"]]);export{We as default};
此差异已折叠。
import{b,d as p,aD as C,ag as f,aE as k,b3 as g,a as V,an as h,m as P,am as G,at as S,bw as _,ao as E,b6 as O,a6 as $,al as w,ak as y,bx as A,w as B}from"./index-xjfnhJx1.js";const[x,D]=b("checkbox-group"),K={max:h,shape:P("round"),disabled:Boolean,iconSize:h,direction:String,modelValue:G(),checkedColor:String},v=Symbol(x);var R=p({name:x,props:K,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:l,linkChildren:i}=C(v),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,c=l.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t??!n.checked.value:!1).map(n=>n.name);o(c)};return f(()=>a.modelValue,e=>d("change",e)),k({toggleAll:u}),g(()=>a.modelValue),i({props:a,updateValue:o}),()=>{var e;return V("div",{class:D([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[N,z]=b("checkbox"),F=S({},_,{shape:String,bindGroup:E});var H=p({name:N,props:F,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:l}=O(v),i=e=>{const{name:t}=a,{max:r,modelValue:m}=l.props,c=m.slice();if(e)!(r&&c.length>=+r)&&!c.includes(t)&&(c.push(t),a.bindGroup&&l.updateValue(c));else{const n=c.indexOf(t);n!==-1&&(c.splice(n,1),a.bindGroup&&l.updateValue(c))}},o=$(()=>l&&a.bindGroup?l.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{l&&a.bindGroup?i(e):d("update:modelValue",e)};return f(()=>a.modelValue,e=>d("change",e)),k({toggle:u,props:a,checked:o}),g(()=>a.modelValue),()=>V(A,y({bem:z,role:"checkbox",parent:l,checked:o.value,onToggle:u},a),w(s,["default","icon"]))}});const T=B(H);export{T as C,R as s};
import{b as I,d as B,y as O,aD as S,bp as V,ao as p,an as g,aL as $,a as u,bq as M,bK as N,bm as R,w as _,at as K,bL as j,bM as w,x as z,b6 as D,a6 as E,bN as L,ak as q,bO as F,K as Y}from"./index-xjfnhJx1.js";const[A,C]=I("tabbar"),Z={route:Boolean,fixed:p,border:p,zIndex:g,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:$(0),safeAreaInsetBottom:{type:Boolean,default:null}},T=Symbol(A);var G=B({name:A,props:Z,emits:["change","update:modelValue"],setup(e,{emit:d,slots:r}){const b=O(),{linkChildren:m}=S(T),c=V(b,C),f=()=>{var a;return(a=e.safeAreaInsetBottom)!=null?a:e.fixed},n=()=>{var a;const{fixed:t,zIndex:o,border:l}=e;return u("div",{ref:b,role:"tablist",style:M(o),class:[C({fixed:t}),{[N]:l,"van-safe-area-bottom":f()}]},[(a=r.default)==null?void 0:a.call(r)])};return m({props:e,setActive:(a,t)=>{R(e.beforeChange,{args:[a],done(){d("update:modelValue",a),d("change",a),t()}})}}),()=>e.fixed&&e.placeholder?c(n):n()}});const W=_(G),[H,h]=I("tabbar-item"),J=K({},j,{dot:Boolean,icon:String,name:g,badge:g,badgeProps:Object,iconPrefix:String});var Q=B({name:H,props:J,emits:["click"],setup(e,{emit:d,slots:r}){const b=w(),m=z().proxy,{parent:c,index:f}=D(T);if(!c)return;const n=E(()=>{var t;const{route:o,modelValue:l}=c.props;if(o&&"$route"in m){const{$route:v}=m,{to:i}=e,s=F(i)?i:{path:i};return!!v.matched.find(P=>{const k="path"in s&&s.path===P.path,y="name"in s&&s.name===P.name;return k||y})}return((t=e.name)!=null?t:f.value)===l}),x=t=>{var o;n.value||c.setActive((o=e.name)!=null?o:f.value,b),d("click",t)},a=()=>{if(r.icon)return r.icon({active:n.value});if(e.icon)return u(Y,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{var t;const{dot:o,badge:l}=e,{activeColor:v,inactiveColor:i}=c.props,s=n.value?v:i;return u("div",{role:"tab",class:h({active:n.value}),style:{color:s},tabindex:0,"aria-selected":n.value,onClick:x},[u(L,q({dot:o,class:h("icon"),content:l},e.badgeProps),{default:a}),u("div",{class:h("text")},[(t=r.default)==null?void 0:t.call(r,{active:n.value})])])}}});const X=_(Q);export{W as T,X as a};
import{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-xjfnhJx1.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),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:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("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:l("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:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(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"},[c(),e("path",{fill:l(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:l(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:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(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)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),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:l(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:l(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:l(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)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("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:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{bU as n,bV as s,bI as r}from"./index-xjfnhJx1.js";import{G as m}from"./index-BqIpURvl.js";import{w as o}from"./index-_xGsRtnT.js";class i{constructor(){}async getRoomType(){return n({page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.name,value:e.id})))}async GetMaxAndMinOccupyseat(){return s().then(t=>({min:Number(t.response.min||0),max:Number(t.response.max||0)}))}async getRoom(){return r({room_name:"",room_type_id:"",sex:"",page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.room_name,value:e.room_id})))}wxInit(){const t={url:window.location.href.replace(window.location.hash,"")};m(t).then(a=>{let e=a;o.config({debug:!1,appId:e.appId,timestamp:e.timeStamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["scanQRCode","checkJsApi","chooseImage","getLocalImgData","getLocation"]}),o.ready(()=>{console.log("设备已经可以使用")}),o.error(function(c){console.log("设备已经无法使用")})})}}const l=new i;export{l as C};
import{z as L,b as w,d as B,y as g,bS as C,a6 as R,ag as m,bT as _,i as y,aE as N,aJ as j,a as o,aL as A,m as M,ao as U,aq as q,aM as x,bg as z,L as F,w as H}from"./index-xjfnhJx1.js";const I=Symbol(),J=()=>L(I,null),[K,r,O]=w("list"),V={error:Boolean,offset:A(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:M("down"),loadingText:String,finishedText:String,immediateCheck:U};var Y=B({name:K,props:V,emits:["load","update:error","update:loading"],setup(e,{emit:c,slots:a}){const l=g(e.loading),u=g(),h=g(),s=J(),T=C(u),v=R(()=>e.scroller||T.value),n=()=>{q(()=>{if(l.value||e.finished||e.disabled||e.error||(s==null?void 0:s.value)===!1)return;const{direction:t}=e,d=+e.offset,i=x(v);if(!i.height||z(u))return;let f=!1;const b=x(h);t==="up"?f=i.top-b.top<=d:f=b.bottom-i.bottom<=d,f&&(l.value=!0,c("update:loading",!0),c("load"))})},S=()=>{if(e.finished){const t=a.finished?a.finished():e.finishedText;if(t)return o("div",{class:r("finished-text")},[t])}},k=()=>{c("update:error",!1),n()},P=()=>{if(e.error){const t=a.error?a.error():e.errorText;if(t)return o("div",{role:"button",class:r("error-text"),tabindex:0,onClick:k},[t])}},E=()=>{if(l.value&&!e.finished&&!e.disabled)return o("div",{class:r("loading")},[a.loading?a.loading():o(F,{class:r("loading-icon")},{default:()=>[e.loadingText||O("loading")]})])};return m(()=>[e.loading,e.finished,e.error],n),s&&m(s,t=>{t&&n()}),_(()=>{l.value=e.loading}),y(()=>{e.immediateCheck&&n()}),N({check:n}),j("scroll",n,{target:v,passive:!0}),()=>{var t;const d=(t=a.default)==null?void 0:t.call(a),i=o("div",{ref:h,class:r("placeholder")},null);return o("div",{ref:u,role:"feed",class:r(),"aria-busy":l.value},[e.direction==="down"?d:i,E(),S(),P(),e.direction==="up"?d:i])}}});const G=H(Y);export{G as L};
import{u as n,c,a as e,F as s,o as m}from"./index-xjfnhJx1.js";import{E as _}from"./index-COD1U6ch.js";import{N as p}from"./index-BDQ5ejp6.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,f)=>{const r=p,a=_;return m(),c(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default};
:root{--van-notice-bar-height: 40px;--van-notice-bar-padding: 0 var(--van-padding-md);--van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md);--van-notice-bar-text-color: var(--van-orange-dark);--van-notice-bar-font-size: var(--van-font-size-md);--van-notice-bar-line-height: 24px;--van-notice-bar-background: var(--van-orange-light);--van-notice-bar-icon-size: 16px;--van-notice-bar-icon-min-width: 24px}.van-notice-bar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:var(--van-notice-bar-height);padding:var(--van-notice-bar-padding);color:var(--van-notice-bar-text-color);font-size:var(--van-notice-bar-font-size);line-height:var(--van-notice-bar-line-height);background:var(--van-notice-bar-background)}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:var(--van-notice-bar-icon-min-width);font-size:var(--van-notice-bar-icon-size)}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;-webkit-transition-timing-function:linear;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:var(--van-notice-bar-wrapable-padding)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.page[data-v-e7b43128]{--van-pagination-height: 55px}.flexRight[data-v-e7b43128]{width:100%;height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flexRight .posi[data-v-e7b43128]{position:absolute;right:16px;bottom:16px}table[data-v-e7b43128]{border-collapse:collapse;border-spacing:0;border:1px solid}td[data-v-e7b43128]{border:1px solid}.cardList[data-v-e7b43128]{padding:125px 15px 15px}.list[data-v-e7b43128]{border-radius:12px;overflow:hidden;margin-bottom:15px}.list .pending[data-v-e7b43128]{color:#1988f9;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px}.list .pass[data-v-e7b43128]{color:#3fab41;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px}.list .nopass[data-v-e7b43128]{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;border-radius:6px}.list .cellStyle_up[data-v-e7b43128]{padding:10px 16px 1px;font-size:15px}.list .cellStyle_up .van-cell__title[data-v-e7b43128]{color:#818283}.list .cellStyle_down[data-v-e7b43128]{padding:1px 16px 0;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-e7b43128]{color:#818283}.list .cellStyle_centre[data-v-e7b43128]{padding:1px 16px 0;font-size:15px}.list .cellStyle_centre .van-cell__title[data-v-e7b43128]{color:#818283}.list .van-cell__value[data-v-e7b43128]{font-size:16px;color:#525252;min-width:200px}.top[data-v-e7b43128]{position:fixed;top:0;height:50px;width:100%;background:#fff;left:0;z-index:11}.top .van-row[data-v-e7b43128]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;text-align:center;height:100%}.top .van-row .checkedstyle[data-v-e7b43128]{color:#238efa}.top .van-row .icon[data-v-e7b43128]{margin-right:5px}.bottom[data-v-e7b43128]{position:fixed;bottom:0;height:60px;width:100%;background:#fff;left:0;z-index:11}.bottom .count[data-v-e7b43128]{margin-left:18px}.bottom .van-row[data-v-e7b43128]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;text-align:center;height:100%}.bottom .van-row .checkedstyle[data-v-e7b43128]{color:#238efa}.bottom .van-row .icon[data-v-e7b43128]{margin-right:5px}.sexIcon[data-v-e7b43128]{width:16px;margin:0 13px}.title-filter[data-v-e7b43128]{text-align:center;padding:10px;border-bottom:1px solid #ebedf0}.title-filter .icon[data-v-e7b43128]{position:absolute;right:22px}.form-field .van-cell[data-v-e7b43128]{font-size:16px;line-height:34px}.form-field[data-v-e7b43128] .van-field__value{background:#f2f3f5}.form-field[data-v-e7b43128] .van-field__right-icon{margin-right:0}.form-field[data-v-e7b43128] input{padding-left:10px}.btn[data-v-e7b43128]{margin:20px}.aes[data-v-e7b43128]{width:100%;height:100%}.paymentVoucher[data-v-e7b43128],.accepted[data-v-e7b43128]{position:relative;width:100%;height:100%;padding:16px;-webkit-box-sizing:border-box;box-sizing:border-box}[data-v-e7b43128] .van-cell{font-size:16px!important;line-height:24px!important}[data-v-e7b43128] .van-cell__title{font-size:16px!important}.curs[data-v-e7b43128]{width:80px;height:80px;background-color:#f7f8fa;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
import{s as t}from"./index-C5bYkHWG.js";import{w as s}from"./index-xjfnhJx1.js";const a=s(t);export{a as P};
const __vite__fileDeps=["./reserveASeat-CjPZjwxO.js","./index-xjfnhJx1.js","./index-CZiMdQLq.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as F,v as O,y as d,i as j,c as h,a,j as s,A as l,F as k,P as q,S as M,o as w,k as m,H as G,B as H,D as J,E as K,I as Q,J as W,K as X,M as Y,N as Z}from"./index-xjfnhJx1.js";import{P as ee}from"./index-Lfp6YOD4.js";import{L as oe}from"./index-Cqq3HMzq.js";import{N as te}from"./index-BDQ5ejp6.js";import"./index-C5bYkHWG.js";import{C as ae,R as se}from"./index-9HVe95w2.js";import{C as ne}from"./index-CdlO7hSg.js";import{P as le}from"./index-DS4EzEcx.js";import"./index-BqIpURvl.js";import"./index-_xGsRtnT.js";const re={class:"title-filter"},ie={class:"form-field"},de={class:"btn"},ue={class:"w-screen h-screen bg-gray-100 box-border relative"},pe={class:"sticky top-0 w-full h-[112px] z-50"},me={style:{"border-top":"1px solid #ebedf0"}},ce={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto pt-0"},fe={__name:"index",setup(_e){const b=J(()=>K(()=>import("./reserveASeat-CjPZjwxO.js"),__vite__mapDeps([0,1,2]),import.meta.url)),e=O({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:2},{text:"女",value:1},{text:"男",value:0}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=d([]),i=d(!1),p=d(!1),r=d(!1),c=()=>{Q(e.params).then(n=>{r.value&&(u.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(o=>{u.value.push(o)}),i.value=!1,e.params.page_index++,r.value=!1})},C=()=>{p.value=!1,i.value=!0,e.params.page_index=1,c()};function P(){e.advancedfilter.show=!0}let y=d("");function T(n){f()}function f(){e.params.page_index=1,u.value=[],p.value=!1,i.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function V(){e.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(o=>e[o].value=""),f(),e.advancedfilter.show=!1}function R(){f(),e.advancedfilter.show=!1}function L(){W.back()}function B(n){const o=n.selectedOptions[0];e.roomType.value=o.text,e.params.room_type_id=o.value,e.roomType.showPicker=!1}function U(n){const o=n.selectedOptions[0];e.sex.value=o.text,e.params.sex=o.value,e.sex.showPicker=!1}async function E(){e.roomType.columns=await ne.getRoomType()}return j(()=>{document.title="房间列表",E()}),(n,o)=>{const N=X,A=Y,_=Z,x=ae,S=se,v=q,g=le,z=te,I=M,$=oe,D=ee;return w(),h(k,null,[a(v,{show:e.advancedfilter.show,"onUpdate:show":o[3]||(o[3]=t=>e.advancedfilter.show=t),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",re,[m(" 高级筛选"),l("span",{class:"icon",onClick:o[0]||(o[0]=t=>e.advancedfilter.show=!1)},[a(N,{name:"cross"})])]),l("div",ie,[a(A,{modelValue:e.roomType.value,"onUpdate:modelValue":o[1]||(o[1]=t=>e.roomType.value=t),label:"房间类型",readonly:"",onClick:o[2]||(o[2]=t=>e.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",de,[a(S,{gutter:"20"},{default:s(()=>[a(x,{span:"12"},{default:s(()=>[a(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:V},{default:s(()=>[m("重置 ")]),_:1})]),_:1}),a(x,{span:"12"},{default:s(()=>[a(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:R},{default:s(()=>[m("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),a(v,{show:e.roomType.showPicker,"onUpdate:show":o[5]||(o[5]=t=>e.roomType.showPicker=t),position:"bottom",round:""},{default:s(()=>[a(g,{title:"房间类型","show-toolbar":"",columns:e.roomType.columns,onConfirm:B,onCancel:o[4]||(o[4]=t=>e.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),a(v,{show:e.sex.showPicker,"onUpdate:show":o[7]||(o[7]=t=>e.sex.showPicker=t),position:"bottom",round:""},{default:s(()=>[a(g,{title:"性别","show-toolbar":"",columns:e.sex.columns,onConfirm:U,onCancel:o[6]||(o[6]=t=>e.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",ue,[l("div",pe,[a(z,{"left-text":"返回","left-arrow":"",onClickLeft:L,title:"预约选座"}),l("div",me,[a(I,{clearable:"",modelValue:e.params.room_name,"onUpdate:modelValue":[o[8]||(o[8]=t=>e.params.room_name=t),T],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[a(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:P},{default:s(()=>[m("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",ce,[a(D,{modelValue:r.value,"onUpdate:modelValue":o[10]||(o[10]=t=>r.value=t),onRefresh:C},{default:s(()=>[a($,{loading:i.value,"onUpdate:loading":o[9]||(o[9]=t=>i.value=t),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(w(!0),h(k,null,G(u.value,t=>(w(),h("div",{key:t,class:"w-full min-h-[100px]"},[a(H(b),{item:t},null,8,["item"])]))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])],64)}}},Te=F(fe,[["__scopeId","data-v-3e5a376f"]]);export{Te as default};
import{b as L,d as _,y as D,bS as w,v as $,b2 as A,ag as N,aJ as p,a as c,aL as f,an as B,L as C,aq as G,bC as I,aG as M,w as R}from"./index-xjfnhJx1.js";const[U,r,Y]=L("pull-refresh"),x=50,q=["pulling","loosing","success"],F={disabled:Boolean,modelValue:Boolean,headHeight:f(x),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:B,successDuration:f(500),animationDuration:f(300)};var J=_({name:U,props:F,emits:["change","refresh","update:modelValue"],setup(s,{emit:d,slots:o}){let u;const g=D(),T=D(),H=w(g),e=$({status:"normal",distance:0,duration:0}),i=A(),P=()=>{if(s.headHeight!==x)return{height:`${s.headHeight}px`}},h=()=>e.status!=="loading"&&e.status!=="success"&&!s.disabled,b=t=>{const a=+(s.pullDistance||s.headHeight);return t>a&&(t<a*2?t=a+(t-a)/2:t=a*1.5+(t-a*2)/4),Math.round(t)},n=(t,a)=>{const l=+(s.pullDistance||s.headHeight);e.distance=t,a?e.status="loading":t===0?e.status="normal":t<l?e.status="pulling":e.status="loosing",d("change",{status:e.status,distance:t})},m=()=>{const{status:t}=e;return t==="normal"?"":s[`${t}Text`]||Y(t)},k=()=>{const{status:t,distance:a}=e;if(o[t])return o[t]({distance:a});const l=[];return q.includes(t)&&l.push(c("div",{class:r("text")},[m()])),t==="loading"&&l.push(c(C,{class:r("loading")},{default:m})),l},E=()=>{e.status="success",setTimeout(()=>{n(0)},+s.successDuration)},v=t=>{u=I(H.value)===0,u&&(e.duration=0,i.start(t))},V=t=>{h()&&v(t)},y=t=>{if(h()){u||v(t);const{deltaY:a}=i;i.move(t),u&&a.value>=0&&i.isVertical()&&(M(t),n(b(a.value)))}},S=()=>{u&&i.deltaY.value&&h()&&(e.duration=+s.animationDuration,e.status==="loosing"?(n(+s.headHeight,!0),d("update:modelValue",!0),G(()=>d("refresh"))):n(0))};return N(()=>s.modelValue,t=>{e.duration=+s.animationDuration,t?n(+s.headHeight,!0):o.success||s.successText?E():n(0,!1)}),p("touchmove",y,{target:T}),()=>{var t;const a={transitionDuration:`${e.duration}ms`,transform:e.distance?`translate3d(0,${e.distance}px, 0)`:""};return c("div",{ref:g,class:r()},[c("div",{ref:T,class:r("track"),style:a,onTouchstartPassive:V,onTouchend:S,onTouchcancel:S},[c("div",{class:r("head"),style:P()},[k()]),(t=o.default)==null?void 0:t.call(o)])])}}});const j=R(J);export{j as P};
const __vite__fileDeps=["./user-CYLsZd_A.js","./index-xjfnhJx1.js","./index-CZiMdQLq.css","./index-Lfp6YOD4.js","./index-6CsuSH_G.css","./index-Cqq3HMzq.js","./index-bmrpnDyt.css","./seat-DIfO0MxQ.js","./index-CdlO7hSg.js","./index-BqIpURvl.js","./index-_xGsRtnT.js","./user-DSiFbcmH.css","./admin-czwlh-fc.js","./index-CMS08OSP.js","./index-C2zZWGAe.css","./index-C5bYkHWG.js","./index-C4qC1krx.css","./index-9HVe95w2.js","./index-C3ZnWEiJ.css","./index-DS4EzEcx.js","./admin-BNQDXyNO.css","./adminNoGoodRecord-DzbeJXU-.js","./adminNoGoodRecord-CWZRDV-F.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as h,f as y,x as I,u as k,y as u,v as w,i as B,z as E,c as d,A as o,a as n,B as a,C as f,o as s,D as r,E as c,G as R}from"./index-xjfnhJx1.js";import"./index-_xGsRtnT.js";const b={key:0,class:"container1"},g={class:"header flex justify-center content-start flex-wrap"},C={class:"mb-3 w-full"},T={key:1,class:"container1"},A={class:"w-full h-full overflow-y-auto flex justify-center content-start flex-wrap"},G={class:"w-full p-2 bg-white"},P={__name:"index",setup(V){const p=y(),m=r(()=>c(()=>import("./user-CYLsZd_A.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),v=r(()=>c(()=>import("./admin-czwlh-fc.js"),__vite__mapDeps([12,1,2,13,14,3,4,5,6,15,16,17,18,8,9,10,19,20]),import.meta.url)),x=r(()=>c(()=>import("./adminNoGoodRecord-DzbeJXU-.js"),__vite__mapDeps([21,1,2,13,14,3,4,5,6,8,9,10,22]),import.meta.url));I().appContext.config.globalProperties,k(),u(0),u(!1);const e=w({role:p.userInfo.role,channel:{},active:0,columns:[],placeTypeName:[],flow:{array:[]},count:{}});B(()=>{document.title="主页"}),E("backAscHome");function i(t){e.active=t}function _(t){e.role=t}return(t,D)=>{const l=R;return e.role==="3"?(s(),d("div",b,[o("div",g,[o("div",C,[n(l,{onGetCurRole:_})]),n(a(m))])])):(s(),d("div",T,[o("div",A,[o("div",G,[n(l,{onGetCurRole:_})]),e.active===0?(s(),f(a(v),{key:0,onGetTabBarIndex:i})):(s(),f(a(x),{key:1,onGetTabBarIndex:i}))])]))}}},L=h(P,[["__scopeId","data-v-fa245f8e"]]);export{L as default};
此差异已折叠。
import{u as r,c as n,a as e,F as s,o as c,s as m}from"./index-xjfnhJx1.js";import{E as _}from"./index-COD1U6ch.js";import{N as p}from"./index-BDQ5ejp6.js";const h={__name:"index",setup(i){r();const t=()=>m({type:"danger",message:"用户验证不通过,请重新登录"});return(l,f)=>{const o=p,a=_;return c(),n(s,null,[e(o,{"left-text":"返回","left-arrow":"",onClickLeft:t}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
此差异已折叠。
此差异已折叠。
import{O as useRoomInfo,v as reactive,R as resolveDirective,o as openBlock,c as createElementBlock,a as createVNode,j as withCtx,A as createBaseVNode,k as createTextVNode,F as Fragment,H as renderList,V as toDisplayString,C as createBlock,U as withDirectives,aU as withModifiers,J as router,ba as Tag,N as Button,aY as Dialog}from"./index-xjfnhJx1.js";const _hoisted_1={class:"my-2"},_hoisted_2={class:""},_hoisted_3={class:"ml-4"},_hoisted_4={class:"w-full h-[60px] flex justify-center items-center border border-solid"},_hoisted_5={class:"w-full h-full bg-white p-3 rounded-[8px] my-2 flex"},_hoisted_6={class:"w-[80%] h-full"},_hoisted_7={class:"text-wrap"},_hoisted_8={class:"text-wrap"},_hoisted_9={class:"text-wrap"},_hoisted_10={class:"w-[20%] h-full ccFlex my-auto"},_sfc_main={__name:"reserveASeat",props:{item:{type:Object,default:()=>{}}},setup(__props){const props=__props,roomInfo=useRoomInfo();function go2(){roomInfo.setRoomInfo(props.item),router.push({path:"/seatList"})}const init=reactive({room:{name:"",show:!1,src:""},timeTable:{show:!1,data:[]}});function show(noFormatData){console.log("🚀🚀🚀,",noFormatData),init.timeTable.show=!0;let info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data=eval("("+noFormatData+")");init.timeTable.data=[{day:info.one,time:data.one},{day:info.two,time:data.two},{day:info.three,time:data.three},{day:info.four,time:data.four},{day:info.five,time:data.five},{day:info.six,time:data.six},{day:info.seven,time:data.seven}],console.log("🚀🚀🚀,",init.timeTable.data)}return(c,e)=>{const s=Tag,a=Button,i=Dialog,o=resolveDirective("font");return openBlock(),createElementBlock(Fragment,null,[createVNode(i,{show:init.timeTable.show,"onUpdate:show":e[1]||(e[1]=t=>init.timeTable.show=t),"show-cancel-button":"",title:"房间开放区间"},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_4,[createVNode(a,{block:"",round:"",style:{width:"90%"},type:"primary",onClick:e[0]||(e[0]=t=>{init.timeTable.show=!1})},{default:withCtx(()=>[createTextVNode("关闭 ")]),_:1})])]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(init.timeTable.data,(t,r)=>(openBlock(),createElementBlock("div",{key:r,class:"px-[30px] overflow-y-auto"},[createBaseVNode("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,toDisplayString(t.day),1),createBaseVNode("div",_hoisted_3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.time,(n,l)=>(openBlock(),createBlock(s,{key:l,plain:"",type:"primary",class:"mx-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(n),1)]),_:2},1024))),128))])])]))),128))]),_:1},8,["show"]),createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,[withDirectives((openBlock(),createElementBlock("p",_hoisted_7,[createTextVNode(toDisplayString(props.item.room_name),1)])),[[o,void 0,"{color:`#000`,size:18}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_8,[createTextVNode(toDisplayString(props.item.room_address),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_9,[createTextVNode(" 开放时间: "),createBaseVNode("a",{style:{"margin-left":"5px",color:"#1989FA"},onClick:e[2]||(e[2]=withModifiers(t=>show(props.item.service_interval_time),["stop"]))},"查看"),createTextVNode(" |座位数:"+toDisplayString(props.item.capacity),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]])]),createBaseVNode("div",_hoisted_10,[withDirectives((openBlock(),createBlock(a,{class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:go2},{default:withCtx(()=>[createTextVNode("选座 ")]),_:1})),[[o,void 0,"{size:16}"]])])])],64)}}};export{_sfc_main as default};
import{v as u,h as m,O as l,f as _,u as f,i as p,c as v,a as I,j as k,p as R,L as y,o as h,k as g,t as x,r as q}from"./index-xjfnhJx1.js";import"./seat-DIfO0MxQ.js";const T={style:{display:"flex","justify-content":"center","margin-top":"50%"}},L={__name:"scanRoomQrcode",setup(w){const o=u({data:{seat_id:"",room_id:"",token:""}}),r=m(),i=l(),s=_(),t=f();function c(){x().then(e=>{r.setDomainInfo(e.response)}),q().then(e=>{e.response.role_list.forEach((n,a)=>{n==="1"&&e.response.role_list.splice(a,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),o.data.room_id!==void 0?t.replace({name:"seatList",query:{name:"welcome"}}):o.data.seat_id&&t.replace({name:"seatReservationForm",query:{seatId:o.data.seat_id,name:"welcome"}})})}function d(){R({token:o.data.token}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),c())})}return p(()=>{i.setRoomInfo({room_id:t.currentRoute.value.query.room_id}),o.data.room_id=t.currentRoute.value.query.room_id,o.data.seat_id=t.currentRoute.value.query.seat_id,o.data.token=t.currentRoute.value.query.token,d()}),(e,n)=>{const a=y;return h(),v("div",T,[I(a,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{L as default};
import{bH as e}from"./index-xjfnhJx1.js";const a=e({id:"occupancySeatInfo",state:()=>({curSeatInfo:{}}),actions:{removeSeatInfo(){this.curSeatInfo={}},setSeatInfo(t){this.curSeatInfo=t},getSeatInfo(){return this.curSeatInfo}},getters:{},persist:{storage:sessionStorage,paths:["curSeatInfo"]}});export{a as u};
import{R as m,o as t,c,A as i,U as l,k as a,V as s,a as d,j as r,C as f,J as y,ba as h,N as v}from"./index-xjfnhJx1.js";import{u as b}from"./seat-DIfO0MxQ.js";const g={class:"w-full h-full bg-white p-3 flex border-b-[0.8px solid #BABABB]"},x={class:"w-[80%] h-full flex my-auto"},B={class:"w-[20%] h-full ccFlex my-auto"},C={__name:"seatCard",props:{item:{type:Object,default:()=>{}}},setup(n){const e=n;b();function p(){y.push({path:"/seatReservationForm",query:{seatId:e.item.seat_id}})}return(w,N)=>{const u=h,_=v,o=m("font");return t(),c("div",g,[i("div",x,[l((t(),c("span",null,[a(s(e.item.seat_code_name)+"号座位",1)])),[[o,void 0,"{size:18,color:`#000`}"]]),d(u,{type:["primary","warning"][Number(e.item.occupy_flag)],class:"ml-8",plain:"",size:"large"},{default:r(()=>[a(s(e.item.occupy_name),1)]),_:1},8,["type"])]),i("div",B,[l((t(),f(_,{disabled:!!Number(e.item.occupy_flag),class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:p},{default:r(()=>[a(s(["占座","无座"][Number(e.item.occupy_flag)]),1)]),_:1},8,["disabled"])),[[o,void 0,"{size:16}"]])])])}}};export{C as default};
import{v as u,i as y,o as x,c as v,a as s,j as f,M as b,P as g,ae as A}from"./index-xjfnhJx1.js";import"./index-C5bYkHWG.js";import{P as h}from"./index-DS4EzEcx.js";const k={class:"w-screen h-screen flex items-center"},S={__name:"selectPlace",setup(j){const n=u({timeRange:!1,placeType:!1,place:!1,beginTime:!1,endTime:!1,commodity:!1,date:!1,timeRangeText:"",dateText:"",placeTypeText:"",placeText:"",beginTimeText:"",endTimeText:"",commodityText:"",placeTypeArray:"",placeArray:"",beginTimeArray:"",endTimeArray:"",commodityArrat:[],minDateStart:"",maxDateStart:""}),o=u({data:{date:"",place_type_id:"",place_id:"",begin_time:"",end_time:"",remark:"",commodity_list:[]}}),_=({selectedValues:c,selectedOptions:t},p)=>{const d=(a,e,l="")=>{switch(l){case 1:let i=[];a.map(r=>i.push(r.text)),n[e+"Text"]=i.join("-"),n[e]=!1;break;default:n[e+"Text"]=a[0].text,n[e]=!1;break}};({placeType:function(a,e){o.data.place_type_id=a[0].value,d(a,e),(void 0)({id:a[0].value}).then(l=>{let i=[];l.response.map((r,w)=>{i.push({text:r.name,value:r.id})}),n.placeArray=i})},place:function(a,e){o.data.place_id=a[0].value,o.data.place_id!==""&&o.data.date!==""&&(void 0)({place_id:o.data.place_id,day:o.data.date}).then(l=>{check.data.list=l.response}),d(a,e)},date:function(a,e){console.log("🚀🚀🚀,",a,e)},beginTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.begin_time=l.join("-"),d(a,e,1)},endTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.end_time=l.join("-"),d(a,e,1)}})[p](t,p)},T=()=>{(void 0)().then(c=>{let t=[];c.response.map((p,d)=>{t.push({text:p.name,value:p.id})}),n.placeTypeArray=t})};return y(()=>{T()}),(c,t)=>{const p=b,d=h,m=g,a=A;return x(),v("div",k,[s(a,{class:"w-full"},{default:f(()=>[s(p,{disabled:o.data.place_type_id==="",modelValue:n.placeText,"onUpdate:modelValue":t[0]||(t[0]=e=>n.placeText=e),"is-link":"",readonly:"",name:"place",label:"场地",placeholder:"点击选场地",onClick:t[1]||(t[1]=e=>n.place=!0)},null,8,["disabled","modelValue"]),s(m,{show:n.place,"onUpdate:show":t[4]||(t[4]=e=>n.place=e),position:"bottom"},{default:f(()=>[s(d,{columns:n.placeArray,onConfirm:t[2]||(t[2]=e=>_(e,"place")),onCancel:t[3]||(t[3]=e=>n.place=!1)},null,8,["columns"])]),_:1},8,["show"])]),_:1})])}}};export{S as default};
此差异已折叠。
import{x as o,av as c,C as l,o as p}from"./index-xjfnhJx1.js";const d={__name:"tree",props:{placeTypeId:{type:String,default:""}},setup(s){const n=[{title:"parent 1",expand:!0,children:[{title:"parent 1-1",expand:!0,children:[{title:"leaf 1-1-1"},{title:"leaf 1-1-2"}]},{title:"parent 1-2",expand:!0,children:[{title:"leaf 1-2-1"},{title:"leaf 1-2-1"}]}]}];o();function a(e,t){console.log("🚀🚀🚀,",e,t)}return(e,t)=>{const r=c("Tree",!0);return p(),l(r,{data:n,"show-checkbox":"",onOnCheckChange:a})}}};export{d as default};
import{y as f,bE as o}from"./index-xjfnhJx1.js";function c(){const s=f([]),t=[];return o(()=>{s.value=[]}),[s,e=>(t[e]||(t[e]=r=>{s.value[e]=r}),t[e])]}export{c as u};
import{R as D,o as s,c as o,A as i,U as p,k as l,V as r,B as O,ay as P,a as f,j as v,J as U,N as I,_ as G,x as H,u as Q,y as _,v as J,i as R,bF as $,z as M,F as w,H as z,ax as Z,a0 as F,bG as W,ac as X,Z as Y,az as ee}from"./index-xjfnhJx1.js";import{P as te}from"./index-Lfp6YOD4.js";import{L as se}from"./index-Cqq3HMzq.js";import{u as oe}from"./seat-DIfO0MxQ.js";import{C as ne}from"./index-CdlO7hSg.js";import{w as ae}from"./index-_xGsRtnT.js";import"./index-BqIpURvl.js";const ie={class:"w-full h-full bg-white rounded-[8px] my-2 p-3 relative"},le={class:"w-full h-1/2 flex items-center justify-between"},re={class:"w-[35%]"},ce={class:"self-start w-[65%]"},pe={class:"w-full h-1/2 flex items-center justify-between"},de={__name:"latestAppointmentCard",props:{item:{type:Object,default:()=>{}}},setup(A){const d=A,x=oe();function t(){x.setSeatInfo({seat_id:d.item.seat_id}),U.push({path:"/seatReservationForm",query:{seatId:d.item.seat_id}})}return(g,m)=>{const h=I,c=D("font");return s(),o("div",ie,[i("div",le,[p((s(),o("div",re,[l(r(d.item.seat_code_name)+"号座位",1)])),[[c,void 0,"{size:20,color:`#000`}"]]),i("div",ce,r(d.item.date+" "+O(P).activityStatus[d.item.state]),1)]),i("div",pe,[p((s(),o("div",null,[l(r(d.item.room_address),1)])),[[c,void 0,"{size:14,color:`#000`}"]]),i("div",null,[f(h,{onClick:t,type:"primary",size:"small",plain:""},{default:v(()=>[l("再次预约")]),_:1})])])])}}},ue={class:"flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]"},_e=["onClick"],fe=["src"],me={class:"text-[14px] w-full ccFlex mt-[2px]"},he={key:0,class:"currentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},ve={class:"w-[calc(100%-80px)] h-full"},xe={class:"text"},ge={class:"w-[80px] h-full flex flex-wrap justify-center content-evenly"},ye={class:"text-[#10B4FA] text-[16px]"},we={class:"border-solid border-[#FFFFFF] border rounded-[20px]"},Fe={class:"text-[#FFFFFF] text-[16px]"},Ae={key:1,class:"noCurrentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},be={class:"w-full h-8 flex items-center"},Ce={class:"w-full h-[calc(100%-342px)] overflow-y-auto"},ke=["title"],Re={__name:"user",setup(A){const d=H().appContext.config.globalProperties,x=Q();_(2),_(!1);const t=J({params:{key_name:"",room_id:"",sign_state:"",state:"",date:"",page_index:1,page_size:10},curApo:{},columns:[{title:"预约选座",imageKey:"yyxz",path:"/roomList"},{title:"扫码选座",imageKey:"smxz",path:""},{title:"预约记录",imageKey:"yyjl",path:"/appointmentList"},{title:"不良记录",imageKey:"bljl",path:"/adverseActivityRecord"}],placeTypeName:[],flow:{array:[]},count:{}}),g=_([]),m=_(!1),h=_(!1),c=_(!1),b=()=>{Z(t.params).then(e=>{c.value&&(g.value=[],c.value=!1),e.response.data.length===0&&(h.value=!0,c.value=!1),e.response.data.forEach(n=>{g.value.push({...n,rangeTime:`${n.begin_time.split(" ")[1]}-${n.end_time.split(" ")[1]}`,diffTime:`${F(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`,date:`${n.begin_time}-${n.end_time.split(" ")[1]} ${F(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`})}),m.value=!1,t.params.page_index++,c.value=!1})},T=()=>{h.value=!1,m.value=!0,t.params.page_index=1,b()};function C(){W().then(e=>{try{t.curApo={...e.response,rangeTime:`${e.response.begin_time.split(" ")[1]}-${e.response.end_time.split(" ")[1]}`,date:e.response.begin_time.split(" ")[0],diffTime:`${F(e.response.begin_time.split(" ")[1],e.response.end_time.split(" ")[1])}小时`,isFutureDate:$(e.response.end_time)}}catch{t.curApo=e.response}})}R(()=>{console.log("🚀🚀🚀,",$("2024-07-11 15:15")),C()});const j=e=>d.hooks.getImage(e);M("backAscHome");function y(e){x.push({path:e})}function B(){ae.scanQRCode({needResult:1,scanType:["qrCode"],success:e=>{window.location.href=e.resultStr}})}function S(e){({预约选座:()=>{y(e.path)},扫码选座:()=>{B()},预约记录:()=>{y(e.path)},不良记录:()=>{y(e.path)}})[e.title]()}function L(){x.push({path:"/signInSignOut",query:{id:t.curApo.id}})}function V(){X(()=>Y(()=>ee({id:t.curApo.id}).then(e=>(e.code===1&&C(),e))),"是否确认取消该座位的占用?")}return R(()=>{document.title="主页",ne.wxInit()}),(e,n)=>{const k=I,K=de,N=se,q=te,u=D("font");return s(),o(w,null,[i("div",ue,[(s(!0),o(w,null,z(t.columns,(a,E)=>(s(),o("div",{key:E,onClick:$e=>S(a),class:"w-1/3 h-full flex-wrap flex justify-center content-center"},[i("img",{class:"w-[50px] h-[50px]",src:j(a.imageKey)},null,8,fe),i("div",me,r(a.title),1)],8,_e))),128))]),t.curApo.isFutureDate?(s(),o("div",he,[i("div",ve,[p((s(),o("p",xe,[l("当前预约")])),[[u,void 0,"{color:`#7FD9FD`}"]]),p((s(),o("p",null,[l(r(t.curApo.seat_code_name)+"号座位",1)])),[[u,void 0,"{size:35}"]]),p((s(),o("p",null,[l(r(t.curApo.room_address),1)])),[[u]]),p((s(),o("p",null,[l(r(t.curApo.date)+" "+r(t.curApo.rangeTime)+" "+r(t.curApo.diffTime),1)])),[[u]])]),i("div",ge,[f(k,{onClick:L,class:"w-[70px]",size:"small",round:"",color:"#FFFFF",type:"default"},{default:v(()=>[p((s(),o("span",ye,[l(r(["签 到","签 退","已签退"][t.curApo.sign_state]),1)])),[[u,void 0,"{color:`#00B6FC`}"]])]),_:1}),i("div",we,[f(k,{onClick:V,class:"w-[70px]",size:"small",round:"",color:"#0EB3FA",type:"default"},{default:v(()=>[p((s(),o("span",Fe,[l("取 消")])),[[u]])]),_:1})])])])):(s(),o("div",Ae)),p((s(),o("div",be,[l("最近预约")])),[[u,void 0,"{color:`#A7A8AA`}"]]),i("div",Ce,[f(q,{modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=a=>c.value=a),onRefresh:T},{default:v(()=>[f(N,{loading:m.value,"onUpdate:loading":n[0]||(n[0]=a=>m.value=a),finished:h.value,"finished-text":"没有更多了",onLoad:b},{default:v(()=>[(s(!0),o(w,null,z(g.value,a=>(s(),o("div",{key:a,title:a,class:"w-full h-[100px]"},[f(K,{item:a},null,8,["item"])],8,ke))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])],64)}}},Le=G(Re,[["__scopeId","data-v-8a8f5eb8"]]);export{Le as default};
此差异已折叠。
......@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>占座管理</title>
<script type="module" crossorigin src="./assets/index-xjfnhJx1.js"></script>
<script type="module" crossorigin src="./assets/index-Bu2N6KdS.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CZiMdQLq.css">
</head>
<body>
......
......@@ -317,7 +317,7 @@ function geocoder(latitude, longitude) {
},
success: function (address, textStatus) {
// console.log(data);
if (data.status == 0) {
if (address.status == 0) {
init.longitudeAndLatitude.address = address.result.address
init.longitudeAndLatitude.rangevalidator = hooks.checkPointInside({
lng: init.longitudeAndLatitude.longitude,
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或