From 054a5b45b3a57cc1e57e9d43822310f9fc784e27 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 13 Jan 2025 11:14:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=91=A8=E6=9C=9Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reportforms/OrderAllTime.vue | 29 +++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/views/reportforms/OrderAllTime.vue b/src/views/reportforms/OrderAllTime.vue index 6dcf96a9..da74b36f 100644 --- a/src/views/reportforms/OrderAllTime.vue +++ b/src/views/reportforms/OrderAllTime.vue @@ -323,10 +323,8 @@ const onLoad = async (params = {}) => { } if ( - getObjType(submitData.timeArr) !== 'array' || - submitData.timeArr.length === 0 || - getObjType(submitData.openTime) !== 'array' || - submitData.openTime.length === 0 + (getObjType(submitData.timeArr) !== 'array' || submitData.timeArr.length === 0) && + (getObjType(submitData.openTime) !== 'array' || submitData.openTime.length === 0) ) { details.data = []; return ElMessage.warning('请选择时间'); @@ -511,7 +509,28 @@ const ExportData = async () => { const end = new Date(submitData.endTimeStr).getTime(); if (end - start + 1000 * 60 * 60 * 24 > 1000 * 60 * 60 * 24 * 31) - return ElMessage.warning('时间不能大于31天'); + return ElMessage.warning('工厂推送时间不能大于31天'); + } + + // 开单时间 + // if ()openTime + if (getObjType(submitData.openTime) === 'array' && submitData.openTime.length > 0) { + submitData.openTimeStartStr = submitData.openTime[0]; + submitData.openTimeEndStr = submitData.openTime[1]; + + const start = new Date(submitData.openTimeStartStr).getTime(); + const end = new Date(submitData.openTimeEndStr).getTime(); + + if (end - start + 1000 * 60 * 60 * 24 > 1000 * 60 * 60 * 24 * 31) + return ElMessage.warning('开单时间不能大于31天'); + } + + if ( + (getObjType(submitData.timeArr) !== 'array' || submitData.timeArr.length === 0) && + (getObjType(submitData.openTime) !== 'array' || submitData.openTime.length === 0) + ) { + details.data = []; + return ElMessage.warning('请选择时间'); } delete submitData.timeArr; From 2565297d3856d32a7274560f821f1f354df29aa2 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Mon, 13 Jan 2025 15:58:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user.vue | 157 +++++++++++++------------------------- 1 file changed, 54 insertions(+), 103 deletions(-) diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 1d81e64e..7af1e5b0 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -11,51 +11,17 @@ - + - +