分诊排队信息 样式调整 ,日志 时间调整

main
yanzai 7 months ago
parent 563ece6bf0
commit f3c74793e5

@ -25,7 +25,7 @@ class LogService
if($id>0){ if($id>0){
return DB::table($table_name)->where('id', $id)->update([ return DB::table($table_name)->where('id', $id)->update([
'response_data' => $response_data, 'response_data' => $response_data,
'update_time' => $formatted_date
]); ]);
}else{ }else{
return DB::table($table_name)->insertGetId([ return DB::table($table_name)->insertGetId([

@ -1,128 +1,152 @@
<template> <template>
<view class="fenzhen_info" v-if="userInfo"> <view class="fenzhen_info" v-if="userInfo">
<view class="header"> <view class="header">
<view class="name">{{userInfo.name}} <span style="font-size: 30rpx;"> {{userInfo.sex==1?'男':userInfo.sex==2?'女':''}} | {{userInfo.age}}</span></view> <view class="name">{{userInfo.name}} <span style="font-size: 30rpx;">
<!-- <view class="riqi">体检套餐{{userInfo.comboName}}</view> {{userInfo.sex==1?'男':userInfo.sex==2?'女':''}} | {{userInfo.age}}</span> <span
style="font-size: 30rpx;" v-if=" userInfo.reg_number">卡号{{userInfo.reg_number}}</span></view>
<!-- <view class="riqi">体检套餐{{userInfo.comboName}}</view>
<view class="riqi">体检日期{{userInfo.appointment_date}}</view> --> <view class="riqi">体检日期{{userInfo.appointment_date}}</view> -->
</view> </view>
<!--
<view class="tiaoma" v-if="userInfo.reg_number"> <view class="tiaoma" v-if="userInfo.reg_number">
<w-barcode :options="{ <w-barcode :options="{
width:600, width:600,
height:160, height:160,
code: userInfo.reg_number?userInfo.reg_number:'' , code: userInfo.reg_number?userInfo.reg_number:'' ,
}"></w-barcode> }"></w-barcode>
<view v-if=" userInfo.reg_number">{{userInfo.reg_number}}</view>
</view> </view> -->
<view style="font-size: 26rpx;margin-top: 50rpx;color: #d46767;font-weight: 700;"> <view
style="font-size: 26rpx;margin-top: 50rpx;color: #d46767;font-weight: 700; border: 1px solid #83c5c5; padding: 30rpx;border-radius: 20rpx;">
<view v-for="(item,index) in tip"> <view v-for="(item,index) in tip">
{{item}} {{item}}
</view> </view>
</view> </view>
<view class="xia"> <view class="xia">
<view class="xia_row1"> <view class="xia_row1">
<view class="xia_title">体检诊室 <span style="font-size: 30rpx;color: #7D7D7D;"> <span class="lanzi">{{keshi_ids.length}}</span> </span></view> <view class="xia_title">体检诊室 <span style="font-size: 30rpx;color: #7D7D7D;"> <span
<view style="color: #7D7D7D;"> class="lanzi">{{keshi_ids.length}}</span> </span></view>
<view style="color: #7D7D7D;">
已检查 <span class="lanzi">{{wancheng_count}}</span> 已检查 <span class="lanzi">{{wancheng_count}}</span>
</view> </view>
</view> </view>
<view v-for="(item,index) in fenzhen_list" :key="index"> <view v-for="(item,index) in fenzhen_list" :key="index">
<view class="zhuangtai" v-if="item.status==1"> <view class="zhuangtai" v-if="item.status==1">
<view class="zhuangtai_left bakcolor3" > </view> <view class="zhuangtai_left bakcolor3"> </view>
<view class="zhuangtai_right"> <view class="zhuangtai_right">
<view> <view>
<view class="keshiname">{{item.item}}</view>
</view> <view class="keshiname" v-if="item.clinic">{{item.clinic}}</view>
</view>
</view> <view class="item_k" v-for="(item2,index2) in item.items">
<view class="zhuangtai" v-if="item.status==2"> <view class="zhenshiname">{{item2.name}}</view>
<view class="zhuangtai_left bakcolor2" > </view> <view class="itemdesc">{{item2.desc}}</view>
<view class="zhuangtai_right "> </view>
</view>
</view>
<view> </view>
<view class="zhuangtai" v-if="item.status==2">
<view class="keshiname">{{item.clinic}}</view> <view class="zhuangtai_left bakcolor2"> </view>
<view class="zhuangtai_right ">
<view class="zhenshiname">{{item.item}}</view>
<view style="display: flex; justify-content: end;">
<view>
<view class="keshiname">{{item.clinic}}</view>
<view class="item_k" v-for="(item2,index2) in item.items">
<view class="zhenshiname">{{item2.name}}</view>
<view class="itemdesc">{{item2.desc}}</view>
</view>
<view style="display: flex; justify-content: end;">
<view style="color: #7D7D7D;"> <span class="shuzi">{{item.wait}}</span>人排队</view> <view style="color: #7D7D7D;"> <span class="shuzi">{{item.wait}}</span>人排队</view>
<view style="color: #7D7D7D;margin-left: 20rpx;" > 预计等待<span class="shuzi">{{item.time}}</span>分钟</view> <view style="color: #7D7D7D;margin-left: 20rpx;"> 预计等待<span
class="shuzi">{{item.time}}</span>分钟</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="zhuangtai" v-if="item.status==3"> <view class="zhuangtai" v-if="item.status==3">
<view class="zhuangtai_left bakcolor1"> </view> <view class="zhuangtai_left bakcolor1"> </view>
<view class="zhuangtai_right"> <view class="zhuangtai_right">
<view> <view>
<view class="keshiname">{{item.clinic}}</view> <view class="keshiname">{{item.clinic}}</view>
<view class="zhenshiname">{{item.item}}</view> <view class="item_k" v-for="(item2,index2) in item.items">
</view> <view class="zhenshiname">{{item2.name}}</view>
<!-- <view style="color: #7D7D7D;">序号{{item.wait_count}}</view> --> <view class="itemdesc">{{item2.desc}}</view>
</view> </view>
</view> </view>
<view class="zhuangtai" v-if="item.status==4"> <!-- <view style="color: #7D7D7D;">序号{{item.wait_count}}</view> -->
<view class="zhuangtai_left bakcolor1"> </view> </view>
<view class="zhuangtai_right"> </view>
<view> <view class="zhuangtai" v-if="item.status==4">
<view class="keshiname">{{item.clinic}}</view> <view class="zhuangtai_left bakcolor1"> </view>
<view class="zhenshiname">{{item.item}}</view> <view class="zhuangtai_right">
</view> <view>
<!-- <view style="color: #7D7D7D;"> {{item.wait_count}}</view> --> <view class="keshiname">{{item.clinic}}</view>
</view> <view class="item_k" v-for="(item2,index2) in item.items">
</view> <view class="zhenshiname">{{item2.name}}</view>
<view class="itemdesc">{{item2.desc}}</view>
</view> </view>
</view>
</view> <!-- <view style="color: #7D7D7D;"> {{item.wait_count}}</view> -->
</view>
</view>
</view>
</view>
</view> </view>
</template> </template>
<script setup> <script setup>
import { import {
ref,onMounted, nextTick,onUnmounted ref,
onMounted,
nextTick,
onUnmounted
} from 'vue' } from 'vue'
import { import {
onShow,onLoad onShow,
onLoad
} from '@dcloudio/uni-app' } from '@dcloudio/uni-app'
import { import {
FenZhenGetTiJianLine, FenZhenGetTiJianLine,
} from '@/api' } from '@/api'
let id_number=ref(''); let id_number = ref('');
let userInfo=ref(''); let userInfo = ref('');
let fenzhen_list=ref([]); let fenzhen_list = ref([]);
let wancheng_count=ref(0); let wancheng_count = ref(0);
let keshi_ids=ref([]) let keshi_ids = ref([])
let hospital=ref('') let hospital = ref('')
let refreshInterval = ref(null) // let refreshInterval = ref(null) //
let tip=ref([]); let tip = ref([]);
const ChaXunFenZhenInfo= async(info)=>{ const ChaXunFenZhenInfo = async (info) => {
wancheng_count.value=0; wancheng_count.value = 0;
FenZhenGetTiJianLine({ FenZhenGetTiJianLine({
id_number: id_number.value id_number: id_number.value
}).then(res => { }).then(res => {
if (res.status) { if (res.status) {
fenzhen_list.value = res.data.list fenzhen_list.value = res.data.list
userInfo.value=res.data.info userInfo.value = res.data.info
tip.value=res.data.tip.split('\r\n'); tip.value = res.data.tip.split('\r\n');
fenzhen_list.value.forEach(function(item,index){ fenzhen_list.value.forEach(function(item, index) {
if(item.status==4){ if (item.status == 4) {
wancheng_count.value++ wancheng_count.value++
} }
if (keshi_ids.value.includes(item.clinic)) { if (keshi_ids.value.includes(item.clinic)) {
}else{ } else {
keshi_ids.value.push(item.clinic) keshi_ids.value.push(item.clinic)
} }
}) })
} }
}) })
} }
// //
@ -132,18 +156,18 @@
ChaXunFenZhenInfo() ChaXunFenZhenInfo()
}, 10000) // 5 }, 10000) // 5
} }
onMounted(()=>{ onMounted(() => {
}) })
onLoad((option)=>{ onLoad((option) => {
id_number.value=option.id_number id_number.value = option.id_number
console.log(option) console.log(option)
ChaXunFenZhenInfo() ChaXunFenZhenInfo()
startAutoRefresh() startAutoRefresh()
}) })
// //
onUnmounted(() => { onUnmounted(() => {
@ -155,106 +179,138 @@
</script> </script>
<style scoped> <style scoped>
.fenzhen_info{ .fenzhen_info {
padding: 30rpx; padding: 30rpx;
} }
.header{
background-color:#30c5be ; .header {
background-color: #30c5be;
border-radius: 20rpx; border-radius: 20rpx;
padding: 30rpx 40rpx; padding: 30rpx 40rpx;
color:#fff; color: #fff;
} }
.shuzi{
.shuzi {
font-weight: 700; font-weight: 700;
color:#ff5500; color: #ff5500;
} }
.name{
.name {
font-size: 50rpx; font-size: 50rpx;
} }
.riqi{
.riqi {
font-size: 26rpx; font-size: 26rpx;
margin-top: 18rpx; margin-top: 18rpx;
} }
.tiaoma{
.tiaoma {
border-radius: 20rpx; border-radius: 20rpx;
padding: 60rpx 40rpx 30rpx 40rpx; padding: 60rpx 40rpx 30rpx 40rpx;
box-shadow: 0px 5px 5px #ccc; box-shadow: 0px 5px 5px #ccc;
} }
.xia{
.xia {
padding: 40rpx 0; padding: 40rpx 0;
} }
.xia_title{
.xia_title {
font-size: #222222; font-size: #222222;
font-size: 40rpx; font-size: 40rpx;
} }
.xia_row1{
.xia_row1 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
line-height: 40rpx; line-height: 40rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.zhuangtai{
.zhuangtai {
display: flex; display: flex;
box-shadow: 0px 5px 5px #ccc; box-shadow: 0px 5px 5px #ccc;
border-radius: 20rpx ; border-radius: 20rpx;
border: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
margin-top: 20rpx; margin-top: 20rpx;
} }
.zhuangtai_left{
.zhuangtai_left {
color:#fff;
color: #fff;
padding: 30rpx 20rpx; padding: 30rpx 20rpx;
text-align: center; /* 文字居中对齐 */ text-align: center;
white-space: nowrap; /* 防止文字换行 */ /* 文字居中对齐 */
writing-mode:tb-rl; white-space: nowrap;
font-size: 30rpx ; /* 防止文字换行 */
border-radius: 20rpx 0 0 20rpx; writing-mode: tb-rl;
font-size: 30rpx;
border-radius: 20rpx 0 0 20rpx;
} }
.bakcolor1{
.bakcolor1 {
background-color: #fc924a; background-color: #fc924a;
} }
.bakcolor2{
background-color: #01cfde ; .bakcolor2 {
background-color: #01cfde;
} }
.bakcolor3{
.bakcolor3 {
background-color: #c6c6c6; background-color: #c6c6c6;
} }
.lanzi{
color:#01cfde; .lanzi {
color: #01cfde;
} }
.zhuangtai_right{ .zhuangtai_right {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding: 40rpx; padding: 40rpx;
} }
.keshiname{
.keshiname {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: 40rpx;
color: #222222; color: #222222;
} }
.zhenshiname{
.zhenshiname {
font-weight: 500; font-weight: 500;
font-size: 30rpx; font-size: 30rpx;
color: #6E6E6E; color: #6E6E6E;
margin-top: 12rpx; margin-top: 12rpx;
} }
.tiaoma{
.tiaoma {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.tiaoma2{
.tiaoma2 {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
margin-bottom: 15rpx; margin-bottom: 15rpx;
} }
</style>
.item_k {
border-bottom: 1px solid #ddd;
padding: 0rpx 16rpx 16rpx 0rpx;
}
.itemdesc {
font-size: 26rpx;
color: #ff573a;
font-weight: 700;
}
</style>

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<link rel="stylesheet" href="/h5/assets/uni.e2ccac17.css"> <link rel="stylesheet" href="/h5/assets/uni.fd7900b0.css">
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<script> <script>
@ -14,7 +14,7 @@
<title>MemberMngr</title> <title>MemberMngr</title>
<!--preload-links--> <!--preload-links-->
<!--app-context--> <!--app-context-->
<script type="module" crossorigin src="/h5/assets/index-7c1fcebf.js"></script> <script type="module" crossorigin src="/h5/assets/index-515904ee.js"></script>
<link rel="stylesheet" href="/h5/assets/index-533083b3.css"> <link rel="stylesheet" href="/h5/assets/index-533083b3.css">
</head> </head>
<body> <body>

Loading…
Cancel
Save