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

save

上级 a02fdd25
流水线 #34431 已通过 ,包含阶段
in 1 minute 和 50 second
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 !h-[calc(100vh-50px)] flex">
<div class="header flex flex-wrap flex-col gap-4 ">
<!--头部-->
<div class=" w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl opacity-85 font-bold text-white italic"
style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full 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('qhtb')"
/>
<span class="custom-title">申请设备</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<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('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">设备记录</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">耗材记录</span>
</template>
</van-cell>
</div>
</div>
</div>
<!-- version -->
<div class="w-[96%] ccFlex h-10 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
<!-- 版本号 -->
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .van-cell-group--inset {
margin: 0;
border-radius: var(--van-cell-group-inset-radius);
overflow: hidden;
}
> > > .van-tabbar {
z-index: var(--van-tabbar-z-index);
display: flex;
box-sizing: content-box;
width: 100%;
height: 80px;
background: var(--van-tabbar-background);
}
</style>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.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>
\ No newline at end of file
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 !h-[calc(100vh-65px)] flex">
<div class="header flex flex-wrap flex-col gap-4 ">
<!--头部-->
<div class=" w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl opacity-85 font-bold text-white italic"
style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full 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('qhtb')"
/>
<span class="custom-title">申请设备</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<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('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">设备记录</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">耗材记录</span>
</template>
</van-cell>
</div>
</div>
</div>
<!-- version -->
<div class="w-[96%] ccFlex h-10 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
<!-- 版本号 -->
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .van-cell-group--inset {
margin: 0;
border-radius: var(--van-cell-group-inset-radius);
overflow: hidden;
}
> > > .van-tabbar {
z-index: var(--van-tabbar-z-index);
display: flex;
box-sizing: content-box;
width: 100%;
height: 80px;
background: var(--van-tabbar-background);
}
</style>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.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>
\ No newline at end of file
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<div v-if="init.activeIndex === 1" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
// 根据路由设置初始值
const currentPath = router.currentRoute.value.path
switch (currentPath) {
case '/adminContent3':
init.activeIndex = 0 // 根据新的需求设置activeIndex为0
// 可以在这里添加更多根据路径设置初始值的逻辑
break;
default:
// 如果需要,可以在这里处理其他路径的情况
break;
}
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
// 根据路由设置初始值
const currentPath = router.currentRoute.value.path
switch (currentPath) {
case '/adminContent1':
init.activeIndex = 0 // 根据新的需求设置activeIndex为0
// 可以在这里添加更多根据路径设置初始值的逻辑
break;
case '/adminContent2':
init.activeIndex = 1 // 根据新的需求设置activeIndex为0
// 可以在这里添加更多根据路径设置初始值的逻辑
break;
case '/adminContent3':
init.activeIndex = 2 // 根据新的需求设置activeIndex为0
// 可以在这里添加更多根据路径设置初始值的逻辑
break;
default:
// 如果需要,可以在这里处理其他路径的情况
break;
}
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full pl-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full h-[100px] bg-white shadow-md rounded-lg p-4 flex flex-col justify-between">
<div class="text-lg font-semibold">设备信息</div>
<div class="text-sm text-gray-600">这里是设备的详细信息</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">设备名称</div>
<div class="text-sm text-gray-600 flex justify-between">
<span>类型: 设备类型</span>
<span>状态: 设备状态</span>
<span>入库时间: 入库时间</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">设备名称</div>
<div class="text-sm text-gray-600 flex justify-between">
<span>类型: 设备类型</span>
<span>状态: 设备状态</span>
<span>入库时间: 入库时间</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{ item.name }}</div>
<div class="text-sm text-gray-600 flex justify-between">
<span>类型: {{ item.type }}</span>
<span>状态: {{ item.status }}</span>
<span>入库时间: {{ item.entryTime }}</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{ item.name }}</div>
<div class="text-sm text-gray-600 flex justify-between items-center">
<div class="flex items-center">
<van-icon :name="getIconByType(item.type)" class="mr-1" />
<span>{{ item.status }}</span>
</div>
<span>入库时间: {{ item.entryTime }}</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{ item.name }}</div>
<div class="text-sm text-gray-600 flex justify-between items-center">
<van-icon :name="getIconByType(item.type)" />
<van-icon :name="getIconByStatus(item.status)" />
<span>{{ item.entryTime }}</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{ item.name }}</div>
<div class="text-sm text-gray-600 flex justify-between">
<span>类型: {{ item.type }}</span>
<span>状态: {{ item.status }}</span>
<span>状态: {{ item.entryTime }}</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{ item.name }}</div>
<div class="text-sm text-gray-600 flex justify-between">
<span>类型: {{ item.type }}</span>
<span>状态: {{ item.status }}</span>
<span>状态: {{ item.entryTime }}</span>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{'实验室器材' }}</div>
<div class="text-sm text-gray-600 ">
<p>类型: 实验室 </p>
<van-tag type="success">状态: 空闲</van-tag>
<p>入库时间: 2025-04-11</p>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<van-image
v-if="init.activeIndex === 1"
src="https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
/>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="h-[calc(100vh-65px)]">
<van-tree-select
v-model:main-active-index="init.activeIndex"
height="100%"
:items="init.items"
>
<template #content>
<div v-if="init.activeIndex === 0" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<van-cell class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between" @click="handleItemClick(item)">
<template #title>
<div class="text-lg font-semibold mb-1">{{'实验室器材' }}</div>
</template>
<template #label>
<div class="text-sm text-gray-600">
<p>类型: 实验室 </p>
<p>库存: 1 <van-tag class="ml-3" type="success" mark>空闲</van-tag> </p>
<p>入库时间: 2025-04-11</p>
</div>
</template>
</van-cell>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
<div v-if="init.activeIndex === 1" class="w-full min-h-full bg-[#F3F4F6]">
<div class="w-full h-full px-3 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
class="flex flex-col gap-3"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<div class="w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between">
<div class="text-lg font-semibold mb-1">{{'实验室器材' }}</div>
<div class="text-sm text-gray-600 ">
<p>类型: 实验室 </p>
<p>库存: 1 <van-tag class="ml-3" type="success" mark>空闲</van-tag> </p>
<p>入库时间: 2025-04-11</p>
</div>
</div>
<!-- <adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>-->
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
</template>
</van-tree-select>
</div>
</template>
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
items: [{ text: '设备' }, { text: '耗材' }],
activeIndex:0,
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="user-layout">
<div >
<router-view />
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/adminContent1">首页</van-tabbar-item>
<van-tabbar-item icon="clipboard-o" to="/adminContent2">审批</van-tabbar-item>
<van-tabbar-item icon="records-o" to="/adminContent3">库存</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100vh - 50px);
background: #F3F4F6;
}
.content {
flex: 1;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div >
<router-view />
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/adminContent1" dot>首页</van-tabbar-item>
<van-tabbar-item icon="clipboard-o" to="/adminContent2" badge="5">审批</van-tabbar-item>
<van-tabbar-item icon="records-o" to="/adminContent3">库存</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100vh - 50px);
background: #F3F4F6;
}
.content {
flex: 1;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div >
<router-view />
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/adminContent1">首页</van-tabbar-item>
<van-tabbar-item icon="clipboard-o" to="/adminContent2">审批</van-tabbar-item>
<van-tabbar-item icon="records-o" to="/adminContent3">库存</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100vh - 50px);
background: #F3F4F6;
}
.content {
flex: 1;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div >
<router-view />
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/adminContent1" dot>首页</van-tabbar-item>
<van-tabbar-item icon="clipboard-o" to="/adminContent2" badge="5">审批</van-tabbar-item>
<van-tabbar-item icon="records-o" to="/adminContent3">库存</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100vh - 50px);
background: #F3F4F6;
}
.content {
flex: 1;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
...@@ -66,5 +66,6 @@ declare module 'vue' { ...@@ -66,5 +66,6 @@ declare module 'vue' {
VanTabbar: typeof import('vant/es')['Tabbar'] VanTabbar: typeof import('vant/es')['Tabbar']
VanTabbarItem: typeof import('vant/es')['TabbarItem'] VanTabbarItem: typeof import('vant/es')['TabbarItem']
VanTag: typeof import('vant/es')['Tag'] VanTag: typeof import('vant/es')['Tag']
VanTreeSelect: typeof import('vant/es')['TreeSelect']
} }
} }
import{u,a2 as p,a as l,o as f,c as d,d as m,f as _,w as y,s as g,a3 as k,a4 as h,a5 as v,a6 as x,a7 as T,a8 as I,a9 as R}from"./index-CcGyJ_wO.js";const q={style:{display:"flex","justify-content":"center","margin-top":"50%"}},j={__name:"SSO",setup(A){const n=u(),c=p(),o=l();function a(){I().then(t=>{t.response.role_list.forEach((e,s)=>{e==="1"&&t.response.role_list.splice(s,1)}),n.setUserInfo({...t.response,role:t.response.role_list[0]}),R().then(e=>{c.setDomainInfo(e.response)}),o.replace({name:"userLayout"})})}function r(){o.replace({name:"403"})}const i=async()=>{({wx:()=>{h({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})},asc:async()=>{v({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})},first:()=>{let e={sign:o.currentRoute.value.query.sign,code:o.currentRoute.value.query.code,timestamp:o.currentRoute.value.query.timestamp};x(e).then(s=>{s.code!==1?r():(n.setToken(s.response),a())})},test:()=>{T({card:"syjs295"}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})}})[o.currentRoute.value.query.type]()};return f(()=>{i()}),(t,e)=>{const s=k;return d(),m("div",q,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[g(" 登录中")]),_:1})])}}};export{j as default};
import{u,N as p,a as l,o as f,c as d,d as m,f as _,w as y,q as g,O as k,P as h,Q as T,R as v,T as x,U as I,V as R}from"./index-C6T2BeyB.js";const q={style:{display:"flex","justify-content":"center","margin-top":"50%"}},j={__name:"SSO",setup(A){const n=u(),c=p(),o=l();function a(){I().then(t=>{t.response.role_list.forEach((e,s)=>{e==="1"&&t.response.role_list.splice(s,1)}),n.setUserInfo({...t.response,role:t.response.role_list[0]}),R().then(e=>{c.setDomainInfo(e.response)}),o.replace({name:"userLayout"})})}function r(){o.replace({name:"403"})}const i=async()=>{({wx:()=>{h({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})},asc:async()=>{T({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})},first:()=>{let e={sign:o.currentRoute.value.query.sign,code:o.currentRoute.value.query.code,timestamp:o.currentRoute.value.query.timestamp};v(e).then(s=>{s.code!==1?r():(n.setToken(s.response),a())})},test:()=>{x({card:"syjs295"}).then(e=>{e.code!==1?r():(n.setToken(e.response),a())})}})[o.currentRoute.value.query.type]()};return f(()=>{i()}),(t,e)=>{const s=k;return d(),m("div",q,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[g(" 登录中")]),_:1})])}}};export{j as default};
import{u as i,a as l,b as p,o as d,c as u,d as f,f as _,w as y,q as m,P as v,O as x,U as g}from"./index-C6T2BeyB.js";const h={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(k){const s=i(),t=l(),n=p({data:{type:""}});function r(){g().then(e=>{e.response.role_list.forEach((a,o)=>{a==="1"&&e.response.role_list.splice(o,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),n.data.type==="Badness"?t.replace({name:"adverseActivityRecord",query:{name:"adverseActivityRecord"}}):t.replace({name:"details",query:{id:t.currentRoute.value.query.id,type:"record",name:"welcome"}})})}function c(){v({token:idt.GetToken()}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),r())})}return d(()=>{n.data.type=t.currentRoute.value.query.type,c()}),(e,a)=>{const o=x;return u(),f("div",h,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[m(" 登录中")]),_:1})])}}};export{q as default};
import{u as i,a as l,b as p,o as d,c as u,d as f,f as _,w as y,s as m,a4 as v,a3 as x,a8 as g}from"./index-CcGyJ_wO.js";const h={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(k){const s=i(),t=l(),a=p({data:{type:""}});function r(){g().then(e=>{e.response.role_list.forEach((n,o)=>{n==="1"&&e.response.role_list.splice(o,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),a.data.type==="Badness"?t.replace({name:"adverseActivityRecord",query:{name:"adverseActivityRecord"}}):t.replace({name:"details",query:{id:t.currentRoute.value.query.id,type:"record",name:"welcome"}})})}function c(){v({token:idt.GetToken()}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),r())})}return d(()=>{a.data.type=t.currentRoute.value.query.type,c()}),(e,n)=>{const o=x;return u(),f("div",h,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[m(" 登录中")]),_:1})])}}};export{R as default};
import{_ as D,r as i,b as G,o as Z,c as h,d as w,f as t,w as s,e as l,s as d,F as C,t as H,aa as V,h as P,bL as J,Z as K,ad as Q,B as W,ae as X,S as Y,bM as ee}from"./index-CcGyJ_wO.js";import{a as oe,T as ae}from"./index-hXC3ezZl.js";import{P as te}from"./index-BkN4SRlG.js";import{L as se}from"./index-1S9d0Q2S.js";import"./index-DDVA6KH8.js";import{C as le,R as ne}from"./index-D54ymIx3.js";import{C as re}from"./index-iHvIHzts.js";import{P as ie}from"./index-C8DeO7sP.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const de={class:"title-filter"},ue={class:"form-field"},me={class:"btn"},pe={class:"w-full p-3 h-[calc(100%-66px)]"},ce={class:"sticky top-0 w-full h-[64px] z-50"},fe={style:{"border-top":"1px solid #ebedf0"}},_e={class:"w-full h-[calc(100%-124px)] overflow-y-auto"},ve=["title"],he=["src"],we=["src"],xe={__name:"admin",emits:["getTabBarIndex"],setup(ye,{emit:R}){const x=i(0),o=G({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:"不限"},{text:"女",value:"女"},{text:"男",value:"男"}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=i([]),u=i(!1),p=i(!1),r=i(!1),c=()=>{J(o.params).then(n=>{r.value&&(m.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(e=>{m.value.push(e)}),u.value=!1,o.params.page_index++,r.value=!1})},U=()=>{p.value=!1,u.value=!0,o.params.page_index=1,c()};function B(){o.advancedfilter.show=!0}let y=i("");function L(n){f()}function f(){o.params.page_index=1,m.value=[],p.value=!1,u.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function I(){o.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(e=>o[e].value=""),f(),o.advancedfilter.show=!1}function $(){f(),o.advancedfilter.show=!1}function z(n){const e=n.selectedOptions[0];o.roomType.value=e.text,o.params.room_type_id=e.value,o.roomType.showPicker=!1}function E(n){const e=n.selectedOptions[0];o.sex.value=e.text,o.params.sex=e.value,o.sex.showPicker=!1}async function F(){o.roomType.columns=await re.getRoomType()}return Z(()=>{document.title="房间列表",F()}),(n,e)=>{const N=K,g=Q,_=W,b=le,S=ne,v=X,k=ie,j=Y,q=ee,M=se,O=te,T=oe,A=ae;return h(),w(C,null,[t(v,{show:o.advancedfilter.show,"onUpdate:show":e[5]||(e[5]=a=>o.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",de,[d(" 高级筛选"),l("span",{class:"icon",onClick:e[0]||(e[0]=a=>o.advancedfilter.show=!1)},[t(N,{name:"cross"})])]),l("div",ue,[t(g,{modelValue:o.roomType.value,"onUpdate:modelValue":e[1]||(e[1]=a=>o.roomType.value=a),label:"房间类型",readonly:"",onClick:e[2]||(e[2]=a=>o.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),t(g,{modelValue:o.sex.value,"onUpdate:modelValue":e[3]||(e[3]=a=>o.sex.value=a),label:"性别",readonly:"",onClick:e[4]||(e[4]=a=>o.sex.showPicker=!0),placeholder:"请选择性别",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",me,[t(S,{gutter:"20"},{default:s(()=>[t(b,{span:"12"},{default:s(()=>[t(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:I},{default:s(()=>[d("重置 ")]),_:1})]),_:1}),t(b,{span:"12"},{default:s(()=>[t(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:$},{default:s(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),t(v,{show:o.roomType.showPicker,"onUpdate:show":e[7]||(e[7]=a=>o.roomType.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"房间类型","show-toolbar":"",columns:o.roomType.columns,onConfirm:z,onCancel:e[6]||(e[6]=a=>o.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),t(v,{show:o.sex.showPicker,"onUpdate:show":e[9]||(e[9]=a=>o.sex.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"性别","show-toolbar":"",columns:o.sex.columns,onConfirm:E,onCancel:e[8]||(e[8]=a=>o.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",pe,[l("div",ce,[l("div",fe,[t(j,{clearable:"",modelValue:o.params.room_name,"onUpdate:modelValue":[e[10]||(e[10]=a=>o.params.room_name=a),L],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[t(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:B},{default:s(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",_e,[t(O,{modelValue:r.value,"onUpdate:modelValue":e[12]||(e[12]=a=>r.value=a),onRefresh:U},{default:s(()=>[t(M,{loading:u.value,"onUpdate:loading":e[11]||(e[11]=a=>u.value=a),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(h(!0),w(C,null,H(m.value,a=>(h(),w("div",{key:a,title:a,class:"w-full min-h-[40px]"},[t(q,{item:a},null,8,["item"])],8,ve))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),t(A,{class:"w-full h-[80px]",fixed:"",modelValue:x.value,"onUpdate:modelValue":e[13]||(e[13]=a=>x.value=a),onChange:e[14]||(e[14]=a=>R("getTabBarIndex",a))},{default:s(()=>[t(T,{icon:"home-o"},{icon:s(()=>[l("img",{src:V(P)("cwgl1"),class:"w-[20px] h-[20px]"},null,8,he)]),default:s(()=>[d("房间管理 ")]),_:1}),t(T,{icon:"search"},{icon:s(()=>[l("img",{src:V(P)("bljl2"),class:"w-[20px] h-[20px]"},null,8,we)]),default:s(()=>[d("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])],64)}}},Le=D(xe,[["__scopeId","data-v-f7f313b2"]]);export{Le as default};
import{_ as G,r as i,b as J,o as M,c as h,d as w,f as t,w as s,e as l,q as d,F as C,s as W,W as V,h as P,bI as Z,Z as H,$ as K,B as Q,a0 as X,S as Y,bJ as ee}from"./index-C6T2BeyB.js";import{a as oe,T as ae}from"./index-CeVmXe3Z.js";import{P as te}from"./index-CjQMYFsi.js";import{L as se}from"./index-bC9oCKVO.js";import"./index-sr-w_tO-.js";import{C as le,R as ne}from"./index-vSo64fwq.js";import{C as re}from"./index-BcOKbh7x.js";import{P as ie}from"./index-C6LXoUJZ.js";import"./index-C6Gc9SJb.js";import"./index-WyguV52L.js";const de={class:"title-filter"},ue={class:"form-field"},me={class:"btn"},pe={class:"w-full p-3 h-[calc(100%-66px)]"},ce={class:"sticky top-0 w-full h-[64px] z-50"},fe={style:{"border-top":"1px solid #ebedf0"}},_e={class:"w-full h-[calc(100%-124px)] overflow-y-auto"},ve=["title"],he=["src"],we=["src"],xe={__name:"admin",emits:["getTabBarIndex"],setup(ye,{emit:R}){const x=i(0),o=J({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:"不限"},{text:"女",value:"女"},{text:"男",value:"男"}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=i([]),u=i(!1),p=i(!1),r=i(!1),c=()=>{Z(o.params).then(n=>{r.value&&(m.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(e=>{m.value.push(e)}),u.value=!1,o.params.page_index++,r.value=!1})},U=()=>{p.value=!1,u.value=!0,o.params.page_index=1,c()};function B(){o.advancedfilter.show=!0}let y=i("");function I(n){f()}function f(){o.params.page_index=1,m.value=[],p.value=!1,u.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function $(){o.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(e=>o[e].value=""),f(),o.advancedfilter.show=!1}function L(){f(),o.advancedfilter.show=!1}function z(n){const e=n.selectedOptions[0];o.roomType.value=e.text,o.params.room_type_id=e.value,o.roomType.showPicker=!1}function q(n){const e=n.selectedOptions[0];o.sex.value=e.text,o.params.sex=e.value,o.sex.showPicker=!1}async function E(){o.roomType.columns=await re.getRoomType()}return M(()=>{document.title="房间列表",E()}),(n,e)=>{const F=H,g=K,_=Q,b=le,N=ne,v=X,k=ie,S=Y,j=ee,O=se,A=te,T=oe,D=ae;return h(),w(C,null,[t(v,{show:o.advancedfilter.show,"onUpdate:show":e[5]||(e[5]=a=>o.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",de,[d(" 高级筛选"),l("span",{class:"icon",onClick:e[0]||(e[0]=a=>o.advancedfilter.show=!1)},[t(F,{name:"cross"})])]),l("div",ue,[t(g,{modelValue:o.roomType.value,"onUpdate:modelValue":e[1]||(e[1]=a=>o.roomType.value=a),label:"房间类型",readonly:"",onClick:e[2]||(e[2]=a=>o.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),t(g,{modelValue:o.sex.value,"onUpdate:modelValue":e[3]||(e[3]=a=>o.sex.value=a),label:"性别",readonly:"",onClick:e[4]||(e[4]=a=>o.sex.showPicker=!0),placeholder:"请选择性别",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",me,[t(N,{gutter:"20"},{default:s(()=>[t(b,{span:"12"},{default:s(()=>[t(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:$},{default:s(()=>[d("重置 ")]),_:1})]),_:1}),t(b,{span:"12"},{default:s(()=>[t(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:L},{default:s(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),t(v,{show:o.roomType.showPicker,"onUpdate:show":e[7]||(e[7]=a=>o.roomType.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"房间类型","show-toolbar":"",columns:o.roomType.columns,onConfirm:z,onCancel:e[6]||(e[6]=a=>o.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),t(v,{show:o.sex.showPicker,"onUpdate:show":e[9]||(e[9]=a=>o.sex.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"性别","show-toolbar":"",columns:o.sex.columns,onConfirm:q,onCancel:e[8]||(e[8]=a=>o.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",pe,[l("div",ce,[l("div",fe,[t(S,{clearable:"",modelValue:o.params.room_name,"onUpdate:modelValue":[e[10]||(e[10]=a=>o.params.room_name=a),I],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[t(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:B},{default:s(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",_e,[t(A,{modelValue:r.value,"onUpdate:modelValue":e[12]||(e[12]=a=>r.value=a),onRefresh:U},{default:s(()=>[t(O,{loading:u.value,"onUpdate:loading":e[11]||(e[11]=a=>u.value=a),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(h(!0),w(C,null,W(m.value,a=>(h(),w("div",{key:a,title:a,class:"w-full min-h-[40px]"},[t(j,{item:a},null,8,["item"])],8,ve))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),t(D,{class:"w-full h-[80px]",fixed:"",modelValue:x.value,"onUpdate:modelValue":e[13]||(e[13]=a=>x.value=a),onChange:e[14]||(e[14]=a=>R("getTabBarIndex",a))},{default:s(()=>[t(T,{icon:"home-o"},{icon:s(()=>[l("img",{src:V(P)("cwgl1"),class:"w-[20px] h-[20px]"},null,8,he)]),default:s(()=>[d("房间管理 ")]),_:1}),t(T,{icon:"search"},{icon:s(()=>[l("img",{src:V(P)("bljl2"),class:"w-[20px] h-[20px]"},null,8,we)]),default:s(()=>[d("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])],64)}}},Ie=G(xe,[["__scopeId","data-v-f7f313b2"]]);export{Ie as default};
const __vite__fileDeps=["./user-CB297c0L.js","./index-CcGyJ_wO.js","./index-BDZVq4H4.css","./index-BkN4SRlG.js","./index-6CsuSH_G.css","./index-1S9d0Q2S.js","./index-bmrpnDyt.css","./seat-CcCY95XV.js","./index-iHvIHzts.js","./index-Bkj-8nMJ.js","./index-C7H7xZf5.js","./user-DSiFbcmH.css","./admin-CPzu_69X.js","./index-hXC3ezZl.js","./index-C2zZWGAe.css","./index-DDVA6KH8.js","./index-C4qC1krx.css","./index-D54ymIx3.js","./index-C3ZnWEiJ.css","./index-C8DeO7sP.js","./admin-BNQDXyNO.css","./adminNoGoodRecord-D8ibwWdh.js","./adminNoGoodRecord-CWZRDV-F.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as x,u as k,g as w,a as I,r as f,b as C,o as b,i as y,c as B,d as R,e as t,f as e,h as a,w as _,I as E,C as D,p as N,j as H,k as P,l as d,m as u}from"./index-CcGyJ_wO.js";import"./index-C7H7xZf5.js";const o=l=>(N("data-v-e2a8fe7b"),l=l(),H(),l),V={class:"container1 !h-[calc(100vh-65px)] flex"},T={class:"header flex flex-wrap flex-col gap-4"},$={class:"w-full"},L={class:"w-full h-[128px] relative"},O=o(()=>t("div",{class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"},[t("span",{class:"text-3xl opacity-85 font-bold text-white italic",style:{"font-family":"'Microsoft YaHei', sans-serif"}},"设备管理")],-1)),S={class:"w-full h-[calc(100%-258px)]"},j={class:"list"},q=o(()=>t("p",{class:"w-full list-item-font"}," 申请申领",-1)),M={class:"list-item"},z=o(()=>t("span",{class:"custom-title"},"申请设备",-1)),F={class:"list-item"},G=o(()=>t("span",{class:"custom-title"},"申请耗材",-1)),U={class:"list"},Y=o(()=>t("p",{class:"w-full h-[40] list-item-font"},"申请记录",-1)),J={class:"list-item"},K=o(()=>t("span",{class:"custom-title"},"设备记录",-1)),Q={class:"list-item"},W=o(()=>t("span",{class:"custom-title"},"耗材记录",-1)),X=o(()=>t("div",{class:"w-[96%] ccFlex h-10 text-center",style:{color:"#b0b0b0","font-size":"10px"}},"Build 1.0.0 - 250116 1.0.1 ",-1)),Z={__name:"adminContent1",setup(l){const v=k();d(()=>u(()=>import("./user-CB297c0L.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),d(()=>u(()=>import("./admin-CPzu_69X.js"),__vite__mapDeps([12,1,2,13,14,3,4,5,6,15,16,17,18,8,9,10,19,20]),import.meta.url)),d(()=>u(()=>import("./adminNoGoodRecord-D8ibwWdh.js"),__vite__mapDeps([21,1,2,13,14,3,4,5,6,8,9,10,22]),import.meta.url)),w().appContext.config.globalProperties;const n=I();f(0),f(!1);const h=C({role:v.userInfo.role,channel:{},active:0,columns:[],placeTypeName:[],flow:{array:[]},count:{}});b(()=>{document.title="主页"}),y("backAscHome");function A(p){h.role=p}function c(p){({individualBooking:()=>{n.push({name:"welcome"})},teamAppointmentNoApproved:()=>{n.push({name:"teamAppointment-noApproval"})},teamAppointmentApproved:()=>{n.push({name:"teamAppointment-approval"})},"teamAppointment-allDataRecord":()=>{n.push({name:"teamAppointment-allDataRecord"})},officialAppointmentsHaveBeenNoApproved:()=>{n.push({name:"officialAppointment-noApproval"})},officialAppointmentsHaveBeenApproved:()=>{n.push({name:"officialAppointment-approval"})}})[p]()}return(p,s)=>{const g=P,i=E,r=D;return B(),R("div",V,[t("div",T,[t("div",$,[e(g,{onGetCurRole:A})]),t("div",L,[e(i,{width:"100%",height:"100%",src:a("colBg2")},null,8,["src"]),O]),t("div",S,[t("div",null,[t("div",j,[q,t("div",M,[e(r,{onClick:s[0]||(s[0]=m=>c("individualBooking")),"is-link":""},{title:_(()=>[e(i,{class:"image",fit:"contain",src:a("sq")},null,8,["src"]),z]),_:1})]),t("div",F,[e(r,{onClick:s[1]||(s[1]=m=>c("individualBooking")),"is-link":""},{title:_(()=>[e(i,{class:"image",fit:"contain",src:a("sq")},null,8,["src"]),G]),_:1})])]),t("div",U,[Y,t("div",J,[e(r,{onClick:s[2]||(s[2]=m=>c("teamAppointment-allDataRecord")),"is-link":""},{title:_(()=>[e(i,{class:"image",fit:"contain",src:a("sblb")},null,8,["src"]),K]),_:1})]),t("div",Q,[e(r,{onClick:s[3]||(s[3]=m=>c("teamAppointmentNoApproved")),"is-link":""},{title:_(()=>[e(i,{class:"image",fit:"contain",src:a("hclb")},null,8,["src"]),W]),_:1})])])]),X])])])}}},st=x(Z,[["__scopeId","data-v-e2a8fe7b"]]);export{st as default};
.currentAppointment[data-v-a69c6bc1]{background-image:url(./bg-CCgRfePF.png);background-size:cover}.aaa[data-v-a69c6bc1]{background-image:url(./changlanse-C2MaWUq2.png);background-size:cover}.bbb[data-v-a69c6bc1]{background-image:url(./1-BqYfFVcm.png);background-size:cover}.child[data-v-a69c6bc1]{width:40px;height:40px;background:#f2f3f5;border-radius:12px}> > > .van-cell-group--inset[data-v-a69c6bc1]{margin:0;border-radius:var(--van-cell-group-inset-radius);overflow:hidden}> > > .van-tabbar[data-v-a69c6bc1]{z-index:var(--van-tabbar-z-index);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:content-box;box-sizing:content-box;width:100%;height:80px;background:var(--van-tabbar-background)}[data-v-a69c6bc1] .van-tabs__wrap{overflow:hidden;border-radius:8px}[data-v-a69c6bc1] .list-item{margin:16px 0;border-radius:12px;overflow:hidden}[data-v-a69c6bc1] .list-item-font{font-size:20px;font-family:黑体;font-weight:600;color:#0009}.list[data-v-a69c6bc1] .van-cell{line-height:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.list[data-v-a69c6bc1] .van-cell .image{width:25px;height:25px}.list[data-v-a69c6bc1] .van-cell .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.list[data-v-a69c6bc1] .van-cell .van-cell__title .custom-title{font-size:16px;padding-left:10px}.list[data-v-a69c6bc1] .van-cell .van-cell__value{font-size:16px}.list[data-v-a69c6bc1] .van-cell:after{content:none}.list .van-cell .van-cell__value[data-v-a69c6bc1]{font-size:18px;color:#3488ff}.wrapper[data-v-a69c6bc1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%}.block[data-v-a69c6bc1]{width:120px;height:120px;background-color:#fff} .currentAppointment[data-v-e2a8fe7b]{background-image:url(./bg-CCgRfePF.png);background-size:cover}.aaa[data-v-e2a8fe7b]{background-image:url(./changlanse-C2MaWUq2.png);background-size:cover}.bbb[data-v-e2a8fe7b]{background-image:url(./1-BqYfFVcm.png);background-size:cover}.child[data-v-e2a8fe7b]{width:40px;height:40px;background:#f2f3f5;border-radius:12px}> > > .van-cell-group--inset[data-v-e2a8fe7b]{margin:0;border-radius:var(--van-cell-group-inset-radius);overflow:hidden}> > > .van-tabbar[data-v-e2a8fe7b]{z-index:var(--van-tabbar-z-index);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:content-box;box-sizing:content-box;width:100%;height:80px;background:var(--van-tabbar-background)}[data-v-e2a8fe7b] .van-tabs__wrap{overflow:hidden;border-radius:8px}[data-v-e2a8fe7b] .list-item{margin:16px 0;border-radius:12px;overflow:hidden}[data-v-e2a8fe7b] .list-item-font{font-size:20px;font-family:黑体;font-weight:600;color:#0009}.list[data-v-e2a8fe7b] .van-cell{line-height:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.list[data-v-e2a8fe7b] .van-cell .image{width:25px;height:25px}.list[data-v-e2a8fe7b] .van-cell .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.list[data-v-e2a8fe7b] .van-cell .van-cell__title .custom-title{font-size:16px;padding-left:10px}.list[data-v-e2a8fe7b] .van-cell .van-cell__value{font-size:16px}.list[data-v-e2a8fe7b] .van-cell:after{content:none}.list .van-cell .van-cell__value[data-v-e2a8fe7b]{font-size:18px;color:#3488ff}.wrapper[data-v-e2a8fe7b]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%}.block[data-v-e2a8fe7b]{width:120px;height:120px;background-color:#fff}
const __vite__fileDeps=["./user-En-ZfMHK.js","./index-C6T2BeyB.js","./index-1S-S6kjN.css","./index-CjQMYFsi.js","./index-6CsuSH_G.css","./index-bC9oCKVO.js","./index-bmrpnDyt.css","./seat-DFImW6yG.js","./index-BcOKbh7x.js","./index-C6Gc9SJb.js","./index-WyguV52L.js","./user-DSiFbcmH.css","./admin-DEPcJ6eB.js","./index-CeVmXe3Z.js","./index-C2zZWGAe.css","./index-sr-w_tO-.js","./index-C4qC1krx.css","./index-vSo64fwq.js","./index-C3ZnWEiJ.css","./index-C6LXoUJZ.js","./admin-BNQDXyNO.css","./adminNoGoodRecord-cIWxZZQN.js","./adminNoGoodRecord-CWZRDV-F.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as b,u as k,g as x,a as w,r as f,b as C,o as I,i as y,c as B,d as R,e as t,f as s,h as a,w as p,I as E,C as D,p as N,j as q,k as H,l as d,m as u}from"./index-C6T2BeyB.js";import"./index-WyguV52L.js";const o=r=>(N("data-v-0bb20f1f"),r=r(),q(),r),P={class:"container1 flex"},V={class:"header flex justify-center content-start flex-wrap"},$={class:"mb-3 w-full"},T={class:"w-full h-[128px] py-2 relative"},j=o(()=>t("div",{class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"},[t("span",{class:"text-3xl opacity-85 font-bold text-white italic",style:{"font-family":"'Microsoft YaHei', sans-serif"}},"设备管理")],-1)),L={class:"w-full h-[calc(100%-258px)]"},O={class:"list"},S=o(()=>t("p",{class:"w-full list-item-font"}," 申请申领",-1)),M={class:"list-item"},z=o(()=>t("span",{class:"custom-title"},"查看预约",-1)),F={class:"list-item"},G=o(()=>t("span",{class:"custom-title"},"查看预约",-1)),U={class:"list"},Y=o(()=>t("p",{class:"w-full h-[40] list-item-font"},"借用记录",-1)),J={class:"list-item"},K=o(()=>t("span",{class:"custom-title"},"查看预约",-1)),Q={class:"list-item"},W=o(()=>t("span",{class:"custom-title"},"待审批",-1)),X={class:"list-item"},Z=o(()=>t("span",{class:"custom-title"},"已审批",-1)),tt=o(()=>t("div",{class:"w-[96%] ccFlex mt-10 p-3 h-3 text-center",style:{color:"#b0b0b0","font-size":"10px"}},"Build 1.0.0 - 250116 1.0.1 ",-1)),st={__name:"adminContent1",setup(r){const v=k();d(()=>u(()=>import("./user-En-ZfMHK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),d(()=>u(()=>import("./admin-DEPcJ6eB.js"),__vite__mapDeps([12,1,2,13,14,3,4,5,6,15,16,17,18,8,9,10,19,20]),import.meta.url)),d(()=>u(()=>import("./adminNoGoodRecord-cIWxZZQN.js"),__vite__mapDeps([21,1,2,13,14,3,4,5,6,8,9,10,22]),import.meta.url)),x().appContext.config.globalProperties;const n=w();f(0),f(!1);const h=C({role:v.userInfo.role,channel:{},active:0,columns:[],placeTypeName:[],flow:{array:[]},count:{}});I(()=>{document.title="主页"}),y("backAscHome");function A(m){h.role=m}function l(m){({individualBooking:()=>{n.push({name:"welcome"})},teamAppointmentNoApproved:()=>{n.push({name:"teamAppointment-noApproval"})},teamAppointmentApproved:()=>{n.push({name:"teamAppointment-approval"})},"teamAppointment-allDataRecord":()=>{n.push({name:"teamAppointment-allDataRecord"})},officialAppointmentsHaveBeenNoApproved:()=>{n.push({name:"officialAppointment-noApproval"})},officialAppointmentsHaveBeenApproved:()=>{n.push({name:"officialAppointment-approval"})}})[m]()}return(m,e)=>{const g=H,i=E,c=D;return B(),R("div",P,[t("div",V,[t("div",$,[s(g,{onGetCurRole:A})]),t("div",T,[s(i,{width:"100%",height:"100%",src:a("colBg2")},null,8,["src"]),j]),t("div",L,[t("div",null,[t("div",O,[S,t("div",M,[s(c,{onClick:e[0]||(e[0]=_=>l("individualBooking")),"is-link":""},{title:p(()=>[s(i,{class:"image",fit:"contain",src:a("qhtb")},null,8,["src"]),z]),_:1})]),t("div",F,[s(c,{onClick:e[1]||(e[1]=_=>l("individualBooking")),"is-link":""},{title:p(()=>[s(i,{class:"image",fit:"contain",src:a("qhtb")},null,8,["src"]),G]),_:1})])]),t("div",U,[Y,t("div",J,[s(c,{onClick:e[2]||(e[2]=_=>l("teamAppointment-allDataRecord")),"is-link":""},{title:p(()=>[s(i,{class:"image",fit:"contain",src:a("qhtb")},null,8,["src"]),K]),_:1})]),t("div",Q,[s(c,{onClick:e[3]||(e[3]=_=>l("teamAppointmentNoApproved")),"is-link":""},{title:p(()=>[s(i,{class:"image",fit:"contain",src:a("qhtb")},null,8,["src"]),W]),_:1})]),t("div",X,[s(c,{onClick:e[4]||(e[4]=_=>l("teamAppointmentApproved")),"is-link":""},{title:p(()=>[s(i,{class:"image",fit:"contain",src:a("qhtb")},null,8,["src"]),Z]),_:1})])])])]),tt])])}}},nt=b(st,[["__scopeId","data-v-0bb20f1f"]]);export{nt as default};
import{_ as R,r as o,b as V,o as L,c as p,d as v,e as c,f as i,w as m,S as F,F as P,s as S,t as z,v as A,q as D,B as N,x as T,y as q,z as E,A as I,D as U}from"./index-C6T2BeyB.js";import{P as j}from"./index-CjQMYFsi.js";import{L as G}from"./index-bC9oCKVO.js";import{C as K}from"./index-BcOKbh7x.js";import"./index-C6Gc9SJb.js";import"./index-WyguV52L.js";const $={class:"w-full h-full bg-[#F3F4F6]"},M={class:"sticky top-0 w-full h-[54px] z-50"},H={style:{"border-top":"1px solid #ebedf0"}},J={class:"w-full h-[calc(100%-54px)] px-3 pt-4"},O=["title"],Q={class:"w-full h-full flex justify-end"},W={__name:"adminContent2",emits:["getTabBarIndex"],setup(X,{emit:Y}){o(1);const t=V({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),d=o([]),n=o(!1),u=o(!1),l=o(!1),f=()=>{z(t.params).then(s=>{l.value&&(d.value=[],l.value=!1),s.response.data.length===0&&(u.value=!0,l.value=!1),s.response.data.forEach(e=>{d.value.push({...e,imageKey:A.appointmentImageKey[e.state]})}),n.value=!1,t.params.page_index++,l.value=!1})},g=()=>{u.value=!1,n.value=!0,t.params.page_index=1,f()};let _=o({});function y(s){h()}function h(){t.params.page_index=1,d.value=[],u.value=!1,n.value=!0,clearTimeout(_.value),_.value=setTimeout(()=>f(),500)}async function w(){t.seatRoom.columns=await K.getRoom()}function k(s,e){({cancelBadRecord:()=>{q(()=>E(()=>I({id:s.id}).then(r=>(r.code===1&&h(),r))))},details:()=>{U.push({path:"/details",query:{id:s.id,type:"record"}})}})[e]()}return L(()=>{document.title="座位预约记录",w()}),(s,e)=>{const x=F,r=N,B=T,b=G,C=j;return p(),v("div",$,[c("div",M,[c("div",H,[i(x,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),y],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),c("div",J,[i(C,{modelValue:l.value,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value=a),onRefresh:g},{default:m(()=>[i(b,{loading:n.value,"onUpdate:loading":e[1]||(e[1]=a=>n.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:f},{default:m(()=>[(p(!0),v(P,null,S(d.value,a=>(p(),v("div",{key:a,title:a,class:"w-full min-h-[40px]"},[i(B,{item:a},{default:m(()=>[c("div",Q,[i(r,{disabled:a.state===2,onClick:Z=>{k(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:m(()=>[D("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,O))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},ne=R(W,[["__scopeId","data-v-addd11be"]]);export{ne as default}; import{_ as R,r as o,b as V,o as L,c as p,d as v,e as c,f as i,w as m,S as F,F as P,t as S,v as z,x as A,s as D,B as N,y as T,z as E,A as I,D as U,n as j}from"./index-CcGyJ_wO.js";import{P as q}from"./index-BkN4SRlG.js";import{L as G}from"./index-1S9d0Q2S.js";import{C as K}from"./index-iHvIHzts.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const $={class:"w-full h-full bg-[#F3F4F6]"},M={class:"sticky top-0 w-full h-[54px] z-50"},H={style:{"border-top":"1px solid #ebedf0"}},J={class:"w-full h-[calc(100%-54px)] px-3 pt-4"},O=["title"],Q={class:"w-full h-full flex justify-end"},W={__name:"adminContent2",emits:["getTabBarIndex"],setup(X,{emit:Y}){o(1);const t=V({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),d=o([]),n=o(!1),u=o(!1),l=o(!1),f=()=>{z(t.params).then(s=>{l.value&&(d.value=[],l.value=!1),s.response.data.length===0&&(u.value=!0,l.value=!1),s.response.data.forEach(e=>{d.value.push({...e,imageKey:A.appointmentImageKey[e.state]})}),n.value=!1,t.params.page_index++,l.value=!1})},g=()=>{u.value=!1,n.value=!0,t.params.page_index=1,f()};let _=o({});function y(s){h()}function h(){t.params.page_index=1,d.value=[],u.value=!1,n.value=!0,clearTimeout(_.value),_.value=setTimeout(()=>f(),500)}async function w(){t.seatRoom.columns=await K.getRoom()}function k(s,e){({cancelBadRecord:()=>{E(()=>I(()=>U({id:s.id}).then(r=>(r.code===1&&h(),r))))},details:()=>{j.push({path:"/details",query:{id:s.id,type:"record"}})}})[e]()}return L(()=>{document.title="座位预约记录",w()}),(s,e)=>{const x=F,r=N,B=T,b=G,C=q;return p(),v("div",$,[c("div",M,[c("div",H,[i(x,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),y],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),c("div",J,[i(C,{modelValue:l.value,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value=a),onRefresh:g},{default:m(()=>[i(b,{loading:n.value,"onUpdate:loading":e[1]||(e[1]=a=>n.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:f},{default:m(()=>[(p(!0),v(P,null,S(d.value,a=>(p(),v("div",{key:a,title:a,class:"w-full min-h-[40px]"},[i(B,{item:a},{default:m(()=>[c("div",Q,[i(r,{disabled:a.state===2,onClick:Z=>{k(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:m(()=>[D("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,O))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},ne=R(W,[["__scopeId","data-v-addd11be"]]);export{ne as default};
import{r as c,b as F,o as I,c as i,d,f as o,w as s,e as t,B as L,F as w,t as y,E as b,s as m,v as P,x as T,G as k,T as U,C as D}from"./index-CcGyJ_wO.js";import{T as N}from"./index-B11wKrA2.js";import{P as S}from"./index-BkN4SRlG.js";import{L as E}from"./index-1S9d0Q2S.js";import{C as j}from"./index-iHvIHzts.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const A={class:"h-[calc(100vh-65px)] relative"},G={key:0,class:"w-full min-h-full bg-[#F3F4F6]"},K={class:"w-full h-full px-3"},q=["title"],z=t("div",{class:"text-lg font-semibold mb-1"},k("实验室器材"),-1),M={class:"text-sm text-gray-600"},H=t("p",null,"类型: 实验室 ",-1),J=t("p",null,"入库时间: 2025-04-11",-1),O={key:1,class:"w-full min-h-full bg-[#F3F4F6]"},Q={class:"w-full h-full px-3"},W=["title"],X={class:"w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between"},Y=t("div",{class:"text-lg font-semibold mb-1"},k("实验室器材"),-1),Z={class:"text-sm text-gray-600"},$=t("p",null,"类型: 实验室 ",-1),ee=t("p",null,"入库时间: 2025-04-11",-1),te={class:"absolute bottom-0"},me={__name:"adminContent3",emits:["getTabBarIndex"],setup(ae,{emit:se}){c(1);const l=F({items:[{text:"设备"},{text:"耗材"}],activeIndex:0,seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),r=c([]),u=c(!1),f=c(!1),n=c(!1),v=()=>{P(l.params).then(_=>{n.value&&(r.value=[],n.value=!1),_.response.data.length===0&&(f.value=!0,n.value=!1),_.response.data.forEach(a=>{r.value.push({...a,imageKey:T.appointmentImageKey[a.state]})}),u.value=!1,l.params.page_index++,n.value=!1})},p=()=>{f.value=!1,u.value=!0,l.params.page_index=1,v()};c({});async function V(){l.seatRoom.columns=await j.getRoom()}return I(()=>{document.title="座位预约记录",V()}),(_,a)=>{const x=U,R=D,h=E,g=S,B=N,C=L;return i(),d("div",A,[o(B,{"main-active-index":l.activeIndex,"onUpdate:mainActiveIndex":a[4]||(a[4]=e=>l.activeIndex=e),height:"100%",items:l.items},{content:s(()=>[l.activeIndex===0?(i(),d("div",G,[t("div",K,[o(g,{modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=e=>n.value=e),onRefresh:p},{default:s(()=>[o(h,{loading:u.value,"onUpdate:loading":a[0]||(a[0]=e=>u.value=e),finished:f.value,"finished-text":"没有更多了",onLoad:v,class:"flex flex-col gap-3"},{default:s(()=>[(i(!0),d(w,null,y(r.value,e=>(i(),d("div",{key:e,title:e,class:"w-full min-h-[40px]"},[o(R,{class:"w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between van-cell--clickable"},{title:s(()=>[z]),label:s(()=>[t("div",M,[H,t("p",null,[m("库存: 1 "),o(x,{class:"ml-3",type:"success",mark:""},{default:s(()=>[m("空闲")]),_:1})]),J])]),_:1})],8,q))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])):b("",!0),l.activeIndex===1?(i(),d("div",O,[t("div",Q,[o(g,{modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=e=>n.value=e),onRefresh:p},{default:s(()=>[o(h,{loading:u.value,"onUpdate:loading":a[2]||(a[2]=e=>u.value=e),finished:f.value,"finished-text":"没有更多了",onLoad:v,class:"flex flex-col gap-3"},{default:s(()=>[(i(!0),d(w,null,y(r.value,e=>(i(),d("div",{key:e,title:e,class:"w-full min-h-[40px]"},[t("div",X,[Y,t("div",Z,[$,t("p",null,[m("库存: 1 "),o(x,{class:"ml-3",type:"success",mark:""},{default:s(()=>[m("空闲")]),_:1})]),ee])])],8,W))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])):b("",!0)]),_:1},8,["main-active-index","items"]),t("div",te,[o(C,{type:"primary",round:""},{default:s(()=>[m("筛选")]),_:1})])])}}};export{me as default};
import{r as c,b as F,o as I,c as i,d,f as n,w as l,e as a,F as w,t as y,E as b,v as L,x as B,s as r,G as k,T as P,C as T}from"./index-CcGyJ_wO.js";import{T as U}from"./index-B11wKrA2.js";import{P as D}from"./index-BkN4SRlG.js";import{L as N}from"./index-1S9d0Q2S.js";import{C as S}from"./index-iHvIHzts.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const E={class:"h-[calc(100vh-65px)]"},j={key:0,class:"w-full min-h-full bg-[#F3F4F6]"},A={class:"w-full h-full px-3"},G=["title"],K=a("div",{class:"text-lg font-semibold mb-1"},k("实验室器材"),-1),q={class:"text-sm text-gray-600"},z=a("p",null,"类型: 实验室 ",-1),M=a("p",null,"入库时间: 2025-04-11",-1),H={key:1,class:"w-full min-h-full bg-[#F3F4F6]"},J={class:"w-full h-full px-3"},O=["title"],Q={class:"w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between"},W=a("div",{class:"text-lg font-semibold mb-1"},k("实验室器材"),-1),X={class:"text-sm text-gray-600"},Y=a("p",null,"类型: 实验室 ",-1),Z=a("p",null,"入库时间: 2025-04-11",-1),de={__name:"adminContent4",emits:["getTabBarIndex"],setup($,{emit:ee}){c(1);const s=F({items:[{text:"设备"},{text:"耗材"}],activeIndex:0,seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=c([]),u=c(!1),f=c(!1),o=c(!1),v=()=>{L(s.params).then(_=>{o.value&&(m.value=[],o.value=!1),_.response.data.length===0&&(f.value=!0,o.value=!1),_.response.data.forEach(t=>{m.value.push({...t,imageKey:B.appointmentImageKey[t.state]})}),u.value=!1,s.params.page_index++,o.value=!1})},p=()=>{f.value=!1,u.value=!0,s.params.page_index=1,v()};c({});async function V(){s.seatRoom.columns=await S.getRoom()}return I(()=>{document.title="座位预约记录",V()}),(_,t)=>{const x=P,R=T,h=N,g=D,C=U;return i(),d("div",E,[n(C,{"main-active-index":s.activeIndex,"onUpdate:mainActiveIndex":t[4]||(t[4]=e=>s.activeIndex=e),height:"100%",items:s.items},{content:l(()=>[s.activeIndex===0?(i(),d("div",j,[a("div",A,[n(g,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value=e),onRefresh:p},{default:l(()=>[n(h,{loading:u.value,"onUpdate:loading":t[0]||(t[0]=e=>u.value=e),finished:f.value,"finished-text":"没有更多了",onLoad:v,class:"flex flex-col gap-3"},{default:l(()=>[(i(!0),d(w,null,y(m.value,e=>(i(),d("div",{key:e,title:e,class:"w-full min-h-[40px]"},[n(R,{class:"w-full min-h-[80px] bg-white shadow-md rounded-lg p-3 flex flex-col justify-between van-cell--clickable"},{title:l(()=>[K]),label:l(()=>[a("div",q,[z,a("p",null,[r("库存: 1 "),n(x,{class:"ml-3",type:"success",mark:""},{default:l(()=>[r("空闲")]),_:1})]),M])]),_:1})],8,G))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])):b("",!0),s.activeIndex===1?(i(),d("div",H,[a("div",J,[n(g,{modelValue:o.value,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value=e),onRefresh:p},{default:l(()=>[n(h,{loading:u.value,"onUpdate:loading":t[2]||(t[2]=e=>u.value=e),finished:f.value,"finished-text":"没有更多了",onLoad:v,class:"flex flex-col gap-3"},{default:l(()=>[(i(!0),d(w,null,y(m.value,e=>(i(),d("div",{key:e,title:e,class:"w-full min-h-[40px]"},[a("div",Q,[W,a("div",X,[Y,a("p",null,[r("库存: 1 "),n(x,{class:"ml-3",type:"success",mark:""},{default:l(()=>[r("空闲")]),_:1})]),Z])])],8,O))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])):b("",!0)]),_:1},8,["main-active-index","items"])])}}};export{de as default};
import{_ as S,r as i,b as z,o as A,c as f,d as _,e as d,f as s,w as t,F as D,t as G,aa as w,s as v,v as U,x as j,S as E,h as k,B as F,y as q,z as K,A as $,D as M,n as H}from"./index-CcGyJ_wO.js";import{a as J,T as O}from"./index-hXC3ezZl.js";import{P as Q}from"./index-BkN4SRlG.js";import{L as W}from"./index-1S9d0Q2S.js";import{C as X}from"./index-iHvIHzts.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const Y={class:"w-full p-3 h-[calc(100%-66px)]"},Z={class:"sticky top-0 w-full h-[54px] z-50"},ee={style:{"border-top":"1px solid #ebedf0"}},ae={class:"w-full h-[calc(100%-124px)] py-3 overflow-y-auto"},te=["title"],se={class:"w-full h-full flex justify-end"},oe=["src"],le=["src"],ne={__name:"adminNoGoodRecord",emits:["getTabBarIndex"],setup(ie,{emit:B}){const h=i(1),o=z({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=i([]),r=i(!1),c=i(!1),n=i(!1),p=()=>{U(o.params).then(l=>{n.value&&(u.value=[],n.value=!1),l.response.data.length===0&&(c.value=!0,n.value=!1),l.response.data.forEach(e=>{u.value.push({...e,imageKey:j.appointmentImageKey[e.state]})}),r.value=!1,o.params.page_index++,n.value=!1})},R=()=>{c.value=!1,r.value=!0,o.params.page_index=1,p()};let x=i({});function V(l){g()}function g(){o.params.page_index=1,u.value=[],c.value=!1,r.value=!0,clearTimeout(x.value),x.value=setTimeout(()=>p(),500)}async function C(){o.seatRoom.columns=await X.getRoom()}function T(l,e){({cancelBadRecord:()=>{K(()=>$(()=>M({id:l.id}).then(m=>(m.code===1&&g(),m))))},details:()=>{H.push({path:"/details",query:{id:l.id,type:"record"}})}})[e]()}return A(()=>{document.title="座位预约记录",C()}),(l,e)=>{const y=E,m=F,L=q,I=W,N=Q,b=J,P=O;return f(),_("div",Y,[d("div",Z,[d("div",ee,[s(y,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:o.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>o.params.key_name=a),V],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),d("div",ae,[s(N,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),onRefresh:R},{default:t(()=>[s(I,{loading:r.value,"onUpdate:loading":e[1]||(e[1]=a=>r.value=a),finished:c.value,"finished-text":"没有更多了",onLoad:p},{default:t(()=>[(f(!0),_(D,null,G(u.value,a=>(f(),_("div",{key:a,title:a,class:"w-full min-h-[40px]"},[s(L,{item:a},{default:t(()=>[d("div",se,[s(m,{disabled:a.state===2,onClick:de=>{T(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:t(()=>[v("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,te))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),s(P,{class:"w-full h-[80px]",fixed:"",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=a=>h.value=a),onChange:e[4]||(e[4]=a=>B("getTabBarIndex",a))},{default:t(()=>[s(b,{icon:"home-o"},{icon:t(()=>[d("img",{src:w(k)("cwgl2"),class:"w-[20px] h-[20px]"},null,8,oe)]),default:t(()=>[v("座位管理 ")]),_:1}),s(b,{icon:"search"},{icon:t(()=>[d("img",{src:w(k)("bljl1"),class:"w-[20px] h-[20px]"},null,8,le)]),default:t(()=>[v("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])}}},ve=S(ne,[["__scopeId","data-v-23f9ae15"]]);export{ve as default};
import{_ as S,r as i,b as z,o as A,c as f,d as _,e as d,f as s,w as t,F as D,s as G,W as w,q as v,t as U,v as j,S as q,h as k,B as E,x as F,y as K,z as $,A as M,D as W}from"./index-C6T2BeyB.js";import{a as H,T as J}from"./index-CeVmXe3Z.js";import{P as O}from"./index-CjQMYFsi.js";import{L as Q}from"./index-bC9oCKVO.js";import{C as X}from"./index-BcOKbh7x.js";import"./index-C6Gc9SJb.js";import"./index-WyguV52L.js";const Y={class:"w-full p-3 h-[calc(100%-66px)]"},Z={class:"sticky top-0 w-full h-[54px] z-50"},ee={style:{"border-top":"1px solid #ebedf0"}},ae={class:"w-full h-[calc(100%-124px)] py-3 overflow-y-auto"},te=["title"],se={class:"w-full h-full flex justify-end"},oe=["src"],le=["src"],ne={__name:"adminNoGoodRecord",emits:["getTabBarIndex"],setup(ie,{emit:B}){const h=i(1),o=z({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=i([]),r=i(!1),c=i(!1),n=i(!1),p=()=>{U(o.params).then(l=>{n.value&&(u.value=[],n.value=!1),l.response.data.length===0&&(c.value=!0,n.value=!1),l.response.data.forEach(e=>{u.value.push({...e,imageKey:j.appointmentImageKey[e.state]})}),r.value=!1,o.params.page_index++,n.value=!1})},R=()=>{c.value=!1,r.value=!0,o.params.page_index=1,p()};let x=i({});function V(l){g()}function g(){o.params.page_index=1,u.value=[],c.value=!1,r.value=!0,clearTimeout(x.value),x.value=setTimeout(()=>p(),500)}async function C(){o.seatRoom.columns=await X.getRoom()}function T(l,e){({cancelBadRecord:()=>{K(()=>$(()=>M({id:l.id}).then(m=>(m.code===1&&g(),m))))},details:()=>{W.push({path:"/details",query:{id:l.id,type:"record"}})}})[e]()}return A(()=>{document.title="座位预约记录",C()}),(l,e)=>{const y=q,m=E,L=F,I=Q,N=O,b=H,P=J;return f(),_("div",Y,[d("div",Z,[d("div",ee,[s(y,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:o.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>o.params.key_name=a),V],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),d("div",ae,[s(N,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),onRefresh:R},{default:t(()=>[s(I,{loading:r.value,"onUpdate:loading":e[1]||(e[1]=a=>r.value=a),finished:c.value,"finished-text":"没有更多了",onLoad:p},{default:t(()=>[(f(!0),_(D,null,G(u.value,a=>(f(),_("div",{key:a,title:a,class:"w-full min-h-[40px]"},[s(L,{item:a},{default:t(()=>[d("div",se,[s(m,{disabled:a.state===2,onClick:de=>{T(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:t(()=>[v("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,te))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),s(P,{class:"w-full h-[80px]",fixed:"",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=a=>h.value=a),onChange:e[4]||(e[4]=a=>B("getTabBarIndex",a))},{default:t(()=>[s(b,{icon:"home-o"},{icon:t(()=>[d("img",{src:w(k)("cwgl2"),class:"w-[20px] h-[20px]"},null,8,oe)]),default:t(()=>[v("座位管理 ")]),_:1}),s(b,{icon:"search"},{icon:t(()=>[d("img",{src:w(k)("bljl1"),class:"w-[20px] h-[20px]"},null,8,le)]),default:t(()=>[v("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])}}},ve=S(ne,[["__scopeId","data-v-23f9ae15"]]);export{ve as default};
此差异已折叠。
此差异已折叠。
const __vite__fileDeps=["./reserveASeat-Cbba_8YU.js","./index-C6T2BeyB.js","./index-1S-S6kjN.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); const __vite__fileDeps=["./reserveASeat-BUBPyfC6.js","./index-CcGyJ_wO.js","./index-BDZVq4H4.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as C,b as P,r as n,o as B,c as d,d as m,e as v,f as r,w as _,F as A,s as D,t as S,v as E,D as f,S as N,l as F,m as I,aF as T}from"./index-C6T2BeyB.js";import{P as U}from"./index-CjQMYFsi.js";import{L as q}from"./index-bC9oCKVO.js";import{N as z}from"./index-CIO_ghMp.js";import{C as G}from"./index-BcOKbh7x.js";import"./index-C6Gc9SJb.js";import"./index-WyguV52L.js";const K={class:"w-screen h-screen bg-gray-100 box-border relative"},j={class:"sticky top-0 w-full h-[112px] z-50"},M={style:{"border-top":"1px solid #ebedf0"}},O={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto"},$=["title"],H={__name:"adverseActivityRecord",setup(J){F(()=>I(()=>import("./reserveASeat-Cbba_8YU.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=P({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),i=n([]),l=n(!1),u=n(!1),o=n(!1),c=()=>{S(t.params).then(s=>{o.value&&(i.value=[],o.value=!1),s.response.data.length===0&&(u.value=!0,o.value=!1),s.response.data.forEach(e=>{i.value.push({...e,imageKey:E.appointmentImageKey[e.state]})}),l.value=!1,t.params.page_index++,o.value=!1})},h=()=>{u.value=!1,l.value=!0,t.params.page_index=1,c()};let p=n({});function x(s){g()}function g(){t.params.page_index=1,i.value=[],u.value=!1,l.value=!0,clearTimeout(p.value),p.value=setTimeout(()=>c(),500)}function y(){let s=f.currentRoute.value.query.name;s?f.replace({name:s}):f.back()}async function k(){t.seatRoom.columns=await G.getRoom()}return B(()=>{k()}),(s,e)=>{const w=z,R=N,b=T,L=q,V=U;return d(),m("div",K,[v("div",j,[r(w,{"left-text":"返回","left-arrow":"",onClickLeft:y,title:"座位使用违约记录"}),v("div",M,[r(R,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),x],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),v("div",O,[r(V,{modelValue:o.value,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value=a),onRefresh:h},{default:_(()=>[r(L,{loading:l.value,"onUpdate:loading":e[1]||(e[1]=a=>l.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:c},{default:_(()=>[(d(!0),m(A,null,D(i.value,a=>(d(),m("div",{key:a,title:a,class:"w-full min-h-[100px]"},[r(b,{item:a},null,8,["item"])],8,$))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},te=C(H,[["__scopeId","data-v-04667cc1"]]);export{te as default}; import{_ as C,b as P,r as n,o as B,c as d,d as m,e as v,f as r,w as _,F as A,t as N,v as S,x as D,n as f,S as E,l as I,m as T,aN as U}from"./index-CcGyJ_wO.js";import{P as q}from"./index-BkN4SRlG.js";import{L as z}from"./index-1S9d0Q2S.js";import{N as F}from"./index-Ci2TI16Z.js";import{C as G}from"./index-iHvIHzts.js";import"./index-Bkj-8nMJ.js";import"./index-C7H7xZf5.js";const K={class:"w-screen h-screen bg-gray-100 box-border relative"},j={class:"sticky top-0 w-full h-[112px] z-50"},M={style:{"border-top":"1px solid #ebedf0"}},O={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto"},$=["title"],H={__name:"adverseActivityRecord",setup(J){I(()=>T(()=>import("./reserveASeat-BUBPyfC6.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=P({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),i=n([]),l=n(!1),u=n(!1),o=n(!1),c=()=>{S(t.params).then(s=>{o.value&&(i.value=[],o.value=!1),s.response.data.length===0&&(u.value=!0,o.value=!1),s.response.data.forEach(e=>{i.value.push({...e,imageKey:D.appointmentImageKey[e.state]})}),l.value=!1,t.params.page_index++,o.value=!1})},h=()=>{u.value=!1,l.value=!0,t.params.page_index=1,c()};let p=n({});function x(s){g()}function g(){t.params.page_index=1,i.value=[],u.value=!1,l.value=!0,clearTimeout(p.value),p.value=setTimeout(()=>c(),500)}function y(){let s=f.currentRoute.value.query.name;s?f.replace({name:s}):f.back()}async function k(){t.seatRoom.columns=await G.getRoom()}return B(()=>{k()}),(s,e)=>{const w=F,R=E,b=U,L=z,V=q;return d(),m("div",K,[v("div",j,[r(w,{"left-text":"返回","left-arrow":"",onClickLeft:y,title:"座位使用违约记录"}),v("div",M,[r(R,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),x],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),v("div",O,[r(V,{modelValue:o.value,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value=a),onRefresh:h},{default:_(()=>[r(L,{loading:l.value,"onUpdate:loading":e[1]||(e[1]=a=>l.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:c},{default:_(()=>[(d(!0),m(A,null,N(i.value,a=>(d(),m("div",{key:a,title:a,class:"w-full min-h-[100px]"},[r(b,{item:a},null,8,["item"])],8,$))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},te=C(H,[["__scopeId","data-v-04667cc1"]]);export{te as default};
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或