From 98f77a98187ff0c16594f54a0e3d947d7fa160e8 Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Thu, 9 Jul 2026 19:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/hospitals/service.vue | 5 +++-- src/views/admin/orders/components/OrderFormDialog.vue | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/admin/hospitals/service.vue b/src/views/admin/hospitals/service.vue index f45fa61..b3be28e 100644 --- a/src/views/admin/hospitals/service.vue +++ b/src/views/admin/hospitals/service.vue @@ -165,7 +165,8 @@ + :hospital-id="currentHospitalId" :hospital-name="currentHospitalName" :managerOptions="managerOptions" + :managerLoaded="managerLoaded" /> @@ -193,7 +194,7 @@ const managerLoaded = ref(false); const loadManagers = async () => { if (managerLoaded.value) return; try { - const res = await getAdminAccounts({ type: "Admin" }); + const res = await getAdminAccounts({ type: "Admin", role: "客户经理" }); managerOptions.value = res?.list || []; managerLoaded.value = true; } catch (e) { diff --git a/src/views/admin/orders/components/OrderFormDialog.vue b/src/views/admin/orders/components/OrderFormDialog.vue index d6a3445..c95457e 100644 --- a/src/views/admin/orders/components/OrderFormDialog.vue +++ b/src/views/admin/orders/components/OrderFormDialog.vue @@ -65,7 +65,7 @@ :style="{ '--tag-color': form.colorTag }"> @@ -472,7 +472,7 @@ watch( nextTick(() => { resetForm(); // 有回显数据时(编辑模式 / 复制工单)优先按 orderData 填充 - if (isEdit.value || props.orderData) { + if (isEdit.value || Object.keys(props.orderData).length > 0) { fillFormFromOrder(props.orderData || {}); } else { // 快速提交默认填入当前时间作为提交时间