From a3139c8fc0fbe8c1e396a87305609b1509ee0f40 Mon Sep 17 00:00:00 2001 From: chenxf Date: Wed, 4 Feb 2026 09:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=B3=A8=E9=94=80=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=91=8A=E6=9C=9F=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发起强制注销业务时验证拟强制注销公告的公告期至是否已过期,未过期则阻止发起 --- src/views/forceNotice/force/list.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/forceNotice/force/list.vue b/src/views/forceNotice/force/list.vue index 163b8da..6e040b0 100644 --- a/src/views/forceNotice/force/list.vue +++ b/src/views/forceNotice/force/list.vue @@ -331,6 +331,19 @@ export default { if (speList.length > 0) { // 获取选中的第一条记录 const item = speList[0] + + // 验证公告期至是否已过 + const noticeTo = new Date(item.noticeTo) + const today = new Date() + // 将时间设置为0点进行日期比较 + today.setHours(0, 0, 0, 0) + noticeTo.setHours(0, 0, 0, 0) + + if (noticeTo > today) { + this.$message.warning('公告期尚未结束,无法发起强制注销业务') + return + } + this.$confirm('是否确认启动强制注销业务', '提示', { type: 'info', customClass: 'type-1',