You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
3.9 KiB
PHTML
149 lines
3.9 KiB
PHTML
<!doctype html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<link type="image/x-icon" rel="shortcut icon" href="./favicon.ico"/>
|
|
<link rel="stylesheet" href="./assets/import/element-plus.css"/>
|
|
<link rel="stylesheet" href="./assets/import/element.css"/>
|
|
<link href="./assets/import/tailwind.min.css" rel="stylesheet">
|
|
<script src="./assets/import/vue.js"></script>
|
|
<script src="./assets/import/element-plus.js"></script>
|
|
<link rel="stylesheet" href="./assets/import/icon/style.css">
|
|
<script src="./assets/import/axios.js"></script>
|
|
<title>分诊自助登记</title>
|
|
<style>
|
|
[v-cloak] {
|
|
display: none;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.title_wrapper {
|
|
margin-top: 50px;
|
|
line-height: 1;
|
|
font-size: 30px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
.search_wrapper {
|
|
width: calc(100% - 60px);
|
|
margin: 30px auto 0;
|
|
}
|
|
|
|
.search_button_wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.no_queue_wrapper {
|
|
color: #999999;
|
|
text-align: center;
|
|
padding: 30px 0;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
}
|
|
|
|
.queue_wrapper {
|
|
margin: 20px auto 0;
|
|
padding: 20px;
|
|
background: #37A0FB30;
|
|
}
|
|
|
|
.queue_button_wrapper {
|
|
width: 100%;
|
|
margin: 20px auto 0;
|
|
}
|
|
|
|
.queue_box_wrapper {
|
|
width: calc(100% - 60px);
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
<script>
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app" v-cloak>
|
|
<el-config-provider :button="button_config">
|
|
<div>
|
|
<div class="title_wrapper">分诊自助登记</div>
|
|
<div class="search_wrapper">
|
|
<el-form label-position="top">
|
|
<el-form-item label="证件号">
|
|
<el-input v-model="id_number" placeholder="请输入证件号"></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
<el-button @click="searchClick()" class="search_button_wrapper" type="primary">查询</el-button>
|
|
</div>
|
|
@if($id_number != '')
|
|
<div class="queue_box_wrapper">
|
|
@if(count($queue) != 0)
|
|
<div class="queue_wrapper">
|
|
<el-form label-width="auto">
|
|
<el-form-item label="姓名">{{ $queue[0]['name'] }}</el-form-item>
|
|
<el-form-item label="诊室">{{ $queue[0]['clinic'] }}</el-form-item>
|
|
<el-form-item label="项目">{{ $queue[0]['item'] }}</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<el-button @click="doneClick(`{{ $queue[0]['clinic'] }}`)" class="queue_button_wrapper" type="primary">确认并登记</el-button>
|
|
@else
|
|
<div class="no_queue_wrapper">未查询到排队信息</div>
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</el-config-provider>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
const {createApp, onMounted, ref, nextTick, computed} = Vue
|
|
const {ElLoading, ElMessage, ElMessageBox} = ElementPlus
|
|
</script>
|
|
<script src="./assets/mounting.js"></script>
|
|
<script>
|
|
const App = {
|
|
setup() {
|
|
const button_config = {
|
|
autoInsertSpace: true,
|
|
}
|
|
|
|
const id_number = ref('{{ $id_number }}')
|
|
const searchClick = () => {
|
|
if (id_number.value !== '{{ $id_number }}') {
|
|
window.location.href = '/fenzhen?id_number=' + id_number.value
|
|
}
|
|
}
|
|
|
|
const doneClick = (clinic) => {
|
|
window.$box.alert(`登记成功,请前往${clinic}排队`, '提示', {
|
|
confirmButtonText: 'OK',
|
|
callback: () => {
|
|
console.log('AAAAA')
|
|
},
|
|
})
|
|
}
|
|
|
|
onMounted(() => {
|
|
})
|
|
|
|
return {
|
|
id_number,
|
|
button_config,
|
|
doneClick,
|
|
searchClick
|
|
}
|
|
}
|
|
}
|
|
const app = createApp(App)
|
|
app.use(ElementPlus)
|
|
app.mount('#app')
|
|
</script>
|
|
</html>
|