Commit 9b2467ec by 李伟康

fix(usedCar): 修复日期切换逻辑判断错误

调整日期变更处理逻辑,优化条件判断语句,
移除不必要的订单对象检查,修复潜在的逻辑错误。
1 parent 829d7ca8
......@@ -166,11 +166,12 @@ export default {
}
},
changeDate (e) {
if(e.fullDate == this.currentDate) return
if (e.fullDate == this.currentDate) return
let dailyReportRef = this.$refs['detail-DailyReport-Ref']
if(dailyReportRef){
let { isDateWithin7Days , orderObj , isFilled} = dailyReportRef
if((!isDateWithin7Days && !orderObj.id )|| isFilled) {
if (dailyReportRef) {
console.log(dailyReportRef)
let { isDateWithin7Days, isFilled } = dailyReportRef
if (!isDateWithin7Days || isFilled) {
this.$refs.calendar.manualChangeDate(e)
return
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!