@@ -46,7 +46,7 @@ Page({
|
||||
return
|
||||
}
|
||||
try {
|
||||
await planningApi.updateStatus(this.data.appointment.orderId, status)
|
||||
await planningApi.updateStatus(this.data.appointment.orderId, status, this._cancelReason || '')
|
||||
markPlanningRefresh()
|
||||
wx.showToast({ title: '已更新' })
|
||||
this.loadDetail()
|
||||
@@ -65,7 +65,18 @@ Page({
|
||||
},
|
||||
|
||||
cancel() {
|
||||
this.updateStatus(3)
|
||||
wx.showModal({
|
||||
title: '取消预约',
|
||||
editable: true,
|
||||
placeholderText: '可填写取消原因',
|
||||
content: '',
|
||||
confirmText: '确认取消',
|
||||
success: result => {
|
||||
if (!result.confirm) return
|
||||
this._cancelReason = result.content || ''
|
||||
this.updateStatus(3)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
goTransfer() {
|
||||
|
||||
Reference in New Issue
Block a user