diff --git a/src/pages/customer/CustomerEdit.vue b/src/pages/customer/CustomerEdit.vue index e2f8b46..66e7b46 100644 --- a/src/pages/customer/CustomerEdit.vue +++ b/src/pages/customer/CustomerEdit.vue @@ -98,32 +98,39 @@ -
-
- +
+
选择客户 -
+ @click="clearIntroducer" + >清除 + 选择客户
-
+ + +
@@ -332,6 +339,15 @@ async function handleIntroducerChange(id: string): Promise { formData.introducerCustomer = customer; } +function clearIntroducer(): void { + if (isCustomerBound.value) { + return; + } + introducerCustomerId.value = ""; + formData.introducerCustomerId = ""; + formData.introducerCustomer = undefined; +} + // ---------- 表单 ---------- const formData = reactive({ @@ -743,15 +759,9 @@ function buildAttachmentList(): Attachment[] { text-overflow: ellipsis; } - .referrer { + .selector { gap: .75rem; display: flex; - flex-direction: column; - - .selector { - gap: .75rem; - display: flex; - } .actions { gap: .5rem; @@ -760,6 +770,10 @@ function buildAttachmentList(): Attachment[] { } } + .introducer-profile { + flex: 1; + } + .sex { gap: .5rem; display: flex;