Commit 4f993868 authored by weishengfei's avatar weishengfei

feat(productionCalendar): 新增日历组件并优化产检记录显示

- 添加日历组件,支持日期选择和月份切换
- 优化产检记录显示逻辑,根据选定日期筛选记录
- 修复日期选择器和日历组件的样式问题
- 优化页面布局和交互细节
parent b8e974de
......@@ -145,7 +145,7 @@
// 默认产检时间
const time = ref(dateFormatter(new Date(), 'yyyy-MM-dd'));
const time = ref('');
// 控制选择时间显示
const visible = ref(false)
......@@ -387,7 +387,12 @@
}
}
onLoad((options) => {
console.log(options)
if(Object.keys(options).length > 0 && options.time){
time.value = options.time
}else{
time.value = dateFormatter(new Date(), 'yyyy-MM-dd')
}
console.log(options, '新增页面')
getList()
})
</script>
......
......@@ -198,6 +198,7 @@
}
// 按钮点击
const onBtn = (type) => {
// const items = JSON.stringify(homeInfo.value)
// type 1 报告单 2 日历
switch (type) {
case 1:
......@@ -207,7 +208,7 @@
break;
case 2:
uni.navigateTo({
url: '/pages/productionCalendar/productionCalendar'
url: `/pages/productionCalendar/productionCalendar`
})
break;
default:
......@@ -286,7 +287,7 @@
checkupList: [{
type: 0, // 1 是 0 否
id: 1,
checkupDate: '2025-8-22',
checkupDate: '2025-07-12',
index: '一', // 产检次数
pregnancyWeek: '5-6', // 周数
status: 'completed', //待产检、已过期、已产检,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment