53 lines
2.2 KiB
Plaintext
53 lines
2.2 KiB
Plaintext
<view class="page no-tab">
|
|
<view wx:if="{{loadError}}" class="empty card detail-error">
|
|
<text>{{loadError}}</text>
|
|
<button class="secondary-btn retry-btn" bindtap="loadDetail">重试</button>
|
|
</view>
|
|
|
|
<view wx:else class="card detail-card">
|
|
<view class="detail-head">
|
|
<view class="detail-person">
|
|
<view class="avatar">{{avatarText}}</view>
|
|
<view>
|
|
<text class="customer">{{appointment.customerName}}</text>
|
|
<text class="phone">{{appointment.customerPhone}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="detail-actions">
|
|
<text wx:if="{{appointment.historicalBackfill}}" class="tag">历史补单 · {{appointment.statusText}}</text>
|
|
<text wx:else class="tag">{{appointment.statusText}}</text>
|
|
<button wx:if="{{!appointment.historicalBackfill}}" class="small-action" bindtap="goTransfer">{{isUnassigned ? '分配员工' : '改派'}}</button>
|
|
</view>
|
|
</view>
|
|
<view class="detail-grid">
|
|
<view>
|
|
<text class="label">项目</text>
|
|
<text class="value">{{appointment.productTitle}}</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">美甲师</text>
|
|
<text class="value">{{isUnassigned ? '待分配' : appointment.artistName}}</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">时间</text>
|
|
<text class="value">{{timeText}}</text>
|
|
</view>
|
|
<view>
|
|
<text class="label">时长</text>
|
|
<text class="value">{{appointment.durationMinutes}}分钟</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{!loadError}}" class="section">
|
|
<view class="section-title">备注</view>
|
|
<view class="card note-card">{{appointment.remark || '暂无备注'}}</view>
|
|
</view>
|
|
|
|
<view wx:if="{{!loadError}}" class="fixed-bottom action-row">
|
|
<button wx:if="{{!appointment.historicalBackfill}}" class="secondary-btn" disabled="{{isUnassigned}}" bindtap="confirm">{{isUnassigned ? '待分配' : '确认'}}</button>
|
|
<button class="primary-btn" disabled="{{isUnassigned}}" bindtap="complete">{{appointment.historicalBackfill ? '完成补单' : '完成'}}</button>
|
|
<button class="danger-btn" bindtap="cancel">取消</button>
|
|
</view>
|
|
</view>
|