提交 1718f962 authored 作者: lidongxu's avatar lidongxu

fix(mobile/promotion/plan/editing): 移动端_促销变更计划时_城市经理日期只能选择明日到月底

同上
上级 fb471972
......@@ -264,17 +264,21 @@ const confirmCalendar = (value) => {
const planMinDate = computed(() => {
// 如果当前是城市经理,只能创建下个月计划,否则是今日到下月末
if (isCityManager.value) {
// 返回下个月 1 号的日期对象
const date = new Date()
// 编辑:只能明天到当月月底
if (planId) {
date.setDate(date.getDate() + 1)
return date
}
// 新增:只能下个月一整月
date.setMonth(date.getMonth() + 1)
date.setDate(1)
return date
} else {
// 如果是变更计划,则选择明天以后的日期
const date = new Date()
if (planId) {
date.setDate(date.getDate() + 1)
}
return date
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论