Files
JayuCloud/JC-Salon-WeChat/pages/artist-transfer/index.wxml
T

49 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page no-tab">
<view class="card form-card section">
<view class="field">
<text class="field-label required">改派员工</text>
<view class="field-value transfer-reference" bindtap="openArtistSheet">
<view>
<text>{{selectedArtist.name || '请选择员工'}}</text>
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
</view>
<text class="transfer-arrow">›</text>
</view>
</view>
<view class="field">
<text class="field-label required">新日期</text>
<picker mode="date" value="{{date}}" bindchange="onDateChange">
<view class="field-value">{{date}}</view>
</picker>
</view>
<view class="field">
<text class="field-label required">新时间</text>
<picker mode="time" value="{{time}}" start="10:00" end="22:00" bindchange="onTimeChange">
<view class="field-value">{{time}}</view>
</picker>
</view>
</view>
<entity-selector-sheet
visible="{{artistSheetVisible}}"
title="选择改派员工"
keyword="{{artistKeyword}}"
placeholder="搜索员工姓名"
items="{{artistItems}}"
selected-id="{{selectedArtistId}}"
loading="{{false}}"
error-text="{{loadError}}"
empty-text="暂无可选员工"
action-text="快速新增员工"
bind:search="onArtistSearch"
bind:select="selectArtist"
bind:retry="retryArtists"
bind:action="addEmployeeFromSelector"
bind:close="closeArtistSheet"
/>
<view class="fixed-bottom">
<button class="primary-btn" loading="{{loading}}" bindtap="submit">确认改派</button>
</view>
</view>