diff --git a/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue b/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue
index eeaf67c..6161243 100644
--- a/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue
+++ b/src/views/supermarketerp/supermarketSpu/components/auxiliary-code.vue
@@ -44,6 +44,11 @@
请选择
+
+
+ {{ computedSmErpUnitEntityList?.find((item: rowVU) => item.id === row.unitId)?.taste }}
+
+
@@ -63,6 +68,7 @@ export interface rowVC {
unitId: string
unit: string
barCode: string
+ taste: string
isNew?: boolean
}
@@ -72,6 +78,7 @@ const auxiliaryCodeList = defineModel("modelValue", {
id: nanoid(5),
unitId: "",
unit: "",
+ taste: "",
barCode: "",
},
],
@@ -102,6 +109,7 @@ const pushEvent = () => {
unitId: "",
unit: "",
barCode: "",
+ taste: "",
isNew: true,
}
auxiliaryCodeList.value.push(newRow)
@@ -128,7 +136,9 @@ const computedSmErpUnitEntityList = computed(() => props.smErpUnitEntityList?.fi
// 包装单位下拉选择变化
const handleUnitIdChange = (unitId: string, rowIndex: number) => {
- ;(auxiliaryCodeList.value[rowIndex] as any).unit = computedSmErpUnitEntityList.value?.find((item: rowVU) => item.id == unitId)?.unit
+ const unitItem = computedSmErpUnitEntityList.value?.find((item: rowVU) => item.id == unitId)
+ ;(auxiliaryCodeList.value[rowIndex] as any).unit = unitItem?.unit
+ ;(auxiliaryCodeList.value[rowIndex] as any).taste = unitItem?.taste
}
// 删除选中的行
diff --git a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue
index e9f8190..ab29d47 100644
--- a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue
+++ b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue
@@ -56,14 +56,14 @@
-
+ handleUnitInput(row, value)" />
+
+
+
+
+ handleTasteInput(row, value)" />
-
-
-
-
-
@@ -108,6 +108,7 @@