spring
2026-03-30 f6427b5dea54bbb8761fade351e9f86404b2fb61
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();