From 017cba3a05144d3fa1d964026bea3a99ff3486de Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 21 Aug 2025 17:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=95=86=E5=93=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/auxiliary-code.vue | 12 +++--- .../components/package-unit.vue | 39 ++++++++++++------- .../components/product-inventory.vue | 3 ++ .../supermarketerp/supermarketSpu/index.vue | 2 +- 4 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue b/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue index 90bd45e..753592d 100644 --- a/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue +++ b/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue @@ -35,7 +35,7 @@ @@ -45,9 +45,9 @@ 请选择 - + @@ -74,7 +74,7 @@ export interface rowVC { id: string unitId: string unit: string - taste: string + tasteName: string barCode: string } @@ -96,7 +96,7 @@ const pushEvent = () => { id: "tmp_" + nanoid(5), unitId: "", unit: "", - taste: "", + tasteName: "", barCode: "", } auxiliaryCodeList.value.push(newRow) @@ -132,7 +132,7 @@ watch( const handleUnitIdChange = (unitId: string, rowIndex: number) => { const unitItem = unitSelectOptions.value?.find((item: rowVU) => item.id == unitId) ;(auxiliaryCodeList.value[rowIndex] as any).unit = unitItem?.unit - ;(auxiliaryCodeList.value[rowIndex] as any).taste = unitItem?.taste + ;(auxiliaryCodeList.value[rowIndex] as any).tasteName = unitItem?.tasteName } // 校验可编辑表格 成功返回 true 失败返回 false diff --git a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue index fffa8eb..c6c2732 100644 --- a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue +++ b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue @@ -1,18 +1,28 @@ diff --git a/src/views/supermarketerp/supermarketSpu/index.vue b/src/views/supermarketerp/supermarketSpu/index.vue index 708494d..c7457b0 100644 --- a/src/views/supermarketerp/supermarketSpu/index.vue +++ b/src/views/supermarketerp/supermarketSpu/index.vue @@ -155,7 +155,7 @@ -