fix: 员工排班接入真实数据并移除兜底

This commit is contained in:
2026-02-20 09:03:23 +08:00
parent fc1739a00d
commit 11cd789f38
14 changed files with 298 additions and 196 deletions

View File

@@ -13,6 +13,7 @@ import dayjs from 'dayjs';
interface Props {
isSaving: boolean;
isTemplateConfigured: boolean;
onSetTemplateTime: (payload: {
field: 'endTime' | 'startTime';
shiftType: Exclude<ShiftType, 'off'>;
@@ -71,6 +72,10 @@ function handleTemplateTimeChange(payload: {
<span class="section-title">班次模板</span>
</template>
<div v-if="!props.isTemplateConfigured" class="template-guide">
当前门店尚未配置班次模板请先设置并保存模板再进行员工排班
</div>
<div class="template-list">
<div
v-for="row in templateRows"
@@ -113,7 +118,11 @@ function handleTemplateTimeChange(payload: {
</div>
<div class="template-tip">
调整模板后个人排班和周排班中的同类型班次会同步到新的时间段
{{
props.isTemplateConfigured
? '调整模板后,个人排班和周排班中的同类型班次会同步到新的时间段。'
: '模板保存成功后,员工列表中的“排班”和“编辑排班”会自动可用。'
}}
</div>
<div class="staff-card-actions">