优化日期选择

This commit is contained in:
binbin_pan 2024-06-25 16:12:57 +08:00
parent 3616e79133
commit 4d96be2a55
1 changed files with 2 additions and 2 deletions

View File

@ -78,10 +78,10 @@
type="date"
placeholder="请选择到货日期"
:picker-options="{
//
//
disabledDate: time => {
const currentDate = new Date(maForm.purchaseTime || new Date())
currentDate.setDate(currentDate.getDate())
currentDate.setDate(currentDate.getDate() - 1)
return time.getTime() < currentDate.getTime()
}
}"