소스 검색

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)