fix PackageConfig*.vue style

This commit is contained in:
Timi
2026-09-06 01:10:22 +08:00
parent 3698f7151f
commit d929dbe622
7 changed files with 472 additions and 142 deletions
+2 -1
View File
@@ -67,6 +67,7 @@ import { getProductPhotoURL } from "@/utils/product";
interface Props {
modelValue: { productId: string; productUnitId: string } | undefined;
selectedProduct?: Product;
label?: string;
requiredMark?: boolean;
placeholder?: string;
@@ -82,7 +83,7 @@ const selectedText = computed(() => {
if (!props.modelValue) {
return "";
}
const product = productList.value.find(item => item.id === props.modelValue?.productId);
const product = props.selectedProduct || productList.value.find(item => item.id === props.modelValue?.productId);
return product?.name || "";
});
const filteredProductList = computed(() => {