提交 afb627dd 编写于 作者: changdi.hao's avatar changdi.hao

修改时间提示逻辑

上级 cd18aaa0
...@@ -498,18 +498,22 @@ export default { ...@@ -498,18 +498,22 @@ export default {
}, },
// 预约时间 // 预约时间
timeHandle(row) { timeHandle(row) {
let bTime = new Date(row.userAppointBeginTime) if ( row.appointBeginTime && row.appointEndTime) {
let eTime = new Date(row.userAppointEndTime) let bTime = new Date(row.appointBeginTime)
if (this.activeName == 'three' && (new Date() - bTime) && (eTime - new Date())) { let eTime = new Date(row.appointEndTime)
this.$confirm(' 当前问诊正在进行中,一旦将立即关闭进行中的问诊且无法恢复,确定继续更改时间?', '提醒', { if ((new Date() - bTime) && (eTime - new Date())) {
confirmButtonText: '确定', this.$confirm(' 当前问诊正在进行中,一旦将立即关闭进行中的问诊且无法恢复,确定继续更改时间?', '提醒', {
cancelButtonText: '取消', confirmButtonText: '确定',
type: 'warning' cancelButtonText: '取消',
}).then(() => { type: 'warning'
this.timeHandleFn(row) }).then(() => {
}).catch(() => { this.timeHandleFn(row)
}).catch(() => {
}) })
} else {
this.timeHandleFn(row)
}
} else { } else {
this.timeHandleFn(row) this.timeHandleFn(row)
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册