正在搜索客户...
暂无匹配客户,可继续创建新客户
@@ -208,6 +210,9 @@ const conflictTip = ref('')
const conflictLevel = ref<'free' | 'danger'>('free')
const loading = ref(false)
const manualImageUploading = ref(false)
+const selectedCustomerReady = computed(() => {
+ return Boolean(form.customerName || form.phone)
+})
const manualProductChanged = computed(() => {
return Boolean(
form.manualProductTitle
@@ -610,9 +615,14 @@ watch(timeSheetVisible, syncAppointmentModalState)
.customer-combobox {
position: relative;
+ z-index: 30;
overflow: visible;
}
+.customer-combobox:focus-within {
+ z-index: 80;
+}
+
.customer-control {
position: relative;
width: 100%;
@@ -622,6 +632,37 @@ watch(timeSheetVisible, syncAppointmentModalState)
padding-right: 42px;
}
+.customer-selected-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ width: 100%;
+ min-height: 24px;
+ padding-right: 42px;
+ color: var(--ink);
+ font-size: 14px;
+ text-align: left;
+}
+
+.customer-selected-row span,
+.customer-selected-row strong {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.customer-selected-row span {
+ min-width: 0;
+ font-weight: 700;
+}
+
+.customer-selected-row strong {
+ flex: 0 0 auto;
+ max-width: 54%;
+ font-weight: 700;
+}
+
.customer-clear {
position: absolute;
top: 50%;
@@ -638,7 +679,7 @@ watch(timeSheetVisible, syncAppointmentModalState)
.customer-dropdown {
position: absolute;
- z-index: 20;
+ z-index: 90;
top: calc(100% + 8px);
right: 0;
left: 0;
@@ -649,8 +690,9 @@ watch(timeSheetVisible, syncAppointmentModalState)
padding: 10px;
border: 1px solid var(--border);
border-radius: 12px;
- background: var(--surface);
+ background: var(--card-bg);
box-shadow: 0 16px 36px rgba(19, 32, 24, 0.16);
+ isolation: isolate;
-webkit-overflow-scrolling: touch;
}
@@ -666,18 +708,27 @@ watch(timeSheetVisible, syncAppointmentModalState)
text-align: left;
}
-.customer-option span,
.customer-option strong,
-.customer-option small {
- display: block;
+.customer-option span {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
-.customer-option small,
-.customer-option em,
+.customer-option strong {
+ min-width: 0;
+}
+
+.customer-option span,
.customer-muted {
color: var(--muted);
font-size: 12px;
- font-style: normal;
+}
+
+.customer-option span {
+ flex: 0 0 auto;
+ max-width: 52%;
+ text-align: right;
}
.customer-new {