From f3c2c0f4ea03f976350d6300bbc09dc505ae024c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Tue, 10 Mar 2026 21:11:49 +0800 Subject: [PATCH] fix --- src/views/purchase/purchasingrequisition/add.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 63e2edf..2b73ca9 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -130,6 +130,10 @@ :disabled="flowFieldDisabled('categoryCode')" @change="handleCategoryChange" /> + + + 品目编码层级:{{ categoryCodeHierarchy }} + 当前选择品目为服务商城品目 @@ -1361,6 +1365,14 @@ const isSpecialServiceCategory = computed(() => { return Number(category.isMallService) === 1 || Number(category.isProjectService) === 1; }); +// 计算品目编码层级路径显示(如:A/A01/A01000000) +const categoryCodeHierarchy = computed(() => { + if (!categoryCodePath.value || categoryCodePath.value.length === 0) { + return ''; + } + return categoryCodePath.value.join('/'); +}); + // 部门自行采购 & 采购途径=自行采购 & 特殊服务类目 → 采购方式固定网上商城 const isDeptSelfMallLocked = computed(() => { return isDeptPurchase.value && !isEntrustCenterChannel.value && isSpecialServiceCategory.value;