From fa3d7088f9539c64775f4e301d272320737258ba Mon Sep 17 00:00:00 2001 From: luo Date: Wed, 5 Aug 2026 17:58:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=97=E9=93=BA=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/shop-management/list/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/shop-management/list/index.vue b/src/views/shop-management/list/index.vue index c449f95..896456e 100644 --- a/src/views/shop-management/list/index.vue +++ b/src/views/shop-management/list/index.vue @@ -135,6 +135,7 @@ filterable remote clearable + :value-on-clear="() => null" placeholder="请选择或搜索平台业务员" :remote-method="searchPlatformSalespeople" :loading="salespersonLoading" @@ -367,6 +368,7 @@ const defaultRoleList = ref([]) const salespersonLoading = ref(false) const salespersonOptions = ref([]) + const initialBusinessOwnerAccountId = ref(null) const creditDialogVisible = ref(false) const currentCreditShop = ref(null) const creditLoadingShopId = ref(null) @@ -638,6 +640,7 @@ formData.contact_name = row.contact_name || '' formData.contact_phone = row.contact_phone || '' formData.business_owner_account_id = row.business_owner_account_id ?? null + initialBusinessOwnerAccountId.value = row.business_owner_account_id ?? null formData.client_login_disabled = row.client_login_disabled formData.status = row.status formData.init_username = '' @@ -657,6 +660,7 @@ formData.contact_name = '' formData.contact_phone = '' formData.business_owner_account_id = null + initialBusinessOwnerAccountId.value = null formData.client_login_disabled = false formData.status = CommonStatus.ENABLED formData.init_username = '' @@ -1099,7 +1103,13 @@ client_login_disabled: formData.client_login_disabled } if (!isAgentAccount.value) { - data.business_owner_account_id = formData.business_owner_account_id + const businessOwnerAccountId = + typeof formData.business_owner_account_id === 'number' + ? formData.business_owner_account_id + : null + if (businessOwnerAccountId !== initialBusinessOwnerAccountId.value) { + data.business_owner_account_id = businessOwnerAccountId + } } // 可选字段