From feef4b0ba52922aa9d35aaeed77f397aaf95f0fb Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 28 八月 2025 11:41:34 +0800
Subject: [PATCH] gx医嘱
---
src/views/record/index.vue | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index 0a752db..57ef34f 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -8,7 +8,6 @@
/>
<div>
<van-calendar
- color="#769AFF"
:min-date="minDate"
@month-show="monthShow"
:poppable="false"
@@ -158,6 +157,7 @@
year:y,
month:m,
}
+
ajaxPost('/patient/hemo/med/record/listByPatient',pagedata).then((re:any)=>{
console.log(re)
re.forEach((element:any) => {
@@ -169,11 +169,12 @@
y:Number(dey[0]),
m:Number(dey[1]),
d:Number(dey[2].substring(0,2)),
- type:'o',
+ type:element.schemeName,
timeSlot:element.scheduleTimeSlot,
code:element.code,
scheduleDay:element.scheduleDay,
- id:element.id
+ id:element.id,
+ 透析单状态:element.medState,
})
}
@@ -193,7 +194,12 @@
const date = day.date.getDate()
const index= selectDate.value.findIndex(el=>{return el.y===year&&el.m===month&&el.d===date})
if (index>0){
- day.type='selected'
+ day.text=selectDate.value[index].type
+ if (selectDate.value[index].透析单状态){
+ day.type='end'
+ } else {
+ day.type='start'
+ }
if (selectDate.value[index].timeSlot===0){
day.bottomInfo='上午'
}
@@ -203,6 +209,7 @@
else {
day.bottomInfo='晚上'
}
+ console.log(day)
}
return day
}
@@ -217,7 +224,7 @@
})
}
</script>
-<style lang="scss">
+<style scoped lang="scss">
.recordclass {
// background: rgb(228, 231, 225);
color: #00f;
@@ -290,4 +297,9 @@
height: 36px;
line-height: 36px;
}
+/* stylelint-disable selector-pseudo-class-no-unknown */
+:deep(.van-calendar__day--end) {
+ border-radius: 0 var(--van-border-radius-md) var(--van-border-radius-md) 0;
+ background: #4696f9;
+}
</style>
\ No newline at end of file
--
Gitblit v1.8.0