完善店务员工工时与订单记录
This commit is contained in:
@@ -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() }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user