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

保存 V20240729

上级 0a3edf66
流水线 #28121 已通过 ,包含阶段
in 35 second
# Vue 3 + Vite
# 博物馆移动管理端
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
- 更新日志
- 20240729
- 同步团队预约审批功能;
- 同步公务预约审批功能;
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
......@@ -13,21 +13,37 @@ declare module 'vue' {
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
Page: typeof import('./src/components/page.vue')['default']
Popup: typeof import('./src/components/popup.vue')['default']
PublicDetails: typeof import('./src/components/publicDetails.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SiteSelectHeader: typeof import('./src/components/siteSelectHeader.vue')['default']
UserHeader: typeof import('./src/components/userHeader.vue')['default']
VanButton: typeof import('vant/es')['Button']
VanCalendar: typeof import('vant/es')['Calendar']
VanCell: typeof import('vant/es')['Cell']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanCheckbox: typeof import('vant/es')['Checkbox']
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
VanCol: typeof import('vant/es')['Col']
VanDialog: typeof import('vant/es')['Dialog']
VanDropdownItem: typeof import('vant/es')['DropdownItem']
VanDropdownMenu: typeof import('vant/es')['DropdownMenu']
VanEmpty: typeof import('vant/es')['Empty']
VanField: typeof import('vant/es')['Field']
VanIcon: typeof import('vant/es')['Icon']
VanImage: typeof import('vant/es')['Image']
VanLoading: typeof import('vant/es')['Loading']
VanNavBar: typeof import('vant/es')['NavBar']
VanPagination: typeof import('vant/es')['Pagination']
VanPicker: typeof import('vant/es')['Picker']
VanPopup: typeof import('vant/es')['Popup']
VanRadio: typeof import('vant/es')['Radio']
VanRadioGroup: typeof import('vant/es')['RadioGroup']
VanRate: typeof import('vant/es')['Rate']
VanRow: typeof import('vant/es')['Row']
VanSearch: typeof import('vant/es')['Search']
VanStep: typeof import('vant/es')['Step']
VanSteps: typeof import('vant/es')['Steps']
VanTag: typeof import('vant/es')['Tag']
}
}
import{f as c,h as g,u as l,i as m,o as f,c as d,a as L,j as k,L as y,k as _,l as h}from"./index-2da6e532.js";function x(o,t){const e={userName:o.userName};return c.get("/api/Login/api/Login/test",{params:e,...t})}function u(o,t){const e={token:o.token};return c.get("/api/Login/SSOPCNew",{params:e,...t})}function v(o,t){const e={code:o.code,sign:o.sign,timestamp:o.timestamp};return c.get("/api/Login/api/Login/ManageWxLogin",{params:e,...t})}const I={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(o){const t=g(),e=l();function s(){h().then(r=>{t.setUserInfo({...r.response}),e.replace({name:"home"})})}function a(){e.replace({name:"403"})}const p=async()=>{({wx:()=>{u({token:e.currentRoute.value.query.token}).then(n=>{n.code!==1?a():(t.setToken(n.response),s())})},asc:async()=>{u({token:e.currentRoute.value.query.token}).then(n=>{n.code!==1?a():(t.setToken(n.response),s())})},first:()=>{let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};v(n).then(i=>{i.code!==1?a():(t.setToken(i.response),s())})},test:()=>{x({card:"syjs295"}).then(n=>{n.code!==1?a():(t.setToken(n.response),s())})}})[e.currentRoute.value.query.type]()};return m(()=>{p()}),(r,n)=>{const i=y;return f(),d("div",I,[L(i,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[_(" 登录中")]),_:1})])}}};export{A as default};
import{h as r,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 i}from"./index-5a821851.js";function x(a,t){const o={userName:a.userName};return r.get("/api/Login/api/Login/test",{params:o,...t})}function y(a,t){const o={code:a.code,sign:a.sign,timestamp:a.timestamp};return r.get("/api/Login/api/Login/ManageWxLogin",{params:o,...t})}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(a){const t=p(),o=async c=>{const e=await(void 0)(c);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 i();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},m=async c=>{const e=await y(c);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 i();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 o(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 i();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return g(()=>{u()}),(c,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-5a821851.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,n as s,L as m,k as y}from"./index-2da6e532.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};
.aaa[data-v-d6547552]{--van-dropdown-menu-shadow: red}.flexRight[data-v-d6547552]{width:100%;height:20px;display:flex;justify-content:flex-end;align-items:center}.flexRight .posi[data-v-d6547552]{position:absolute;right:16px;bottom:16px}table[data-v-d6547552]{border-collapse:collapse;border-spacing:0;border:1px solid}td[data-v-d6547552]{border:1px solid}.cardList[data-v-d6547552]{padding:125px 15px 15px}.list[data-v-d6547552]{border-radius:12px;overflow:hidden;margin-bottom:15px}.list .pending[data-v-d6547552]{color:#1988f9;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px}.list .pass[data-v-d6547552]{color:#3fab41;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px}.list .nopass[data-v-d6547552]{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;border-radius:6px}.list .cellStyle_up[data-v-d6547552]{padding:10px 16px 1px;font-size:15px}.list .cellStyle_up .van-cell__title[data-v-d6547552]{color:#818283}.list .cellStyle_down[data-v-d6547552]{padding:1px 16px 0;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-d6547552]{color:#818283}.list .cellStyle_centre[data-v-d6547552]{padding:1px 16px 0;font-size:15px}.list .cellStyle_centre .van-cell__title[data-v-d6547552]{color:#818283}.list .van-cell__value[data-v-d6547552]{font-size:16px;color:#525252;min-width:200px}.top[data-v-d6547552]{position:fixed;top:0;height:50px;width:100%;background:#fff;left:0;z-index:11}.top .van-row[data-v-d6547552]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.top .van-row .checkedstyle[data-v-d6547552]{color:#238efa}.top .van-row .icon[data-v-d6547552]{margin-right:5px}.bottom[data-v-d6547552]{position:fixed;bottom:0;height:60px;width:100%;background:#fff;left:0;z-index:11}.bottom .count[data-v-d6547552]{margin-left:18px}.bottom .van-row[data-v-d6547552]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.bottom .van-row .checkedstyle[data-v-d6547552]{color:#238efa}.bottom .van-row .icon[data-v-d6547552]{margin-right:5px}.sexIcon[data-v-d6547552]{width:16px;margin:0 13px}.title-filter[data-v-d6547552]{text-align:center;padding:10px;border-bottom:1px solid #ebedf0}.title-filter .icon[data-v-d6547552]{position:absolute;right:22px}.form-field .van-cell[data-v-d6547552]{font-size:16px;line-height:34px}.form-field[data-v-d6547552] .van-field__value{background:#f2f3f5}.form-field[data-v-d6547552] .van-field__right-icon{margin-right:0}.form-field[data-v-d6547552] input{padding-left:10px}.btn[data-v-d6547552]{margin:20px}.aes[data-v-d6547552]{width:100%;height:100%}.paymentVoucher[data-v-d6547552],.accepted[data-v-d6547552]{position:relative;width:100%;height:100%;padding:16px;box-sizing:border-box}[data-v-d6547552] .van-cell{font-size:16px!important;line-height:24px!important}[data-v-d6547552] .van-cell__title{font-size:16px!important}
.aaa[data-v-251e68b9]{--van-dropdown-menu-shadow: red}.flexRight[data-v-251e68b9]{width:100%;height:20px;display:flex;justify-content:flex-end;align-items:center}.flexRight .posi[data-v-251e68b9]{position:absolute;right:16px;bottom:16px}table[data-v-251e68b9]{border-collapse:collapse;border-spacing:0;border:1px solid}td[data-v-251e68b9]{border:1px solid}.cardList[data-v-251e68b9]{padding:125px 15px 15px}.list[data-v-251e68b9]{border-radius:12px;overflow:hidden;margin-bottom:15px}.list .pending[data-v-251e68b9]{color:#1988f9;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px}.list .pass[data-v-251e68b9]{color:#3fab41;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px}.list .nopass[data-v-251e68b9]{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;border-radius:6px}.list .cellStyle_up[data-v-251e68b9]{padding:10px 16px 1px;font-size:15px}.list .cellStyle_up .van-cell__title[data-v-251e68b9]{color:#818283}.list .cellStyle_down[data-v-251e68b9]{padding:1px 16px 0;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-251e68b9]{color:#818283}.list .cellStyle_centre[data-v-251e68b9]{padding:1px 16px 0;font-size:15px}.list .cellStyle_centre .van-cell__title[data-v-251e68b9]{color:#818283}.list .van-cell__value[data-v-251e68b9]{font-size:16px;color:#525252;min-width:200px}.top[data-v-251e68b9]{position:fixed;top:0;height:50px;width:100%;background:#fff;left:0;z-index:11}.top .van-row[data-v-251e68b9]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.top .van-row .checkedstyle[data-v-251e68b9]{color:#238efa}.top .van-row .icon[data-v-251e68b9]{margin-right:5px}.bottom[data-v-251e68b9]{position:fixed;bottom:0;height:60px;width:100%;background:#fff;left:0;z-index:11}.bottom .count[data-v-251e68b9]{margin-left:18px}.bottom .van-row[data-v-251e68b9]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.bottom .van-row .checkedstyle[data-v-251e68b9]{color:#238efa}.bottom .van-row .icon[data-v-251e68b9]{margin-right:5px}.sexIcon[data-v-251e68b9]{width:16px;margin:0 13px}.title-filter[data-v-251e68b9]{text-align:center;padding:10px;border-bottom:1px solid #ebedf0}.title-filter .icon[data-v-251e68b9]{position:absolute;right:22px}.form-field .van-cell[data-v-251e68b9]{font-size:16px;line-height:34px}.form-field[data-v-251e68b9] .van-field__value{background:#f2f3f5}.form-field[data-v-251e68b9] .van-field__right-icon{margin-right:0}.form-field[data-v-251e68b9] input{padding-left:10px}.btn[data-v-251e68b9]{margin:20px}.aes[data-v-251e68b9]{width:100%;height:100%}.paymentVoucher[data-v-251e68b9],.accepted[data-v-251e68b9]{position:relative;width:100%;height:100%;padding:16px;box-sizing:border-box}[data-v-251e68b9] .van-cell{font-size:16px!important;line-height:24px!important}[data-v-251e68b9] .van-cell__title{font-size:16px!important}
import{_ as T,p as E,r as F,q as r,i as L,v as m,o as _,c as g,a as o,j as l,x as s,k as d,y as N,F as x,z as O,A as Q,Q as H,S as J,D as K,B as W,C as X,I as Z,R as ee,G as te,E as ae}from"./index-2da6e532.js";/* empty css */import{C as oe}from"./index-4eec5d58.js";import{P as ne,C as se,R as le}from"./index-a1d96de4.js";import{g as re,a as ie}from"./getApiBackgroundApiGuestGetTeamCount-14b05cd9.js";const de={class:"title-filter"},pe={class:"form-field"},ce={class:"btn"},ue={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},me={class:"w-screen h-screen"},_e={class:"w-full h-[110px] bg-red-600"},fe={style:{"border-top":"1px solid #ebedf0"}},he={class:"w-full h-[48px] flex"},ve={class:"w-1/2 h-[48px]"},we={class:"w-full h-[calc(100%-167px)] bg-gray-100 overflow-y-scroll p-3"},ye={class:"w-full h-full flex justify-end"},ge={class:"w-full h-[55px]"},xe={__name:"approval",setup(be){const f=E(),e=F({entryStatus:{value:"",columns:[{text:"未入馆",value:"0"},{text:"已入馆",value:"1"}],showPicker:!1},approval:{value:"",columns:[{text:"未通过",value:"0"},{text:"通过",value:"2"}],showPicker:!1},advancedfilter:{show:!1},date:{show:!1},array:[],selectArray:[],search:{params:{begin_time:"2024-01-01",end_time:"2024-04-25",approvalView:2,approvalState:3,museum_state:"",page_index:1,page_size:10,condition:""},countParams:{begin_date:r().format("YYYY-MM-DD"),end_date:r().format("YYYY-MM-DD")},minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",date:f.query.date||r().format("YYYY-MM-DD"),moment:f.query.moment||"0",total:0}});function b(n,t){t.appointmentid!==void 0&&X.push({name:"officeDetails",query:{id:String(t.appointmentid),type:n}})}function C(n){}function k(n){e.date.show=!1,e.search.page_index=1,e.search.params.begin_time=r(n[0]).format("YYYY-MM-DD"),e.search.params.end_time=r(n[1]).format("YYYY-MM-DD"),e.search.countParams.begin_date=r(n[0]).format("YYYY-MM-DD"),e.search.countParams.end_date=r(n[1]).format("YYYY-MM-DD"),h(),i()}function i(){Q(()=>{ie(e.search.params).then(n=>{e.array=n.response.data.map((t,c)=>({...t,name:t.name,mobile:t.mobile,museum_date:t.museum_date,visitTime:["","上午","下午"][t.moment],num:t.num,type:["散客预约","团队预约","公务预约"][t.type],reason:t.reason})),e.search.total=n.response.data_count})})}function D(n){e.search.params.page_index=n,i()}function h(){re({begin_date:e.search.countParams.begin_date,end_date:e.search.countParams.end_date}).then(n=>{e.selectArray=[{text:`全天 (${n.response.all_day})人`,value:"0"}]})}function Y(){i()}function P(){e.advancedfilter.show=!0}function S(n){const t=n.selectedOptions[0];e.approval.value=t.text,e.search.params.approvalState=t.value,e.approval.showPicker=!1}function V(n){const t=n.selectedOptions[0];e.entryStatus.value=t.text,e.search.params.museum_state=t.value,e.entryStatus.showPicker=!1}function M(){e.search.params={begin_time:"2024-01-01",end_time:"2024-04-25",approvalView:2,approvalState:3,museum_state:"",page_index:1,page_size:10,condition:""},["approval","entryStatus"].forEach(t=>e[t].value=""),i(),e.advancedfilter.show=!1}function A(){i(),e.advancedfilter.show=!1}return L(()=>{h(),i()}),(n,t)=>{const c=ne,u=H,v=Z,w=ee,p=te,y=se,B=le,$=oe,U=m("cs-pop-up"),q=J,j=ae,z=K,G=m("cs-card"),I=m("cs-page");return _(),g(x,null,[o(u,{show:e.approval.showPicker,"onUpdate:show":t[1]||(t[1]=a=>e.approval.showPicker=a),position:"bottom",round:""},{default:l(()=>[o(c,{title:"审批状态","show-toolbar":"",columns:e.approval.columns,onConfirm:S,onCancel:t[0]||(t[0]=a=>e.approval.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),o(u,{show:e.entryStatus.showPicker,"onUpdate:show":t[3]||(t[3]=a=>e.entryStatus.showPicker=a),position:"bottom",round:""},{default:l(()=>[o(c,{title:"入馆状态","show-toolbar":"",columns:e.entryStatus.columns,onConfirm:V,onCancel:t[2]||(t[2]=a=>e.entryStatus.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),o(u,{show:e.advancedfilter.show,"onUpdate:show":t[9]||(t[9]=a=>e.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:l(()=>[s("div",de,[d(" 高级筛选"),s("span",{class:"icon",onClick:t[4]||(t[4]=a=>e.advancedfilter.show=!1)},[o(v,{name:"cross"})])]),s("div",pe,[o(w,{modelValue:e.approval.value,"onUpdate:modelValue":t[5]||(t[5]=a=>e.approval.value=a),label:"审批状态",readonly:"",onClick:t[6]||(t[6]=a=>{e.approval.showPicker=!0}),placeholder:"请选择审批状态",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),o(w,{modelValue:e.entryStatus.value,"onUpdate:modelValue":t[7]||(t[7]=a=>e.entryStatus.value=a),label:"入馆状态",readonly:"",onClick:t[8]||(t[8]=a=>{e.entryStatus.showPicker=!0}),placeholder:"请选择入馆状态",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),s("div",ce,[o(B,{gutter:"20"},{default:l(()=>[o(y,{span:"12"},{default:l(()=>[o(p,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:M},{default:l(()=>[d("重置 ")]),_:1})]),_:1}),o(y,{span:"12"},{default:l(()=>[o(p,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:A},{default:l(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),o(U,{height:83,show:e.date.show,closeable:!0,onClose:t[10]||(t[10]=()=>e.date.show=!1)},{content:l(()=>[s("div",ue,[o($,{"allow-same-day":!0,"close-on-click-overlay":!0,maxDate:e.search.maxDate,minDate:e.search.minDate,poppable:!1,type:"range",onConfirm:k},null,8,["maxDate","minDate"])])]),_:1},8,["show"]),s("div",me,[s("div",_e,[s("div",fe,[o(q,{style:{display:"flex","justify-content":"center","align-items":"center"},clearable:"",modelValue:e.search.params.condition,"onUpdate:modelValue":[t[11]||(t[11]=a=>e.search.params.condition=a),Y],"show-action":"",placeholder:"请输入关键词"},{action:l(()=>[o(p,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:P},{default:l(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])]),s("div",he,[s("div",ve,[o(z,{class:"aaa"},{default:l(()=>[o(j,{modelValue:e.search.moment,"onUpdate:modelValue":t[12]||(t[12]=a=>e.search.moment=a),options:e.selectArray,onChange:C},null,8,["modelValue","options"])]),_:1})]),s("div",{class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white",onClick:t[13]||(t[13]=a=>e.date.show=!0)},[s("span",null,[d(N(e.search.countParams.begin_date+"到"+e.search.countParams.end_date),1),o(v,{class:"ml-1",name:"setting"})])])])]),s("div",we,[(_(!0),g(x,null,O(e.array,(a,R)=>(_(),W(G,{key:R,item:a},{default:l(()=>[s("div",ye,[o(p,{class:"w-[47%] text-gray-600",plain:"",size:"small",onClick:Ce=>b("approval",a)},{default:l(()=>[d("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item"]))),128))]),s("div",ge,[o(I,{total:e.search.total,onPageChange:D},null,8,["total"])])])],64)}}},Ve=T(xe,[["__scopeId","data-v-251e68b9"]]);export{Ve as default};
import{_ as T,p as E,r as F,q as r,i as L,v as m,o as _,c as g,a as o,j as l,x as s,k as d,y as N,F as x,z as O,A as Q,Q as H,S as J,D as K,B as W,C as X,I as Z,R as ee,G as te,E as ae}from"./index-2da6e532.js";/* empty css */import{C as oe}from"./index-4eec5d58.js";import{P as ne,C as se,R as le}from"./index-a1d96de4.js";import{g as re,a as ie}from"./getApiBackgroundApiGuestGetTeamCount-14b05cd9.js";const de={class:"title-filter"},pe={class:"form-field"},ce={class:"btn"},ue={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},me={class:"w-screen h-screen"},_e={class:"w-full h-[110px] bg-red-600"},fe={style:{"border-top":"1px solid #ebedf0"}},he={class:"w-full h-[48px] flex"},ve={class:"w-1/2 h-[48px]"},we={class:"w-full h-[calc(100%-167px)] bg-gray-100 overflow-y-scroll p-3"},ye={class:"w-full h-full flex justify-end"},ge={class:"w-full h-[55px]"},xe={__name:"approval",setup(be){const f=E(),e=F({entryStatus:{value:"",columns:[{text:"未入馆",value:"0"},{text:"已入馆",value:"1"}],showPicker:!1},approval:{value:"",columns:[{text:"未通过",value:"0"},{text:"通过",value:"2"}],showPicker:!1},advancedfilter:{show:!1},date:{show:!1},array:[],selectArray:[],search:{params:{begin_time:"2024-01-01",end_time:"2024-04-25",approvalView:2,approvalState:3,museum_state:"",page_index:1,page_size:10,condition:""},countParams:{begin_date:r().format("YYYY-MM-DD"),end_date:r().format("YYYY-MM-DD")},minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",date:f.query.date||r().format("YYYY-MM-DD"),moment:f.query.moment||"0",total:0}});function b(n,t){t.appointmentid!==void 0&&X.push({name:"teamDetails",query:{id:String(t.appointmentid),type:n}})}function C(n){}function k(n){e.date.show=!1,e.search.page_index=1,e.search.params.begin_time=r(n[0]).format("YYYY-MM-DD"),e.search.params.end_time=r(n[1]).format("YYYY-MM-DD"),e.search.countParams.begin_date=r(n[0]).format("YYYY-MM-DD"),e.search.countParams.end_date=r(n[1]).format("YYYY-MM-DD"),h(),i()}function i(){Q(()=>{ie(e.search.params).then(n=>{e.array=n.response.data.map((t,c)=>({...t,name:t.name,mobile:t.mobile,museum_date:t.museum_date,visitTime:["","上午","下午"][t.moment],num:t.num,type:["散客预约","团队预约","公务预约"][t.type],reason:t.reason})),e.search.total=n.response.data_count})})}function D(n){e.search.params.page_index=n,i()}function h(){re({begin_date:e.search.countParams.begin_date,end_date:e.search.countParams.end_date}).then(n=>{e.selectArray=[{text:`全天 (${n.response.all_day})人`,value:"0"}]})}function Y(){i()}function P(){e.advancedfilter.show=!0}function S(n){const t=n.selectedOptions[0];e.approval.value=t.text,e.search.params.approvalState=t.value,e.approval.showPicker=!1}function V(n){const t=n.selectedOptions[0];e.entryStatus.value=t.text,e.search.params.museum_state=t.value,e.entryStatus.showPicker=!1}function M(){e.search.params={begin_time:"2024-01-01",end_time:"2024-04-25",approvalView:2,approvalState:3,museum_state:"",page_index:1,page_size:10,condition:""},["approval","entryStatus"].forEach(t=>e[t].value=""),i(),e.advancedfilter.show=!1}function A(){i(),e.advancedfilter.show=!1}return L(()=>{h(),i()}),(n,t)=>{const c=ne,u=H,v=Z,w=ee,p=te,y=se,B=le,$=oe,U=m("cs-pop-up"),q=J,j=ae,z=K,G=m("cs-card"),I=m("cs-page");return _(),g(x,null,[o(u,{show:e.approval.showPicker,"onUpdate:show":t[1]||(t[1]=a=>e.approval.showPicker=a),position:"bottom",round:""},{default:l(()=>[o(c,{title:"审批状态","show-toolbar":"",columns:e.approval.columns,onConfirm:S,onCancel:t[0]||(t[0]=a=>e.approval.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),o(u,{show:e.entryStatus.showPicker,"onUpdate:show":t[3]||(t[3]=a=>e.entryStatus.showPicker=a),position:"bottom",round:""},{default:l(()=>[o(c,{title:"入馆状态","show-toolbar":"",columns:e.entryStatus.columns,onConfirm:V,onCancel:t[2]||(t[2]=a=>e.entryStatus.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),o(u,{show:e.advancedfilter.show,"onUpdate:show":t[9]||(t[9]=a=>e.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:l(()=>[s("div",de,[d(" 高级筛选"),s("span",{class:"icon",onClick:t[4]||(t[4]=a=>e.advancedfilter.show=!1)},[o(v,{name:"cross"})])]),s("div",pe,[o(w,{modelValue:e.approval.value,"onUpdate:modelValue":t[5]||(t[5]=a=>e.approval.value=a),label:"审批状态",readonly:"",onClick:t[6]||(t[6]=a=>{e.approval.showPicker=!0}),placeholder:"请选择审批状态",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),o(w,{modelValue:e.entryStatus.value,"onUpdate:modelValue":t[7]||(t[7]=a=>e.entryStatus.value=a),label:"入馆状态",readonly:"",onClick:t[8]||(t[8]=a=>{e.entryStatus.showPicker=!0}),placeholder:"请选择入馆状态",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),s("div",ce,[o(B,{gutter:"20"},{default:l(()=>[o(y,{span:"12"},{default:l(()=>[o(p,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:M},{default:l(()=>[d("重置 ")]),_:1})]),_:1}),o(y,{span:"12"},{default:l(()=>[o(p,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:A},{default:l(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),o(U,{height:83,show:e.date.show,closeable:!0,onClose:t[10]||(t[10]=()=>e.date.show=!1)},{content:l(()=>[s("div",ue,[o($,{"allow-same-day":!0,"close-on-click-overlay":!0,maxDate:e.search.maxDate,minDate:e.search.minDate,poppable:!1,type:"range",onConfirm:k},null,8,["maxDate","minDate"])])]),_:1},8,["show"]),s("div",me,[s("div",_e,[s("div",fe,[o(q,{style:{display:"flex","justify-content":"center","align-items":"center"},clearable:"",modelValue:e.search.params.condition,"onUpdate:modelValue":[t[11]||(t[11]=a=>e.search.params.condition=a),Y],"show-action":"",placeholder:"请输入关键词"},{action:l(()=>[o(p,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:P},{default:l(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])]),s("div",he,[s("div",ve,[o(z,{class:"aaa"},{default:l(()=>[o(j,{modelValue:e.search.moment,"onUpdate:modelValue":t[12]||(t[12]=a=>e.search.moment=a),options:e.selectArray,onChange:C},null,8,["modelValue","options"])]),_:1})]),s("div",{class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white",onClick:t[13]||(t[13]=a=>e.date.show=!0)},[s("span",null,[d(N(e.search.countParams.begin_date+"到"+e.search.countParams.end_date),1),o(v,{class:"ml-1",name:"setting"})])])])]),s("div",we,[(_(!0),g(x,null,O(e.array,(a,R)=>(_(),W(G,{key:R,item:a},{default:l(()=>[s("div",ye,[o(p,{class:"w-[47%] text-gray-600",plain:"",size:"small",onClick:Ce=>b("approval",a)},{default:l(()=>[d("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item"]))),128))]),s("div",ge,[o(I,{total:e.search.total,onPageChange:D},null,8,["total"])])])],64)}}},Ve=T(xe,[["__scopeId","data-v-d6547552"]]);export{Ve as default};
import{_ as h,r as x,i as g,C as i,o as D,c as C,a as o,j as l,aD as V,F as $,a0 as m,V as G,aE as c,x as n,k as s,aF as R,X as B,G as I,Y as E,Z as F,R as S,$ as j,M as q,O as N,aG as U}from"./index-2da6e532.js";import{p as z}from"./index-f8966fd7.js";/* empty css */import{g as L}from"./getApiBackgroundApiGuestGetAppointmentInfo-ab9b7142.js";const M=u=>(q("data-v-eb093ab5"),u=u(),N(),u),O={class:"w-[65%]"},P={class:"w-[30%]"},T={class:"w-[100%]"},H={class:"flex justify-center items-center w-full h-[160px]"},X={class:"w-full flex"},Y=M(()=>n("span",{class:"mr-4"},"审批状态",-1)),Z={class:"w-full h-[60px] flex justify-between items-center border border-solid px-2"},J={class:"w-[65%]"},K={class:"w-[30%]"},Q={__name:"details",setup(u){const v=R(()=>U(()=>import("./index-2da6e532.js").then(t=>t.aH),["./index-2da6e532.js","./index-8a5425e5.css"],import.meta.url)),a=x({team:{noApproval:{show:!1,formData:{appointmentid:"",approval_state:"1",approval_remark:""}}},array:[],params:{id:"",type:""}});function f(){m(()=>L({appointmentid:a.params.id}).then(async t=>{let e=t.response;return a.array=[{label:"领队姓名",value:e.name,mt:"10px"},{label:"身份证号",value:e.identity_num},{label:"电话号码",value:e.mobile},{label:"参观日期",value:`${e.begin_time.split(" ")[0]} ${e.begin_time.split(" ")[1]}~${e.end_time.split(" ")[1]}`,mt:"10px"},{label:"预估人数",value:e.num},{label:"单位名称",value:e.unit},{label:"车辆信息",value:e.plate_number},{label:"参观事由",value:e.reason,mt:"10px"},{label:"同行人员",record:e.users,mt:"10px"}],t}),!0,"加载中...")}function d(){let t=i.currentRoute.value.query.name;t?i.replace({name:t}):i.back()}function b(){B(()=>{m(()=>z({appointmentid:a.params.id,approval_state:a.team.noApproval.formData.approval_state,approval_remark:a.team.noApproval.formData.approval_remark}).then(t=>(t.code===1&&(a.team.noApproval.show=!1,d()),t)),!1,"提交中...")})}return g(()=>{a.params={id:i.currentRoute.value.query.id,type:i.currentRoute.value.query.type},f()}),(t,e)=>{const p=I,_=E,y=F,k=S,w=j,A=G;return D(),C($,null,[o(V(v),{array:a.array},{default:l(()=>[a.params.type==="noApprove"?c(t.$slots,"default",{key:0},()=>[n("div",O,[o(p,{type:"primary",onClick:e[0]||(e[0]=r=>a.team.noApproval.show=!0),round:"",block:""},{default:l(()=>[s("审 批")]),_:1})]),n("div",P,[o(p,{onClick:d,round:"",block:""},{default:l(()=>[s("返 回")]),_:1})])],!0):c(t.$slots,"default",{key:1},()=>[n("div",T,[o(p,{onClick:d,round:"",block:""},{default:l(()=>[s("返 回")]),_:1})])],!0)]),_:3},8,["array"]),o(A,{show:a.team.noApproval.show,"onUpdate:show":e[4]||(e[4]=r=>a.team.noApproval.show=r),title:"审批"},{footer:l(()=>[n("div",Z,[n("div",J,[o(p,{onClick:b,round:"",block:"",type:"primary"},{default:l(()=>[s(" 提交")]),_:1})]),n("div",K,[o(p,{round:"",block:"",onClick:e[3]||(e[3]=r=>{a.team.noApproval.show=!1})},{default:l(()=>[s("关闭 ")]),_:1})])])]),default:l(()=>[n("div",H,[o(w,{inset:""},{default:l(()=>[n("div",X,[Y,o(y,{direction:"horizontal",modelValue:a.team.noApproval.formData.approval_state,"onUpdate:modelValue":e[1]||(e[1]=r=>a.team.noApproval.formData.approval_state=r)},{default:l(()=>[o(_,{name:"1"},{default:l(()=>[s("通过")]),_:1}),o(_,{name:"0"},{default:l(()=>[s("不通过")]),_:1})]),_:1},8,["modelValue"])]),o(k,{modelValue:a.team.noApproval.formData.approval_remark,"onUpdate:modelValue":e[2]||(e[2]=r=>a.team.noApproval.formData.approval_remark=r),rows:"2",autosize:"",label:"备注",type:"textarea",maxlength:"50",placeholder:"请输入备注","show-word-limit":""},null,8,["modelValue"])]),_:1})])]),_:1},8,["show"])],64)}}},oe=h(Q,[["__scopeId","data-v-eb093ab5"]]);export{oe as default};
import{_ as h,r as x,i as g,C as i,o as D,c as C,a as o,j as l,aD as V,F as $,a0 as m,V as G,aE as c,x as n,k as s,aF as R,X as B,G as I,Y as E,Z as F,R as S,$ as j,M as q,O as N,aG as U}from"./index-2da6e532.js";import{p as z}from"./index-f8966fd7.js";/* empty css */import{g as L}from"./getApiBackgroundApiGuestGetAppointmentInfo-ab9b7142.js";const M=u=>(q("data-v-f8ca0455"),u=u(),N(),u),O={class:"w-[65%]"},P={class:"w-[30%]"},T={class:"w-[100%]"},H={class:"flex justify-center items-center w-full h-[160px]"},X={class:"w-full flex"},Y=M(()=>n("span",{class:"mr-4"},"审批状态",-1)),Z={class:"w-full h-[60px] flex justify-between items-center border border-solid px-2"},J={class:"w-[65%]"},K={class:"w-[30%]"},Q={__name:"details",setup(u){const v=R(()=>U(()=>import("./index-2da6e532.js").then(t=>t.aH),["./index-2da6e532.js","./index-8a5425e5.css"],import.meta.url)),a=x({team:{noApproval:{show:!1,formData:{appointmentid:"",approval_state:"2",approval_remark:""}}},array:[],params:{id:"",type:""}});function f(){m(()=>L({appointmentid:a.params.id}).then(async t=>{let e=t.response;return a.array=[{label:"领队姓名",value:e.name,mt:"10px"},{label:"身份证号",value:e.identity_num},{label:"电话号码",value:e.mobile},{label:"参观日期",value:`${e.begin_time.split(" ")[0]} ${e.begin_time.split(" ")[1]}~${e.end_time.split(" ")[1]}`,mt:"10px"},{label:"预估人数",value:e.num},{label:"车辆信息",value:e.plate_number},{label:"参观事由",value:e.reason,mt:"10px"},{label:"同行人员",record:e.users,mt:"10px"}],t}),!0,"加载中...")}function d(){let t=i.currentRoute.value.query.name;t?i.replace({name:t}):i.back()}function y(){B(()=>{m(()=>z({appointmentid:a.params.id,approval_state:a.team.noApproval.formData.approval_state,approval_remark:a.team.noApproval.formData.approval_remark}).then(t=>(t.code===1&&(a.team.noApproval.show=!1,d()),t)),!1,"提交中...")})}return g(()=>{a.params={id:i.currentRoute.value.query.id,type:i.currentRoute.value.query.type},f()}),(t,e)=>{const p=I,_=E,b=F,k=S,w=j,A=G;return D(),C($,null,[o(V(v),{array:a.array},{default:l(()=>[a.params.type==="noApprove"?c(t.$slots,"default",{key:0},()=>[n("div",O,[o(p,{type:"primary",onClick:e[0]||(e[0]=r=>a.team.noApproval.show=!0),round:"",block:""},{default:l(()=>[s("审 批")]),_:1})]),n("div",P,[o(p,{onClick:d,round:"",block:""},{default:l(()=>[s("返 回")]),_:1})])],!0):c(t.$slots,"default",{key:1},()=>[n("div",T,[o(p,{onClick:d,round:"",block:""},{default:l(()=>[s("返 回")]),_:1})])],!0)]),_:3},8,["array"]),o(A,{show:a.team.noApproval.show,"onUpdate:show":e[4]||(e[4]=r=>a.team.noApproval.show=r),title:"审批"},{footer:l(()=>[n("div",Z,[n("div",J,[o(p,{onClick:y,round:"",block:"",type:"primary"},{default:l(()=>[s(" 提交")]),_:1})]),n("div",K,[o(p,{round:"",block:"",onClick:e[3]||(e[3]=r=>{a.team.noApproval.show=!1})},{default:l(()=>[s("关闭 ")]),_:1})])])]),default:l(()=>[n("div",H,[o(w,{inset:""},{default:l(()=>[n("div",X,[Y,o(b,{direction:"horizontal",modelValue:a.team.noApproval.formData.approval_state,"onUpdate:modelValue":e[1]||(e[1]=r=>a.team.noApproval.formData.approval_state=r)},{default:l(()=>[o(_,{name:"2"},{default:l(()=>[s("通过")]),_:1}),o(_,{name:"0"},{default:l(()=>[s("不通过")]),_:1})]),_:1},8,["modelValue"])]),o(k,{modelValue:a.team.noApproval.formData.approval_remark,"onUpdate:modelValue":e[2]||(e[2]=r=>a.team.noApproval.formData.approval_remark=r),rows:"2",autosize:"",label:"备注",type:"textarea",maxlength:"50",placeholder:"请输入备注","show-word-limit":""},null,8,["modelValue"])]),_:1})])]),_:1},8,["show"])],64)}}},oe=h(Q,[["__scopeId","data-v-f8ca0455"]]);export{oe as default};
.page[data-v-eb093ab5]{--van-pagination-height: 55px}.flexRight[data-v-eb093ab5]{width:100%;height:20px;display:flex;justify-content:flex-end;align-items:center}.flexRight .posi[data-v-eb093ab5]{position:absolute;right:16px;bottom:16px}table[data-v-eb093ab5]{border-collapse:collapse;border-spacing:0;border:1px solid}td[data-v-eb093ab5]{border:1px solid}.cardList[data-v-eb093ab5]{padding:125px 15px 15px}.list[data-v-eb093ab5]{border-radius:12px;overflow:hidden;margin-bottom:15px}.list .pending[data-v-eb093ab5]{color:#1988f9;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px}.list .pass[data-v-eb093ab5]{color:#3fab41;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px}.list .nopass[data-v-eb093ab5]{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;border-radius:6px}.list .cellStyle_up[data-v-eb093ab5]{padding:10px 16px 1px;font-size:15px}.list .cellStyle_up .van-cell__title[data-v-eb093ab5]{color:#818283}.list .cellStyle_down[data-v-eb093ab5]{padding:1px 16px 0;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-eb093ab5]{color:#818283}.list .cellStyle_centre[data-v-eb093ab5]{padding:1px 16px 0;font-size:15px}.list .cellStyle_centre .van-cell__title[data-v-eb093ab5]{color:#818283}.list .van-cell__value[data-v-eb093ab5]{font-size:16px;color:#525252;min-width:200px}.top[data-v-eb093ab5]{position:fixed;top:0;height:50px;width:100%;background:#fff;left:0;z-index:11}.top .van-row[data-v-eb093ab5]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.top .van-row .checkedstyle[data-v-eb093ab5]{color:#238efa}.top .van-row .icon[data-v-eb093ab5]{margin-right:5px}.bottom[data-v-eb093ab5]{position:fixed;bottom:0;height:60px;width:100%;background:#fff;left:0;z-index:11}.bottom .count[data-v-eb093ab5]{margin-left:18px}.bottom .van-row[data-v-eb093ab5]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.bottom .van-row .checkedstyle[data-v-eb093ab5]{color:#238efa}.bottom .van-row .icon[data-v-eb093ab5]{margin-right:5px}.sexIcon[data-v-eb093ab5]{width:16px;margin:0 13px}.title-filter[data-v-eb093ab5]{text-align:center;padding:10px;border-bottom:1px solid #ebedf0}.title-filter .icon[data-v-eb093ab5]{position:absolute;right:22px}.form-field .van-cell[data-v-eb093ab5]{font-size:16px;line-height:34px}.form-field[data-v-eb093ab5] .van-field__value{background:#f2f3f5}.form-field[data-v-eb093ab5] .van-field__right-icon{margin-right:0}.form-field[data-v-eb093ab5] input{padding-left:10px}.btn[data-v-eb093ab5]{margin:20px}.aes[data-v-eb093ab5]{width:100%;height:100%}.paymentVoucher[data-v-eb093ab5],.accepted[data-v-eb093ab5]{position:relative;width:100%;height:100%;padding:16px;box-sizing:border-box}[data-v-eb093ab5] .van-cell{font-size:16px!important;line-height:24px!important}[data-v-eb093ab5] .van-cell__title{font-size:16px!important}
.page[data-v-f8ca0455]{--van-pagination-height: 55px}.flexRight[data-v-f8ca0455]{width:100%;height:20px;display:flex;justify-content:flex-end;align-items:center}.flexRight .posi[data-v-f8ca0455]{position:absolute;right:16px;bottom:16px}table[data-v-f8ca0455]{border-collapse:collapse;border-spacing:0;border:1px solid}td[data-v-f8ca0455]{border:1px solid}.cardList[data-v-f8ca0455]{padding:125px 15px 15px}.list[data-v-f8ca0455]{border-radius:12px;overflow:hidden;margin-bottom:15px}.list .pending[data-v-f8ca0455]{color:#1988f9;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px}.list .pass[data-v-f8ca0455]{color:#3fab41;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px}.list .nopass[data-v-f8ca0455]{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;border-radius:6px}.list .cellStyle_up[data-v-f8ca0455]{padding:10px 16px 1px;font-size:15px}.list .cellStyle_up .van-cell__title[data-v-f8ca0455]{color:#818283}.list .cellStyle_down[data-v-f8ca0455]{padding:1px 16px 0;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-f8ca0455]{color:#818283}.list .cellStyle_centre[data-v-f8ca0455]{padding:1px 16px 0;font-size:15px}.list .cellStyle_centre .van-cell__title[data-v-f8ca0455]{color:#818283}.list .van-cell__value[data-v-f8ca0455]{font-size:16px;color:#525252;min-width:200px}.top[data-v-f8ca0455]{position:fixed;top:0;height:50px;width:100%;background:#fff;left:0;z-index:11}.top .van-row[data-v-f8ca0455]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.top .van-row .checkedstyle[data-v-f8ca0455]{color:#238efa}.top .van-row .icon[data-v-f8ca0455]{margin-right:5px}.bottom[data-v-f8ca0455]{position:fixed;bottom:0;height:60px;width:100%;background:#fff;left:0;z-index:11}.bottom .count[data-v-f8ca0455]{margin-left:18px}.bottom .van-row[data-v-f8ca0455]{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;height:100%}.bottom .van-row .checkedstyle[data-v-f8ca0455]{color:#238efa}.bottom .van-row .icon[data-v-f8ca0455]{margin-right:5px}.sexIcon[data-v-f8ca0455]{width:16px;margin:0 13px}.title-filter[data-v-f8ca0455]{text-align:center;padding:10px;border-bottom:1px solid #ebedf0}.title-filter .icon[data-v-f8ca0455]{position:absolute;right:22px}.form-field .van-cell[data-v-f8ca0455]{font-size:16px;line-height:34px}.form-field[data-v-f8ca0455] .van-field__value{background:#f2f3f5}.form-field[data-v-f8ca0455] .van-field__right-icon{margin-right:0}.form-field[data-v-f8ca0455] input{padding-left:10px}.btn[data-v-f8ca0455]{margin:20px}.aes[data-v-f8ca0455]{width:100%;height:100%}.paymentVoucher[data-v-f8ca0455],.accepted[data-v-f8ca0455]{position:relative;width:100%;height:100%;padding:16px;box-sizing:border-box}[data-v-f8ca0455] .van-cell{font-size:16px!important;line-height:24px!important}[data-v-f8ca0455] .van-cell__title{font-size:16px!important}
import{f as a}from"./index-2da6e532.js";function e(t,n){const p={appointmentid:t.appointmentid};return a.get("/api/Background/api/guest/GetAppointmentInfo",{params:p,...n})}export{e as g};
import{f as n}from"./index-2da6e532.js";function o(e,t){const i={condition:e.condition,approvalView:e.approvalView,approvalState:e.approvalState,museum_state:e.museum_state,begin_time:e.begin_time,end_time:e.end_time,page_index:e.page_index,page_size:e.page_size};return n.get("/api/Background/api/guest/GetTeamList",{params:i,...t})}function p(e,t){const i={begin_date:e.begin_date,end_date:e.end_date};return n.get("/api/Background/api/guest/GetTeamCount",{params:i,...t})}export{o as a,p as g};
.van-row{display:flex;flex-wrap:wrap}.van-row--nowrap{flex-wrap:nowrap}.van-row--justify-center{justify-content:center}.van-row--justify-end{justify-content:flex-end}.van-row--justify-space-between{justify-content:space-between}.van-row--justify-space-around{justify-content:space-around}.van-row--align-center{align-items:center}.van-row--align-bottom{align-items:flex-end}.van-col{display:block;box-sizing:border-box;min-height:1px}.van-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{flex:0 0 12.5%;max-width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{flex:0 0 25%;max-width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{flex:0 0 37.5%;max-width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{flex:0 0 50%;max-width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{flex:0 0 62.5%;max-width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{flex:0 0 75%;max-width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{flex:0 0 87.5%;max-width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{flex:0 0 100%;max-width:100%}.van-col--offset-24{margin-left:100%}
.aaa[data-v-bf497046]{--van-dropdown-menu-shadow: red}
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{u as n,o as c,c as s,a as e,F as m}from"./index-5a821851.js";import{N as _,E as p}from"./index-b6154f67.js";import"./use-height-fb8290bb.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};
:root{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}:root{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}:root{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-2da6e532.js";import{E as l}from"./index-d1d24063.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{b as G,af as _e,aa as J,ag as ue,d as X,a5 as Z,ah as q,a9 as ne,T as V,ai as Fe,s as k,a4 as Re,a7 as le,aj as Ve,ak as Pe,a as f,al as Ie,am as we,a3 as te,a2 as E,m as de,a1 as We,an as Ye,a6 as p,ao as re,L as Ue,ap as Te,ac as ee,ad as Be,aq as je,ar as ze,as as Ke,at as Le,au as qe,av as fe,aw as Ge,ax as Qe,ay as Je,Q as Xe,az as me,aA as se,aB as Ze,aC as ke,G as pe,w as et}from"./index-2da6e532.js";const[tt,z,Se]=G("picker"),He=e=>e.find(o=>!o.disabled)||e[0];function nt(e,o){const a=e[0];if(a){if(Array.isArray(a))return"multiple";if(o.children in a)return"cascade"}return"default"}function ae(e,o){o=ue(o,0,e.length);for(let a=o;a<e.length;a++)if(!e[a].disabled)return a;for(let a=o-1;a>=0;a--)if(!e[a].disabled)return a;return 0}const xe=(e,o,a)=>o!==void 0&&!!e.find(d=>d[a.value]===o);function ve(e,o,a){const d=e.findIndex(y=>y[a.value]===o),u=ae(e,d);return e[u]}function at(e,o,a){const d=[];let u={[o.children]:e},y=0;for(;u&&u[o.children];){const D=u[o.children],v=a.value[y];if(u=_e(v)?ve(D,v,o):void 0,!u&&D.length){const l=He(D)[o.value];u=ve(D,l,o)}y++,d.push(D)}return d}function ot(e){const{transform:o}=window.getComputedStyle(e),a=o.slice(7,o.length-1).split(", ")[5];return Number(a)}function lt(e){return J({text:"text",value:"value",children:"children"},e)}const Oe=200,Ce=300,it=15,[$e,ce]=G("picker-column"),Ee=Symbol($e);var rt=X({name:$e,props:{value:Z,fields:q(Object),options:ne(),readonly:Boolean,allowHtml:Boolean,optionHeight:q(Number),swipeDuration:q(Z),visibleOptionNum:q(Z)},emits:["change","clickOption","scrollInto"],setup(e,{emit:o,slots:a}){let d,u,y,D,v;const l=V(),b=V(),h=V(0),w=V(0),S=Fe(),P=()=>e.options.length,M=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,H=i=>{let t=ae(e.options,i);const r=-t*e.optionHeight,s=()=>{t>P()-1&&(t=ae(e.options,i));const T=e.options[t][e.fields.value];T!==e.value&&o("change",T)};d&&r!==h.value?v=s:s(),h.value=r},I=()=>e.readonly||!e.options.length,Y=i=>{d||I()||(v=null,w.value=Oe,H(i),o("clickOption",e.options[i]))},A=i=>ue(Math.round(-i/e.optionHeight),0,P()-1),U=k(()=>A(h.value)),L=(i,t)=>{const r=Math.abs(i/t);i=h.value+r/.003*(i<0?-1:1);const s=A(i);w.value=+e.swipeDuration,H(s)},N=()=>{d=!1,w.value=0,v&&(v(),v=null)},R=i=>{if(!I()){if(S.start(i),d){const t=ot(b.value);h.value=Math.min(0,t-M())}w.value=0,u=h.value,y=Date.now(),D=u,v=null}},Q=i=>{if(I())return;S.move(i),S.isVertical()&&(d=!0,Ie(i,!0));const t=ue(u+S.deltaY.value,-(P()*e.optionHeight),e.optionHeight),r=A(t);r!==U.value&&o("scrollInto",e.options[r]),h.value=t;const s=Date.now();s-y>Ce&&(y=s,D=t)},j=()=>{if(I())return;const i=h.value-D,t=Date.now()-y;if(t<Ce&&Math.abs(i)>it){L(i,t);return}const s=A(h.value);w.value=Oe,H(s),setTimeout(()=>{d=!1},0)},W=()=>{const i={height:`${e.optionHeight}px`};return e.options.map((t,r)=>{const s=t[e.fields.text],{disabled:T}=t,n=t[e.fields.value],c={role:"button",style:i,tabindex:T?-1:0,class:[ce("item",{disabled:T,selected:n===e.value}),t.className],onClick:()=>Y(r)},m={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:s};return f("li",c,[a.option?a.option(t,r):f("div",m,null)])})};return Re(Ee),le({stopMomentum:N}),Ve(()=>{const i=d?Math.floor(-h.value/e.optionHeight):e.options.findIndex(s=>s[e.fields.value]===e.value),t=ae(e.options,i),r=-t*e.optionHeight;d&&t<i&&N(),h.value=r}),Pe("touchmove",Q,{target:l}),()=>f("div",{ref:l,class:ce(),onTouchstartPassive:R,onTouchend:j,onTouchcancel:j},[f("ul",{ref:b,style:{transform:`translate3d(0, ${h.value+M()}px, 0)`,transitionDuration:`${w.value}ms`,transitionProperty:w.value?"all":"none"},class:ce("wrapper"),onTransitionend:N},[W()])])}});const[st]=G("picker-toolbar"),ie={title:String,cancelButtonText:String,confirmButtonText:String},ct=["cancel","confirm","title","toolbar"],ut=Object.keys(ie);var dt=X({name:st,props:ie,emits:["confirm","cancel"],setup(e,{emit:o,slots:a}){const d=()=>{if(a.title)return a.title();if(e.title)return f("div",{class:[z("title"),"van-ellipsis"]},[e.title])},u=()=>o("cancel"),y=()=>o("confirm"),D=()=>{const l=e.cancelButtonText||Se("cancel");return f("button",{type:"button",class:[z("cancel"),we],onClick:u},[a.cancel?a.cancel():l])},v=()=>{const l=e.confirmButtonText||Se("confirm");return f("button",{type:"button",class:[z("confirm"),we],onClick:y},[a.confirm?a.confirm():l])};return()=>f("div",{class:z("toolbar")},[a.toolbar?a.toolbar():[D(),d(),v()]])}});const[ft,Pt]=G("picker-group"),mt=Symbol(ft);J({tabs:ne(),activeTab:te(0),nextStepText:String},ie);const Ae=J({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:te(44),showToolbar:E,swipeDuration:te(1e3),visibleOptionNum:te(6)},ie),vt=J({},Ae,{columns:ne(),modelValue:ne(),toolbarPosition:de("top"),columnsFieldNames:Object});var It=X({name:tt,props:vt,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:o,slots:a}){const d=V(),u=V(e.modelValue.slice(0)),{parent:y}=Re(mt),{children:D,linkChildren:v}=We(Ee);v();const l=k(()=>lt(e.columnsFieldNames)),b=k(()=>Ye(e.optionHeight)),h=k(()=>nt(e.columns,l.value)),w=k(()=>{const{columns:t}=e;switch(h.value){case"multiple":return t;case"cascade":return at(t,l.value,u);default:return[t]}}),S=k(()=>w.value.some(t=>t.length)),P=k(()=>w.value.map((t,r)=>ve(t,u.value[r],l.value))),M=k(()=>w.value.map((t,r)=>t.findIndex(s=>s[l.value.value]===u.value[r]))),H=(t,r)=>{if(u.value[t]!==r){const s=u.value.slice(0);s[t]=r,u.value=s}},I=()=>({selectedValues:u.value.slice(0),selectedOptions:P.value,selectedIndexes:M.value}),Y=(t,r)=>{H(r,t),h.value==="cascade"&&u.value.forEach((s,T)=>{const n=w.value[T];xe(n,s,l.value)||H(T,n.length?n[0][l.value.value]:void 0)}),Te(()=>{o("change",J({columnIndex:r},I()))})},A=(t,r)=>{const s={columnIndex:r,currentOption:t};o("clickOption",J(I(),s)),o("scrollInto",s)},U=()=>{D.forEach(r=>r.stopMomentum());const t=I();return Te(()=>{o("confirm",t)}),t},L=()=>o("cancel",I()),N=()=>w.value.map((t,r)=>f(rt,{value:u.value[r],fields:l.value,options:t,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:b.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:s=>Y(s,r),onClickOption:s=>A(s,r),onScrollInto:s=>{o("scrollInto",{currentOption:s,columnIndex:r})}},{option:a.option})),R=t=>{if(S.value){const r={height:`${b.value}px`},s={backgroundSize:`100% ${(t-b.value)/2}px`};return[f("div",{class:z("mask"),style:s},null),f("div",{class:[je,z("frame")],style:r},null)]}},Q=()=>{const t=b.value*+e.visibleOptionNum,r={height:`${t}px`};return f("div",{ref:d,class:z("columns"),style:r},[N(),R(t)])},j=()=>{if(e.showToolbar&&!y)return f(dt,Be(ee(e,ut),{onConfirm:U,onCancel:L}),ee(a,ct))};p(w,t=>{t.forEach((r,s)=>{r.length&&!xe(r,u.value[s],l.value)&&H(s,He(r)[l.value.value])})},{immediate:!0});let W;return p(()=>e.modelValue,t=>{!re(t,u.value)&&!re(t,W)&&(u.value=t.slice(0),W=t.slice(0))},{deep:!0}),p(u,t=>{re(t,e.modelValue)||(W=t.slice(0),o("update:modelValue",W))},{immediate:!0}),Pe("touchmove",Ie,{target:d}),le({confirm:U,getSelectedOptions:()=>P.value}),()=>{var t,r;return f("div",{class:z()},[e.toolbarPosition==="top"?j():null,e.loading?f(Ue,{class:z("loading")},null):null,(t=a["columns-top"])==null?void 0:t.call(a),Q(),(r=a["columns-bottom"])==null?void 0:r.call(a),e.toolbarPosition==="bottom"?j():null])}}});const[ht,x,K]=G("calendar"),gt=e=>K("monthTitle",e.getFullYear(),e.getMonth()+1);function he(e,o){const a=e.getFullYear(),d=o.getFullYear();if(a===d){const u=e.getMonth(),y=o.getMonth();return u===y?0:u>y?1:-1}return a>d?1:-1}function $(e,o){const a=he(e,o);if(a===0){const d=e.getDate(),u=o.getDate();return d===u?0:d>u?1:-1}return a}const oe=e=>new Date(e),Me=e=>Array.isArray(e)?e.map(oe):oe(e);function be(e,o){const a=oe(e);return a.setDate(a.getDate()+o),a}const ge=e=>be(e,-1),Ne=e=>be(e,1),ye=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function yt(e){const o=e[0].getTime();return(e[1].getTime()-o)/(1e3*60*60*24)+1}J({},Ae,{modelValue:ne(),filter:Function,formatter:{type:Function,default:(e,o)=>o}});const bt=(e,o)=>32-new Date(e,o-1,32).getDate(),[Dt]=G("calendar-day");var wt=X({name:Dt,props:{item:q(Object),color:String,index:Number,offset:ze(0),rowHeight:String},emits:["click"],setup(e,{emit:o,slots:a}){const d=k(()=>{var l;const{item:b,index:h,color:w,offset:S,rowHeight:P}=e,M={height:P};if(b.type==="placeholder")return M.width="100%",M;if(h===0&&(M.marginLeft=`${100*S/7}%`),w)switch(b.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":M.background=w;break;case"middle":M.color=w;break}return S+(((l=b.date)==null?void 0:l.getDate())||1)>28&&(M.marginBottom=0),M}),u=()=>{e.item.type!=="disabled"&&o("click",e.item)},y=()=>{const{topInfo:l}=e.item;if(l||a["top-info"])return f("div",{class:x("top-info")},[a["top-info"]?a["top-info"](e.item):l])},D=()=>{const{bottomInfo:l}=e.item;if(l||a["bottom-info"])return f("div",{class:x("bottom-info")},[a["bottom-info"]?a["bottom-info"](e.item):l])},v=()=>{const{item:l,color:b,rowHeight:h}=e,{type:w,text:S}=l,P=[y(),S,D()];return w==="selected"?f("div",{class:x("selected-day"),style:{width:h,height:h,background:b}},[P]):P};return()=>{const{type:l,className:b}=e.item;return l==="placeholder"?f("div",{class:x("day"),style:d.value},null):f("div",{role:"gridcell",style:d.value,class:[x("day",l),b],tabindex:l==="disabled"?void 0:-1,onClick:u},[v()])}}});const[Tt]=G("calendar-month"),kt={date:q(Date),type:String,color:String,minDate:q(Date),maxDate:q(Date),showMark:Boolean,rowHeight:Z,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var St=X({name:Tt,props:kt,emits:["click"],setup(e,{emit:o,slots:a}){const[d,u]=Ke(),y=V(),D=V(),v=Le(D),l=k(()=>gt(e.date)),b=k(()=>qe(e.rowHeight)),h=k(()=>{const i=e.date.getDay();return e.firstDayOfWeek?(i+7-e.firstDayOfWeek)%7:i}),w=k(()=>bt(e.date.getFullYear(),e.date.getMonth()+1)),S=k(()=>d.value||!e.lazyRender),P=()=>l.value,M=i=>{const t=r=>e.currentDate.some(s=>$(s,r)===0);if(t(i)){const r=ge(i),s=Ne(i),T=t(r),n=t(s);return T&&n?"multiple-middle":T?"end":n?"start":"multiple-selected"}return""},H=i=>{const[t,r]=e.currentDate;if(!t)return"";const s=$(i,t);if(!r)return s===0?"start":"";const T=$(i,r);return e.allowSameDay&&s===0&&T===0?"start-end":s===0?"start":T===0?"end":s>0&&T<0?"middle":""},I=i=>{const{type:t,minDate:r,maxDate:s,currentDate:T}=e;if($(i,r)<0||$(i,s)>0)return"disabled";if(T===null)return"";if(Array.isArray(T)){if(t==="multiple")return M(i);if(t==="range")return H(i)}else if(t==="single")return $(i,T)===0?"selected":"";return""},Y=i=>{if(e.type==="range"){if(i==="start"||i==="end")return K(i);if(i==="start-end")return`${K("start")}/${K("end")}`}},A=()=>{if(e.showMonthTitle)return f("div",{class:x("month-title")},[a["month-title"]?a["month-title"]({date:e.date,text:l.value}):l.value])},U=()=>{if(e.showMark&&S.value)return f("div",{class:x("month-mark")},[e.date.getMonth()+1])},L=k(()=>{const i=Math.ceil((w.value+h.value)/7);return Array(i).fill({type:"placeholder"})}),N=k(()=>{const i=[],t=e.date.getFullYear(),r=e.date.getMonth();for(let s=1;s<=w.value;s++){const T=new Date(t,r,s),n=I(T);let c={date:T,type:n,text:s,bottomInfo:Y(n)};e.formatter&&(c=e.formatter(c)),i.push(c)}return i}),R=k(()=>N.value.filter(i=>i.type==="disabled")),Q=(i,t)=>{if(y.value){const r=fe(y.value),s=L.value.length,n=(Math.ceil((t.getDate()+h.value)/7)-1)*r.height/s;Ge(i,r.top+n+i.scrollTop-fe(i).top)}},j=(i,t)=>f(wt,{item:i,index:t,color:e.color,offset:h.value,rowHeight:b.value,onClick:r=>o("click",r)},ee(a,["top-info","bottom-info"])),W=()=>f("div",{ref:y,role:"grid",class:x("days")},[U(),(S.value?N:L).value.map(j)]);return le({getTitle:P,getHeight:()=>v.value,setVisible:u,scrollToDate:Q,disabledDays:R}),()=>f("div",{class:x("month"),ref:D},[A(),W()])}});const[xt]=G("calendar-header");var Ot=X({name:xt,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:o,emit:a}){const d=()=>{if(e.showTitle){const v=e.title||K("title"),l=o.title?o.title():v;return f("div",{class:x("header-title")},[l])}},u=v=>a("clickSubtitle",v),y=()=>{if(e.showSubtitle){const v=o.subtitle?o.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return f("div",{class:x("header-subtitle"),onClick:u},[v])}},D=()=>{const{firstDayOfWeek:v}=e,l=K("weekdays"),b=[...l.slice(v,7),...l.slice(0,v)];return f("div",{class:x("weekdays")},[b.map(h=>f("span",{class:x("weekday")},[h]))])};return()=>f("div",{class:x("header")},[d(),y(),D()])}});const Ct={show:Boolean,type:de("single"),title:String,color:String,round:E,readonly:Boolean,poppable:E,maxRange:te(null),position:de("bottom"),teleport:[String,Object],showMark:E,showTitle:E,formatter:Function,rowHeight:Z,confirmText:String,rangePrompt:String,lazyRender:E,showConfirm:E,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:E,closeOnPopstate:E,showRangePrompt:E,confirmDisabledText:String,closeOnClickOverlay:E,safeAreaInsetTop:Boolean,safeAreaInsetBottom:E,minDate:{type:Date,validator:me,default:ye},maxDate:{type:Date,validator:me,default:()=>{const e=ye();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:Z,default:0,validator:e=>e>=0&&e<=6}};var Mt=X({name:ht,props:Ct,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle"],setup(e,{emit:o,slots:a}){const d=(n,c=e.minDate,m=e.maxDate)=>$(n,c)===-1?c:$(n,m)===1?m:n,u=(n=e.defaultDate)=>{const{type:c,minDate:m,maxDate:g,allowSameDay:B}=e;if(n===null)return n;const C=ye();if(c==="range"){Array.isArray(n)||(n=[]);const _=d(n[0]||C,m,B?g:ge(g)),O=d(n[1]||C,B?m:Ne(m));return[_,O]}return c==="multiple"?Array.isArray(n)?n.map(_=>d(_)):[d(C)]:((!n||Array.isArray(n))&&(n=C),d(n))};let y;const D=V(),v=V({text:"",date:void 0}),l=V(u()),[b,h]=Qe(),w=k(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),S=k(()=>{const n=[],c=new Date(e.minDate);c.setDate(1);do n.push(new Date(c)),c.setMonth(c.getMonth()+1);while(he(c,e.maxDate)!==1);return n}),P=k(()=>{if(l.value){if(e.type==="range")return!l.value[0]||!l.value[1];if(e.type==="multiple")return!l.value.length}return!l.value}),M=()=>l.value,H=()=>{const n=Ze(D.value),c=n+y,m=S.value.map((O,F)=>b.value[F].getHeight()),g=m.reduce((O,F)=>O+F,0);if(c>g&&n>0)return;let B=0,C;const _=[-1,-1];for(let O=0;O<S.value.length;O++){const F=b.value[O];B<=c&&B+m[O]>=n&&(_[1]=O,C||(C=F,_[0]=O),b.value[O].showed||(b.value[O].showed=!0,o("monthShow",{date:F.date,title:F.getTitle()}))),B+=m[O]}S.value.forEach((O,F)=>{const De=F>=_[0]-1&&F<=_[1]+1;b.value[F].setVisible(De)}),C&&(v.value={text:C.getTitle(),date:C.date})},I=n=>{se(()=>{S.value.some((c,m)=>he(c,n)===0?(D.value&&b.value[m].scrollToDate(D.value,n),!0):!1),H()})},Y=()=>{if(!(e.poppable&&!e.show))if(l.value){const n=e.type==="single"?l.value:l.value[0];me(n)&&I(n)}else se(H)},A=()=>{e.poppable&&!e.show||(se(()=>{y=Math.floor(fe(D).height)}),Y())},U=(n=u())=>{l.value=n,Y()},L=n=>{const{maxRange:c,rangePrompt:m,showRangePrompt:g}=e;return c&&yt(n)>+c?(g&&ke(m||K("rangePrompt",c)),o("overRange"),!1):!0},N=()=>{var n;return o("confirm",(n=l.value)!=null?n:Me(l.value))},R=(n,c)=>{const m=g=>{l.value=g,o("select",Me(g))};if(c&&e.type==="range"&&!L(n)){m([n[0],be(n[0],+e.maxRange-1)]);return}m(n),c&&!e.showConfirm&&N()},Q=(n,c,m)=>{var g;return(g=n.find(B=>$(c,B.date)===-1&&$(B.date,m)===-1))==null?void 0:g.date},j=k(()=>b.value.reduce((n,c)=>{var m,g;return n.push(...(g=(m=c.disabledDays)==null?void 0:m.value)!=null?g:[]),n},[])),W=n=>{if(e.readonly||!n.date)return;const{date:c}=n,{type:m}=e;if(m==="range"){if(!l.value){R([c]);return}const[g,B]=l.value;if(g&&!B){const C=$(c,g);if(C===1){const _=Q(j.value,g,c);if(_){const O=ge(_);$(g,O)===-1?R([g,O]):R([c])}else R([g,c],!0)}else C===-1?R([c]):e.allowSameDay&&R([c,c],!0)}else R([c])}else if(m==="multiple"){if(!l.value){R([c]);return}const g=l.value,B=g.findIndex(C=>$(C,c)===0);if(B!==-1){const[C]=g.splice(B,1);o("unselect",oe(C))}else e.maxRange&&g.length>=+e.maxRange?ke(e.rangePrompt||K("rangePrompt",e.maxRange)):R([...g,c])}else R(c,!0)},i=n=>o("update:show",n),t=(n,c)=>{const m=c!==0||!e.showSubtitle;return f(St,Be({ref:h(c),date:n,currentDate:l.value,showMonthTitle:m,firstDayOfWeek:w.value},ee(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:W}),ee(a,["top-info","bottom-info","month-title"]))},r=()=>{if(a.footer)return a.footer();if(e.showConfirm){const n=a["confirm-text"],c=P.value,m=c?e.confirmDisabledText:e.confirmText;return f(pe,{round:!0,block:!0,type:"primary",color:e.color,class:x("confirm"),disabled:c,nativeType:"button",onClick:N},{default:()=>[n?n({disabled:c}):m||K("confirm")]})}},s=()=>f("div",{class:[x("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[r()]),T=()=>f("div",{class:x()},[f(Ot,{date:v.value.date,title:e.title,subtitle:v.value.text,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:w.value,onClickSubtitle:n=>o("clickSubtitle",n)},ee(a,["title","subtitle"])),f("div",{ref:D,class:x("body"),onScroll:H},[S.value.map(t)]),s()]);return p(()=>e.show,A),p(()=>[e.type,e.minDate,e.maxDate],()=>U(u(l.value))),p(()=>e.defaultDate,(n=null)=>{l.value=n,Y()}),le({reset:U,scrollToDate:I,getSelectedDate:M}),Je(A),()=>e.poppable?f(Xe,{show:e.show,class:x("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":i},{default:T}):T()}});const Bt=et(Mt);export{Bt as C,It as s};
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 160px;--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 24px}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}:root{--van-nav-bar-height: 46px;--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: 16px;--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 160px;--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 24px}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}
:root{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}:root{--van-swipe-indicator-size: 6px;--van-swipe-indicator-margin: var(--van-padding-sm);--van-swipe-indicator-active-opacity: 1;--van-swipe-indicator-inactive-opacity: .3;--van-swipe-indicator-active-background: var(--van-primary-color);--van-swipe-indicator-inactive-background: var(--van-border-color)}.van-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-swipe__track{display:flex;height:100%}.van-swipe__track--vertical{flex-direction:column}.van-swipe__indicators{position:absolute;bottom:var(--van-swipe-indicator-margin);left:50%;display:flex;transform:translate(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:var(--van-swipe-indicator-margin);flex-direction:column;transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:var(--van-swipe-indicator-size)}.van-swipe__indicator{width:var(--van-swipe-indicator-size);height:var(--van-swipe-indicator-size);background-color:var(--van-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--van-swipe-indicator-inactive-opacity);transition:opacity var(--van-duration-fast),background-color var(--van-duration-fast)}.van-swipe__indicator:not(:last-child){margin-right:var(--van-swipe-indicator-size)}.van-swipe__indicator--active{background-color:var(--van-swipe-indicator-active-background);opacity:var(--van-swipe-indicator-active-opacity)}.van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}:root{--van-tab-text-color: var(--van-gray-7);--van-tab-active-text-color: var(--van-text-color);--van-tab-disabled-text-color: var(--van-text-color-3);--van-tab-font-size: var(--van-font-size-md);--van-tab-line-height: var(--van-line-height-md);--van-tabs-default-color: var(--van-primary-color);--van-tabs-line-height: 44px;--van-tabs-card-height: 30px;--van-tabs-nav-background: var(--van-background-2);--van-tabs-bottom-bar-width: 40px;--van-tabs-bottom-bar-height: 3px;--van-tabs-bottom-bar-color: var(--van-primary-color)}.van-tab{position:relative;display:flex;flex:1;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--van-padding-base);color:var(--van-tab-text-color);font-size:var(--van-tab-font-size);line-height:var(--van-tab-line-height);cursor:pointer}.van-tab--active{color:var(--van-tab-active-text-color);font-weight:var(--van-font-bold)}.van-tab--disabled{color:var(--van-tab-disabled-text-color);cursor:not-allowed}.van-tab--grow{flex:1 0 auto;padding:0 var(--van-padding-sm)}.van-tab--shrink{flex:none;padding:0 var(--van-padding-xs)}.van-tab--card{color:var(--van-tabs-default-color);border-right:var(--van-border-width) solid var(--van-tabs-default-color)}.van-tab--card:last-child{border-right:none}.van-tab--card.van-tab--active{color:var(--van-white);background-color:var(--van-tabs-default-color)}.van-tab--card--disabled{color:var(--van-tab-disabled-text-color)}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__nav{position:relative;display:flex;background:var(--van-tabs-nav-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__nav--complete::-webkit-scrollbar{display:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.van-tabs__nav--line.van-tabs__nav--shrink,.van-tabs__nav--line.van-tabs__nav--complete{padding-right:var(--van-padding-xs);padding-left:var(--van-padding-xs)}.van-tabs__nav--card{box-sizing:border-box;height:var(--van-tabs-card-height);margin:0 var(--van-padding-md);border:var(--van-border-width) solid var(--van-tabs-default-color);border-radius:var(--van-border-radius-sm)}.van-tabs__nav--card.van-tabs__nav--shrink{display:inline-flex}.van-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}.van-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:var(--van-tabs-line-height)}.van-tabs--card>.van-tabs__wrap{height:var(--van-tabs-card-height)}.van-tab__panel,.van-tab__panel-wrapper{flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__panel-wrapper--inactive{height:0;overflow:visible}:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-primary-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-picker__toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{position:absolute;left:50%;color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center;transform:translate(-50%)}.van-picker__columns{position:relative;display:flex;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}:root{--van-picker-group-background: var(--van-background-2)}.van-picker-group{background:var(--van-picker-group-background)}.van-picker-group__tabs{margin-top:var(--van-padding-base)}.van-picker-group__tab-title{margin-right:16px}:root{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{u as n,o as c,c as s,a as e,F as m}from"./index-5a821851.js";import{N as _,E as p}from"./index-b6154f67.js";import"./use-height-fb8290bb.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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{b as p,d as b,a1 as P,a6 as f,a7 as k,a8 as g,a as V,a5 as h,m as G,a9 as S,aa as _,ab as O,a2 as $,a4 as y,s as E,ac as w,ad as A,ae as B,w as x}from"./index-2da6e532.js";const[v,K]=p("checkbox-group"),N={max:h,shape:G("round"),disabled:Boolean,iconSize:h,direction:String,modelValue:S(),checkedColor:String},C=Symbol(v);var z=b({name:v,props:N,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:c,linkChildren:i}=P(C),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,l=c.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t??!n.checked.value:!1).map(n=>n.name);o(l)};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:K([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[D,F]=p("checkbox"),H=_({},O,{shape:String,bindGroup:$});var I=b({name:D,props:H,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:c}=y(C),i=e=>{const{name:t}=a,{max:r,modelValue:m}=c.props,l=m.slice();if(e)!(r&&l.length>=+r)&&!l.includes(t)&&(l.push(t),a.bindGroup&&c.updateValue(l));else{const n=l.indexOf(t);n!==-1&&(l.splice(n,1),a.bindGroup&&c.updateValue(l))}},o=E(()=>c&&a.bindGroup?c.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{c&&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(B,A({bem:F,role:"checkbox",parent:c,checked:o.value,onToggle:u},a),w(s,["default","icon"]))}});const T=x(I),U=x(z);export{U as C,T as a};
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-2da6e532.js";import{E as l}from"./index-d1d24063.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{h as default};
import{p as f,r as x,i as h,v as y,o as a,c as r,x as t,a as v,F as m,z as u,C as w,B as g,y as c,I as k}from"./index-2da6e532.js";import{g as B}from"./getApiBackgroundApiGuestGetAppointmentInfo-ab9b7142.js";const q={class:"w-screen h-screen bg-gray-200 overflow-y-scroll"},A={class:"w-full h-11 bg-white flex"},C=t("div",{class:"w-[87%] h-full text-gray-600 flex justify-center items-center"},[t("span",{class:"mr-6"},"预约详情")],-1),I=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"姓名")],-1),j={class:"w-[70%] h-full flex items-center text-wrap box-border"},D=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"身份证号码")],-1),F={class:"w-[70%] h-full flex items-center text-wrap box-border"},G=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"},L={__name:"index",setup(V){const l=f(),n=x({users:[],array:[],date:"",moment:""});function p(){w.push({name:"welcome",query:{moment:l.query.moment,begin_date:l.query.begin_date,end_date:l.query.end_date}})}function d(){B({appointmentid:l.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(o=>({name:o.name,identity_num:o.identity_num,mobile:o.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 h(()=>{d()}),(e,o)=>{const _=k,b=y("cs-detail-card");return a(),r("div",q,[t("div",A,[t("div",{onClick:p,class:"w-[13%] text-gray-600 h-full flex justify-center items-center text-[30px]"},[v(_,{class:"",name:"arrow-left"})]),C]),(a(!0),r(m,null,u(n.array,(s,i)=>(a(),g(b,{array:s,key:i},null,8,["array"]))),128)),(a(!0),r(m,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},[I,t("div",j,[t("span",null,c(s.name),1)]),D,t("div",F,[t("span",null,c(s.identity_num),1)]),G,t("div",N,[t("span",null,c(s.mobile),1)])]))),128))])}}};export{L as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{f as x,_ as F,p as L,r as S,q as d,s as p,i as N,t as $,v as _,o as u,c as h,x as o,a as i,j as l,k as f,y as E,F as y,z as R,A as T,D as U,B as P,C as H,E as J,I as K,G as O}from"./index-2da6e532.js";/* empty css */import{C as Q}from"./index-4eec5d58.js";function W(s,n){const e={condition:s.condition,begin_date:s.begin_date,end_date:s.end_date,moment:s.moment,page_index:s.page_index,page_size:s.page_size};return x.get("/api/Background/api/guest/GetGuestListByManage",{params:e,...n})}function X(s,n){const e={begin_date:s.begin_date,end_date:s.end_date};return x.get("/api/Background/api/guest/GetGuestCount",{params:e,...n})}const Z={class:"w-screen h-screen"},ee={class:"w-full h-[102px] bg-red-600"},ae={class:"w-full h-[48px] flex"},te={class:"w-1/2 h-[48px]"},ne={class:"w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3"},se={class:"w-full h-full flex justify-end"},oe={class:"w-full h-[55px]"},de={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},ie={__name:"index",setup(s){const n=L(),e=S({date:{show:!1},array:[],selectArray:[],search:{minDate:new Date(d().year(),d().month()-1,1),maxDate:new Date(d().year(),d().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",begin_date:d().format("YYYY-MM-DD"),end_date:d().format("YYYY-MM-DD"),date:n.query.date||d().format("YYYY-MM-DD"),moment:n.query.moment||"0",page_index:1,page_size:10,total:0}});function b(t,a){a.appointmentid!==void 0&&H.push({name:"messageDetails",query:{appointmentid:String(a.appointmentid),moment:e.search.moment,begin_date:e.search.begin_dateChange||n.query.begin_date||e.search.begin_date,end_date:e.search.end_dateChange||n.query.end_date||e.search.end_date}})}const w=p(()=>e.search.begin_dateChange||n.query.begin_date||e.search.begin_date),v=p(()=>e.search.end_dateChange||n.query.end_date||e.search.end_date);function D(t){e.search.page_index=1,e.search.moment=t,c()}function C(t){e.date.show=!1,e.search.page_index=1,e.search.moment="0",e.search.begin_dateChange=d(t[0]).format("YYYY-MM-DD"),e.search.end_dateChange=d(t[1]).format("YYYY-MM-DD"),m(),c()}function c(){T(()=>{W({...e.search,begin_date:e.search.begin_dateChange||n.query.begin_date||e.search.begin_date,end_date:e.search.end_dateChange||n.query.end_date||e.search.end_date}).then(t=>{e.array=t.response.data.map((a,g)=>({...a,name:a.name,mobile:a.mobile,museum_date:a.museum_date,visitTime:["","上午","下午"][a.moment],num:a.num,type:["散客预约","团队预约","公务预约"][a.type],reason:a.reason})),e.search.total=t.response.data_count})})}function Y(t){e.search.condition=t,c()}function k(t){e.search.page_index=t,c()}function m(){X({begin_date:e.search.begin_dateChange||n.query.begin_date||e.search.begin_date,end_date:e.search.end_dateChange||n.query.end_date||e.search.end_date}).then(t=>{e.selectArray=[{text:`全天 (${t.response.all_day})人`,value:"0"}]})}return N(()=>{console.log("🚀🚀img🚀,",$),m(),c()}),(t,a)=>{const g=_("cs-header"),M=J,q=U,B=K,G=O,A=_("cs-card"),I=_("cs-page"),V=Q,z=_("cs-pop-up");return u(),h(y,null,[o("div",Z,[o("div",ee,[i(g,{onSearchFun:Y}),o("div",ae,[o("div",te,[i(q,{class:"aaa"},{default:l(()=>[i(M,{modelValue:e.search.moment,"onUpdate:modelValue":a[0]||(a[0]=r=>e.search.moment=r),options:e.selectArray,onChange:D},null,8,["modelValue","options"])]),_:1})]),o("div",{class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white",onClick:a[1]||(a[1]=r=>e.date.show=!0)},[o("span",null,[f(E(w.value+"到"+v.value),1),i(B,{class:"ml-1",name:"setting"})])])])]),o("div",ne,[(u(!0),h(y,null,R(e.array,(r,j)=>(u(),P(A,{key:j,item:r},{default:l(()=>[o("div",se,[i(G,{class:"w-1/2 text-gray-600",plain:"",size:"small",onClick:re=>b("messageDetails",r)},{default:l(()=>[f("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item"]))),128))]),o("div",oe,[i(I,{total:e.search.total,onPageChange:k},null,8,["total"])])]),i(z,{height:83,show:e.date.show},{content:l(()=>[o("div",de,[i(V,{show:e.search.date,"onUpdate:show":a[2]||(a[2]=r=>e.search.date=r),"allow-same-day":!0,"close-on-click-overlay":!1,maxDate:e.search.maxDate,minDate:e.search.minDate,poppable:!1,type:"range",onConfirm:C},null,8,["show","maxDate","minDate"])])]),_:1},8,["show"])],64)}}},ue=F(ie,[["__scopeId","data-v-bf497046"]]);export{ue as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{_ as v,u,o as f,c as h,x as s,a as t,H as n,j as p,J as A,K as g,M as y,O as k,P as w}from"./index-2da6e532.js";const i=_=>(y("data-v-f783bf88"),_=_(),k(),_),x={class:"w-screen h-screen bg-gray-50"},B={class:"w-full h-[60px] p-2"},C={class:"w-full h-[128px] p-2"},I={class:"w-full h-[calc(100%-188px)] p-2"},H={class:"list"},N=i(()=>s("p",{class:"w-full h-[40] list-item-font"},"散客预约",-1)),$={class:"list-item"},b=i(()=>s("span",{class:"custom-title"},"查看预约",-1)),S={class:"list"},V=i(()=>s("p",{class:"w-full h-[40] list-item-font"},"团队预约",-1)),j={class:"list-item"},E=i(()=>s("span",{class:"custom-title"},"待审批",-1)),J={class:"list-item"},K=i(()=>s("span",{class:"custom-title"},"已审批",-1)),M={class:"list"},O=i(()=>s("p",{class:"w-full h-[40] list-item-font"},"公务预约",-1)),P={class:"list-item"},R=i(()=>s("span",{class:"custom-title"},"待审批",-1)),q={class:"list-item"},z=i(()=>s("span",{class:"custom-title"},"已审批",-1)),D={__name:"index",setup(_){const l=u();function a(m){({individualBooking:()=>{l.push({name:"welcome"})},teamAppointmentNoApproved:()=>{l.push({name:"teamAppointment-noApproval"})},teamAppointmentApproved:()=>{l.push({name:"teamAppointment-approval"})},officialAppointmentsHaveBeenNoApproved:()=>{l.push({name:"officialAppointment-noApproval"})},officialAppointmentsHaveBeenApproved:()=>{l.push({name:"officialAppointment-approval"})}})[m]()}return(m,e)=>{const r=w,o=A,c=g;return f(),h("div",x,[s("div",B,[t(r)]),s("div",C,[t(o,{width:"100%",height:"100%",src:n("yygl")},null,8,["src"])]),s("div",I,[s("div",H,[N,s("div",$,[t(c,{onClick:e[0]||(e[0]=d=>a("individualBooking")),"is-link":""},{title:p(()=>[t(o,{class:"image",fit:"contain",src:n("skyy")},null,8,["src"]),b]),_:1})])]),s("div",S,[V,s("div",j,[t(c,{onClick:e[1]||(e[1]=d=>a("teamAppointmentNoApproved")),"is-link":""},{title:p(()=>[t(o,{class:"image",fit:"contain",src:n("tdyy")},null,8,["src"]),E]),_:1})]),s("div",J,[t(c,{onClick:e[2]||(e[2]=d=>a("teamAppointmentApproved")),"is-link":""},{title:p(()=>[t(o,{class:"image",fit:"contain",src:n("tdyy")},null,8,["src"]),K]),_:1})])]),s("div",M,[O,s("div",P,[t(c,{onClick:e[3]||(e[3]=d=>a("officialAppointmentsHaveBeenNoApproved")),"is-link":""},{title:p(()=>[t(o,{class:"image",fit:"contain",src:n("gwyy")},null,8,["src"]),R]),_:1})]),s("div",q,[t(c,{onClick:e[4]||(e[4]=d=>a("officialAppointmentsHaveBeenApproved")),"is-link":""},{title:p(()=>[t(o,{class:"image",fit:"contain",src:n("gwyy")},null,8,["src"]),z]),_:1})])])])])}}},G=v(D,[["__scopeId","data-v-f783bf88"]]);export{G as default};
import{s as _}from"./index-4eec5d58.js";import{w as f,b as g,d as h,a1 as x,s as p,a as m,m as v,a2 as C,a3 as P,a4 as N,a5 as S}from"./index-2da6e532.js";const W=f(_),[$,k]=g("row"),w=Symbol($),E={tag:v("div"),wrap:C,align:String,gutter:P(0),justify:String};var R=h({name:$,props:E,setup(o,{slots:r}){const{children:l,linkChildren:u}=x(w),i=p(()=>{const e=[[]];let t=0;return l.forEach((a,n)=>{t+=Number(a.span),t>24?(e.push([n]),t-=24):e[e.length-1].push(n)}),e}),s=p(()=>{const e=Number(o.gutter),t=[];return e&&i.value.forEach(a=>{const n=e*(a.length-1)/a.length;a.forEach((c,b)=>{if(b===0)t.push({right:n});else{const d=e-t[c-1].right,y=n-d;t.push({left:d,right:y})}})}),t});return u({spaces:s}),()=>{const{tag:e,wrap:t,align:a,justify:n}=o;return m(e,{class:k({[`align-${a}`]:a,[`justify-${n}`]:n,nowrap:!t})},{default:()=>{var c;return[(c=r.default)==null?void 0:c.call(r)]}})}}});const[j,I]=g("col"),K={tag:v("div"),span:P(0),offset:S};var L=h({name:j,props:K,setup(o,{slots:r}){const{parent:l,index:u}=N(w),i=p(()=>{if(!l)return;const{spaces:s}=l;if(s&&s.value&&s.value[u.value]){const{left:e,right:t}=s.value[u.value];return{paddingLeft:e?`${e}px`:null,paddingRight:t?`${t}px`:null}}});return()=>{const{tag:s,span:e,offset:t}=o;return m(s,{style:i.value,class:I({[e]:e,[`offset-${t}`]:t})},{default:()=>{var a;return[(a=r.default)==null?void 0:a.call(r)]}})}}});const Y=f(L),q=f(R);export{Y as C,W as P,q as R};
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-5a821851.js";import{u as R}from"./use-height-fb8290bb.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};
[data-v-f783bf88] .list-item{margin:16px 0;border-radius:12px;overflow:hidden}[data-v-f783bf88] .list-item-font{font-size:20px;font-family:黑体;font-weight:600;color:#0009}.list[data-v-f783bf88] .van-cell{line-height:48px;display:flex;align-items:center}.list[data-v-f783bf88] .van-cell .image{width:25px;height:25px}.list[data-v-f783bf88] .van-cell .van-cell__title{display:flex;align-items:center}.list[data-v-f783bf88] .van-cell .van-cell__title .custom-title{font-size:16px;padding-left:10px}.list[data-v-f783bf88] .van-cell .van-cell__value{font-size:16px}.list[data-v-f783bf88] .van-cell:after{content:none}.list .van-cell .van-cell__value[data-v-f783bf88]{font-size:18px;color:#3488ff}.wrapper[data-v-f783bf88]{display:flex;align-items:center;justify-content:center;height:100%}.block[data-v-f783bf88]{width:120px;height:120px;background-color:#fff}
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-5a821851.js";function q(u,s){const n={appointmentid:u.appointmentid};return x.get("/api/Background/api/guest/GetAppointmentInfo",{params:n,...s})}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 s=h(),n=y({users:[],array:[],date:"",moment:""});function d(){k.push({name:"welcome",query:{moment:s.query.moment,begin_date:s.query.begin_date,end_date:s.query.end_date}})}function _(){q({appointmentid:s.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 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(n.array,(a,i)=>(o(),B(b,{array:a,key:i},null,8,["array"]))),128)),(o(!0),r(m,null,p(n.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{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-2da6e532.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(),l=r=>`${f}-${r}`,t=r=>`url(#${l(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:l(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:t(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[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)])],h=()=>[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%"},[n("#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"},[c(),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)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:l(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:l(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: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)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(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:t(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:l(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:l(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("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)])]),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};
.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
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-5a821851.js";import{u as tt}from"./use-height-fb8290bb.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,i){const t={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:t,...i})}function wt(e,i){const t={begin_date:e.begin_date,end_date:e.end_date};return Te.get("/api/Background/api/guest/GetGuestCount",{params:t,...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,"allow-same-day":!0,type:"range",onConfirm:h},null,8,["show","minDate","maxDate"])])]),_:1},8,["show"])],64)}}},$t=Le(Pt,[["__scopeId","data-v-9736dc89"]]);export{$t as default};
:root{--van-button-mini-height: 24px;--van-button-mini-padding: 0 var(--van-padding-base);--van-button-mini-font-size: var(--van-font-size-xs);--van-button-small-height: 32px;--van-button-small-padding: 0 var(--van-padding-xs);--van-button-small-font-size: var(--van-font-size-sm);--van-button-normal-padding: 0 15px;--van-button-normal-font-size: var(--van-font-size-md);--van-button-large-height: 50px;--van-button-default-height: 44px;--van-button-default-line-height: 1.2;--van-button-default-font-size: var(--van-font-size-lg);--van-button-default-color: var(--van-text-color);--van-button-default-background: var(--van-background-2);--van-button-default-border-color: var(--van-gray-4);--van-button-primary-color: var(--van-white);--van-button-primary-background: var(--van-primary-color);--van-button-primary-border-color: var(--van-primary-color);--van-button-success-color: var(--van-white);--van-button-success-background: var(--van-success-color);--van-button-success-border-color: var(--van-success-color);--van-button-danger-color: var(--van-white);--van-button-danger-background: var(--van-danger-color);--van-button-danger-border-color: var(--van-danger-color);--van-button-warning-color: var(--van-white);--van-button-warning-background: var(--van-warning-color);--van-button-warning-border-color: var(--van-warning-color);--van-button-border-width: var(--van-border-width);--van-button-radius: var(--van-radius-md);--van-button-round-radius: var(--van-radius-max);--van-button-plain-background: var(--van-white);--van-button-disabled-opacity: var(--van-disabled-opacity);--van-button-icon-size: 1.2em;--van-button-loading-icon-size: 20px}.van-theme-dark{--van-button-plain-background: transparent}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-radius);cursor:pointer;transition:opacity var(--van-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--van-black);border:inherit;border-color:var(--van-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.van-button:active:before{opacity:.1}.van-button--loading:before,.van-button--disabled:before{display:none}.van-button--default{color:var(--van-button-default-color);background:var(--van-button-default-background);border:var(--van-button-border-width) solid var(--van-button-default-border-color)}.van-button--primary{color:var(--van-button-primary-color);background:var(--van-button-primary-background);border:var(--van-button-border-width) solid var(--van-button-primary-border-color)}.van-button--success{color:var(--van-button-success-color);background:var(--van-button-success-background);border:var(--van-button-border-width) solid var(--van-button-success-border-color)}.van-button--danger{color:var(--van-button-danger-color);background:var(--van-button-danger-background);border:var(--van-button-border-width) solid var(--van-button-danger-border-color)}.van-button--warning{color:var(--van-button-warning-color);background:var(--van-button-warning-background);border:var(--van-button-border-width) solid var(--van-button-warning-border-color)}.van-button--plain{background:var(--van-button-plain-background)}.van-button--plain.van-button--primary{color:var(--van-button-primary-background)}.van-button--plain.van-button--success{color:var(--van-button-success-background)}.van-button--plain.van-button--danger{color:var(--van-button-danger-background)}.van-button--plain.van-button--warning{color:var(--van-button-warning-background)}.van-button--large{width:100%;height:var(--van-button-large-height)}.van-button--normal{padding:var(--van-button-normal-padding);font-size:var(--van-button-normal-font-size)}.van-button--small{height:var(--van-button-small-height);padding:var(--van-button-small-padding);font-size:var(--van-button-small-font-size)}.van-button__loading{color:inherit;font-size:inherit}.van-button__loading .van-loading__spinner{color:currentColor;width:var(--van-button-loading-icon-size);height:var(--van-button-loading-icon-size)}.van-button--mini{height:var(--van-button-mini-height);padding:var(--van-button-mini-padding);font-size:var(--van-button-mini-font-size)}.van-button--mini+.van-button--mini{margin-left:var(--van-padding-base)}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:var(--van-button-disabled-opacity)}.van-button--loading{cursor:default}.van-button--round{border-radius:var(--van-button-round-radius)}.van-button--square{border-radius:0}.van-button__content{display:flex;align-items:center;justify-content:center;height:100%}.van-button__content:before{content:" "}.van-button__icon{font-size:var(--van-button-icon-size);line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:var(--van-padding-base)}.van-button--hairline{border-width:0}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--van-button-radius) * 2)}.van-button--hairline.van-button--round:after{border-radius:var(--van-button-round-radius)}.van-button--hairline.van-button--square:after{border-radius:0}
import{f as n}from"./index-2da6e532.js";function r(p,t){const a={appointmentid:p.appointmentid,approval_state:p.approval_state,approval_remark:p.approval_remark};return n.post("/api/Background/api/guest/AppointmentApproval",null,{params:a,...t})}export{r as p};
.aaa[data-v-365a9138]{--van-dropdown-menu-shadow: red}
import{f as b,_ as E,p as T,r as W,q as p,T as X,i as Z,v as u,o as f,c as h,a as o,j as s,x as l,k as i,y as H,U as J,F as k,A as K,G as Q,V as ee,D as ae,z as te,B as oe,W as y,X as ne,Y as se,Z as le,R as re,$ as pe,E as ie,I as ce,M as de,O as me,C as _e,a0 as ue}from"./index-2da6e532.js";import{C as fe,a as he}from"./index-7f177dc0.js";/* empty css */import{C as ve}from"./index-4eec5d58.js";import{p as ge}from"./index-f8966fd7.js";function we(r,c){const e={condition:r.condition,approvalView:r.approvalView,approvalState:r.approvalState,begin_time:r.begin_time,end_time:r.end_time,page_index:r.page_index,page_size:r.page_size};return b.get("/api/Background/api/guest/GetOfficialList",{params:e,...c})}function xe(r,c){const e={begin_date:r.begin_date,end_date:r.end_date};return b.get("/api/Background/api/guest/GetOfficialCount",{params:e,...c})}const ke=r=>(de("data-v-365a9138"),r=r(),me(),r),ye={class:"flex justify-center items-center w-full h-[160px]"},be={class:"w-full flex"},De=ke(()=>l("span",{class:"mr-4"},"审批状态",-1)),Ce={class:"w-full h-[60px] flex justify-between items-center border border-solid px-2"},Ae={class:"w-[65%]"},Ye={class:"w-[30%]"},Ve={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},Me={class:"w-screen h-screen relative"},Ge={class:"w-full h-[102px] bg-red-600"},Be={class:"w-full h-[48px] flex"},Ie={class:"w-1/2 h-[48px]"},Se={class:"relative w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3"},Pe={class:"w-full h-full flex justify-between"},ze={key:0,class:"w-[90px] ml-auto sticky right-2 bottom-12"},$e={class:"w-full h-[55px]"},je={__name:"noApproval",setup(r){const c=T(),e=W({team:{noApproval:{show:!1,formData:{appointmentid:"",approval_state:"2",approval_remark:""}}},checked:[],date:{show:!1},array:[],selectArray:[],search:{params:{begin_time:"2024-01-01",end_time:"2024-07-25",approvalView:1,approvalState:1,page_index:1,page_size:10,condition:""},countParams:{begin_date:p().format("YYYY-MM-DD"),end_date:p().format("YYYY-MM-DD")},minDate:new Date(p().year(),p().month()-1,1),maxDate:new Date(p().year(),p().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",date:c.query.date||p().format("YYYY-MM-DD"),moment:c.query.moment||"0",total:0}});function v(t,a){a.appointmentid!==void 0&&_e.push({name:"officeDetails",query:{id:String(a.appointmentid),type:t}})}function D(t){}function C(t){e.date.show=!1,e.search.page_index=1,e.search.params.begin_time=p(t[0]).format("YYYY-MM-DD"),e.search.params.end_time=p(t[1]).format("YYYY-MM-DD"),e.search.countParams.begin_date=p(t[0]).format("YYYY-MM-DD"),e.search.countParams.end_date=p(t[1]).format("YYYY-MM-DD"),g(),d()}function d(){K(()=>{we(e.search.params).then(t=>{e.array=t.response.data.map((a,m)=>({...a,name:a.name,mobile:a.mobile,museum_date:a.museum_date,visitTime:["","上午","下午"][a.moment],num:a.num,type:["散客预约","团队预约","公务预约"][a.type],reason:a.reason})),e.search.total=t.response.data_count})})}function A(t){e.search.params.condition=t,d()}function Y(t){e.search.params.page_index=t,d()}function g(){xe({begin_date:e.search.countParams.begin_date,end_date:e.search.countParams.end_date}).then(t=>{e.selectArray=[{text:`全天 (${t.response.all_day})人`,value:"0"}]})}const w=X("");function V(t){e.checked.includes(t.appointmentid)?w.value.toggleAll(!1):e.checked.push(t.appointmentid)}function M(){ne(()=>{ue(()=>{let t=Promise.all(e.checked.map(a=>ge({appointmentid:a,approval_state:e.team.noApproval.formData.approval_state,approval_remark:e.team.noApproval.formData.approval_remark}).then(m=>(e.team.noApproval.show=!1,m))));return e.checked=[],d(),t},!1,"提交中...")})}return Z(()=>{g(),d()}),(t,a)=>{const m=se,G=le,B=re,I=pe,_=Q,S=ee,P=ve,z=u("cs-pop-up"),$=u("cs-header"),j=ie,F=ae,U=ce,q=he,O=u("cs-card"),R=fe,L=u("cs-page");return f(),h(k,null,[o(S,{show:e.team.noApproval.show,"onUpdate:show":a[3]||(a[3]=n=>e.team.noApproval.show=n),title:"审批"},{footer:s(()=>[l("div",Ce,[l("div",Ae,[o(_,{onClick:M,round:"",block:"",type:"primary"},{default:s(()=>[i(" 提交")]),_:1})]),l("div",Ye,[o(_,{round:"",block:"",onClick:a[2]||(a[2]=n=>{e.team.noApproval.show=!1})},{default:s(()=>[i("关闭 ")]),_:1})])])]),default:s(()=>[l("div",ye,[o(I,{inset:""},{default:s(()=>[l("div",be,[De,o(G,{direction:"horizontal",modelValue:e.team.noApproval.formData.approval_state,"onUpdate:modelValue":a[0]||(a[0]=n=>e.team.noApproval.formData.approval_state=n)},{default:s(()=>[o(m,{name:"2"},{default:s(()=>[i("通过")]),_:1}),o(m,{name:"0"},{default:s(()=>[i("不通过")]),_:1})]),_:1},8,["modelValue"])]),o(B,{modelValue:e.team.noApproval.formData.approval_remark,"onUpdate:modelValue":a[1]||(a[1]=n=>e.team.noApproval.formData.approval_remark=n),rows:"2",autosize:"",label:"备注",type:"textarea",maxlength:"50",placeholder:"请输入备注","show-word-limit":""},null,8,["modelValue"])]),_:1})])]),_:1},8,["show"]),o(z,{closeable:!0,height:83,show:e.date.show,onClose:a[4]||(a[4]=()=>e.date.show=!1)},{content:s(()=>[l("div",Ve,[o(P,{"allow-same-day":!0,"close-on-click-overlay":!0,maxDate:e.search.maxDate,minDate:e.search.minDate,poppable:!1,type:"range",onConfirm:C},null,8,["maxDate","minDate"])])]),_:1},8,["show"]),l("div",Me,[l("div",Ge,[o($,{onSearchFun:A}),l("div",Be,[l("div",Ie,[o(F,{class:"aaa"},{default:s(()=>[o(j,{modelValue:e.search.moment,"onUpdate:modelValue":a[5]||(a[5]=n=>e.search.moment=n),options:e.selectArray,onChange:D},null,8,["modelValue","options"])]),_:1})]),l("div",{class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white",onClick:a[6]||(a[6]=n=>e.date.show=!0)},[l("span",null,[i(H(e.search.countParams.begin_date+"到"+e.search.countParams.end_date),1),o(U,{class:"ml-1",name:"setting"})])])])]),l("div",Se,[o(R,{ref_key:"checkboxGroup",ref:w,modelValue:e.checked,"onUpdate:modelValue":a[7]||(a[7]=n=>e.checked=n)},{default:s(()=>[(f(!0),h(k,null,te(e.array,(n,N)=>(f(),oe(O,{key:N,item:n,onClick:x=>V(n)},{checkbox:s(()=>[o(q,{name:n.appointmentid},null,8,["name"])]),default:s(()=>[l("div",Pe,[o(_,{class:"w-[47%] text-gray-600",plain:"",size:"small",type:"primary",onClick:y(x=>v("noApprove",n),["stop"])},{default:s(()=>[i("审批 ")]),_:2},1032,["onClick"]),o(_,{class:"w-[47%] text-gray-600",plain:"",size:"small",onClick:y(x=>v("approval",n),["stop"])},{default:s(()=>[i("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item","onClick"]))),128))]),_:1},8,["modelValue"]),e.checked.length?(f(),h("div",ze,[o(_,{onClick:a[8]||(a[8]=n=>e.team.noApproval.show=!0),round:"",type:"primary"},{default:s(()=>[i("批量审批")]),_:1})])):J("",!0)]),l("div",$e,[o(L,{total:e.search.total,onPageChange:Y},null,8,["total"])])])],64)}}},Le=E(je,[["__scopeId","data-v-365a9138"]]);export{Le as default};
.aaa[data-v-75f06149]{--van-dropdown-menu-shadow: red}
import{_ as E,p as L,r as O,q as l,T as W,i as X,v as _,o as u,c as f,a as t,j as s,x as r,k as p,y as Z,U as H,F as k,A as J,G as K,V as Q,D as ee,z as ae,B as oe,W as x,X as te,Y as ne,Z as se,R as re,$ as le,E as pe,I as ie,M as ce,O as de,C as me,a0 as _e}from"./index-2da6e532.js";import{C as ue,a as fe}from"./index-7f177dc0.js";/* empty css */import{C as he}from"./index-4eec5d58.js";import{p as ve}from"./index-f8966fd7.js";import{g as ge,a as we}from"./getApiBackgroundApiGuestGetTeamCount-14b05cd9.js";const ye=m=>(ce("data-v-75f06149"),m=m(),de(),m),ke={class:"flex justify-center items-center w-full h-[160px]"},xe={class:"w-full flex"},De=ye(()=>r("span",{class:"mr-4"},"审批状态",-1)),be={class:"w-full h-[60px] flex justify-between items-center border border-solid px-2"},Ce={class:"w-[65%]"},Ae={class:"w-[30%]"},Ye={class:"w-full h-[90%] bg-gray-100 overflow-y-auto"},Me={class:"w-screen h-screen relative"},Ve={class:"w-full h-[102px] bg-red-600"},Ge={class:"w-full h-[48px] flex"},Be={class:"w-1/2 h-[48px]"},Pe={class:"relative w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3"},Ie={class:"w-full h-full flex justify-between"},Se={key:0,class:"w-[90px] ml-auto sticky right-2 bottom-12"},$e={class:"w-full h-[55px]"},je={__name:"noApprove",setup(m){const h=L(),e=O({team:{noApproval:{show:!1,formData:{appointmentid:"",approval_state:"1",approval_remark:""}}},checked:[],date:{show:!1},array:[],selectArray:[],search:{params:{begin_time:"2024-01-01",end_time:"2024-06-25",approvalView:1,approvalState:1,page_index:1,page_size:10,condition:""},countParams:{begin_date:l().format("YYYY-MM-DD"),end_date:l().format("YYYY-MM-DD")},minDate:new Date(l().year(),l().month()-1,1),maxDate:new Date(l().year(),l().month()+4,15),condition:"",begin_dateChange:"",end_dateChange:"",date:h.query.date||l().format("YYYY-MM-DD"),moment:h.query.moment||"0",total:0}});function v(o,a){a.appointmentid!==void 0&&me.push({name:"teamDetails",query:{id:String(a.appointmentid),type:o}})}function D(o){}function b(o){e.date.show=!1,e.search.page_index=1,e.search.params.begin_time=l(o[0]).format("YYYY-MM-DD"),e.search.params.end_time=l(o[1]).format("YYYY-MM-DD"),e.search.countParams.begin_date=l(o[0]).format("YYYY-MM-DD"),e.search.countParams.end_date=l(o[1]).format("YYYY-MM-DD"),g(),i()}function i(){J(()=>{we(e.search.params).then(o=>{e.array=o.response.data.map((a,c)=>({...a,name:a.name,mobile:a.mobile,museum_date:a.museum_date,visitTime:["","上午","下午"][a.moment],num:a.num,type:["散客预约","团队预约","公务预约"][a.type],reason:a.reason})),e.search.total=o.response.data_count})})}function C(o){e.search.params.condition=o,i()}function A(o){e.search.params.page_index=o,i()}function g(){ge({begin_date:e.search.countParams.begin_date,end_date:e.search.countParams.end_date}).then(o=>{e.selectArray=[{text:`全天 (${o.response.all_day})人`,value:"0"}]})}const w=W("");function Y(o){o.num<10||(e.checked.includes(o.appointmentid)?w.value.toggleAll(!1):e.checked.push(o.appointmentid))}function M(){te(()=>{_e(()=>{let o=Promise.all(e.checked.map(a=>ve({appointmentid:a,approval_state:e.team.noApproval.formData.approval_state,approval_remark:e.team.noApproval.formData.approval_remark}).then(c=>(e.team.noApproval.show=!1,c))));return e.checked=[],i(),o},!1,"提交中...")})}return X(()=>{g(),i()}),(o,a)=>{const c=ne,V=se,G=re,B=le,d=K,P=Q,I=he,S=_("cs-pop-up"),$=_("cs-header"),j=pe,z=ee,F=ie,U=fe,q=_("cs-card"),R=ue,T=_("cs-page");return u(),f(k,null,[t(P,{show:e.team.noApproval.show,"onUpdate:show":a[3]||(a[3]=n=>e.team.noApproval.show=n),title:"审批"},{footer:s(()=>[r("div",be,[r("div",Ce,[t(d,{onClick:M,round:"",block:"",type:"primary"},{default:s(()=>[p(" 提交")]),_:1})]),r("div",Ae,[t(d,{round:"",block:"",onClick:a[2]||(a[2]=n=>{e.team.noApproval.show=!1})},{default:s(()=>[p("关闭 ")]),_:1})])])]),default:s(()=>[r("div",ke,[t(B,{inset:""},{default:s(()=>[r("div",xe,[De,t(V,{direction:"horizontal",modelValue:e.team.noApproval.formData.approval_state,"onUpdate:modelValue":a[0]||(a[0]=n=>e.team.noApproval.formData.approval_state=n)},{default:s(()=>[t(c,{name:"1"},{default:s(()=>[p("通过")]),_:1}),t(c,{name:"0"},{default:s(()=>[p("不通过")]),_:1})]),_:1},8,["modelValue"])]),t(G,{modelValue:e.team.noApproval.formData.approval_remark,"onUpdate:modelValue":a[1]||(a[1]=n=>e.team.noApproval.formData.approval_remark=n),rows:"2",autosize:"",label:"备注",type:"textarea",maxlength:"50",placeholder:"请输入备注","show-word-limit":""},null,8,["modelValue"])]),_:1})])]),_:1},8,["show"]),t(S,{closeable:!0,height:83,show:e.date.show,onClose:a[4]||(a[4]=()=>e.date.show=!1)},{content:s(()=>[r("div",Ye,[t(I,{"allow-same-day":!0,"close-on-click-overlay":!0,maxDate:e.search.maxDate,minDate:e.search.minDate,poppable:!1,type:"range",onConfirm:b},null,8,["maxDate","minDate"])])]),_:1},8,["show"]),r("div",Me,[r("div",Ve,[t($,{onSearchFun:C}),r("div",Ge,[r("div",Be,[t(z,{class:"aaa"},{default:s(()=>[t(j,{modelValue:e.search.moment,"onUpdate:modelValue":a[5]||(a[5]=n=>e.search.moment=n),options:e.selectArray,onChange:D},null,8,["modelValue","options"])]),_:1})]),r("div",{class:"text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white",onClick:a[6]||(a[6]=n=>e.date.show=!0)},[r("span",null,[p(Z(e.search.countParams.begin_date+"到"+e.search.countParams.end_date),1),t(F,{class:"ml-1",name:"setting"})])])])]),r("div",Pe,[t(R,{ref_key:"checkboxGroup",ref:w,modelValue:e.checked,"onUpdate:modelValue":a[7]||(a[7]=n=>e.checked=n)},{default:s(()=>[(u(!0),f(k,null,ae(e.array,(n,N)=>(u(),oe(q,{key:N,item:n,onClick:y=>Y(n)},{checkbox:s(()=>[t(U,{disabled:n.num<10,name:n.appointmentid},null,8,["disabled","name"])]),default:s(()=>[r("div",Ie,[t(d,{class:"w-[47%] text-gray-600",plain:"",size:"small",type:"primary",onClick:x(y=>v("noApprove",n),["stop"])},{default:s(()=>[p("审批 ")]),_:2},1032,["onClick"]),t(d,{class:"w-[47%] text-gray-600",plain:"",size:"small",onClick:x(y=>v("approval",n),["stop"])},{default:s(()=>[p("详情 ")]),_:2},1032,["onClick"])])]),_:2},1032,["item","onClick"]))),128))]),_:1},8,["modelValue"]),e.checked.length?(u(),f("div",Se,[t(d,{onClick:a[8]||(a[8]=n=>e.team.noApproval.show=!0),round:"",type:"primary"},{default:s(()=>[p("批量审批")]),_:1})])):H("",!0)]),r("div",$e,[t(T,{total:e.search.total,onPageChange:A},null,8,["total"])])])],64)}}},Ne=E(je,[["__scopeId","data-v-75f06149"]]);export{Ne as default};
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-5a821851.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,8 +5,8 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>博物馆预约管理</title>
<script type="module" crossorigin src="./assets/index-5a821851.js"></script>
<link rel="stylesheet" href="./assets/index-84864f7f.css">
<script type="module" crossorigin src="./assets/index-2da6e532.js"></script>
<link rel="stylesheet" href="./assets/index-8a5425e5.css">
</head>
<body>
<div id="app"></div>
......
......@@ -16,6 +16,8 @@
"js-cookie": "^3.0.5",
"jweixin-module": "^1.6.0",
"lodash": "^4.17.21",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"vant": "^4.6.6",
"vconsole": "^3.15.1",
"vue": "^3.3.4",
......@@ -2697,6 +2699,64 @@
"node": ">=6"
}
},
"node_modules/pinia": {
"version": "2.1.7",
"resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.1.7.tgz",
"integrity": "sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==",
"dependencies": {
"@vue/devtools-api": "^6.5.0",
"vue-demi": ">=0.14.5"
},
"funding": {
"url": "https://github.com/sponsors/posva"
},
"peerDependencies": {
"@vue/composition-api": "^1.4.0",
"typescript": ">=4.4.4",
"vue": "^2.6.14 || ^3.3.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
},
"typescript": {
"optional": true
}
}
},
"node_modules/pinia-plugin-persistedstate": {
"version": "3.2.1",
"resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.1.tgz",
"integrity": "sha512-MK++8LRUsGF7r45PjBFES82ISnPzyO6IZx3CH5vyPseFLZCk1g2kgx6l/nW8pEBKxxd4do0P6bJw+mUSZIEZUQ==",
"peerDependencies": {
"pinia": "^2.0.0"
}
},
"node_modules/pinia/node_modules/vue-demi": {
"version": "0.14.9",
"resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.9.tgz",
"integrity": "sha512-dC1TJMODGM8lxhP6wLToncaDPPNB3biVxxRDuNCYpuXwi70ou7NsGd97KVTJ2omepGId429JZt8oaZKeXbqxwg==",
"hasInstallScript": true,
"bin": {
"vue-demi-fix": "bin/vue-demi-fix.js",
"vue-demi-switch": "bin/vue-demi-switch.js"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^3.0.0-0 || ^2.6.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
}
},
"node_modules/pinyin": {
"version": "2.11.2",
"resolved": "https://registry.npmmirror.com/pinyin/-/pinyin-2.11.2.tgz",
......@@ -5818,6 +5878,29 @@
"dev": true,
"optional": true
},
"pinia": {
"version": "2.1.7",
"resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.1.7.tgz",
"integrity": "sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==",
"requires": {
"@vue/devtools-api": "^6.5.0",
"vue-demi": ">=0.14.5"
},
"dependencies": {
"vue-demi": {
"version": "0.14.9",
"resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.9.tgz",
"integrity": "sha512-dC1TJMODGM8lxhP6wLToncaDPPNB3biVxxRDuNCYpuXwi70ou7NsGd97KVTJ2omepGId429JZt8oaZKeXbqxwg==",
"requires": {}
}
}
},
"pinia-plugin-persistedstate": {
"version": "3.2.1",
"resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.1.tgz",
"integrity": "sha512-MK++8LRUsGF7r45PjBFES82ISnPzyO6IZx3CH5vyPseFLZCk1g2kgx6l/nW8pEBKxxd4do0P6bJw+mUSZIEZUQ==",
"requires": {}
},
"pinyin": {
"version": "2.11.2",
"resolved": "https://registry.npmmirror.com/pinyin/-/pinyin-2.11.2.tgz",
......
import { type AxiosRequestConfig } from "axios";
/**
* 删除模板
* /api/AnnouncementTemplate/DelTemplate
*/
export declare function getApiAnnouncementTemplateDelTemplate(params: GetApiAnnouncementTemplateDelTemplateParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
export interface GetApiAnnouncementTemplateDelTemplateParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除模板
* /api/AnnouncementTemplate/DelTemplate
*/
export function getApiAnnouncementTemplateDelTemplate(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/AnnouncementTemplate/DelTemplate`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取模板列表
* /api/AnnouncementTemplate/GetTemplateList
*/
export declare function getApiAnnouncementTemplateGetTemplateList(params: GetApiAnnouncementTemplateGetTemplateListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
template: string;
is_enable: number;
createtime: string;
is_del: number;
};
}, any>>;
export interface GetApiAnnouncementTemplateGetTemplateListParams {
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取模板列表
* /api/AnnouncementTemplate/GetTemplateList
*/
export function getApiAnnouncementTemplateGetTemplateList(params, config) {
const paramsInput = {
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/AnnouncementTemplate/GetTemplateList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 启用禁用模板
* /api/AnnouncementTemplate/ModifyEnable
*/
export declare function getApiAnnouncementTemplateModifyEnable(params: GetApiAnnouncementTemplateModifyEnableParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
export interface GetApiAnnouncementTemplateModifyEnableParams {
id?: string;
enableStatus?: number;
}
import request from "../../../../util/axios.js";
/**
* 启用禁用模板
* /api/AnnouncementTemplate/ModifyEnable
*/
export function getApiAnnouncementTemplateModifyEnable(params, config) {
const paramsInput = {
id: params.id,
enableStatus: params.enableStatus,
};
return request.get(`/api/AnnouncementTemplate/ModifyEnable`, {
params: paramsInput,
...config,
});
}
export * from "./postApiAnnouncementTemplateAddTemplate";
export * from "./getApiAnnouncementTemplateGetTemplateList";
export * from "./postApiAnnouncementTemplateUpdateTemplate";
export * from "./getApiAnnouncementTemplateDelTemplate";
export * from "./getApiAnnouncementTemplateModifyEnable";
export * from "./postApiAnnouncementTemplateAddTemplate";
export * from "./getApiAnnouncementTemplateGetTemplateList";
export * from "./postApiAnnouncementTemplateUpdateTemplate";
export * from "./getApiAnnouncementTemplateDelTemplate";
export * from "./getApiAnnouncementTemplateModifyEnable";
import { type AxiosRequestConfig } from "axios";
import { type AddAnnouncementTemplateRequest } from "../../interface";
/**
* 新增公告模板
* /api/AnnouncementTemplate/AddTemplate
*/
export declare function postApiAnnouncementTemplateAddTemplate(input?: AddAnnouncementTemplateRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 新增公告模板
* /api/AnnouncementTemplate/AddTemplate
*/
export function postApiAnnouncementTemplateAddTemplate(input, config) {
return request.post(`/api/AnnouncementTemplate/AddTemplate`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type UpdateTemplateRequest } from "../../interface";
/**
* 修改公告
* /api/AnnouncementTemplate/UpdateTemplate
*/
export declare function postApiAnnouncementTemplateUpdateTemplate(input?: UpdateTemplateRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
import request from "../../../../util/axios.js";
/**
* 修改公告
* /api/AnnouncementTemplate/UpdateTemplate
*/
export function postApiAnnouncementTemplateUpdateTemplate(input, config) {
return request.post(`/api/AnnouncementTemplate/UpdateTemplate`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取公务预约记录人数汇总
* /api/Background/api/guest/GetOfficialCount
*/
export declare function getApiBackgroundApiGuestGetOfficialCount(params: GetApiBackgroundApiGuestGetOfficialCountParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
all_day: number;
forenoon: number;
afternoon: number;
};
}, any>>;
export interface GetApiBackgroundApiGuestGetOfficialCountParams {
begin_date: string;
end_date: string;
}
import request from "../../../../util/axios.js";
/**
* 获取公务预约记录人数汇总
* /api/Background/api/guest/GetOfficialCount
*/
export function getApiBackgroundApiGuestGetOfficialCount(params, config) {
const paramsInput = {
begin_date: params.begin_date,
end_date: params.end_date,
};
return request.get(`/api/Background/api/guest/GetOfficialCount`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取团队预约记录人数汇总
* /api/Background/api/guest/GetTeamCount
*/
export declare function getApiBackgroundApiGuestGetTeamCount(params: GetApiBackgroundApiGuestGetTeamCountParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
all_day: number;
forenoon: number;
afternoon: number;
};
}, any>>;
export interface GetApiBackgroundApiGuestGetTeamCountParams {
begin_date: string;
end_date: string;
}
import request from "../../../../util/axios.js";
/**
* 获取团队预约记录人数汇总
* /api/Background/api/guest/GetTeamCount
*/
export function getApiBackgroundApiGuestGetTeamCount(params, config) {
const paramsInput = {
begin_date: params.begin_date,
end_date: params.end_date,
};
return request.get(`/api/Background/api/guest/GetTeamCount`, {
params: paramsInput,
...config,
});
}
......@@ -8,6 +8,8 @@ export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetTeamCount";
export * from "./getApiBackgroundApiGuestGetOfficialCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
export * from "./getApiBackgroundApiGuestGetAppointmentAllInfo";
export * from "./postApiBackgroundApiGuestAppointmentApproval";
......
......@@ -8,6 +8,8 @@ export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetTeamCount";
export * from "./getApiBackgroundApiGuestGetOfficialCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
export * from "./getApiBackgroundApiGuestGetAppointmentAllInfo";
export * from "./postApiBackgroundApiGuestAppointmentApproval";
......
export * from "./getApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./postApiDbFirstGetFrameFiles";
export * from "./postApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
......
export * from "./getApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./postApiDbFirstGetFrameFiles";
export * from "./postApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
......
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export declare function postApiDbFirstGetFrameFiles(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export function postApiDbFirstGetFrameFiles(input, config) {
return request.post(`/api/DbFirst/GetFrameFiles`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export declare function postApiDbFirstGetModelFiles(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export function postApiDbFirstGetModelFiles(input, config) {
return request.post(`/api/DbFirst/GetModelFiles`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除闭馆配置
* /api/DoorClose/api/door/DelateDoorClose
*/
export declare function getApiDoorCloseApiDoorDelateDoorClose(params: GetApiDoorCloseApiDoorDelateDoorCloseParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiDoorCloseApiDoorDelateDoorCloseParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除闭馆配置
* /api/DoorClose/api/door/DelateDoorClose
*/
export function getApiDoorCloseApiDoorDelateDoorClose(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/DoorClose/api/door/DelateDoorClose`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取闭馆公告
* /api/DoorClose/api/door/GetDoorClose
*/
export declare function getApiDoorCloseApiDoorGetDoorClose(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
isClose: number;
content: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取闭馆公告
* /api/DoorClose/api/door/GetDoorClose
*/
export function getApiDoorCloseApiDoorGetDoorClose(config) {
return request.get(`/api/DoorClose/api/door/GetDoorClose`, config);
}
export * from "./getApiDoorCloseApiDoorGetDoorCloseAll";
export * from "./getApiDoorCloseApiDoorGetDoorCloseInfo";
export * from "./postApiDoorCloseApiDoorDoorCloseInfoSave";
export * from "./getApiDoorCloseApiDoorGetDoorClose";
export * from "./getApiDoorCloseApiDoorDelateDoorClose";
export * from "./getApiDoorCloseApiDoorGetDoorCloseAll";
export * from "./getApiDoorCloseApiDoorGetDoorCloseInfo";
export * from "./postApiDoorCloseApiDoorDoorCloseInfoSave";
export * from "./getApiDoorCloseApiDoorGetDoorClose";
export * from "./getApiDoorCloseApiDoorDelateDoorClose";
export * from "./AccessRecord";
export * from "./admin";
export * from "./AnnouncementTemplate";
export * from "./Background";
export * from "./Carousel";
export * from "./ChangeCommit";
......
export * from "./AccessRecord";
export * from "./admin";
export * from "./AnnouncementTemplate";
export * from "./Background";
export * from "./Carousel";
export * from "./ChangeCommit";
......
export interface AddAnnouncementTemplateRequest {
/**
* Desc:公告模板
* Default:
* Nullable:True
*/
template?: string;
}
export interface AnnouncementTemplate {
id?: string;
template?: string;
is_enable?: number;
createtime?: string;
is_del?: number;
}
import { type AnnouncementTemplate } from "../../interface";
export interface AnnouncementTemplateMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: AnnouncementTemplate;
}
export interface GetDoorCloseResponse {
/**
* Desc:0-无公告/1-有公告
* Default:
* Nullable:True
*/
isClose?: number;
/**
* Desc:公告内容
* Default:
* Nullable:True
*/
content?: string;
}
export interface UpdateTemplateRequest {
/**
* Desc:公告配置id
* Default:
* Nullable:False
*/
id?: string;
/**
* Desc:公告模板
* Default:
* Nullable:True
*/
template?: string;
}
......@@ -9,6 +9,10 @@ export * from "./apiTypes/AdminMessageModelPageModel";
export * from "./apiTypes/VMuseuTeacher";
export * from "./apiTypes/VMuseuTeacherPageModel";
export * from "./apiTypes/VMuseuTeacherPageModelMessageModel";
export * from "./apiTypes/AddAnnouncementTemplateRequest";
export * from "./apiTypes/AnnouncementTemplate";
export * from "./apiTypes/AnnouncementTemplateMessageModel";
export * from "./apiTypes/UpdateTemplateRequest";
export * from "./apiTypes/AppointmentStateViewModel";
export * from "./apiTypes/AppointmentStateViewModelMessageModel";
export * from "./apiTypes/WeekAccessStateModel";
......@@ -34,6 +38,7 @@ export * from "./apiTypes/ChangeCommitMessageModelPageModel";
export * from "./apiTypes/DoorClose";
export * from "./apiTypes/DoorClosePageModel";
export * from "./apiTypes/DoorCloseMessageModel";
export * from "./apiTypes/GetDoorCloseResponse";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
......
......@@ -9,6 +9,10 @@ export * from "./apiTypes/AdminMessageModelPageModel";
export * from "./apiTypes/VMuseuTeacher";
export * from "./apiTypes/VMuseuTeacherPageModel";
export * from "./apiTypes/VMuseuTeacherPageModelMessageModel";
export * from "./apiTypes/AddAnnouncementTemplateRequest";
export * from "./apiTypes/AnnouncementTemplate";
export * from "./apiTypes/AnnouncementTemplateMessageModel";
export * from "./apiTypes/UpdateTemplateRequest";
export * from "./apiTypes/AppointmentStateViewModel";
export * from "./apiTypes/AppointmentStateViewModelMessageModel";
export * from "./apiTypes/WeekAccessStateModel";
......@@ -34,6 +38,7 @@ export * from "./apiTypes/ChangeCommitMessageModelPageModel";
export * from "./apiTypes/DoorClose";
export * from "./apiTypes/DoorClosePageModel";
export * from "./apiTypes/DoorCloseMessageModel";
export * from "./apiTypes/GetDoorCloseResponse";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
......
export * as gwyy from './公务预约.png'
export * as skyy from './散客预约.png'
export * as yygl from './预约管理.png'
export * as tdyy from './团队预约.png'
export * as tx from './头像.png'
export * as qh from './qh.png'
export * from './images/index.js'
......@@ -8,6 +8,9 @@
<span class="text-[14px] text-gray-400 " v-if="item.mobile">({{ item.mobile }})</span>
<div class="w-[50px] h-[50px] absolute right-2 top-3">
<slot name="image"></slot>
<div class="w-[20px] h-[50px] absolute right-2 top-0">
<slot name="checkbox"></slot>
</div>
</div>
</div>
<div class=" p-3 w-full min-h-[60%]">
......@@ -19,7 +22,7 @@
{{ item.museum_date }}
</div>
</div>
<div class="w-full h-[30px] flex">
<div v-if="item.visitTime" class="w-full h-[30px] flex">
<div class="w-1/3 h-full">
<span class="text-gray-600">入场时间</span>
</div>
......
......@@ -40,9 +40,9 @@ const emit = defineEmits(['searchFun', 'searchPeople'])
const asc = getCurrentInstance().appContext.config.globalProperties
function back() {
window.location.href = "/wx/eicrs/Home/TeaCenter";
router.push({
name: 'home'
})
}
const search = ref('')
......
import userHeader from './userHeader.vue'
import publicDetails from '@/pages/messageDetails/publicDetails.vue'
export function useComponents(app) {
/***
* 自定义组件,通过vm 挂载全局
* */
app.component('userHeader', userHeader);
app.component('publicDetails', publicDetails);
}
<script setup>
import {defineAsyncComponent, getCurrentInstance, onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
import {getImage} from "@/hooks/index.js";
import ConfigDict from '@/config/modules/dict.js'
const props = defineProps({
array: Array,
nmt: Boolean,
nmb: Boolean,
})
import {showImagePreview} from 'vant';
const init = reactive({
array: [],
params: {
id: '',
type: ''
}
})
function imagePreview(All, index) {
//获取评价图片数组 遍历得到预览结构
let image = []
All.map((cur, inde) => {
image.push(window.location.origin + cur.path)
})
showImagePreview({
images: image,
startPosition: index,
});
}
function getData() {
//详情
let strategy = {
'record': () => {
hooks.myEncapsulationFunction(() => {
return api.getApiRecordGetRecordInfo({id: init.params.id}).then(async res => {
//获取活动信息
let info = res.response
init.array = [
{label: '房间名称', value: info.room_name, mt: '10px'},
{label: '房间地址', value: info.room_address},
{label: '房间类型', value: info.room_type_name},
{label: '占座人', value: info.name, mt: '10px'},
{
label: '占座时间',
value: `${info.begin_time}-${info.end_time.split(' ')[1]} ${hooks.calculateTimeDifference(info.begin_time.split(' ')[1], info.end_time.split(' ')[1])}小时`,
},
{label: '座位', value: info.seat_code_name + '号', mt: '10px'},
{label: '活动状态', tag: ConfigDict.activityStatus[info.state]},
{label: '签到状态', tag: info.sign_state_name},
]
info.leave_state !== 0 ? init.array.push({
label: '暂离状态',
tag: ConfigDict.transientState[info.leave_state],
mt: '10px'
},
{label: '归位时间', value: info.leave_time},) : ''
await api.getApiRecordGetRecordTrackDetailsList({id: init.params.id}).then(re => {
//获取活动的签到记录
init.array.push({label: '签到记录', record: re.response, mt: '10px'})
return re
})
return res
})
}, true, '加载中...')
}
}
strategy[init.params.type]()
}
function onClickLeft() {
//返回指定路径或上一级
let back = router.currentRoute.value.query.name
if (back) {
router.replace({name: back})
} else {
router.back()
}
}
onMounted(() => {
init.params = {
id: router.currentRoute.value.query.id,
type: router.currentRoute.value.query.type,
}
getData()
})
</script>
<template>
<div class="w-screen h-screen bg-gray-100 box-border relative">
<!-- 顶部栏目 -->
<div class="sticky top-0 w-full h-[46px] z-50">
<van-nav-bar
left-text="返回"
left-arrow
@click-left="onClickLeft"
title="详情"
>
</van-nav-bar>
</div>
<!-- content-->
<div class="w-full h-[calc(100%-116px)] overflow-y-auto " v-font:{color:`#515A6E`,size:18}>
<div v-for="(item,index) in init.array" :key="index" :style="{marginTop:item.mt}"
class="w-full h-auto bg-white">
<div class=" w-full min-h-[50px] flex p-3 ">
<!-- 标题-->
<div class="w-[30%] h-full flex items-center text-wrap box-border">
<span>{{ item.label }}</span>
</div>
<!-- 内容为文字-->
<div v-if="item.value" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">{{ item.value }}</span>
</div>
<!-- 内容为图片-->
<div v-else-if="item.image" class="w-[70%] h-full flex items-center text-wrap box-border">
<div class=" w-full min-h-[80px] flex justify-start">
<div v-for="(ite,inde) in item.image" :key="inde" @click="imagePreview(item.image,inde)"
class="m-1 w-[70px] h-[60px] border border-dashed border-gray-300">
<img :src="ite.path" class="w-full h-full">
</div>
</div>
</div>
<!-- 内容为星级-->
<div v-else-if="item.level" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">
<van-rate
readonly
v-model="item.level"
:size="25"
:count="5"
color="#FE9E0B"
void-icon="star"
void-color="#eee"
/>
</span>
</div>
<!-- 内容为标签-->
<div v-else-if="item.tag" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">
<van-tag size="large" type="success">
<span>
{{ item.tag }}
</span>
</van-tag>
</span>
</div>
<!-- 内容为时间线-->
<div v-else-if="item.record" class="w-[70%] h-full flex items-center text-wrap box-border">
<van-steps class="ml-1 w-full" direction="vertical" :active="0">
<van-step v-for="(item,index) in item.record" :key="index">
<h3>【{{ ConfigDict.signOrSignOutStatus[item.sign_state] }}】</h3>
<p>地址:{{ item.address }}</p>
<p>时间:{{ item.createtime }}</p>
<div v-for="(ite,inde) in [item.file_info]" :key="inde" @click="imagePreview([item.file_info],inde)"
class="m-1 w-[70px] h-[60px] border border-dashed border-gray-300">
<img :src="ite.path" class="w-full h-full">
</div>
</van-step>
</van-steps>
</div>
</div>
</div>
</div>
<div class=" w-full h-[70px] z-50 ccFlex p-2 shadow shadow-gray-600">
<van-button @click="onClickLeft" round block>返 回</van-button>
</div>
</div>
</template>
<style scoped lang="less">
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import * as hooks from '@/hooks/index.js';
import {getCurrentInstance, onMounted, reactive} from "vue";
import {useUserInfo} from "@/store/modules/user.js";
import * as conf from '@/config/index.js'
const emit = defineEmits(['getCurRole'])
const userInfo = useUserInfo();
const init = reactive({
userInfo: {
show: false,
formData: userInfo.userInfo,
roleArray: [],
}
})
const getImage = (imageKey) => {
return hooks.getImage(imageKey)
}
function back() {
// init.userInfo.formData.type !== 0 ? window.location.href = "/TeacherMobOA" : window.location.href = "/StudentMobileOA"
window.location.href = "/wx/eicrs/Home/TeaCenter";
}
function switchPermission(curRole) {
//切换权限
let strategy = {
'1': () => {
//管理员
},
'2': () => {
//一般管理员
emit('getCurRole', curRole)
userInfo.setUserInfo({...userInfo.userInfo, role: curRole})
},
'3': () => {
//普通用户
emit('getCurRole', curRole)
userInfo.setUserInfo({...userInfo.userInfo, role: curRole})
},
}
strategy[curRole]()
}
onMounted(() => {
})
</script>
<template>
<div class=" flex items-center w-full h-[50px] rounded-[8px] ">
<div class="w-1/2 h-full mt-1 ml-1">
<div @click="back" style="background: white" class="child flex justify-center items-center">
<van-icon style="font-size: 30px;font-weight: bold" name="wap-home-o"/>
</div>
</div>
<div @click="init.userInfo.show = true" class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2">
<div class="font-bold text-[18px] ml flex justify-end font-[黑体] text-[#000]">
{{ init.userInfo.formData.name }}
</div>
<div class="text-[16px] text-neutral-400"> {{ init.userInfo.formData.name }}
</div>
</div>
<div class="w-[50px] h-[50px] relative ccFlex">
<van-image
round
width="100%"
height="100%"
:src="getImage('tx')"
/>
<div class="absolute bottom-0 right-0">
<van-image
round
width="15px"
height="15px"
:src="getImage('qh')"
/>
</div>
</div>
</div>
</div>
<!-- 身份权限 -->
<van-popup
v-model:show="init.userInfo.show"
round
:style="{ width: '90%',top:'30vh' }"
>
<div style="
display: flex;
justify-content: center;
align-items: center;
background: #f4f4f4;
height: 50px;
position: sticky;
top: 0;"
>身份切换
</div>
<van-radio-group v-model="init.userInfo.formData.role" @change="switchPermission">
<van-cell-group>
<van-cell v-for="(item,index) in init.userInfo.roleArray" :key="index" :title="item.label" clickable
@click="init.userInfo.formData.role = item.value" size="large">
<template #right-icon>
<van-radio :name="String(item.value)"/>
</template>
</van-cell>
</van-cell-group>
</van-radio-group>
</van-popup>
</template>
<style scoped>
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
</style>
export * from './modules/request.js'
export * from './modules/dict.js'
export const roleStatus = {
//权限字典
'1': '管理员',
'2': '一般管理员',
'3': '普通用户',
}
class ConfigDict {
constructor() {
this.roleStatus = {
//权限字典
'1': '管理员',
'2': '一般管理员',
'3': '普通用户',
}
this.roomStatus = {
//房间状态
'0': '禁用',
'1': '启用',
}
this.seatStatus = {
//座位状态
'0': '禁用',
'1': '启用',
}
this.seatTimeStatus = {
//房间状态
'0': '可预约',
'1': '不可预约',
}
this.noGoodRecordStatus = {
//不良记录状态
'0': '过期',
'1': '违约',
'2': '取消',
}
this.signOrSignOutStatus = {
//签到签退状态
'0': '未签到',
'1': '签到',
'2': '签退',
}
this.activityStatus = {
//活动状态
'0': '待使用',
'1': '使用中',
'2': '已结束',
'3': '踢除',
'9': '已取消',
}
this.activityStatusTagType = {
//活动状态
'0': 'primary',
'1': 'success',
'2': 'warning',
'3': 'warning',
'9': 'danger',
}
this.transientState = {
//暂离状态
'0': '未暂离',
'1': '暂离',
'2': '暂离超时',
}
this.appointmentImageKey = {
'0': 'dsy1',
'1': 'syz1',
'2': 'yjs1',
'3': 'tc1',
'9': 'yqx1',
}
}
}
export default new ConfigDict()
export const baseURL = '/occupyseat'
import router from "../router/index.js";
import {showConfirmDialog, showNotify} from "vant";
import {closeToast, showConfirmDialog, showFailToast, showLoadingToast, showNotify, showSuccessToast} from "vant";
import 'vant/lib/index.css';
import Cookies from "js-cookie";
import * as images from '@/assets/index.js'
export const getImage = (imageName) => {
//通过 imageName 参数 获取图片
return images[imageName].default
}
export const tabChange = (e) => {
let object = {
"0": () => router.push({
......@@ -27,23 +31,40 @@ export const go2Router = (path) => {
})
}
export async function myEncapsulationFunction(fun) {
// Spin.show()
export async function myEncapsulationFunction(fun, isShowSuccessText = false, loadingText = '正在提交') {
const toast = showLoadingToast({
duration: 0,
forbidClick: true,
message: loadingText,
});
let res = await fun()
if (isShowSuccessText) return toast.close();
try {
switch (res.code) {
case 1 :
showNotify({type: 'success', message: res.msg});
console.log("🚀🚀res🚀,", res)
toast.close()
showSuccessToast({
message: res.msg
})
setTimeout(() => closeToast(), 1500)
break;
default :
showNotify({type: 'danger', message: res.msg_detail});
console.log("🚀🚀default🚀,", res)
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
// Spin.hide()
return res
} catch (e) {
showNotify({type: 'danger', message: res.msg_detail || '报错,无msg_detail'});
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
}
......
......@@ -8,6 +8,8 @@ import VueCookies from 'vue-cookies'
//
// const vConsole = new VConsole();
import * as api from "../src/api/index.js"
import {useComponents} from "@/components/index.js";
import {initStore} from "@/store/index.js";
//自定义封装组件
......@@ -31,6 +33,20 @@ app.component('csHeader', header)
app.component('csPage', page)
app.component('csPopUp', popup)
app.component('csSiteSelectHeader', siteSelectHeader)
app.directive('font', (el, binding, vnode, prevVNode) => {
let arg = binding.arg !== void 0 ? JSON.parse(JSON.stringify(binding.arg)) : '{}';
//...eval(`(${arg})` 字符串转对象
let argument = {...{family: '黑体', size: '16', color: '#FFFFFF'}, ...eval(`(${arg})`)};
el.style.fontFamily = argument.family;
el.style.fontSize = argument.size + 'px';
el.style.color = argument.color;
})
initStore(app)
/**
* useComponents
* */
useComponents(app)
app.use(router)
......
......@@ -2,91 +2,83 @@
<div style="display: flex; justify-content: center; margin-top: 50%">
<van-loading size="38px" color="#1989fa" vertical> 登录中</van-loading>
</div>
<!-- {{router.currentRoute.value.query.token}}-->
</template>
<script setup>
// import router from "../router/index.js";
import Cookies from 'js-cookie'
import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
import * as api from '../api/dist/controller/index.js'
import {CheckLoginTest} from "../api/index.js";
import {useUserInfo} from "@/store/modules/index.js";
const userInfo = useUserInfo()
const router = useRouter()
const getTokenAction = async (date) => {
const res = await api.SSOPC(date)
if (res === void 0) {
console.log("🚀🚀🚀,", res)
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
// access_token.token_content
Cookies.set('museum-managemnet-wx-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.getApiLoginApiLoginGetTokenInfo()
Cookies.set('museum-managemnet-wx-info', user.response)
await router.replace({
name: 'welcome'
function setUserInfo() { //获取用户信息
api.getApiLoginApiLoginGetTokenInfo().then(user => {
userInfo.setUserInfo({...user.response})
router.replace({
name: 'home'
})
}
})
}
const getTokenActionWx = async (date) => {
const res = await api.getApiLoginApiLoginManageWxLogin(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('museum-managemnet-wx-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.getApiLoginApiLoginGetTokenInfo()
Cookies.set('museum-managemnet-wx-info', user.response)
await router.replace({
name: 'welcome'
})
}
function goTo403() {
//跳转403
router.replace({
name: '403'
})
}
const getToken = async () => {
let policyObject = {
const policyObject = {
"wx": () => {
//asc
api.getApiLoginSsopcNew({token: router.currentRoute.value.query.token}).then(res => {
if (res.code !== 1) goTo403()
else {
userInfo.setToken(res.response)
setUserInfo()
}
})
},
"asc": async () => {
//ASC单点
let date = {
token: router.currentRoute.value.query.token
}
await getTokenAction(date)
api.getApiLoginSsopcNew({token: router.currentRoute.value.query.token}).then(res => {
if (res.code !== 1) goTo403()
else {
userInfo.setToken(res.response)
setUserInfo()
}
})
},
"first": async () => {
"first": () => {
//AIC单点
let date = {
sign: router.currentRoute.value.query.sign,
code: router.currentRoute.value.query.code,
timestamp: router.currentRoute.value.query.timestamp,
}
await getTokenActionWx(date)
api.getApiLoginApiLoginManageWxLogin(date).then(res => {
if (res.code !== 1) goTo403()
else {
userInfo.setToken(res.response)
setUserInfo()
}
})
},
"test": async () => {
"test": () => {
//测试token
const res = await api.getApiLoginApiLoginTest({userName: 'asc666'})
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('museum-managemnet-wx-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.getApiLoginApiLoginGetTokenInfo()
Cookies.set('museum-managemnet-wx-info', user.response)
await router.replace({
name: 'welcome'
})
}
api.getApiLoginApiLoginTest({card: 'syjs295'}).then(res => {
if (res.code !== 1) goTo403();
else {
userInfo.setToken(res.response)
setUserInfo()
}
})
}
}
//使用策略
policyObject[router.currentRoute.value.query.type]()
}
onMounted(() => {
getToken()
......
<script setup>
import * as hooks from '@/hooks/index.js'
import {useRouter} from "vue-router";
const router = useRouter()
function handleInterview(key) {
//栏目入口
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<div class="w-screen h-screen bg-gray-50 ">
<div class="w-full h-[60px] p-2">
<userHeader/>
</div>
<div class="w-full h-[128px] p-2">
<van-image width="100%" height="100%" :src="hooks.getImage('yygl')"></van-image>
</div>
<div class="w-full h-[calc(100%-188px)] p-2 ">
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('skyy')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('tdyy')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('tdyy')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font ">公务预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('officialAppointmentsHaveBeenNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('gwyy')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('officialAppointmentsHaveBeenApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('gwyy')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
</template>
<style lang="less" scoped>
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
<script setup>
import {onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
const props = defineProps({
array: Array,
nmt: Boolean,
nmb: Boolean,
})
import {showImagePreview} from 'vant';
const init = reactive({
team: {
noApproval: {
show: false,
formData: {
appointmentid: '',
approval_state: '1',
approval_remark: '',
}
},
},
array: [],
params: {
id: '',
type: ''
}
})
function imagePreview(All, index) {
//获取评价图片数组 遍历得到预览结构
let image = []
All.map((cur, inde) => {
image.push(window.location.origin + cur.path)
})
showImagePreview({
images: image,
startPosition: index,
});
}
function onClickLeft() {
//返回指定路径或上一级
let back = router.currentRoute.value.query.name
if (back) {
router.replace({name: back})
} else {
router.back()
}
}
onMounted(() => {
})
</script>
<template>
<div class="w-screen h-screen bg-gray-100 box-border relative">
<!-- 顶部栏目 -->
<div class="sticky top-0 w-full h-[46px] z-50">
<van-nav-bar
left-text="返回"
left-arrow
@click-left="onClickLeft"
title="详情"
>
</van-nav-bar>
</div>
<!-- content-->
<div class="w-full h-[calc(100%-116px)] overflow-y-auto " v-font:{color:`#515A6E`,size:18}>
<div v-for="(item,index) in props.array" :key="index" :style="{marginTop:item.mt}"
class="w-full h-auto bg-white">
<div class=" w-full min-h-[50px] flex p-3 ">
<!-- 标题-->
<div class="w-[30%] h-full flex items-center text-wrap box-border">
<span>{{ item.label }}</span>
</div>
<!-- 内容为文字-->
<div v-if="item.value" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">{{ item.value }}</span>
</div>
<!-- 内容为图片-->
<div v-else-if="item.image" class="w-[70%] h-full flex items-center text-wrap box-border">
<div class=" w-full min-h-[80px] flex justify-start">
<div v-for="(ite,inde) in item.image" :key="inde" @click="imagePreview(item.image,inde)"
class="m-1 w-[70px] h-[60px] border border-dashed border-gray-300">
<img :src="ite.path" class="w-full h-full">
</div>
</div>
</div>
<!-- 内容为星级-->
<div v-else-if="item.level" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">
<van-rate
readonly
v-model="item.level"
:size="25"
:count="5"
color="#FE9E0B"
void-icon="star"
void-color="#eee"
/>
</span>
</div>
<!-- 内容为标签-->
<div v-else-if="item.tag" class="w-[70%] h-full flex items-center text-wrap box-border">
<span class="ml-1">
<van-tag size="large" type="success">
<span>
{{ item.tag }}
</span>
</van-tag>
</span>
</div>
<!-- 内容为时间线-->
<div v-else-if="item.record" class="w-[70%] h-full flex items-center text-wrap box-border">
<van-steps class="ml-1 w-full" direction="vertical" active="99" active-color="#07c160"
inactive-color="#07c160">
<van-step v-for="(ite,index) in item.record" :key="index">
<h3>【同行人】{{ ite.name }}</h3>
<p v-if="ite.position">职位:{{ ite.position }}</p>
<p v-if="ite.identity_num"> 身份证号:{{ ite.identity_num }}</p>
<p>手机号码:{{ ite.mobile }}</p>
<!-- <div v-for="(ite,inde) in [item.file_info]" :key="inde" @click="imagePreview([item.file_info],inde)"
class="m-1 w-[70px] h-[60px] border border-dashed border-gray-300">
<img :src="ite.path" class="w-full h-full">
</div>-->
</van-step>
</van-steps>
</div>
</div>
</div>
</div>
<div class=" w-full h-[70px] z-50 flex justify-between items-center p-2 shadow shadow-gray-600">
<slot name="default"></slot>
</div>
</div>
</template>
<style scoped lang="less">
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/dist/controller/index.js'
import {useRoute} from "vue-router";
const route = useRoute()
import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs";
import router from "@/router/index.js";
const init = reactive({
entryStatus: {
value: '',
columns: [
{text: `未入馆`, value: '0'},
{text: `已入馆`, value: '1'},
],
showPicker: false,
},
approval: {
value: '',
columns: [
{text: `未通过`, value: '0'},
{text: `通过`, value: '2'},
],
showPicker: false,
},
advancedfilter: {
show: false,
},
date: {
show: false,
},
array: [],
selectArray: [],
search: {
params: {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-04-25',//初始日期
approvalView: 2,
approvalState: 3,
museum_state: "",
page_index: 1,
page_size: 10,
condition: '',
},
countParams: {
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
},
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0",
total: 0,
}
})
function detail(key, value) {
//跳转详情页
if (value.appointmentid !== void 0) router.push({
name: 'officeDetails',
query: {
id: String(value.appointmentid),
type: key
}
})
}
function selectChange(e) {
//时段下拉框
return
init.search.page_index = 1
init.search.moment = e
getData()
}
function onConfirm(e) {
//选择日期
/* init.date.show = false
init.search.page_index = 1
init.search.moment = '0'
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()*/
init.date.show = false
init.search.page_index = 1
init.search.params.begin_time = dayjs(e[0]).format('YYYY-MM-DD')
init.search.params.end_time = dayjs(e[1]).format('YYYY-MM-DD')
init.search.countParams.begin_date = dayjs(e[0]).format('YYYY-MM-DD')
init.search.countParams.end_date = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()
}
function getData() {
//初始化
hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetTeamList(init.search.params).then(res => {
init.array = res.response.data.map((cur, index) => {
return {
...cur,
name: cur.name,
mobile: cur.mobile,
museum_date: cur.museum_date,
visitTime: ['', '上午', '下午'][cur.moment],
num: cur.num,
type: ['散客预约', '团队预约', '公务预约'][cur.type],
reason: cur.reason,
}
})
init.search.total = res.response.data_count
})
})
}
function searchFun(e) {
//搜索框事件回调 点击icon 提供searchValue
init.search.params.condition = e
getData()
}
function pageChange(e) {
//分页 通过组件获取当前页
init.search.params.page_index = e
getData()
}
function getSelectArray() {
//获取下拉框数组
api.getApiBackgroundApiGuestGetTeamCount({
begin_date: init.search.countParams.begin_date,
end_date: init.search.countParams.end_date,
})
.then(res => {
init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'},
]
})
}
function doSearch() {
//输入search 查询
getData()
}
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
function onConfirm_approval(val) {
//审批状态
const info = val.selectedOptions[0];
init.approval.value = info.text;
init.search.params.approvalState = info.value;
init.approval.showPicker = false;
}
function onConfirm_entryStatus(val) {
//入馆状态
const info = val.selectedOptions[0];
init.entryStatus.value = info.text;
init.search.params.museum_state = info.value;
init.entryStatus.showPicker = false;
}
function reset() {
//重置操作
init.search.params = {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-04-25',//初始日期
approvalView: 2,
approvalState: 3,
museum_state: "",
page_index: 1,
page_size: 10,
condition: '',
}
//情况选择器文字
let array = ['approval', 'entryStatus'];
array.forEach(current => init[current].value = '')
getData()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
getData();
init.advancedfilter.show = false;
}
onMounted(() => {
getSelectArray()
getData()
})
</script>
<template>
<!-- popup弹窗-(占座房间) -->
<van-popup v-model:show="init.approval.showPicker" position="bottom" round>
<van-picker
title="审批状态"
show-toolbar
:columns="init.approval.columns"
@confirm="onConfirm_approval"
@cancel="init.approval.showPicker = false"
/>
</van-popup>
<!-- popup弹窗-(入馆状态) -->
<van-popup v-model:show="init.entryStatus.showPicker" position="bottom" round>
<van-picker
title="入馆状态"
show-toolbar
:columns="init.entryStatus.columns"
@confirm="onConfirm_entryStatus"
@cancel="init.entryStatus.showPicker = false"
/>
</van-popup>
<!-- 高级筛选 -->
<van-popup
v-model:show="init.advancedfilter.show"
round
position="bottom"
:style="{ height: '65%' }"
>
<div class="title-filter">
高级筛选<span class="icon" @click="init.advancedfilter.show = false"
><van-icon name="cross"
/></span>
</div>
<div class="form-field">
<van-field
v-model="init.approval.value"
label="审批状态"
readonly
@click="init.approval.showPicker = true;"
placeholder="请选择审批状态"
:border="false"
:colon="true"
right-icon="arrow-down"
label-align="right"
label-width="4.3em"
/>
<van-field
v-model="init.entryStatus.value"
label="入馆状态"
readonly
@click="init.entryStatus.showPicker = true;"
placeholder="请选择入馆状态"
:border="false"
:colon="true"
right-icon="arrow-down"
label-align="right"
label-width="4.3em"
/>
</div>
<div class="btn">
<van-row gutter="20">
<van-col span="12"
>
<van-button type="default" round style="width: 100%;height: 38px" @click="reset"
>重置
</van-button
>
</van-col
>
<van-col span="12"
>
<van-button
type="primary"
round
style="width: 100%;height: 38px"
@click="query_handle"
>查找
</van-button
>
</van-col
>
</van-row>
</div>
</van-popup>
<!-- //邀请参与人-->
<cs-pop-up :height="83" :show="init.date.show" :closeable="true" @close="()=>init.date.show = false">
<template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar
:allow-same-day="true"
:close-on-click-overlay="true"
:maxDate="init.search.maxDate"
:minDate="init.search.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"
/>
</div>
</template>
</cs-pop-up>
<div class="w-screen h-screen">
<div class="w-full h-[110px] bg-red-600">
<div style="border-top: 1px solid #ebedf0">
<van-search
style="display: flex; justify-content: center; align-items: center"
clearable
v-model="init.search.params.condition"
show-action
placeholder="请输入关键词"
@update:model-value="doSearch"
>
<template #action>
<van-button
type="default"
style="width: 100px; font-size: 15px; border-radius: 8px" @click="advancedfilter"
>高级筛选
</van-button>
</template>
</van-search>
</div>
<!-- <cs-header @search-fun="searchFun"></cs-header>-->
<div class="w-full h-[48px] flex">
<div class="w-1/2 h-[48px]">
<van-dropdown-menu class="aaa">
<van-dropdown-item v-model="init.search.moment" :options="init.selectArray"
@change="selectChange">
</van-dropdown-item>
</van-dropdown-menu>
</div>
<div class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
init.search.countParams.begin_date + '到' + init.search.countParams.end_date
}}<van-icon class="ml-1" name="setting"/></span>
</div>
</div>
</div>
<div class="w-full h-[calc(100%-167px)] bg-gray-100 overflow-y-scroll p-3">
<cs-card v-for="(item,index) in init.array" :key="index" :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end">
<van-button class="w-[47%] text-gray-600" plain size="small"
@click="detail('approval',item)">详情
</van-button>
</div>
</template>
</cs-card>
</div>
<div class="w-full h-[55px] ">
<cs-page :total="init.search.total" @pageChange="pageChange"></cs-page>
</div>
</div>
</template>
<style scoped>
.aaa {
--van-dropdown-menu-shadow: red;
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
/* background-image: url("../../../assets/gxjtsy.png");*/
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import {defineAsyncComponent, onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
import {showImagePreview} from 'vant';
const publicDetails = defineAsyncComponent(() => import('@/pages/messageDetails/publicDetails.vue'))
const init = reactive({
team: {
noApproval: {
show: false,
formData: {
appointmentid: '',
approval_state: '2',
approval_remark: '',
}
},
},
array: [],
params: {
id: '',
type: ''
}
})
function imagePreview(All, index) {
//获取评价图片数组 遍历得到预览结构
let image = []
All.map((cur, inde) => {
image.push(window.location.origin + cur.path)
})
showImagePreview({
images: image,
startPosition: index,
});
}
function getData() {
//详情
hooks.myEncapsulationFunction(() => {
return api.getApiBackgroundApiGuestGetAppointmentInfo({appointmentid: init.params.id}).then(async res => {
//获取活动信息
let info = res.response
init.array = [
{label: '领队姓名', value: info.name, mt: '10px'},
{label: '身份证号', value: info.identity_num},
{label: '电话号码', value: info.mobile},
{
label: '参观日期',
value: `${info.begin_time.split(' ')[0]} ${info.begin_time.split(' ')[1]}~${info.end_time.split(' ')[1]}`,
mt: '10px'
},
{label: '预估人数', value: info.num},
{label: '车辆信息', value: info.plate_number},
{label: '参观事由', value: info.reason, mt: '10px'},
{
label: '同行人员',
record: info.users,
mt: '10px'
}
]
return res
})
}, true, '加载中...')
}
function onClickLeft() {
//返回指定路径或上一级
let back = router.currentRoute.value.query.name
if (back) {
router.replace({name: back})
} else {
router.back()
}
}
function submit() {
//提交审批
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return api.postApiBackgroundApiGuestAppointmentApproval({
appointmentid: init.params.id,
approval_state: init.team.noApproval.formData.approval_state,
approval_remark: init.team.noApproval.formData.approval_remark,
}).then(res => {
if (res.code === 1) {
init.team.noApproval.show = false
onClickLeft()
}
return res
})
}, false, '提交中...')
})
}
onMounted(() => {
init.params = {
id: router.currentRoute.value.query.id,
type: router.currentRoute.value.query.type,
}
getData()
})
</script>
<template>
<publicDetails :array="init.array">
<slot v-if="init.params.type === 'noApprove'" name="default">
<div class="w-[65%] ">
<van-button type="primary" @click="init.team.noApproval.show = true" round block>审 批</van-button>
</div>
<div class="w-[30%] ">
<van-button @click="onClickLeft" round block>返 回</van-button>
</div>
</slot>
<slot v-else name="default">
<div class="w-[100%] ">
<van-button @click="onClickLeft" round block>返 回</van-button>
</div>
</slot>
</publicDetails>
<!--团队审批(居中) -->
<van-dialog v-model:show="init.team.noApproval.show" title="审批">
<div class="flex justify-center items-center w-full h-[160px] ">
<van-cell-group inset>
<div class="w-full flex">
<span class="mr-4">审批状态</span>
<van-radio-group direction="horizontal" v-model="init.team.noApproval.formData.approval_state">
<van-radio name="2">通过</van-radio>
<van-radio name="0">不通过</van-radio>
</van-radio-group>
</div>
<van-field
v-model="init.team.noApproval.formData.approval_remark"
rows="2"
autosize
label="备注"
type="textarea"
maxlength="50"
placeholder="请输入备注"
show-word-limit
/>
</van-cell-group>
</div>
<template #footer>
<div class="w-full h-[60px] flex justify-between items-center border border-solid px-2">
<div class="w-[65%]">
<van-button @click="submit" round block type="primary"> 提交</van-button>
</div>
<div class="w-[30%]">
<van-button round block @click="init.team.noApproval.show = false;">关闭
</van-button>
</div>
</div>
</template>
</van-dialog>
</template>
<style scoped lang="less">
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/dist/controller/index.js'
import {useRoute} from "vue-router";
const route = useRoute()
import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs";
import router from "@/router/index.js";
const init = reactive({
team: {
noApproval: {
show: false,
formData: {
appointmentid: '',
approval_state: '2',
approval_remark: '',
}
},
},
checked: [],
date: {
show: false,
},
array: [],
selectArray: [],
search: {
params: {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-07-25',//初始日期
approvalView: 1,
approvalState: 1,
page_index: 1,
page_size: 10,
condition: '',
},
countParams: {
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
},
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0",
total: 0,
}
})
function detail(key, value) {
//跳转详情页
if (value.appointmentid !== void 0) router.push({
name: 'officeDetails',
query: {
id: String(value.appointmentid),
type: key
}
})
}
function selectChange(e) {
//时段下拉框
return
init.search.page_index = 1
init.search.moment = e
getData()
}
function onConfirm(e) {
//选择日期
/* init.date.show = false
init.search.page_index = 1
init.search.moment = '0'
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()*/
init.date.show = false
init.search.page_index = 1
init.search.params.begin_time = dayjs(e[0]).format('YYYY-MM-DD')
init.search.params.end_time = dayjs(e[1]).format('YYYY-MM-DD')
init.search.countParams.begin_date = dayjs(e[0]).format('YYYY-MM-DD')
init.search.countParams.end_date = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()
}
function getData() {
//初始化
hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetOfficialList(init.search.params).then(res => {
init.array = res.response.data.map((cur, index) => {
return {
...cur,
name: cur.name,
mobile: cur.mobile,
museum_date: cur.museum_date,
visitTime: ['', '上午', '下午'][cur.moment],
num: cur.num,
type: ['散客预约', '团队预约', '公务预约'][cur.type],
reason: cur.reason,
}
})
init.search.total = res.response.data_count
})
})
}
function searchFun(e) {
//搜索框事件回调 点击icon 提供searchValue
init.search.params.condition = e
getData()
}
function pageChange(e) {
//分页 通过组件获取当前页
init.search.params.page_index = e
getData()
}
function getSelectArray() {
//获取下拉框数组
api.getApiBackgroundApiGuestGetOfficialCount({
begin_date: init.search.countParams.begin_date,
end_date: init.search.countParams.end_date,
})
.then(res => {
init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'},
]
})
}
const checkboxGroup = ref('')
function checkCard(item) {
//选中卡片
if (init.checked.includes(item.appointmentid)) {
checkboxGroup.value.toggleAll(false);
} else {
init.checked.push(item.appointmentid)
}
}
function submit() {
//提交审批
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
let result = Promise.all(init.checked.map(cur => {
return api.postApiBackgroundApiGuestAppointmentApproval({
appointmentid: cur,
approval_state: init.team.noApproval.formData.approval_state,
approval_remark: init.team.noApproval.formData.approval_remark,
}).then(res => {
init.team.noApproval.show = false
return res
})
}))
init.checked = []
getData()
return result
}, false, '提交中...')
})
}
onMounted(() => {
getSelectArray()
getData()
})
</script>
<template>
<!-- 批量审批 -->
<van-dialog v-model:show="init.team.noApproval.show" title="审批">
<div class="flex justify-center items-center w-full h-[160px] ">
<van-cell-group inset>
<div class="w-full flex">
<span class="mr-4">审批状态</span>
<van-radio-group direction="horizontal" v-model="init.team.noApproval.formData.approval_state">
<van-radio name="2">通过</van-radio>
<van-radio name="0">不通过</van-radio>
</van-radio-group>
</div>
<van-field
v-model="init.team.noApproval.formData.approval_remark"
rows="2"
autosize
label="备注"
type="textarea"
maxlength="50"
placeholder="请输入备注"
show-word-limit
/>
</van-cell-group>
</div>
<template #footer>
<div class="w-full h-[60px] flex justify-between items-center border border-solid px-2">
<div class="w-[65%]">
<van-button @click="submit" round block type="primary"> 提交</van-button>
</div>
<div class="w-[30%]">
<van-button round block @click="init.team.noApproval.show = false;">关闭
</van-button>
</div>
</div>
</template>
</van-dialog>
<!-- 日历-->
<cs-pop-up :closeable="true" :height="83" :show="init.date.show" @close="()=>init.date.show = false">
<!-- //邀请参与人-->
<template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar
:allow-same-day="true"
:close-on-click-overlay="true"
:maxDate="init.search.maxDate"
:minDate="init.search.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"
/>
</div>
</template>
</cs-pop-up>
<div class="w-screen h-screen relative">
<div class="w-full h-[102px] bg-red-600">
<!-- header-->
<cs-header @search-fun="searchFun"></cs-header>
<!-- search-->
<div class="w-full h-[48px] flex">
<div class="w-1/2 h-[48px]">
<van-dropdown-menu class="aaa">
<van-dropdown-item v-model="init.search.moment" :options="init.selectArray"
@change="selectChange">
</van-dropdown-item>
</van-dropdown-menu>
</div>
<div class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
init.search.countParams.begin_date + '到' + init.search.countParams.end_date
}}<van-icon class="ml-1" name="setting"/></span>
</div>
</div>
</div>
<!-- list-->
<div class=" relative w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3">
<van-checkbox-group ref="checkboxGroup" v-model="init.checked">
<cs-card v-for="(item,index) in init.array" :key="index" :item="item" @click="checkCard(item)">
<template #checkbox>
<van-checkbox :name="item.appointmentid"></van-checkbox>
</template>
<template v-slot:default>
<div class="w-full h-full flex justify-between">
<van-button class="w-[47%] text-gray-600" plain size="small" type="primary"
@click.stop="detail('noApprove',item)">审批
</van-button>
<van-button class="w-[47%] text-gray-600" plain size="small"
@click.stop="detail('approval',item)">详情
</van-button>
</div>
</template>
</cs-card>
</van-checkbox-group>
<div v-if="!!init.checked.length" class="w-[90px] ml-auto sticky right-2 bottom-12">
<van-button @click="init.team.noApproval.show = true" round type="primary">批量审批</van-button>
</div>
</div>
<!-- page-->
<div class="w-full h-[55px] ">
<cs-page :total="init.search.total" @pageChange="pageChange"></cs-page>
</div>
</div>
</template>
<style scoped>
.aaa {
--van-dropdown-menu-shadow: red;
}
</style>
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/dist/controller/index.js'
import {useRoute} from "vue-router";
const route = useRoute()
import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs";
import router from "@/router/index.js";
const init = reactive({
entryStatus: {
value: '',
columns: [
{text: `未入馆`, value: '0'},
{text: `已入馆`, value: '1'},
],
showPicker: false,
},
approval: {
value: '',
columns: [
{text: `未通过`, value: '0'},
{text: `通过`, value: '2'},
],
showPicker: false,
},
advancedfilter: {
show: false,
},
date: {
show: false,
},
array: [],
selectArray: [],
search: {
params: {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-04-25',//初始日期
approvalView: 2,
approvalState: 3,
museum_state: "",
page_index: 1,
page_size: 10,
condition: '',
},
countParams: {
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
},
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0",
total: 0,
}
})
function detail(key, value) {
//跳转详情页
if (value.appointmentid !== void 0) router.push({
name: 'teamDetails',
query: {
id: String(value.appointmentid),
type: key
}
})
}
function selectChange(e) {
//时段下拉框
return
init.search.page_index = 1
init.search.moment = e
getData()
}
function onConfirm(e) {
//选择日期
/* init.date.show = false
init.search.page_index = 1
init.search.moment = '0'
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()*/
init.date.show = false
init.search.page_index = 1
init.search.params.begin_time = dayjs(e[0]).format('YYYY-MM-DD')
init.search.params.end_time = dayjs(e[1]).format('YYYY-MM-DD')
init.search.countParams.begin_date = dayjs(e[0]).format('YYYY-MM-DD')
init.search.countParams.end_date = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()
}
function getData() {
//初始化
hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetTeamList(init.search.params).then(res => {
init.array = res.response.data.map((cur, index) => {
return {
...cur,
name: cur.name,
mobile: cur.mobile,
museum_date: cur.museum_date,
visitTime: ['', '上午', '下午'][cur.moment],
num: cur.num,
type: ['散客预约', '团队预约', '公务预约'][cur.type],
reason: cur.reason,
}
})
init.search.total = res.response.data_count
})
})
}
function searchFun(e) {
//搜索框事件回调 点击icon 提供searchValue
init.search.params.condition = e
getData()
}
function pageChange(e) {
//分页 通过组件获取当前页
init.search.params.page_index = e
getData()
}
function getSelectArray() {
//获取下拉框数组
api.getApiBackgroundApiGuestGetTeamCount({
begin_date: init.search.countParams.begin_date,
end_date: init.search.countParams.end_date,
})
.then(res => {
init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'},
]
})
}
function doSearch() {
//输入search 查询
getData()
}
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
function onConfirm_approval(val) {
//审批状态
const info = val.selectedOptions[0];
init.approval.value = info.text;
init.search.params.approvalState = info.value;
init.approval.showPicker = false;
}
function onConfirm_entryStatus(val) {
//入馆状态
const info = val.selectedOptions[0];
init.entryStatus.value = info.text;
init.search.params.museum_state = info.value;
init.entryStatus.showPicker = false;
}
function reset() {
//重置操作
init.search.params = {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-04-25',//初始日期
approvalView: 2,
approvalState: 3,
museum_state: "",
page_index: 1,
page_size: 10,
condition: '',
}
//情况选择器文字
let array = ['approval', 'entryStatus'];
array.forEach(current => init[current].value = '')
getData()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
getData();
init.advancedfilter.show = false;
}
onMounted(() => {
getSelectArray()
getData()
})
</script>
<template>
<!-- popup弹窗-(占座房间) -->
<van-popup v-model:show="init.approval.showPicker" position="bottom" round>
<van-picker
title="审批状态"
show-toolbar
:columns="init.approval.columns"
@confirm="onConfirm_approval"
@cancel="init.approval.showPicker = false"
/>
</van-popup>
<!-- popup弹窗-(入馆状态) -->
<van-popup v-model:show="init.entryStatus.showPicker" position="bottom" round>
<van-picker
title="入馆状态"
show-toolbar
:columns="init.entryStatus.columns"
@confirm="onConfirm_entryStatus"
@cancel="init.entryStatus.showPicker = false"
/>
</van-popup>
<!-- 高级筛选 -->
<van-popup
v-model:show="init.advancedfilter.show"
round
position="bottom"
:style="{ height: '65%' }"
>
<div class="title-filter">
高级筛选<span class="icon" @click="init.advancedfilter.show = false"
><van-icon name="cross"
/></span>
</div>
<div class="form-field">
<van-field
v-model="init.approval.value"
label="审批状态"
readonly
@click="init.approval.showPicker = true;"
placeholder="请选择审批状态"
:border="false"
:colon="true"
right-icon="arrow-down"
label-align="right"
label-width="4.3em"
/>
<van-field
v-model="init.entryStatus.value"
label="入馆状态"
readonly
@click="init.entryStatus.showPicker = true;"
placeholder="请选择入馆状态"
:border="false"
:colon="true"
right-icon="arrow-down"
label-align="right"
label-width="4.3em"
/>
</div>
<div class="btn">
<van-row gutter="20">
<van-col span="12"
>
<van-button type="default" round style="width: 100%;height: 38px" @click="reset"
>重置
</van-button
>
</van-col
>
<van-col span="12"
>
<van-button
type="primary"
round
style="width: 100%;height: 38px"
@click="query_handle"
>查找
</van-button
>
</van-col
>
</van-row>
</div>
</van-popup>
<!-- //邀请参与人-->
<cs-pop-up :height="83" :show="init.date.show" :closeable="true" @close="()=>init.date.show = false">
<template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar
:allow-same-day="true"
:close-on-click-overlay="true"
:maxDate="init.search.maxDate"
:minDate="init.search.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"
/>
</div>
</template>
</cs-pop-up>
<div class="w-screen h-screen">
<div class="w-full h-[110px] bg-red-600">
<div style="border-top: 1px solid #ebedf0">
<van-search
style="display: flex; justify-content: center; align-items: center"
clearable
v-model="init.search.params.condition"
show-action
placeholder="请输入关键词"
@update:model-value="doSearch"
>
<template #action>
<van-button
type="default"
style="width: 100px; font-size: 15px; border-radius: 8px" @click="advancedfilter"
>高级筛选
</van-button>
</template>
</van-search>
</div>
<!-- <cs-header @search-fun="searchFun"></cs-header>-->
<div class="w-full h-[48px] flex">
<div class="w-1/2 h-[48px]">
<van-dropdown-menu class="aaa">
<van-dropdown-item v-model="init.search.moment" :options="init.selectArray"
@change="selectChange">
</van-dropdown-item>
</van-dropdown-menu>
</div>
<div class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
init.search.countParams.begin_date + '到' + init.search.countParams.end_date
}}<van-icon class="ml-1" name="setting"/></span>
</div>
</div>
</div>
<div class="w-full h-[calc(100%-167px)] bg-gray-100 overflow-y-scroll p-3">
<cs-card v-for="(item,index) in init.array" :key="index" :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end">
<van-button class="w-[47%] text-gray-600" plain size="small"
@click="detail('approval',item)">详情
</van-button>
</div>
</template>
</cs-card>
</div>
<div class="w-full h-[55px] ">
<cs-page :total="init.search.total" @pageChange="pageChange"></cs-page>
</div>
</div>
</template>
<style scoped>
.aaa {
--van-dropdown-menu-shadow: red;
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
/* background-image: url("../../../assets/gxjtsy.png");*/
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import {defineAsyncComponent, onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
import {showImagePreview} from 'vant';
const publicDetails = defineAsyncComponent(() => import('@/pages/messageDetails/publicDetails.vue'))
const init = reactive({
team: {
noApproval: {
show: false,
formData: {
appointmentid: '',
approval_state: '1',
approval_remark: '',
}
},
},
array: [],
params: {
id: '',
type: ''
}
})
function imagePreview(All, index) {
//获取评价图片数组 遍历得到预览结构
let image = []
All.map((cur, inde) => {
image.push(window.location.origin + cur.path)
})
showImagePreview({
images: image,
startPosition: index,
});
}
function getData() {
//详情
hooks.myEncapsulationFunction(() => {
return api.getApiBackgroundApiGuestGetAppointmentInfo({appointmentid: init.params.id}).then(async res => {
//获取活动信息
let info = res.response
init.array = [
{label: '领队姓名', value: info.name, mt: '10px'},
{label: '身份证号', value: info.identity_num},
{label: '电话号码', value: info.mobile},
{
label: '参观日期',
value: `${info.begin_time.split(' ')[0]} ${info.begin_time.split(' ')[1]}~${info.end_time.split(' ')[1]}`,
mt: '10px'
},
{label: '预估人数', value: info.num},
{label: '单位名称', value: info.unit},
{label: '车辆信息', value: info.plate_number},
{label: '参观事由', value: info.reason, mt: '10px'},
{
label: '同行人员',
record: info.users,
mt: '10px'
}
]
return res
})
}, true, '加载中...')
}
function onClickLeft() {
//返回指定路径或上一级
let back = router.currentRoute.value.query.name
if (back) {
router.replace({name: back})
} else {
router.back()
}
}
function submit() {
//提交审批
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return api.postApiBackgroundApiGuestAppointmentApproval({
appointmentid: init.params.id,
approval_state: init.team.noApproval.formData.approval_state,
approval_remark: init.team.noApproval.formData.approval_remark,
}).then(res => {
if (res.code === 1) {
init.team.noApproval.show = false
onClickLeft()
}
return res
})
}, false, '提交中...')
})
}
onMounted(() => {
init.params = {
id: router.currentRoute.value.query.id,
type: router.currentRoute.value.query.type,
}
getData()
})
</script>
<template>
<publicDetails :array="init.array">
<slot v-if="init.params.type === 'noApprove'" name="default">
<div class="w-[65%] ">
<van-button type="primary" @click="init.team.noApproval.show = true" round block>审 批</van-button>
</div>
<div class="w-[30%] ">
<van-button @click="onClickLeft" round block>返 回</van-button>
</div>
</slot>
<slot v-else name="default">
<div class="w-[100%] ">
<van-button @click="onClickLeft" round block>返 回</van-button>
</div>
</slot>
</publicDetails>
<!--团队审批(居中) -->
<van-dialog v-model:show="init.team.noApproval.show" title="审批">
<div class="flex justify-center items-center w-full h-[160px] ">
<van-cell-group inset>
<div class="w-full flex">
<span class="mr-4">审批状态</span>
<van-radio-group direction="horizontal" v-model="init.team.noApproval.formData.approval_state">
<van-radio name="1">通过</van-radio>
<van-radio name="0">不通过</van-radio>
</van-radio-group>
</div>
<van-field
v-model="init.team.noApproval.formData.approval_remark"
rows="2"
autosize
label="备注"
type="textarea"
maxlength="50"
placeholder="请输入备注"
show-word-limit
/>
</van-cell-group>
</div>
<template #footer>
<div class="w-full h-[60px] flex justify-between items-center border border-solid px-2">
<div class="w-[65%]">
<van-button @click="submit" round block type="primary"> 提交</van-button>
</div>
<div class="w-[30%]">
<van-button round block @click="init.team.noApproval.show = false;">关闭
</van-button>
</div>
</div>
</template>
</van-dialog>
</template>
<style scoped lang="less">
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
margin: 20px;
}
.aes {
width: 100%;
height: 100%;
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/dist/controller/index.js'
import {useRoute} from "vue-router";
const route = useRoute()
import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs";
import router from "@/router/index.js";
const init = reactive({
team: {
noApproval: {
show: false,
formData: {
appointmentid: '',
approval_state: '1',
approval_remark: '',
}
},
},
checked: [],
date: {
show: false,
},
array: [],
selectArray: [],
search: {
params: {
/* begin_time: dayjs().format('YYYY-MM-DD'),//初始日期
end_time: dayjs().format('YYYY-MM-DD'),//初始日期*/
begin_time: '2024-01-01',//初始日期
end_time: '2024-06-25',//初始日期
approvalView: 1,
approvalState: 1,
page_index: 1,
page_size: 10,
condition: '',
},
countParams: {
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
},
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0",
total: 0,
}
})
function detail(key, value) {
//跳转详情页
if (value.appointmentid !== void 0) router.push({
name: 'teamDetails',
query: {
id: String(value.appointmentid),
type: key
}
})
}
function selectChange(e) {
//时段下拉框
return
init.search.page_index = 1
init.search.moment = e
getData()
}
function onConfirm(e) {
//选择日期
/* init.date.show = false
init.search.page_index = 1
init.search.moment = '0'
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()*/
init.date.show = false
init.search.page_index = 1
init.search.params.begin_time = dayjs(e[0]).format('YYYY-MM-DD')
init.search.params.end_time = dayjs(e[1]).format('YYYY-MM-DD')
init.search.countParams.begin_date = dayjs(e[0]).format('YYYY-MM-DD')
init.search.countParams.end_date = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray()
getData()
}
function getData() {
//初始化
hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetTeamList(init.search.params).then(res => {
init.array = res.response.data.map((cur, index) => {
return {
...cur,
name: cur.name,
mobile: cur.mobile,
museum_date: cur.museum_date,
visitTime: ['', '上午', '下午'][cur.moment],
num: cur.num,
type: ['散客预约', '团队预约', '公务预约'][cur.type],
reason: cur.reason,
}
})
init.search.total = res.response.data_count
})
})
}
function searchFun(e) {
//搜索框事件回调 点击icon 提供searchValue
init.search.params.condition = e
getData()
}
function pageChange(e) {
//分页 通过组件获取当前页
init.search.params.page_index = e
getData()
}
function getSelectArray() {
//获取下拉框数组
api.getApiBackgroundApiGuestGetTeamCount({
begin_date: init.search.countParams.begin_date,
end_date: init.search.countParams.end_date,
})
.then(res => {
init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'},
]
})
}
const checkboxGroup = ref('')
function checkCard(item) {
//选中卡片
if (item.num < 10) return
if (init.checked.includes(item.appointmentid)) {
checkboxGroup.value.toggleAll(false);
} else {
init.checked.push(item.appointmentid)
}
}
function submit() {
//提交审批
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
let result = Promise.all(init.checked.map(cur => {
return api.postApiBackgroundApiGuestAppointmentApproval({
appointmentid: cur,
approval_state: init.team.noApproval.formData.approval_state,
approval_remark: init.team.noApproval.formData.approval_remark,
}).then(res => {
init.team.noApproval.show = false
return res
})
}))
init.checked = []
getData()
return result
}, false, '提交中...')
})
}
onMounted(() => {
getSelectArray()
getData()
})
</script>
<template>
<!-- 批量审批 -->
<van-dialog v-model:show="init.team.noApproval.show" title="审批">
<div class="flex justify-center items-center w-full h-[160px] ">
<van-cell-group inset>
<div class="w-full flex">
<span class="mr-4">审批状态</span>
<van-radio-group direction="horizontal" v-model="init.team.noApproval.formData.approval_state">
<van-radio name="1">通过</van-radio>
<van-radio name="0">不通过</van-radio>
</van-radio-group>
</div>
<van-field
v-model="init.team.noApproval.formData.approval_remark"
rows="2"
autosize
label="备注"
type="textarea"
maxlength="50"
placeholder="请输入备注"
show-word-limit
/>
</van-cell-group>
</div>
<template #footer>
<div class="w-full h-[60px] flex justify-between items-center border border-solid px-2">
<div class="w-[65%]">
<van-button @click="submit" round block type="primary"> 提交</van-button>
</div>
<div class="w-[30%]">
<van-button round block @click="init.team.noApproval.show = false;">关闭
</van-button>
</div>
</div>
</template>
</van-dialog>
<!-- 日历-->
<cs-pop-up :closeable="true" :height="83" :show="init.date.show" @close="()=>init.date.show = false">
<!-- //邀请参与人-->
<template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar
:allow-same-day="true"
:close-on-click-overlay="true"
:maxDate="init.search.maxDate"
:minDate="init.search.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"
/>
</div>
</template>
</cs-pop-up>
<div class="w-screen h-screen relative">
<div class="w-full h-[102px] bg-red-600">
<!-- header-->
<cs-header @search-fun="searchFun"></cs-header>
<!-- search-->
<div class="w-full h-[48px] flex">
<div class="w-1/2 h-[48px]">
<van-dropdown-menu class="aaa">
<van-dropdown-item v-model="init.search.moment" :options="init.selectArray"
@change="selectChange">
</van-dropdown-item>
</van-dropdown-menu>
</div>
<div class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
init.search.countParams.begin_date + '到' + init.search.countParams.end_date
}}<van-icon class="ml-1" name="setting"/></span>
</div>
</div>
</div>
<!-- list-->
<div class=" relative w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3">
<van-checkbox-group ref="checkboxGroup" v-model="init.checked">
<cs-card v-for="(item,index) in init.array" :key="index" :item="item" @click="checkCard(item)">
<template #checkbox>
<van-checkbox :disabled="item.num < 10" :name="item.appointmentid"></van-checkbox>
</template>
<template v-slot:default>
<div class="w-full h-full flex justify-between">
<van-button class="w-[47%] text-gray-600" plain size="small" type="primary"
@click.stop="detail('noApprove',item)">审批
</van-button>
<van-button class="w-[47%] text-gray-600" plain size="small"
@click.stop="detail('approval',item)">详情
</van-button>
</div>
</template>
</cs-card>
</van-checkbox-group>
<div v-if="!!init.checked.length" class="w-[90px] ml-auto sticky right-2 bottom-12">
<van-button @click="init.team.noApproval.show = true" round type="primary">批量审批</van-button>
</div>
</div>
<!-- page-->
<div class="w-full h-[55px] ">
<cs-page :total="init.search.total" @pageChange="pageChange"></cs-page>
</div>
</div>
</template>
<style scoped>
.aaa {
--van-dropdown-menu-shadow: red;
}
</style>
......@@ -6,15 +6,14 @@
<div class="w-full h-[48px] flex">
<div class="w-1/2 h-[48px]">
<van-dropdown-menu class="aaa">
<van-dropdown-item @change="selectChange" v-model="init.search.moment"
:options="init.selectArray">
<van-dropdown-item v-model="init.search.moment" :options="init.selectArray"
@change="selectChange">
</van-dropdown-item>
</van-dropdown-menu>
</div>
<div @click="init.date.show = true"
class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white">
<div class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
beginDate + '到' + endDate
}}<van-icon class="ml-1" name="setting"/></span>
......@@ -22,33 +21,34 @@
</div>
</div>
<div class="w-full h-[calc(100%-157px)] bg-gray-100 overflow-y-scroll p-3">
<cs-card :item="item" v-for="(item,index) in init.array" :key="index">
<cs-card v-for="(item,index) in init.array" :key="index" :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end">
<van-button @click="detail('messageDetails',item)" class="w-1/2 text-gray-600" plain
size="small">详情
<van-button class="w-1/2 text-gray-600" plain size="small"
@click="detail('messageDetails',item)">详情
</van-button>
</div>
</template>
</cs-card>
</div>
<div class="w-full h-[55px] ">
<cs-page :total="init.search.total" @pageChange="pageChange"></cs-page>
</div>
</div>
<cs-pop-up :show="init.date.show" :height="83">
<cs-pop-up :height="83" :show="init.date.show">
<!-- //邀请参与人-->
<template #content>
<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"
:minDate="init.search.minDate"
:maxDate="init.search.maxDate"
:allow-same-day="true"
type="range"
@confirm="onConfirm"/>
<van-calendar
v-model:show="init.search.date"
:allow-same-day="true"
:close-on-click-overlay="false"
:maxDate="init.search.maxDate"
:minDate="init.search.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"/>
</div>
</template>
</cs-pop-up>
......@@ -158,7 +158,6 @@ function getData() {
}
})
init.search.total = res.response.data_count
})
})
}
......@@ -184,14 +183,16 @@ function getSelectArray() {
.then(res => {
init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'},
{text: `上午 (${res.response.forenoon})人`, value: '1'},
{text: `下午 (${res.response.afternoon})人`, value: '2'},
/* {text: `上午 (${res.response.forenoon})人`, value: '1'},
{text: `下午 (${res.response.afternoon})人`, value: '2'},*/
]
})
}
onMounted(() => {
import * as img from '@/assets/index.js'
onMounted(() => {
console.log("🚀🚀img🚀,", img)
getSelectArray()
getData()
})
......
......@@ -9,7 +9,6 @@ const routes = [
name: 'undefinedAuthorization',
path: '/undefinedAuthorization',
component: () => import('../pages/authPage/index.vue'),
},
{
name: 'et',
......@@ -31,6 +30,47 @@ const routes = [
name: 'messageDetails',
path: '/messageDetails',
component: () => import('../pages/messageDetails/index.vue'),
},
{
name: 'home',
path: '/home',
component: () => import('@/pages/home/index.vue'),
},
{
name: 'teamAppointment-approval',
path: '/teamAppointment-approval',
component: () => import('@/pages/teamAppointment/approval.vue'),
},
{
name: 'teamAppointment-noApproval',
path: '/teamAppointment-noApproval',
component: () => import('@/pages/teamAppointment/noApprove.vue'),
},
{
name: 'officialAppointment-approval',
path: '/officialAppointment-approval',
component: () => import('@/pages/officialAppointment/approval.vue'),
},
{
name: 'officialAppointment-noApproval',
path: '/officialAppointment-noApproval',
component: () => import('@/pages/officialAppointment/noApproval.vue'),
},
{
name: 'publicDetails',
path: '/publicDetails',
component: () => import('@/pages/messageDetails/publicDetails.vue'),
},
{
name: 'teamDetails',
path: '/teamDetails',
component: () => import('@/pages/teamAppointment/details.vue'),
},
{
name: 'officeDetails',
path: '/officeDetails',
component: () => import('@/pages/officialAppointment/details.vue'),
}
]
......
import {createPinia} from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const store = createPinia();
store.use(piniaPluginPersistedstate);
const initStore = (app) => {
/**
* 传入VM,将Pinia挂载到VM中
* */
app.use(store);
};
export {store, initStore}
export * from './user.js'
import {defineStore} from "pinia";
import {store} from "@/store/index.js";
/***
* 用户状态管理
* */
export const useUserInfo = defineStore({
id: 'museumManagementUserInfo',
state: () => ({
tokenInfo: {
access_token: {
token_content: "",
expires: "",
},
refresh_token: {
token_content: "",
expires: "",
}
},
userInfo: {}
}),
actions: {
removeUserInfo() {
//清空token 和用户信息
this.userInfo = {}
this.tokenInfo = {}
},
setToken(response) {
//设置token
this.tokenInfo = response
},
getToken() {
//获取token
return this.tokenInfo.access_token.token_content
},
setUserInfo(response) {
//设置用户信息
this.userInfo = response
},
getUserInfo() {
//获取用户信息
return this.userInfo
},
},
getters: {},
persist: {
paths: ["tokenInfo", "userInfo"]
}
})
export function useUserInfoStoreWithOut() {
//重置store
return useUserInfo(store);
}
......@@ -7,6 +7,8 @@ import dayjs from 'dayjs';
import * as api from '../api/dist/controller/index.js'
// import {BASE_URL} from './publicURL.js'
// const BASE_URL = BASE_URL // 替换成你的API的基本URL
import {useUserInfo} from "@/store/modules/index.js";
const axiosInstance = axios.create({
// baseURL: 'https://asc.hnasct.cn/DutyManagement',
......@@ -39,12 +41,13 @@ const refreshTokenAction = async () => {
};
axiosInstance.interceptors.request.use(
(config) => {
const userInfo = useUserInfo()
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
let token = Cookies.get('museum-managemnet-wx-token')
config.headers['Authorization'] = 'Bearer ' + token
config.headers['Authorization'] = 'Bearer ' + userInfo.getToken()
if (config.url.indexOf('ImageUpLoad') !== -1)
config.headers['Content-Type'] = 'multipart/form-data'
refreshTokenAction()
return config;
},
(error) => {
......
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'; // 关键代码
import Components from 'unplugin-vue-components/vite';
import {VantResolver} from 'unplugin-vue-components/resolvers';
......@@ -13,6 +14,13 @@ export default defineConfig({
}),
],
resolve: {
//src => @
alias: {
// 关键代码
'@': path.resolve(__dirname, './src')
}
},
base: './',
server: {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或