revert: 回滚打印机管理页面
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-29 06:45:49 +00:00
parent d5ae333176
commit 4921ee8d97
4 changed files with 2 additions and 410 deletions

View File

@@ -210,29 +210,8 @@ export default {
})
},
printOrder() {
uni.showModal({
title: '确认打印',
content: '确定要打印此订单小票吗?',
success: async (res) => {
if (res.confirm) {
try {
const token = uni.getStorageSync('token')
const res = await uni.request({
url: `${getApp().globalData.apiBaseUrl}/printers/print/${this.orderId}`,
method: 'POST',
header: { 'Authorization': `Bearer ${token}` }
})
if (res.data.code === 0) {
uni.showToast({ title: '打印成功', icon: 'success' })
} else {
uni.showToast({ title: res.data.message || '打印失败', icon: 'none' })
}
} catch (e) {
uni.showToast({ title: '打印失败', icon: 'none' })
}
}
}
})
uni.showToast({ title: '打印功能开发中', icon: 'none' })
// TODO: 实现打印功能
}
}
}