diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue
index da261ca8..73473a05 100644
--- a/manager/src/views/goods/goods-info/goods.vue
+++ b/manager/src/views/goods/goods-info/goods.vue
@@ -27,6 +27,15 @@
style="width: 200px"
/>
+
+
+
+
+
+
-
@@ -112,7 +136,12 @@
>
-
+
-
+
@@ -169,7 +200,24 @@ export default {
key: "price",
width: 130,
render: (h, params) => {
- return h("div", this.$options.filters.unitPrice(params.row.price, "¥"));
+ return h(
+ "div",
+ this.$options.filters.unitPrice(params.row.price, "¥")
+ );
+ },
+ },
+ {
+ title: "销售模式",
+ key: "salesModel",
+ width: 100,
+ render: (h, params) => {
+ if (params.row.salesModel === "RETAIL") {
+ return h("Tag", { props: { color: "orange" } }, "零售");
+ } else if (params.row.salesModel === "WHOLESALE") {
+ return h("Tag", { props: { color: "magenta" } }, "批发");
+ } else {
+ return h("Tag", { props: { color: "volcano" } }, "其他类型");
+ }
},
},
{