diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/surgery.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/surgery.vue index 2d2fd4872..8524f4c22 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/surgery.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/surgery.vue @@ -477,6 +477,7 @@ const form = reactive({ otherDiagnosisList: [], //其他断目录 }); const rules = reactive({}); +const state = reactive({}); // 字典选项 const surgeryLevelOptions = ref([]); const anesthesiaTypeOptions = ref([]); @@ -489,6 +490,14 @@ const doctorOptions = ref([]); onBeforeMount(() => {}); onMounted(() => { getList(); + // 默认预定手术时间为当前时间 + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const day = String(now.getDate()).padStart(2, '0'); + const hours = String(now.getHours()).padStart(2, '0'); + const minutes = String(now.getMinutes()).padStart(2, '0'); + form.plannedTime = `${year}-${month}-${day} ${hours}:${minutes}`; loadDictOptions(); loadDoctorOptions(); });