2026-06-04 16:39:06 +08:00
|
|
|
|
<view class="page no-tab">
|
2026-10-12 22:24:24 +08:00
|
|
|
|
<view class="card form-card section">
|
|
|
|
|
|
<view class="field">
|
2026-10-20 18:02:49 +08:00
|
|
|
|
<text class="field-label required">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</text>
|
2026-10-12 22:24:24 +08:00
|
|
|
|
<view class="field-value transfer-reference" bindtap="openArtistSheet">
|
|
|
|
|
|
<view>
|
2026-10-20 18:02:49 +08:00
|
|
|
|
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
|
2026-10-12 22:24:24 +08:00
|
|
|
|
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
</view>
|
2026-10-12 22:24:24 +08:00
|
|
|
|
<text class="transfer-arrow">›</text>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="field">
|
2026-10-12 23:52:20 +08:00
|
|
|
|
<text class="field-label required">预约日期</text>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
<picker mode="date" value="{{date}}" bindchange="onDateChange">
|
|
|
|
|
|
<view class="field-value">{{date}}</view>
|
|
|
|
|
|
</picker>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="field">
|
2026-10-12 23:52:20 +08:00
|
|
|
|
<text class="field-label required">预约时间</text>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
<picker mode="time" value="{{time}}" start="10:00" end="22:00" bindchange="onTimeChange">
|
|
|
|
|
|
<view class="field-value">{{time}}</view>
|
|
|
|
|
|
</picker>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
2026-10-12 22:24:24 +08:00
|
|
|
|
<entity-selector-sheet
|
|
|
|
|
|
visible="{{artistSheetVisible}}"
|
2026-10-20 18:02:49 +08:00
|
|
|
|
title="{{isUnassigned ? '选择分配美甲师' : '选择改派美甲师'}}"
|
2026-10-12 22:24:24 +08:00
|
|
|
|
keyword="{{artistKeyword}}"
|
2026-10-20 18:02:49 +08:00
|
|
|
|
placeholder="搜索美甲师姓名"
|
2026-10-12 22:24:24 +08:00
|
|
|
|
items="{{artistItems}}"
|
|
|
|
|
|
selected-id="{{selectedArtistId}}"
|
|
|
|
|
|
loading="{{false}}"
|
|
|
|
|
|
error-text="{{loadError}}"
|
2026-10-20 18:02:49 +08:00
|
|
|
|
empty-text="暂无可选美甲师"
|
|
|
|
|
|
action-text="快速新增美甲师"
|
2026-10-12 22:24:24 +08:00
|
|
|
|
bind:search="onArtistSearch"
|
|
|
|
|
|
bind:select="selectArtist"
|
|
|
|
|
|
bind:retry="retryArtists"
|
|
|
|
|
|
bind:action="addEmployeeFromSelector"
|
|
|
|
|
|
bind:close="closeArtistSheet"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="fixed-bottom">
|
2026-10-12 23:52:20 +08:00
|
|
|
|
<button class="primary-btn" loading="{{loading}}" bindtap="submit">{{isUnassigned ? '确认分配' : '确认改派'}}</button>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|