From 5c55a807c9ca2983bfa8005db23a4a261376edfb Mon Sep 17 00:00:00 2001 From: 18154758993 <605281283@qq.com> Date: Thu, 25 Sep 2025 11:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E5=81=87=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/applyleave/applyleave.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/applyleave/applyleave.vue b/pages/applyleave/applyleave.vue index e9473c4..08896a4 100644 --- a/pages/applyleave/applyleave.vue +++ b/pages/applyleave/applyleave.vue @@ -277,6 +277,14 @@ } this.formData.dataNum = calculateDays(this.formData.single, this.formData.endsingle); } + // 检查请假天数是否小于0.5天 + if (this.formData.dataNum < 0.5) { + uni.showToast({ + title: "请假天数不能小于0.5天", + icon: "none" + }) + this.formData.dataNum = ""; + } }, signToggle() { // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性