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

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

上级 590d8923
流水线 #24372 已通过 ,包含阶段
in 32 second
import{h as i,u as p,i as g,o as l,c as _,a as k,j as w,L as d,k as f,l as n,p as c}from"./index-96312938.js";function x(a){const t={userName:a.userName};return i.get("/api/Login/api/Login/test",{params:t})}function y(a){const t={code:a.code,sign:a.sign,timestamp:a.timestamp};return i.get("/api/Login/api/Login/ManageWxLogin",{params:t})}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(a){const t=p(),r=async o=>{const e=await(void 0)(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},m=async o=>{const e=await y(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},u=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await r(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await m(e)},test:async()=>{const e=await x({userName:"asc666"});if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return g(()=>{u()}),(o,e)=>{const s=d;return l(),_("div",L,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:w(()=>[f(" 登录中")]),_:1})])}}};export{A as default}; import{h as i,u as p,i as g,o as l,c as _,a as k,j as w,L as d,k as f,l as n,p as c}from"./index-0a4d5320.js";function x(a){const t={userName:a.userName};return i.get("/api/Login/api/Login/test",{params:t})}function y(a){const t={code:a.code,sign:a.sign,timestamp:a.timestamp};return i.get("/api/Login/api/Login/ManageWxLogin",{params:t})}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(a){const t=p(),r=async o=>{const e=await(void 0)(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},m=async o=>{const e=await y(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}},u=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await r(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await m(e)},test:async()=>{const e=await x({userName:"asc666"});if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("museum-managemnet-wx-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await c();n.set("museum-managemnet-wx-info",s.response),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return g(()=>{u()}),(o,e)=>{const s=d;return l(),_("div",L,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:w(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{u as i,i as l,o as p,c as k,a as _,j as d,l as s,L as m,k as y}from"./index-96312938.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default}; import{u as i,i as l,o as p,c as k,a as _,j as d,l as s,L as m,k as y}from"./index-0a4d5320.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{h as x,Z as h,$ as y,i as v,a1 as w,o,c as r,a2 as t,a as g,F as m,a4 as p,a7 as k,a6 as B,a3 as c,I}from"./index-0a4d5320.js";function q(u){const n={appointmentid:u.appointmentid};return x.get("/api/Background/api/guest/GetAppointmentInfo",{params:n})}const A={class:"w-screen h-screen bg-gray-200 overflow-y-scroll"},G={class:"w-full h-11 bg-white flex"},j=t("div",{class:"w-[87%] h-full text-gray-600 flex justify-center items-center"},[t("span",{class:"mr-6"},"预约详情")],-1),C=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"姓名")],-1),D={class:"w-[70%] h-full flex items-center text-wrap box-border"},F=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"身份证号码")],-1),N={class:"w-[70%] h-full flex items-center text-wrap box-border"},V=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"手机号码")],-1),E={class:"w-[70%] h-full flex items-center text-wrap box-border"},M={__name:"index",setup(u){const n=h(),s=y({users:[],array:[],date:"",moment:""});function d(){k.push({name:"welcome",query:{moment:n.query.moment,begin_date:n.query.begin_date,end_date:n.query.end_date}})}function _(){q({appointmentid:n.query.appointmentid}).then(e=>{s.date=e.response.museum_date,s.moment=e.response.moment?e.response.moment:0,s.users=e.response.users.map(l=>({name:l.name,identity_num:l.identity_num,mobile:l.mobile})),s.array=[[{label:"姓名",value:e.response.name},{label:"身份证号",value:e.response.identity_num},{label:"电话号码",value:e.response.mobile}],[{label:"日期",value:e.response.museum_date},{label:"入场时间",value:["","上午","下午"][e.response.moment]+" "+(e.response.begin_time?e.response.begin_time.split(" ")[1]:"无")+"-"+(e.response.end_time?e.response.end_time.split(" ")[1]:"无")},{label:"人数",value:e.response.num+"人"},{label:"预约类型",value:["散客预约","团队预约","公务预约"][e.response.type]}],[{label:"参观事由",value:e.response.reason}]]})}return v(()=>{_()}),(e,l)=>{const f=I,b=w("cs-detail-card");return o(),r("div",A,[t("div",G,[t("div",{onClick:d,class:"w-[13%] text-gray-600 h-full flex justify-center items-center text-[30px]"},[g(f,{class:"",name:"arrow-left"})]),j]),(o(!0),r(m,null,p(s.array,(a,i)=>(o(),B(b,{array:a,key:i},null,8,["array"]))),128)),(o(!0),r(m,null,p(s.users,(a,i)=>(o(),r("div",{class:"w-full min-h-[150px] mt-3 flex p-3 bg-white flex-wrap",key:i},[C,t("div",D,[t("span",null,c(a.name),1)]),F,t("div",N,[t("span",null,c(a.identity_num),1)]),V,t("div",E,[t("span",null,c(a.mobile),1)])]))),128))])}}};export{M as default};
import{h as b,Z as h,$ as v,i as w,a1 as y,o as a,c as r,a2 as t,a as g,F as p,a4 as u,a7 as k,a6 as B,a3 as c,I}from"./index-96312938.js";function A(m){const o={appointmentid:m.appointmentid};return b.get("/api/Background/api/guest/GetAppointmentInfo",{params:o})}const q={class:"w-screen h-screen bg-gray-200 overflow-y-scroll"},G={class:"w-full h-11 bg-white flex"},j=t("div",{class:"w-[87%] h-full text-gray-600 flex justify-center items-center"},[t("span",{class:"mr-6"},"预约详情")],-1),C=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"姓名")],-1),D={class:"w-[70%] h-full flex items-center text-wrap box-border"},F=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"身份证号码")],-1),N={class:"w-[70%] h-full flex items-center text-wrap box-border"},V=t("div",{class:"w-[30%] h-full flex items-center text-wrap box-border"},[t("span",null,"手机号码")],-1),E={class:"w-[70%] h-full flex items-center text-wrap box-border"},M={__name:"index",setup(m){const o=h(),n=v({users:[],array:[],date:"",moment:""});function d(){k.push({name:"welcome",query:{date:n.date,moment:o.query.moment}})}function _(){A({appointmentid:o.query.appointmentid}).then(e=>{n.date=e.response.museum_date,n.moment=e.response.moment?e.response.moment:0,n.users=e.response.users.map(l=>({name:l.name,identity_num:l.identity_num,mobile:l.mobile})),n.array=[[{label:"姓名",value:e.response.name},{label:"身份证号",value:e.response.identity_num},{label:"电话号码",value:e.response.mobile}],[{label:"日期",value:e.response.museum_date},{label:"参观场次",value:["","上午","下午"][e.response.moment]+" "+(e.response.begin_time?e.response.begin_time.split(" ")[1]:"无")+"-"+(e.response.end_time?e.response.end_time.split(" ")[1]:"无")},{label:"人数",value:e.response.num+"人"},{label:"预约类型",value:["散客预约","团队预约","公务预约"][e.response.type]}],[{label:"参观事由",value:e.response.reason}]]})}return w(()=>{_()}),(e,l)=>{const f=I,x=y("cs-detail-card");return a(),r("div",q,[t("div",G,[t("div",{onClick:d,class:"w-[13%] text-gray-600 h-full flex justify-center items-center text-[30px]"},[g(f,{class:"",name:"arrow-left"})]),j]),(a(!0),r(p,null,u(n.array,(s,i)=>(a(),B(x,{array:s,key:i},null,8,["array"]))),128)),(a(!0),r(p,null,u(n.users,(s,i)=>(a(),r("div",{class:"w-full min-h-[150px] mt-3 flex p-3 bg-white flex-wrap",key:i},[C,t("div",D,[t("span",null,c(s.name),1)]),F,t("div",N,[t("span",null,c(s.identity_num),1)]),V,t("div",E,[t("span",null,c(s.mobile),1)])]))),128))])}}};export{M as default};
import{u as n,o as c,c as s,a as e,F as m}from"./index-96312938.js";import{N as _,E as p}from"./index-f8e8c276.js";import"./use-height-73c8bd07.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{k as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-0a4d5320.js";import{N as _,E as p}from"./index-9f8b7bf7.js";import"./use-height-c138b7f3.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{k as default};
此差异已折叠。
import{u as n,o as c,c as s,a as e,F as m}from"./index-96312938.js";import{N as _,E as p}from"./index-f8e8c276.js";import"./use-height-73c8bd07.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-0a4d5320.js";import{N as _,E as p}from"./index-9f8b7bf7.js";import"./use-height-c138b7f3.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,r=p;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default};
此差异已折叠。
import{r as n,i as h,a9 as s,aa as r,Q as u,ab as c,ac as g,M as p}from"./index-96312938.js";const d=(o,i)=>{const a=n(),e=()=>{a.value=p(o).height};return h(()=>{if(s(e),i)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>s(e)),u([c,g],e),a};export{d as u}; import{r as n,i as h,a9 as s,aa as r,Q as u,ab as c,ac as g,M as p}from"./index-0a4d5320.js";const d=(o,i)=>{const a=n(),e=()=>{a.value=p(o).height};return h(()=>{if(s(e),i)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>s(e)),u([c,g],e),a};export{d as u};
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>博物馆预约管理</title> <title>博物馆预约管理</title>
<script type="module" crossorigin src="./assets/index-96312938.js"></script> <script type="module" crossorigin src="./assets/index-0a4d5320.js"></script>
<link rel="stylesheet" href="./assets/index-84864f7f.css"> <link rel="stylesheet" href="./assets/index-84864f7f.css">
</head> </head>
<body> <body>
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentAllInfo(params: Ge
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
......
...@@ -19,6 +19,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp ...@@ -19,6 +19,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -26,6 +27,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp ...@@ -26,6 +27,7 @@ export declare function getApiBackgroundApiGuestGetAppointmentInfo(params: GetAp
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
......
...@@ -14,6 +14,7 @@ export declare function getApiBackgroundApiGuestGetGuestCount(params: GetApiBack ...@@ -14,6 +14,7 @@ export declare function getApiBackgroundApiGuestGetGuestCount(params: GetApiBack
}; };
}, any>>; }, any>>;
interface GetApiBackgroundApiGuestGetGuestCountParams { interface GetApiBackgroundApiGuestGetGuestCountParams {
date: string; begin_date: string;
end_date: string;
} }
export {}; export {};
...@@ -5,7 +5,8 @@ import request from "../../../../util/axios.js"; ...@@ -5,7 +5,8 @@ import request from "../../../../util/axios.js";
*/ */
export function getApiBackgroundApiGuestGetGuestCount(params) { export function getApiBackgroundApiGuestGetGuestCount(params) {
const paramsInput = { const paramsInput = {
date: params.date, begin_date: params.begin_date,
end_date: params.end_date,
}; };
return request.get(`/api/Background/api/guest/GetGuestCount`, { return request.get(`/api/Background/api/guest/GetGuestCount`, {
params: paramsInput, params: paramsInput,
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestList(params: GetApiBackg
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetGuestListParams { ...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetGuestListParams {
condition?: string; condition?: string;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
approvalState?: number; approvalState?: number;
begin_time?: string;
end_time?: string;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
page_index?: number; page_index?: number;
/** 状态:1-待使用/2-已使用/3-预约过期 */ /** 状态:1-待使用/2-已使用/3-预约过期 */
......
...@@ -7,6 +7,8 @@ export function getApiBackgroundApiGuestGetGuestList(params) { ...@@ -7,6 +7,8 @@ export function getApiBackgroundApiGuestGetGuestList(params) {
const paramsInput = { const paramsInput = {
condition: params.condition, condition: params.condition,
approvalState: params.approvalState, approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -67,7 +69,8 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get ...@@ -67,7 +69,8 @@ export declare function getApiBackgroundApiGuestGetGuestListByManage(params: Get
}, any>>; }, any>>;
interface GetApiBackgroundApiGuestGetGuestListByManageParams { interface GetApiBackgroundApiGuestGetGuestListByManageParams {
condition?: string; condition?: string;
date: string; begin_date: string;
end_date: string;
moment?: number; moment?: number;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
......
...@@ -6,7 +6,8 @@ import request from "../../../../util/axios.js"; ...@@ -6,7 +6,8 @@ import request from "../../../../util/axios.js";
export function getApiBackgroundApiGuestGetGuestListByManage(params) { export function getApiBackgroundApiGuestGetGuestListByManage(params) {
const paramsInput = { const paramsInput = {
condition: params.condition, condition: params.condition,
date: params.date, begin_date: params.begin_date,
end_date: params.end_date,
moment: params.moment, moment: params.moment,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetOfficialList(params: GetApiBa
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -69,6 +71,8 @@ interface GetApiBackgroundApiGuestGetOfficialListParams { ...@@ -69,6 +71,8 @@ interface GetApiBackgroundApiGuestGetOfficialListParams {
condition?: string; condition?: string;
approvalView?: number; approvalView?: number;
approvalState?: number; approvalState?: number;
begin_time?: string;
end_time?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
......
...@@ -8,6 +8,8 @@ export function getApiBackgroundApiGuestGetOfficialList(params) { ...@@ -8,6 +8,8 @@ export function getApiBackgroundApiGuestGetOfficialList(params) {
condition: params.condition, condition: params.condition,
approvalView: params.approvalView, approvalView: params.approvalView,
approvalState: params.approvalState, approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr ...@@ -39,6 +39,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr
num: number; num: number;
reason: string; reason: string;
approval_state: number; approval_state: number;
approval_name: string;
type: number; type: number;
createtime: string; createtime: string;
unit: string; unit: string;
...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr ...@@ -46,6 +47,7 @@ export declare function getApiBackgroundApiGuestGetTeamList(params: GetApiBackgr
approval_remark: string; approval_remark: string;
leader: string; leader: string;
employ_state: number; employ_state: number;
employ_name: string;
change_remark: string; change_remark: string;
begin_time: string; begin_time: string;
end_time: string; end_time: string;
...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetTeamListParams { ...@@ -70,6 +72,8 @@ interface GetApiBackgroundApiGuestGetTeamListParams {
approvalView?: number; approvalView?: number;
approvalState?: number; approvalState?: number;
museum_state?: string; museum_state?: string;
begin_time?: string;
end_time?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
......
...@@ -9,6 +9,8 @@ export function getApiBackgroundApiGuestGetTeamList(params) { ...@@ -9,6 +9,8 @@ export function getApiBackgroundApiGuestGetTeamList(params) {
approvalView: params.approvalView, approvalView: params.approvalView,
approvalState: params.approvalState, approvalState: params.approvalState,
museum_state: params.museum_state, museum_state: params.museum_state,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
/**
* 导出散客视图
* /api/Background/GuestExport
*/
export declare function getApiBackgroundGuestExport(params: GetApiBackgroundGuestExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundGuestExportParams {
condition?: string;
approvalState?: number;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出散客视图
* /api/Background/GuestExport
*/
export function getApiBackgroundGuestExport(params) {
const paramsInput = {
condition: params.condition,
approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/GuestExport`, {
params: paramsInput,
});
}
/**
* 导出公务视图
* /api/Background/OfficialExport
*/
export declare function getApiBackgroundOfficialExport(params: GetApiBackgroundOfficialExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundOfficialExportParams {
condition?: string;
approvalView?: number;
approvalState?: number;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出公务视图
* /api/Background/OfficialExport
*/
export function getApiBackgroundOfficialExport(params) {
const paramsInput = {
condition: params.condition,
approvalView: params.approvalView,
approvalState: params.approvalState,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/OfficialExport`, {
params: paramsInput,
});
}
/**
* 导出团队视图
* /api/Background/TeamExport
*/
export declare function getApiBackgroundTeamExport(params: GetApiBackgroundTeamExportParams): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
interface GetApiBackgroundTeamExportParams {
condition?: string;
approvalView?: number;
approvalState?: number;
museum_state?: string;
begin_time?: string;
end_time?: string;
}
export {};
import request from "../../../../util/axios.js";
/**
* 导出团队视图
* /api/Background/TeamExport
*/
export function getApiBackgroundTeamExport(params) {
const paramsInput = {
condition: params.condition,
approvalView: params.approvalView,
approvalState: params.approvalState,
museum_state: params.museum_state,
begin_time: params.begin_time,
end_time: params.end_time,
};
return request.get(`/api/Background/TeamExport`, {
params: paramsInput,
});
}
...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek"; ...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek";
export * from "./getApiBackgroundApiGuestGetGuestList"; export * from "./getApiBackgroundApiGuestGetGuestList";
export * from "./getApiBackgroundApiGuestGetTeamList"; export * from "./getApiBackgroundApiGuestGetTeamList";
export * from "./getApiBackgroundApiGuestGetOfficialList"; export * from "./getApiBackgroundApiGuestGetOfficialList";
export * from "./getApiBackgroundGuestExport";
export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage"; export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount"; export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo"; export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
......
...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek"; ...@@ -3,6 +3,9 @@ export * from "./getApiBackgroundApiGuestInitWeek";
export * from "./getApiBackgroundApiGuestGetGuestList"; export * from "./getApiBackgroundApiGuestGetGuestList";
export * from "./getApiBackgroundApiGuestGetTeamList"; export * from "./getApiBackgroundApiGuestGetTeamList";
export * from "./getApiBackgroundApiGuestGetOfficialList"; export * from "./getApiBackgroundApiGuestGetOfficialList";
export * from "./getApiBackgroundGuestExport";
export * from "./getApiBackgroundTeamExport";
export * from "./getApiBackgroundOfficialExport";
export * from "./getApiBackgroundApiGuestGetGuestListByManage"; export * from "./getApiBackgroundApiGuestGetGuestListByManage";
export * from "./getApiBackgroundApiGuestGetGuestCount"; export * from "./getApiBackgroundApiGuestGetGuestCount";
export * from "./getApiBackgroundApiGuestGetAppointmentInfo"; export * from "./getApiBackgroundApiGuestGetAppointmentInfo";
......
...@@ -21,6 +21,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf ...@@ -21,6 +21,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf
start_use_time: string; start_use_time: string;
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
after_time: string;
}; };
}, any>>; }, any>>;
interface GetApiSysconfigurationApiSysconfigGetSysconfigurationInfoParams { interface GetApiSysconfigurationApiSysconfigGetSysconfigurationInfoParams {
......
...@@ -21,5 +21,6 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf ...@@ -21,5 +21,6 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationInf
start_use_time: string; start_use_time: string;
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
after_time: string;
}; };
}, any>>; }, any>>;
...@@ -42,6 +42,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationLis ...@@ -42,6 +42,7 @@ export declare function getApiSysconfigurationApiSysconfigGetSysconfigurationLis
end_use_time: string; end_use_time: string;
introduction: string; introduction: string;
identification: number; identification: number;
after_time: string;
}; };
}[]; }[];
query: { query: {
......
...@@ -11,6 +11,7 @@ export interface GuestAppointmentViewModels { ...@@ -11,6 +11,7 @@ export interface GuestAppointmentViewModels {
num?: number; num?: number;
reason?: string; reason?: string;
approval_state?: number; approval_state?: number;
approval_name?: string;
type?: number; type?: number;
createtime?: string; createtime?: string;
unit?: string; unit?: string;
...@@ -18,6 +19,7 @@ export interface GuestAppointmentViewModels { ...@@ -18,6 +19,7 @@ export interface GuestAppointmentViewModels {
approval_remark?: string; approval_remark?: string;
leader?: string; leader?: string;
employ_state?: number; employ_state?: number;
employ_name?: string;
change_remark?: string; change_remark?: string;
begin_time?: string; begin_time?: string;
end_time?: string; end_time?: string;
......
...@@ -12,4 +12,5 @@ export interface Sysconfiguration { ...@@ -12,4 +12,5 @@ export interface Sysconfiguration {
start_use_time?: string; start_use_time?: string;
end_use_time?: string; end_use_time?: string;
introduction?: string; introduction?: string;
after_time?: string;
} }
...@@ -13,4 +13,5 @@ export interface SysconfigurationModel { ...@@ -13,4 +13,5 @@ export interface SysconfigurationModel {
end_use_time?: string; end_use_time?: string;
introduction?: string; introduction?: string;
identification?: number; identification?: number;
after_time?: string;
} }
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="w-full h-[30px] flex"> <div class="w-full h-[30px] flex">
<div class="w-1/3 h-full"> <div class="w-1/3 h-full">
<span class="text-gray-600">参观场次</span> <span class="text-gray-600">入场时间</span>
</div> </div>
<div class="text-red-600 w-2/3 h-full flex justify-end "> <div class="text-red-600 w-2/3 h-full flex justify-end ">
{{ item.visitTime }} {{ item.visitTime }}
......
...@@ -55,9 +55,12 @@ function back() { ...@@ -55,9 +55,12 @@ function back() {
router.push({ router.push({
name: 'welcome', name: 'welcome',
query: { query: {
date: init.date, // date: init.date,
// condition: route.query.condition, // condition: route.query.condition,
moment: route.query.moment, moment: route.query.moment,
begin_date: route.query.begin_date,
end_date: route.query.end_date,
} }
}) })
} }
...@@ -88,7 +91,7 @@ function getData() { ...@@ -88,7 +91,7 @@ function getData() {
{label: '日期', value: res.response.museum_date}, {label: '日期', value: res.response.museum_date},
{ {
label: '参观场次', label: '入场时间',
value: ['', '上午', '下午'][res.response.moment] + ' ' + (res.response.begin_time ? res.response.begin_time.split(' ')[1] : '无') + '-' + (res.response.end_time ? res.response.end_time.split(' ')[1] : '无') value: ['', '上午', '下午'][res.response.moment] + ' ' + (res.response.begin_time ? res.response.begin_time.split(' ')[1] : '无') + '-' + (res.response.end_time ? res.response.end_time.split(' ')[1] : '无')
}, },
{label: '人数', value: res.response.num + '人'}, {label: '人数', value: res.response.num + '人'},
...@@ -103,6 +106,7 @@ function getData() { ...@@ -103,6 +106,7 @@ function getData() {
} }
onMounted(() => { onMounted(() => {
getData() getData()
}) })
</script> </script>
......
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
</van-dropdown-item> </van-dropdown-item>
</van-dropdown-menu> </van-dropdown-menu>
</div> </div>
<div @click="init.date.show = true" class="w-1/2 h-[48px] flex justify-center items-center bg-white"> <div @click="init.date.show = true"
<span>{{ init.search.date }}<van-icon class="ml-1" name="setting"/></span> class="text-[14px] w-1/2 h-[48px] flex justify-center items-center bg-white">
<span>{{
beginDate + '到' + endDate
}}<van-icon class="ml-1" name="setting"/></span>
</div> </div>
</div> </div>
</div> </div>
...@@ -41,6 +44,9 @@ ...@@ -41,6 +44,9 @@
<template #content> <template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto "> <div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar :poppable="false" v-model:show="init.search.date" :close-on-click-overlay="false" <van-calendar :poppable="false" v-model:show="init.search.date" :close-on-click-overlay="false"
:minDate="init.search.minDate"
:maxDate="init.search.maxDate"
type="range"
@confirm="onConfirm"/> @confirm="onConfirm"/>
</div> </div>
</template> </template>
...@@ -53,7 +59,7 @@ import * as api from '../../api/dist/controller/index.js' ...@@ -53,7 +59,7 @@ import * as api from '../../api/dist/controller/index.js'
import {useRoute} from "vue-router"; import {useRoute} from "vue-router";
const route = useRoute() const route = useRoute()
import {onMounted, reactive, ref} from 'vue' import {computed, onMounted, reactive, ref} from 'vue'
import dayjs from "dayjs"; import dayjs from "dayjs";
import router from "../../router/index.js"; import router from "../../router/index.js";
...@@ -64,7 +70,13 @@ const init = reactive({ ...@@ -64,7 +70,13 @@ const init = reactive({
array: [], array: [],
selectArray: [], selectArray: [],
search: { search: {
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 4, 15),
condition: '', condition: '',
begin_dateChange: '',//变化日期
end_dateChange: '',//变化日期
begin_date: dayjs().format('YYYY-MM-DD'),//初始日期
end_date: dayjs().format('YYYY-MM-DD'),//初始日期
date: route.query.date || dayjs().format('YYYY-MM-DD'), date: route.query.date || dayjs().format('YYYY-MM-DD'),
moment: route.query.moment || "0", moment: route.query.moment || "0",
page_index: 1, page_index: 1,
...@@ -82,12 +94,26 @@ function detail(key, value) { ...@@ -82,12 +94,26 @@ function detail(key, value) {
query: { query: {
appointmentid: String(value.appointmentid), appointmentid: String(value.appointmentid),
// condition: init.search.condition, // condition: init.search.condition,
moment: init.search.moment moment: init.search.moment,
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
} }
}) })
} }
const beginDate = computed(() => {
//计算开始日期
return (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date)
})
const endDate = computed(() => {
//计算开始日期
return (init.search.end_dateChange || route.query.end_date || init.search.end_date)
})
function selectChange(e) { function selectChange(e) {
//时段下拉框 //时段下拉框
init.search.page_index = 1 init.search.page_index = 1
...@@ -97,11 +123,14 @@ function selectChange(e) { ...@@ -97,11 +123,14 @@ function selectChange(e) {
function onConfirm(e) { function onConfirm(e) {
//选择日期 //选择日期
init.date.show = false init.date.show = false
init.search.page_index = 1 init.search.page_index = 1
init.search.moment = '0' init.search.moment = '0'
init.search.date = dayjs(e).format('YYYY-MM-DD') // init.search.date = dayjs(e).format('YYYY-MM-DD')
init.search.begin_dateChange = dayjs(e[0]).format('YYYY-MM-DD')
init.search.end_dateChange = dayjs(e[1]).format('YYYY-MM-DD')
getSelectArray() getSelectArray()
getData() getData()
} }
...@@ -109,7 +138,12 @@ function onConfirm(e) { ...@@ -109,7 +138,12 @@ function onConfirm(e) {
function getData() { function getData() {
//初始化 //初始化
hooks.getInitListRequest(() => { hooks.getInitListRequest(() => {
api.getApiBackgroundApiGuestGetGuestListByManage(init.search).then(res => {
api.getApiBackgroundApiGuestGetGuestListByManage({
...init.search,
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
}).then(res => {
init.array = res.response.data.map((cur, index) => { init.array = res.response.data.map((cur, index) => {
return { return {
...cur, ...cur,
...@@ -142,7 +176,10 @@ function pageChange(e) { ...@@ -142,7 +176,10 @@ function pageChange(e) {
function getSelectArray() { function getSelectArray() {
//获取下拉框数组 //获取下拉框数组
api.getApiBackgroundApiGuestGetGuestCount({date: init.search.date}) api.getApiBackgroundApiGuestGetGuestCount({
begin_date: (init.search.begin_dateChange || route.query.begin_date || init.search.begin_date),
end_date: (init.search.end_dateChange || route.query.end_date || init.search.end_date),
})
.then(res => { .then(res => {
init.selectArray = [ init.selectArray = [
{text: `全天 (${res.response.all_day})人`, value: '0'}, {text: `全天 (${res.response.all_day})人`, value: '0'},
...@@ -153,6 +190,7 @@ function getSelectArray() { ...@@ -153,6 +190,7 @@ function getSelectArray() {
} }
onMounted(() => { onMounted(() => {
getSelectArray() getSelectArray()
getData() getData()
}) })
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或