对齐历史补录款式弹窗
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
<view class="card form-card backfill-card style-section">
|
||||
<view class="section-heading">
|
||||
<view class="section-title-row"><text class="section-title-main">美甲款式</text><text class="required-mark">*</text></view>
|
||||
<text class="section-caption">选择款式或手动录入</text>
|
||||
<text class="section-caption">手动录入为主,也可从款式库快速选择</text>
|
||||
</view>
|
||||
<button class="field-card backfill-field-card" bindtap="openProductSelector">
|
||||
<button class="field-card backfill-field-card full" bindtap="openProductSelector">
|
||||
<image wx:if="{{selectedProduct.coverImage}}" class="field-icon style-entry-image" src="{{selectedProduct.coverImage}}" mode="aspectFill"></image>
|
||||
<view wx:else class="field-icon">✦</view>
|
||||
<view class="field-text">
|
||||
<text class="field-label">项目款式</text>
|
||||
<text class="field-value {{selectedProductTitle || form.manualProductTitle ? '' : 'placeholder'}}">{{selectedProductTitle || form.manualProductTitle || '请选择美甲款式'}}</text>
|
||||
<text wx:if="{{selectedProductPriceText}}" class="field-meta">参考价 {{selectedProductPriceText}}</text>
|
||||
<text wx:else class="field-meta">可从款式库选择,也可手动录入</text>
|
||||
<text wx:else class="field-meta">点击录入款式,或从款式库选择</text>
|
||||
</view>
|
||||
<text class="chevron">›</text>
|
||||
</button>
|
||||
@@ -88,7 +88,26 @@
|
||||
<button class="primary-btn backfill-submit-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">保存历史补单</button>
|
||||
</view>
|
||||
|
||||
<product-selector-sheet visible="{{productSelectorVisible}}" mode="{{productSelectorMode}}" title="选择美甲款式" keyword="{{productKeyword}}" placeholder="搜索款式名称" items="{{productOptions}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无款式" manual-form="{{manualProductDraft}}" show-manual-extra="{{false}}" bind:search="searchProducts" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:backtolist="backToProductList" bind:manualinput="onManualProductInput" bind:togglemore="toggleManualProductMore" bind:confirmmanual="useManualProduct" bind:close="closeProductSelector" bind:retry="loadProducts" />
|
||||
<product-selector-sheet visible="{{productSelectorVisible}}" mode="list" title="选择已有款式" keyword="{{productKeyword}}" placeholder="搜索款式名称" items="{{productOptions}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无款式" show-manual-action="{{true}}" bind:search="searchProducts" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:close="closeProductSelector" bind:retry="loadProducts" />
|
||||
<view wx:if="{{manualProductSheetVisible}}" class="modal-mask backfill-manual-product-mask" bindtap="closeManualProduct" catchtouchmove="stopTouchMove">
|
||||
<view class="manual-style-sheet backfill-manual-style-sheet" catchtap="stopTap" catchtouchmove="stopTouchMove">
|
||||
<view class="modal-head">
|
||||
<view><text class="modal-title">录入本次美甲款式</text><text class="modal-subtitle">款式名称和价格必填</text></view>
|
||||
<view class="modal-close" bindtap="closeManualProduct" aria-label="关闭款式录入"></view>
|
||||
</view>
|
||||
<scroll-view class="manual-style-content" scroll-y enhanced show-scrollbar="{{false}}">
|
||||
<view class="style-name-row backfill-manual-fields">
|
||||
<input class="style-name-input backfill-manual-product-name" value="{{manualProductDraft.title}}" data-field="title" bindinput="onManualProductInput" placeholder="请输入款式名称" />
|
||||
<input class="style-name-input backfill-manual-product-price" value="{{manualProductDraft.price}}" data-field="price" bindinput="onManualProductInput" type="digit" placeholder="参考价格" />
|
||||
</view>
|
||||
<text class="manual-style-hint">参考价会自动带入实际成交金额,保存前仍可按本次服务情况调整。</text>
|
||||
</scroll-view>
|
||||
<view class="manual-style-footer">
|
||||
<button class="manual-style-confirm" bindtap="useManualProduct">用于本次补录</button>
|
||||
<button class="manual-style-library-link" bindtap="openProductLibrary">从款式库中选择</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<entity-selector-sheet visible="{{artistSelectorVisible}}" title="选择美甲师" keyword="{{artistKeyword}}" placeholder="搜索美甲师姓名" items="{{artistOptions}}" selected-id="{{form.artistId}}" loading="{{loadingArtists}}" error-text="{{artistError}}" empty-text="暂无可选美甲师" bind:search="searchArtists" bind:select="selectArtist" bind:retry="loadArtists" bind:close="closeArtistSelector" />
|
||||
<entity-selector-sheet visible="{{customerSelectorVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{loadingCustomers}}" error-text="{{customerError}}" empty-text="暂无客户,可留空记为散客" action-text="按散客记录" bind:search="searchCustomers" bind:select="selectCustomer" bind:retry="loadCustomers" bind:action="useWalkIn" bind:close="closeCustomerSelector" />
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user