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

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() }
})
@@ -7,7 +7,7 @@
<view wx:elif="{{loadError}}" class="empty card error">{{loadError}}</view>
<view wx:elif="{{orders.length === 0}}" class="empty card">当前日期范围内没有订单</view>
<view wx:else class="list">
<view wx:for="{{orders}}" wx:key="id" class="card list-card order-row">
<view wx:for="{{orders}}" wx:key="id" class="card list-card order-row" data-id="{{item.detailId}}" bindtap="openOrder">
<view>
<text class="order-title">{{item.project}}</text>
<text class="muted">{{item.date}} · {{item.customer}}</text>