From 2dcaf45f049cb99410e5086427a9d28da34c87eb Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Fri, 7 Apr 2023 10:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=88=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/360View/medicalRecord/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue index a30c811..d7a0fbd 100644 --- a/src/components/360View/medicalRecord/index.vue +++ b/src/components/360View/medicalRecord/index.vue @@ -123,10 +123,11 @@ export default { addRecord(name) { this.name = name const date = this.$moment().format('YYYY-MM-DD HH:mm:ss') + // 判断表中是否有今日的数据 const isToday = this.formList.some(item => item.createTime.includes(date.split(' ')[0])) if (name === '门急诊电子病历' && isToday) { this.$message({ - message: '已有今日病例,请勿重复添加!', + message: '今日已有病历,请勿重复添加!', type: 'warning' }) return