调整预约客户和时长栏展示
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
|
||||
<section class="card form-card">
|
||||
<div class="field field--stack customer-combobox">
|
||||
<div class="field customer-combobox">
|
||||
<label class="required">客户</label>
|
||||
<div class="customer-control">
|
||||
<button v-if="selectedCustomerReady" class="customer-selected-row" type="button" @click="openCustomerDropdown">
|
||||
@@ -44,7 +44,13 @@
|
||||
</div>
|
||||
<div class="field"><label class="required">预约日期</label><input v-model="form.appointmentDate" type="date" @change="onDateChange" /></div>
|
||||
<div class="field"><label class="required">预约作品</label><button class="field-value picker-value" type="button" @click="productModalVisible = true">{{ selectedProductTitle }}</button></div>
|
||||
<div class="field"><label class="required">预计时长</label><input v-model.trim="form.durationMinutes" inputmode="numeric" placeholder="分钟" @input="refreshAvailableTimes" /></div>
|
||||
<div class="field">
|
||||
<label class="required">预计时长</label>
|
||||
<div class="duration-control">
|
||||
<input v-model.trim="form.durationMinutes" inputmode="numeric" placeholder="请输入时长" @input="refreshAvailableTimes" />
|
||||
<span>分钟</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field"><label class="required">指定员工</label><select v-model="form.artistId" @change="refreshAvailableTimes"><option value="">请选择员工</option><option v-for="artist in artists" :key="String(resolveArtistUserId(artist))" :value="String(resolveArtistUserId(artist))">{{ artist.name || artist.nickname }}</option></select></div>
|
||||
<div class="field"><label class="required">预约时间</label><button class="field-value picker-value" type="button" @click="openTimeSheet">{{ form.appointmentTime || timeSelectTip }}</button></div>
|
||||
<div class="field field--stack"><label>备注</label><textarea v-model.trim="form.remark" placeholder="请输入预约备注"></textarea></div>
|
||||
@@ -628,6 +634,8 @@ watch(timeSheetVisible, syncAppointmentModalState)
|
||||
}
|
||||
|
||||
.customer-control {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -667,6 +675,27 @@ watch(timeSheetVisible, syncAppointmentModalState)
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.duration-control {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.duration-control input {
|
||||
min-width: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.duration-control span {
|
||||
flex: 0 0 auto;
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.customer-clear {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
||||
Reference in New Issue
Block a user