聊天室url修正

This commit is contained in:
2026-01-09 16:40:28 +08:00
parent bfd06dd8f6
commit f4b7337210
18 changed files with 360 additions and 124 deletions

View File

@@ -1149,17 +1149,39 @@ async function submitWorkcase() {
}
// 撤销工单
function handleRevoke() {
async function handleRevoke() {
uni.showModal({
title: '撤销确认',
content: '确认撤销该工单?撤销后无法恢复',
success: (res) => {
success: async (res) => {
if (res.confirm) {
// TODO: 调用 API 撤销工单
uni.showToast({
title: '工单已撤销',
icon: 'success'
})
uni.showLoading({ title: '撤销中...' })
try {
const result = await workcaseAPI.revokeWorkcase(workcaseId.value)
uni.hideLoading()
if (result.success) {
uni.showToast({
title: '工单已撤销',
icon: 'success'
})
// 刷新工单详情
setTimeout(() => {
loadWorkcaseDetail()
}, 500)
} else {
uni.showToast({
title: result.message || '撤销失败',
icon: 'none'
})
}
} catch (error: any) {
uni.hideLoading()
console.error('撤销工单失败:', error)
uni.showToast({
title: error.message || '撤销失败',
icon: 'none'
})
}
}
}
})