Преглед на файлове

Merge remote-tracking branch 'origin/testing' into testing

zh преди 3 месеца
родител
ревизия
b4e2911948
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  1. 1 5
      src/views/inbound/takeDelivery/components/LotDate.vue

+ 1 - 5
src/views/inbound/takeDelivery/components/LotDate.vue

@@ -22,11 +22,7 @@ const title=ref('选择日期')
 const today = new Date()
 const currentDate = ref([today.getFullYear(), today.getMonth() + 1, today.getDate()])
 // 最小日期为当前日期前三年
-const minDate = computed(() => {
-  const date = new Date(today)
-  date.setFullYear(today.getFullYear() - 20) // 当前日期减去3年
-  return date
-})
+const minDate = new Date(2000, 0, 1)
 // 最大日期为当前日期后8年
 const maxDate = computed(() => {
   const date = new Date(today)