完善店员申请关联与预约页面
自动发布开发环境 Nacos 配置 / publish (push) Successful in 21s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 8s

This commit is contained in:
2026-11-03 23:29:40 +08:00
parent 1fc46f3835
commit 4b4c1ddef5
18 changed files with 442 additions and 64 deletions
@@ -9,44 +9,53 @@
<view class="detail-person">
<view class="avatar">{{avatarText}}</view>
<view>
<text class="customer">{{appointment.customerName}}</text>
<text class="phone">{{appointment.customerPhone}}</text>
<text class="customer">{{appointment.customerNameText}}</text>
<text class="phone">{{appointment.customerPhoneText}}</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>
<text class="status-tag {{appointment.status === 2 ? 'completed' : appointment.status === 3 ? 'cancelled' : ''}}">{{appointment.historicalBackfill ? '历史补单 · ' : ''}}{{appointment.statusText}}</text>
</view>
<view class="detail-grid">
<view>
<text class="label">项目</text>
<text class="value">{{appointment.productTitle}}</text>
<view class="detail-field">
<text class="label">订单编号</text>
<text class="value">{{appointment.orderNoText}}</text>
</view>
<view>
<view class="detail-field">
<text class="label">服务项目</text>
<text class="value">{{appointment.productTitleText}}</text>
</view>
<view class="detail-field">
<text class="label">美甲师</text>
<text class="value">{{isUnassigned ? '待分配' : appointment.artistName}}</text>
<text class="value">{{appointment.artistNameText}}</text>
</view>
<view>
<view class="detail-field">
<text class="label">时间</text>
<text class="value">{{timeText}}</text>
</view>
<view>
<view class="detail-field">
<text class="label">时长</text>
<text class="value">{{appointment.durationMinutes}}分钟</text>
<text class="value">{{appointment.durationText}}</text>
</view>
<view class="detail-field amount-field">
<text class="label">成交金额</text>
<text class="value">{{appointment.amountText}}</text>
</view>
</view>
<view wx:if="{{appointment.cancelReasonText}}" class="cancel-reason">
<text class="label">取消原因</text>
<text class="cancel-reason-text">{{appointment.cancelReasonText}}</text>
</view>
</view>
<view wx:if="{{!loadError}}" class="section">
<view class="section-title">备注</view>
<view class="card note-card">{{appointment.remark || '暂无备注'}}</view>
<view class="card note-card">{{appointment.remarkText}}</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 wx:if="{{!loadError && (showTransfer || showConfirm || showComplete || showCancel)}}" class="fixed-bottom action-row">
<button wx:if="{{showTransfer}}" class="primary-btn transfer-action" loading="{{updating}}" disabled="{{updating}}" bindtap="goTransfer">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</button>
<button wx:if="{{showConfirm}}" class="secondary-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="confirm">确认预约</button>
<button wx:if="{{showComplete}}" class="secondary-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="complete">{{appointment.historicalBackfill ? '完成补单' : '完成服务'}}</button>
<button wx:if="{{showCancel}}" class="danger-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="cancel">取消预约</button>
</view>
</view>