From e082d79092dd3586fd5110c52a79e53ce4122122 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 21 Nov 2024 11:04:02 +0800 Subject: [PATCH] =?UTF-8?q?YT-1133=20=E8=AE=A1=E5=88=92=E5=A4=96=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E9=9A=90=E8=97=8F=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/detail/comRecommendDetailCard.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mycomponents/detail/comRecommendDetailCard.vue b/src/mycomponents/detail/comRecommendDetailCard.vue index 2e1c29b3..a3b56d0b 100644 --- a/src/mycomponents/detail/comRecommendDetailCard.vue +++ b/src/mycomponents/detail/comRecommendDetailCard.vue @@ -140,14 +140,20 @@ }, mounted() { - if (this.detailOptions.length == 0) { - this.detailOptions = getDetailOption(); - } + + if (this.scanOptions.length == 0) { this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, false) } - // this.showLocation(); + if(import.meta.env.VITE_MANAGE_MODEL=="BY_PACKAGING"){ + if (this.detailOptions.length == 0) { + this.detailOptions = getDetailOption(); + } + }else { + this.scanOptions.splice(0,1) + } + }, methods: {