diff --git a/src/views/reportforms/AuditTimelinessRatioReport.vue b/src/views/reportforms/AuditTimelinessRatioReport.vue index f18a324e..80819a66 100644 --- a/src/views/reportforms/AuditTimelinessRatioReport.vue +++ b/src/views/reportforms/AuditTimelinessRatioReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/ConsigneeReport.vue b/src/views/reportforms/ConsigneeReport.vue index b9ffc700..1e7d83aa 100644 --- a/src/views/reportforms/ConsigneeReport.vue +++ b/src/views/reportforms/ConsigneeReport.vue @@ -377,7 +377,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/CreateOrderTimelinessRatioReport.vue b/src/views/reportforms/CreateOrderTimelinessRatioReport.vue index c6ba8626..411164ca 100644 --- a/src/views/reportforms/CreateOrderTimelinessRatioReport.vue +++ b/src/views/reportforms/CreateOrderTimelinessRatioReport.vue @@ -312,7 +312,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/OrderAllTime.vue b/src/views/reportforms/OrderAllTime.vue index 6dcf96a9..eae60466 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('请选择时间'); @@ -363,7 +361,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); @@ -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; diff --git a/src/views/reportforms/PackageAllTrunklineTimePageReport.vue b/src/views/reportforms/PackageAllTrunklineTimePageReport.vue index 385ac0bd..b01a765c 100644 --- a/src/views/reportforms/PackageAllTrunklineTimePageReport.vue +++ b/src/views/reportforms/PackageAllTrunklineTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/PackageStartTimePageReport.vue b/src/views/reportforms/PackageStartTimePageReport.vue index 8683db26..ec3e100b 100644 --- a/src/views/reportforms/PackageStartTimePageReport.vue +++ b/src/views/reportforms/PackageStartTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/PackageTransferTimePageReport.vue b/src/views/reportforms/PackageTransferTimePageReport.vue index 223fc2c6..5726c928 100644 --- a/src/views/reportforms/PackageTransferTimePageReport.vue +++ b/src/views/reportforms/PackageTransferTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/SalesDepartmentIncomeReport.vue b/src/views/reportforms/SalesDepartmentIncomeReport.vue index 7d4b5532..c5603a27 100644 --- a/src/views/reportforms/SalesDepartmentIncomeReport.vue +++ b/src/views/reportforms/SalesDepartmentIncomeReport.vue @@ -372,7 +372,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/UpdateWaybillQualityPageReport.vue b/src/views/reportforms/UpdateWaybillQualityPageReport.vue index 1678d313..f60a8791 100644 --- a/src/views/reportforms/UpdateWaybillQualityPageReport.vue +++ b/src/views/reportforms/UpdateWaybillQualityPageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/ZeroAllTrunklineTimePageReport.vue b/src/views/reportforms/ZeroAllTrunklineTimePageReport.vue index 7ea7d589..f2cc5a92 100644 --- a/src/views/reportforms/ZeroAllTrunklineTimePageReport.vue +++ b/src/views/reportforms/ZeroAllTrunklineTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/ZeroStartTimePageReport.vue b/src/views/reportforms/ZeroStartTimePageReport.vue index 06cb3762..cad3b68c 100644 --- a/src/views/reportforms/ZeroStartTimePageReport.vue +++ b/src/views/reportforms/ZeroStartTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); diff --git a/src/views/reportforms/ZeroTransferTimePageReport.vue b/src/views/reportforms/ZeroTransferTimePageReport.vue index 84d61e2c..cbbeed6c 100644 --- a/src/views/reportforms/ZeroTransferTimePageReport.vue +++ b/src/views/reportforms/ZeroTransferTimePageReport.vue @@ -331,7 +331,7 @@ const init = () => { dayjs(time).format('YYYY-MM-DD'), ]; - onLoad(); + // onLoad(); }; init(); 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 @@ - + - +