From 50f0b958546caee7f929b28c1f5ad0daa2637751 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 25 三月 2026 09:01:14 +0800
Subject: [PATCH] fix: 优化质量管理
---
src/pages/inventoryManagement/stockReport/index.vue | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/pages/inventoryManagement/stockReport/index.vue b/src/pages/inventoryManagement/stockReport/index.vue
index eba56c3..52b4783 100644
--- a/src/pages/inventoryManagement/stockReport/index.vue
+++ b/src/pages/inventoryManagement/stockReport/index.vue
@@ -274,6 +274,10 @@
openDatePicker('endMonth')
}, 300)
} else if (datePickerTarget.value === 'endMonth') {
+ if (searchForm.value.startMonth && !dayjs(`${str}-01`).isAfter(dayjs(`${searchForm.value.startMonth}-01`))) {
+ uni.showToast({ title: '缁撴潫鏈堜唤蹇呴』澶т簬寮�濮嬫湀浠�', icon: 'none' })
+ return
+ }
searchForm.value.endMonth = str
showDatePicker.value = false
handleQuery()
@@ -285,6 +289,10 @@
openDatePicker('endDate')
}, 300)
} else if (datePickerTarget.value === 'endDate') {
+ if (searchForm.value.startDate && !dayjs(str).isAfter(dayjs(searchForm.value.startDate))) {
+ uni.showToast({ title: '缁撴潫鏃ユ湡蹇呴』澶т簬寮�濮嬫棩鏈�', icon: 'none' })
+ return
+ }
searchForm.value.endDate = str
showDatePicker.value = false
handleQuery()
--
Gitblit v1.9.3