From 659309c0500bc75acaec24ead84fe98d6d0c6ff5 Mon Sep 17 00:00:00 2001 From: fangjf <2905107328@qq.com> Date: Mon, 19 Jan 2026 20:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=B3=A8=E9=94=80=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E6=9C=9F=E8=87=B3=E4=B8=8D=E5=8F=AF=E4=BB=A5=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=9B=BA=E5=AE=9A90=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/forceNotice/inclusion/handle.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/forceNotice/inclusion/handle.vue b/src/views/forceNotice/inclusion/handle.vue index 8ac9aee..d57499e 100644 --- a/src/views/forceNotice/inclusion/handle.vue +++ b/src/views/forceNotice/inclusion/handle.vue @@ -276,6 +276,16 @@ export default { span: 12, isView: ({ formData }) => { return formData.status !== '0' + }, + onChange: ({ formData }) => { + if (!formData && !formData.noticeFrom) return; + const fromDate = new Date(formData.noticeFrom); + const toDate = new Date(fromDate.getTime() + 90 * 24 * 60 * 60 * 1000); + const year = toDate.getFullYear(); + const month = String(toDate.getMonth() + 1).padStart(2, '0'); + const day = String(toDate.getDate()).padStart(2, '0'); + const toDateStr = `${year}-${month}-${day}`; + formData.noticeTo = toDateStr; } }, { @@ -284,7 +294,8 @@ export default { prop: 'noticeTo', required: true, formProps: { - valueFormat: 'yyyy-MM-dd' + valueFormat: 'yyyy-MM-dd', + disabled: true }, span: 12, isView: ({ formData }) => {