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() { - - - + /> + + + + + + 当前主体下没有可用的平台店铺(外部打单平台店铺不可用于手工建单) + + 平台拉取的订单,店铺由平台决定,不可修改 - - 当前主体下没有可用的平台店铺(外部打单平台店铺不可用于手工建单) -