From f6427b5dea54bbb8761fade351e9f86404b2fb61 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 30 三月 2026 10:22:59 +0800
Subject: [PATCH] fix: 规格型号搜索

---
 src/pages/consumablesLogistics/stockReport/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/pages/consumablesLogistics/stockReport/index.vue b/src/pages/consumablesLogistics/stockReport/index.vue
index 175c151..19b1b74 100644
--- a/src/pages/consumablesLogistics/stockReport/index.vue
+++ b/src/pages/consumablesLogistics/stockReport/index.vue
@@ -64,7 +64,7 @@
             <view class="row" v-if="searchForm.reportType === 'inout'"><text class="l">鍑哄簱鏁伴噺</text><text class="r">{{ item.totalStockOut }}</text></view>
             <view class="row"><text class="l">鐜板湪搴撳瓨</text><text class="r highlight">{{ item.currentStock }}</text></view>
             <view class="row" v-if="item.createBy"><text class="l">鍏ュ簱浜�</text><text class="r">{{ item.createBy }}</text></view>
-            <view class="row" v-if="item.currentWeight"><text class="l">鐜板噣閲�(鍚�)</text><text class="r">{{ item.currentWeight }}</text></view>
+            <!-- <view class="row" v-if="item.currentWeight"><text class="l">鐜板噣閲�(鍚�)</text><text class="r">{{ item.currentWeight }}</text></view> -->
             <view class="row" v-if="item.recordType"><text class="l">鏉ユ簮</text><text class="r">{{ getRecordType(item.recordType) }}</text></view>
           </view>
         </view>
@@ -252,6 +252,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();
@@ -262,6 +266,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