完善店务员工工时与订单记录

This commit is contained in:
2026-07-24 14:23:13 +08:00
parent 3a543f1d69
commit eff4e73427
20 changed files with 440 additions and 225 deletions
@@ -23,6 +23,7 @@ function orderAmount(item) {
function toOrderRow(item, index) {
return {
id: item.orderItemId || index,
detailId: item.orderItemId || item.id || '',
date: item.date || shortDate(item.startTime),
project: item.productTitle || '预约作品',
customer: item.customerName || '到店客户',
@@ -80,5 +81,14 @@ Page({
}
},
openOrder(event) {
const id = event.currentTarget.dataset.id
if (!id) {
wx.showToast({ title: '订单项ID不能为空', icon: 'none' })
return
}
wx.navigateTo({ url: `/pages/appointment-detail/index?id=${id}` })
},
back() { wx.navigateBack() }
})