主档信息
-分类:{{ productDetail.category_name || "-" }}
-状态:{{ Number(productDetail.status || 1) === 1 ? "启用" : "停用" }}
-备注:{{ productDetail.remark || "-" }}
-diff --git a/frontend/web-admin/src/views/MasterDataPage.vue b/frontend/web-admin/src/views/MasterDataPage.vue index 9eb2ef9..39be350 100644 --- a/frontend/web-admin/src/views/MasterDataPage.vue +++ b/frontend/web-admin/src/views/MasterDataPage.vue @@ -535,35 +535,70 @@
| 规格名称 | +单位 | +成本价 | +售价 | +状态 | +默认 | +操作 | +
|---|---|---|---|---|---|---|
| {{ spec.specification }} | +{{ spec.unit }} | +¥{{ spec.costPrice }} | +¥{{ spec.salePrice }} | +{{ spec.status }} | ++ ✓ 默认 + + | ++ + | +
新增规格请通过"新增产品"按钮添加。
+分类:{{ productDetail.category_name || "-" }}
-状态:{{ Number(productDetail.status || 1) === 1 ? "启用" : "停用" }}
-备注:{{ productDetail.remark || "-" }}
-规格数量:{{ productDetail.specifications.length }}
-默认规格:{{ productDetail.specifications.find((item) => item.is_default)?.specification || "-" }}
-支持展开后逐个编辑规格明细。
-成本价:{{ formatAmount(spec.cost_price) }}
-销售价:{{ formatAmount(spec.sale_price) }}
-备注:{{ spec.remark || "-" }}
-规格 ID:{{ spec.product_id }}
-