优化:统一小程序业务引用选择交互
This commit is contained in:
@@ -1,25 +1,15 @@
|
||||
<view class="page no-tab">
|
||||
<view class="list">
|
||||
<view wx:if="{{loadError}}" class="empty card">
|
||||
<text>{{loadError}}</text>
|
||||
<button class="secondary-btn retry-btn" bindtap="loadArtists">重试</button>
|
||||
</view>
|
||||
<view wx:elif="{{artists.length === 0}}" class="empty card">暂无可选美甲师</view>
|
||||
<view wx:for="{{artists}}" wx:key="id" class="card transfer-card {{selectedArtistId == item.id ? 'active' : ''}}" data-id="{{item.id}}" bindtap="selectArtist">
|
||||
<view class="row between">
|
||||
<view class="row">
|
||||
<view class="chip-dot large" style="background: {{item.color}};"></view>
|
||||
<view>
|
||||
<text class="artist-name">{{item.name}}</text>
|
||||
<text class="artist-status">{{item.statusText}}</text>
|
||||
</view>
|
||||
<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="tag {{item.availableStatus}}">{{item.availableText}}</text>
|
||||
<text class="transfer-arrow">›</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!loadError}}" class="card form-card section">
|
||||
<view class="field">
|
||||
<text class="field-label required">新日期</text>
|
||||
<picker mode="date" value="{{date}}" bindchange="onDateChange">
|
||||
@@ -34,7 +24,25 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!loadError}}" class="fixed-bottom">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user