diff --git a/hw-ui/src/views/mes/productOrder/productionScheduling.vue b/hw-ui/src/views/mes/productOrder/productionScheduling.vue index a1ede3d..35e883b 100644 --- a/hw-ui/src/views/mes/productOrder/productionScheduling.vue +++ b/hw-ui/src/views/mes/productOrder/productionScheduling.vue @@ -520,7 +520,7 @@ export default { if (planBeginTime != null && planEndTime != null) { item.duration = this.calculateDaysDifference(planBeginTime, planEndTime); } - if (this.arrangeType === 1 && planEndTime != null){ + if (this.arrangeType === 1 && planEndTime != null && children != null) { const date = new Date(planEndTime); date.setDate(date.getDate() + 1); children.forEach(item => {