|
|
@ -137,7 +137,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<p v-if="!scope.row.startTime"> |
|
|
|
<p v-if="!scope.row.startTime"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
:class="orderRepeat.includes(scope.row.id) ? 'red' : ''" |
|
|
|
:class="orderRepeat.includes(scope.row.dataOrCourseId) ? 'red' : ''" |
|
|
|
style="width:130px" |
|
|
|
style="width:130px" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
@ -147,7 +147,7 @@ |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p v-else> |
|
|
|
<p v-else> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
:class="orderRepeat.includes(scope.row.id) ? 'red' : ''" |
|
|
|
:class="orderRepeat.includes(scope.row.dataOrCourseId) ? 'red' : ''" |
|
|
|
style="width:130px" |
|
|
|
style="width:130px" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
@ -276,7 +276,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<p v-if="!scope.row.startTime"> |
|
|
|
<p v-if="!scope.row.startTime"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
:class="orderRepeat.includes(scope.row.id) ? 'red' : ''" |
|
|
|
:class="orderRepeat.includes(scope.row.dataOrCourseId) ? 'red' : ''" |
|
|
|
style="width:130px" |
|
|
|
style="width:130px" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
@ -286,7 +286,7 @@ |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p v-else> |
|
|
|
<p v-else> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
:class="orderRepeat.includes(scope.row.id) ? 'red' : ''" |
|
|
|
:class="orderRepeat.includes(scope.row.dataOrCourseId) ? 'red' : ''" |
|
|
|
style="width:130px" |
|
|
|
style="width:130px" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
v-model="scope.row.startTime" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
|
type="date" :disabled="viewDisabled||editDisabled" |
|
|
@ -958,10 +958,14 @@ export default { |
|
|
|
this.form.orderNature = 2; |
|
|
|
this.form.orderNature = 2; |
|
|
|
if (renew) { |
|
|
|
if (renew) { |
|
|
|
tempArr.forEach(e => { |
|
|
|
tempArr.forEach(e => { |
|
|
|
if (e.renew) delete e.renew; |
|
|
|
if (e.renew) delete e.renew |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
tempArr.forEach(e => { |
|
|
|
|
|
|
|
const time = new Date(e.startTime) |
|
|
|
|
|
|
|
e.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}` |
|
|
|
|
|
|
|
}) |
|
|
|
let param = { |
|
|
|
let param = { |
|
|
|
contractInformation: this.contract,//合同信息 |
|
|
|
contractInformation: this.contract,//合同信息 |
|
|
|
order: this.form,// 订单基本数据 |
|
|
|
order: this.form,// 订单基本数据 |
|
|
@ -1335,6 +1339,7 @@ export default { |
|
|
|
deadLine(e,row,options, isDate) { |
|
|
|
deadLine(e,row,options, isDate) { |
|
|
|
// 只有改变了起止日期才需要调接口查询订单,该接口作用是把开始时间传过去,会返回一个提示或者时间,如果是时间,则把时间+1天,如果是提示,则无法保存 |
|
|
|
// 只有改变了起止日期才需要调接口查询订单,该接口作用是把开始时间传过去,会返回一个提示或者时间,如果是时间,则把时间+1天,如果是提示,则无法保存 |
|
|
|
if (isDate) { |
|
|
|
if (isDate) { |
|
|
|
|
|
|
|
const cId = row.dataOrCourseId |
|
|
|
const date = row.startTime |
|
|
|
const date = row.startTime |
|
|
|
const orderRepeat = this.orderRepeat |
|
|
|
const orderRepeat = this.orderRepeat |
|
|
|
this.$post(this.api.getOrderOtherTime, { |
|
|
|
this.$post(this.api.getOrderOtherTime, { |
|
|
@ -1342,15 +1347,15 @@ export default { |
|
|
|
id: row.dataOrCourseId, |
|
|
|
id: row.dataOrCourseId, |
|
|
|
startTime: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() |
|
|
|
startTime: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
orderRepeat.includes(cId) && orderRepeat.splice(orderRepeat.findIndex(e => e === cId), 1) |
|
|
|
if (res.endTime) { |
|
|
|
if (res.endTime) { |
|
|
|
orderRepeat.includes(row.id) && orderRepeat.splice(orderRepeat.findIndex(e => e === row.id), 1) |
|
|
|
|
|
|
|
let time = new Date(res.endTime) |
|
|
|
let time = new Date(res.endTime) |
|
|
|
time = new Date(time.setDate(time.getDate() + 1)) |
|
|
|
time = new Date(time.setDate(time.getDate() + 1)) |
|
|
|
row.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}` |
|
|
|
row.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}` |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
|
this.repeatMsg = res.message |
|
|
|
this.repeatMsg = res.message |
|
|
|
orderRepeat.includes(row.id) || orderRepeat.push(row.id) |
|
|
|
orderRepeat.includes(cId) || orderRepeat.push(cId) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
let optionsData = '' |
|
|
|
let optionsData = '' |
|
|
|