@@ -10,16 +10,18 @@
<view class="card form-card style-section">
<view class="section-heading">
<view class="section-title-row"><text class="section-title-main">美甲款式</text><text class="required-mark">*</text></view>
<button class="link-action" bindtap="openProductModal">{{form.productId ? '更换款式' : '选择已有'}}</button >
<view class="btn-wrap" >
<button class="link-action" bindtap="openProductModal">款式库</button>
</view>
</view>
<button wx:if="{{!form.productId}}" class="field-card appointment-field-card" bindtap="openManualProduct">
<button wx:if="{{!form.productId}}" class="field-card appointment-field-card full " bindtap="openManualProduct">
<image wx:if="{{form.manualProductImageUrl}}" class="field-icon style-entry-image" src="{{form.manualProductImageUrl}}" mode="aspectFill"></image>
<view wx:else class="field-icon">✦</view>
<view class="field-text">
<text class="field-label">手动录入为主,提交预约后自动加入作品库</text>
<text wx:if="{{form.manualProductTitle}}" class="field-value">{{form.manualProductTitle}}</text>
<text wx:elif="{{form.manualProductImageUrl}}" class="field-value">已添加款式图片</text>
<text wx:else class="field-value placeholder">填写款式名称或添加图片</text>
<text class="field-label">点击可手动录入,提交预约后自动加入款式库</text>
</view>
<text class="chevron">› </text>
</button>
@@ -39,7 +41,7 @@
<view class="card form-card appointment-info-section">
<view class="section-heading">
<view><text class="section-title-main">预约信息</text><text class="section-caption">员工 可暂不分配,之后再安排</text></view>
<view><text class="section-title-main">预约信息</text><text class="section-caption">美甲师 可暂不分配,之后再安排</text></view>
</view>
<picker mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
<view class="field-card appointment-field-card">
@@ -50,19 +52,19 @@
</picker>
<view class="field-card appointment-field-card" bindtap="openTimeSheet">
<view class="field-icon">◷</view>
<view class="field-text"><text class="field-label">预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配员工 '}}</text></view>
<view class="field-text"><text class="field-label">预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配美甲师 '}}</text></view>
<text class="chevron">› </text>
</view>
<view class="field-card appointment-field-card" bindtap="openArtistSheet">
<view class="field-icon">♙</view>
<view class="field-text"><text class="field-label">服务员工 </text><text class="field-value {{selectedArtist.name ? '' : 'placeholder'}}">{{selectedArtist.name || '请选择员工 或暂不分配'}}</text></view>
<view class="field-text"><text class="field-label">服务美甲师 </text><text class="field-value {{selectedArtist.name ? '' : 'placeholder'}}">{{selectedArtist.name || '请选择美甲师 或暂不分配'}}</text></view>
<text class="chevron">› </text>
</view>
</view>
<view class="card form-card customer-section">
<view class="section-heading">
<view><text class="section-title-main">客户</text><text class="section-caption">可留空;姓名和手机号都为空时按散客提交 </text></view>
<view><text class="section-title-main">客户</text><text class="section-caption">可留空,留空时系统会生成临时客户以便报表查询 </text></view>
</view>
<view class="customer-entry">
<view class="customer-fields">
@@ -79,7 +81,7 @@
<view wx:if="{{conflictTip}}" class="availability-tip card {{conflictLevel}}"><text class="tip-title">时段检查</text><text class="tip-text">{{conflictTip}}</text></view>
<entity-selector-sheet visible="{{customerSheetVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{customerLoading}}" error-text="{{customerError}}" empty-text="暂无匹配客户" show-view-switch="{{true}}" view-mode="{{customerViewMode}}" sort-label="{{customerNewestFirst ? '最新添加' : '最早添加'}}" bind:search="onCustomerSearch" bind:select="selectCustomer" bind:retry="retryCustomerSearch" bind:changeview="changeCustomerView" bind:sort="toggleCustomerSort" bind:close="closeCustomerSheet" />
<entity-selector-sheet visible="{{artistSheetVisible}}" title="选择员工 " keyword="{{artistKeyword}}" placeholder="搜索员工 姓名" items="{{artistSelectorItems}}" selected-id="{{form.artistId}}" loading="{{false}}" error-text="{{artistError}}" empty-text="暂无匹配员工 " action-text="快速新增员工 " bind:search="onArtistSearch" bind:select="selectArtist" bind:retry="retryArtists" bind:action="addEmployeeFromSelector" bind:close="closeArtistSheet" />
<entity-selector-sheet visible="{{artistSheetVisible}}" title="选择美甲师 " keyword="{{artistKeyword}}" placeholder="搜索美甲师 姓名" items="{{artistSelectorItems}}" selected-id="{{form.artistId}}" loading="{{false}}" error-text="{{artistError}}" empty-text="暂无匹配美甲师 " action-text="快速新增美甲师 " bind:search="onArtistSearch" bind:select="selectArtist" bind:retry="retryArtists" bind:action="addEmployeeFromSelector" bind:close="closeArtistSheet" />
<product-selector-sheet visible="{{productModalVisible}}" mode="list" title="选择已有款式" keyword="{{productKeyword}}" placeholder="搜索款式、标签、美甲师" items="{{filteredProducts}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无匹配款式" show-manual-action="{{true}}" bind:search="onProductSearch" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:retry="loadOptions" bind:close="closeProductModal" />
<view wx:if="{{manualProductSheetVisible}}" class="modal-mask manual-product-mask" bindtap="closeManualProduct" catchtouchmove="stopTouchMove">
@@ -96,7 +98,7 @@
</view>
<text class="manual-style-hint">没有填写名称时,会使用客户姓名;散客预约会使用“散客款式”。</text>
</scroll-view>
<view class="manual-style-footer"><button class="manual-style-confirm" bindtap="confirmManualProduct">用于本次预约</button><button class="manual-style-library-link" bindtap="openProductModal">选择已有作品 </button></view>
<view class="manual-style-footer"><button class="manual-style-confirm" bindtap="confirmManualProduct">用于本次预约</button><button class="manual-style-library-link" bindtap="openProductModal">从款式库中 选择</button></view>
</view>
</view>