修改请假提交时间

This commit is contained in:
2025-09-25 11:23:47 +08:00
parent 3274b1a3cf
commit 5c55a807c9

View File

@@ -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属性