spring
7 天以前 50f0b958546caee7f929b28c1f5ad0daa2637751
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()