From a15c91f5a1e2700c6a4b2659b1726012afec200f Mon Sep 17 00:00:00 2001 From: liufumingren Date: Tue, 3 Nov 2026 20:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B9=B3=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Order/OrderFormDialog.vue | 41 ++++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/frontend/src/views/Order/OrderFormDialog.vue b/frontend/src/views/Order/OrderFormDialog.vue index 6473bce..f8b5cd0 100644 --- a/frontend/src/views/Order/OrderFormDialog.vue +++ b/frontend/src/views/Order/OrderFormDialog.vue @@ -139,6 +139,8 @@ function defaultShopIdOf(): number | null { /** 当前编辑的单据是否由外部打单平台拉取(店铺不可修改) */ const isExternal = ref(false) +/** 外部单的店铺展示名:外部平台店铺不在可选列表里,直接显示名称而不是让下拉回显 ID */ +const externalShopLabel = ref('') function reset() { Object.assign(form, { @@ -173,6 +175,8 @@ function reset() { buyer_message: '', remark: '', }) + isExternal.value = false + externalShopLabel.value = '' fillItems([]) } @@ -183,6 +187,8 @@ async function loadDetail(id: number) { const { order, items } = await getOrderStatusDetail(id) // 外部打单平台拉取的订单,店铺由平台决定,编辑时不允许修改 isExternal.value = !!(order as { is_external?: boolean }).is_external + const externalShop = props.filters.shops.find(shop => shop.id === order.shop_id) + externalShopLabel.value = order.shop_name || order.shop_nick || externalShop?.name || '' Object.assign(form, { parent_order_no: order.parent_order_no || '', order_no: order.order_no, @@ -551,25 +557,26 @@ async function submit() { - - - + /> +
平台拉取的订单,店铺由平台决定,不可修改
-
- 当前主体下没有可用的平台店铺(外部打单平台店铺不可用于手工建单) -