9.16下午更新 包含im

This commit is contained in:
zoujiandong
2025-09-16 16:19:29 +08:00
parent 215b3298d0
commit b884a8f6fc
127 changed files with 59972 additions and 182 deletions
+22 -12
View File
@@ -102,11 +102,13 @@
<script setup>
import { ref, onMounted } from 'vue';
import { onShow } from "@dcloudio/uni-app";
import navTo from '@/utils/navTo.js';
import api from '@/api/api.js';
// 表单数据
const show=ref(false);
const selectedPatient = ref('');
const selectedDate = ref('');
const datetime = ref('');
const followUpContent = ref('请于近日来院复诊、复查');
const remindMe = ref(false);
const remindPatient = ref(true);
@@ -117,7 +119,22 @@
const goBack = () => {
uni.navigateBack();
};
const addFollowUps=()=>{
api.addFollowUps({
patient_uuid: patientUuid.value,
note: followUpContent.value,
datetime: datetime.value,
isremindpatient: remindPatient.value?1:0,
isremindme:remindMe.value?1:0,
type:1
}).then(res=>{
console.log(res)
if(res.code==200){
uni.showToast({ title: '提交成功', icon: 'success' });
setTimeout(()=>uni.navigateBack(),700);
}
})
}
// 提交日程
const submitSchedule = () => {
if (!selectedPatient.value) {
@@ -127,16 +144,7 @@
});
return;
}
uni.showToast({
title: '日程添加成功',
icon: 'success'
});
// 延迟返回上一页
setTimeout(() => {
uni.navigateBack();
}, 1500);
addFollowUps();
};
// 选择患者
@@ -184,6 +192,7 @@
const w = weekdays[d.getDay()];
headerYear.value = `${y}年`;
headerDay.value = `${m}月${dd}日周${w}`;
datetime.value = `${y}-${m}-${dd}`;
selectedDate.value = `${y}年${m}月${dd}日(星期${w})`;
}
};
@@ -201,6 +210,7 @@
const weekdays = ['日', '一', '二', '三', '四', '五', '六'];
const weekday = weekdays[today.getDay()];
selectedDate.value = `${year}年${month}月${day}日(星期${weekday})`;
datetime.value = `${year}-${month}-${day}`;
headerYear.value = `${year}年`;
headerDay.value = `${month}月${day}日周${weekday}`;
};