Commit cc67c625 authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'v2-220418-order' into 'v2-220418'

fix: 送货计划管理-新增选择日期限制改为不包含当天 See merge request linkseeks-design/pro-platform!279
parents 6bbcd2c8 4ed909dc
...@@ -111,7 +111,8 @@ const limitDecimalsF = (value: moment.Moment) => { ...@@ -111,7 +111,8 @@ const limitDecimalsF = (value: moment.Moment) => {
* @returns * @returns
*/ */
const disabledDate = (current: moment.Moment) => { const disabledDate = (current: moment.Moment) => {
return current && current < moment().endOf('day') // return current && current < moment().endOf('day') // 今天
return current && current < moment(new Date(new Date().setDate(new Date().getDate() - 1)))
} }
const newDate = new Date() const newDate = new Date()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment