修改时间设置

master
夜笙歌 4 months ago
parent 71c693bbb5
commit 3388478917

@ -996,20 +996,20 @@ export default {
let planBeginTime = planDateRange[0]
let planEndTime = planDateRange[1]
// planEndTime
if (this.arrangeType === 1 && planEndTime != null && i < data.length - 1) {
let date = new Date(planEndTime); // planEndTime
date.setDate(date.getDate() + 1); //
if (data.length > i){
let nextTime = parseTime(date);
data[i + 1].planDateRange[0] = nextTime; // planBeginTime
// if (this.arrangeType === 1 && planEndTime != null && i < data.length - 1) {
// let date = new Date(planEndTime); // planEndTime
// date.setDate(date.getDate() + 1); //
// if (data.length > i){
// let nextTime = parseTime(date);
// data[i + 1].planDateRange[0] = nextTime; // planBeginTime
// console.log(planDateRange[0], planDateRange[1],data[i + 1].productOrderId)
// console.log(i,data[i + 1].planDateRange[0], this.productOrderList[i + 1].planDateRange[0])
// if (data[i + 1].planDateRange[1] < data[i + 1].planDateRange[0]){
// data[i + 1].planDateRange[1] = data[i + 1].planDateRange[0]
// }
}
}
// }
// }
// planBeginTime planEndTime
if (planBeginTime != null && planEndTime != null) {
item.duration = this.calculateDaysDifference(planBeginTime, planEndTime);

Loading…
Cancel
Save