|
@@ -1,159 +0,0 @@
|
|
|
-<template>
|
|
|
- <el-card class="health-check-card">
|
|
|
- <el-row class="title">
|
|
|
- <span>飞依诺职工体检</span>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="10" style="background-color:#E6E6FA;">
|
|
|
- <el-col :span="24">
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">体检地点:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.location }}</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">体检时间:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.time }}</el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-divider></el-divider>
|
|
|
- <el-row :gutter="10">
|
|
|
- <el-col :span="24">
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">体检对象:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.target }}</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">已报名人数:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.enrolledCount }}</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">包含项目数:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.itemCount }}</el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-divider></el-divider>
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">体检说明:</el-col>
|
|
|
- <el-col :span="16">{{ healthCheck.description }}</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col class="label" :span="8">包含项目:</el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <div v-if="healthCheck.items" v-for="item in healthCheck.items" :key="item">
|
|
|
- <div class="checkItem">
|
|
|
- <el-tag>{{ item.name }}</el-tag>
|
|
|
- <span> {{ item.content }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-card>
|
|
|
- <el-row class="signButton">
|
|
|
- <el-button type="primary" size="large" @click="handleSignUp">报名参加</el-button>
|
|
|
- </el-row>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import store from "@/store";
|
|
|
-import {
|
|
|
- GetHealthExamBookingRequest,
|
|
|
-} from "@/jsonrpc/services/healthExamBooking.m";
|
|
|
-export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- code: '',
|
|
|
- healthCheck: {},
|
|
|
- };
|
|
|
- },
|
|
|
- async mounted() {
|
|
|
- this.$nextTick(async ()=>{
|
|
|
- this.code = this.$route.query.code;
|
|
|
- var data = await this.GetData();
|
|
|
- this.healthCheck = {
|
|
|
- location: data.location,
|
|
|
- time: this.GetDateString(data.startDate.toLocaleDateString().split('/'))+" "+data.startDate.toLocaleTimeString()+"-"+data.endDate.toLocaleTimeString(),
|
|
|
- target: data.subject,
|
|
|
- enrolledCount: data.persons.length,
|
|
|
- itemCount: data.examItems.length,
|
|
|
- description: data.description,
|
|
|
- items: data.examItems.map(f=>{
|
|
|
- return {
|
|
|
- name:f.name, content:f.content
|
|
|
- };
|
|
|
- }),
|
|
|
- };
|
|
|
- });
|
|
|
- },
|
|
|
- methods: {
|
|
|
- handleSignUp() {
|
|
|
- this.$router.push({ path: "/submitRegister",params: {code:this.code} });
|
|
|
- },
|
|
|
- GetDateString(date)
|
|
|
- {
|
|
|
- var year = date[0];
|
|
|
- var month = date[1];
|
|
|
- var day = date[2];
|
|
|
- return year+"年"+month+"月"+day+"日";
|
|
|
- },
|
|
|
- async GetData() {
|
|
|
- var request = new GetHealthExamBookingRequest({
|
|
|
- code: this.code,
|
|
|
- token: store.state.userInfo.token,
|
|
|
- }).toJson();
|
|
|
- var data = await this.$rpc.healthExamBooking.getHealthExamBookingAsync(request);
|
|
|
- console.log(data);
|
|
|
- return data;
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped>
|
|
|
-.health-check-card {
|
|
|
- padding: 5px;
|
|
|
- margin: 10px;
|
|
|
- border-radius: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.el-row {
|
|
|
- padding: 2px;
|
|
|
-}
|
|
|
-
|
|
|
-.el-col {
|
|
|
- padding: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.title {
|
|
|
- font-size: 20px;
|
|
|
- font-weight: bold;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- text-align: center;
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.signButton {
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
-
|
|
|
-.checkItem {
|
|
|
- margin-bottom: 5px;
|
|
|
-}
|
|
|
-
|
|
|
-.label {
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-
|
|
|
-/* 设置按钮的宽度和高度 */
|
|
|
-.el-button--large {
|
|
|
- margin: 30px;
|
|
|
- width: 300px;
|
|
|
- height: 50px;
|
|
|
- font-size: 20px;
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-</style>
|