优化日期选择
This commit is contained in:
parent
4d96be2a55
commit
968d953387
|
|
@ -540,10 +540,11 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
pickerOptions() {
|
||||
// 当前时间 - 采购时间
|
||||
const currentDate = new Date(this.maForm.purchaseTime || new Date())
|
||||
currentDate.setDate(currentDate.getDate() - 1)
|
||||
return {
|
||||
disabledDate(time) {
|
||||
const currentDate = new Date()
|
||||
currentDate.setHours(0, 0, 0, 0)
|
||||
return time.getTime() < currentDate.getTime()
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue